/* Homepage-specific layout and composition. */

/* Home-local variables */
body.home {
    --home-hero-space: var(--ds-space-section-lg);
    --home-section-space: var(--ds-space-section-md);
    --home-section-space-tight: var(--ds-space-section-sm);
    --home-footer-bottom-space: var(--ds-space-8);
    --home-section-header-gap: var(--ds-space-gap-xl);
    --home-section-content-gap: var(--ds-space-gap-lg);
    --home-title-size: var(--ds-heading-h2-size);
    --home-title-line: var(--ds-heading-h2-line-height);
    --home-card-title-size: var(--ds-heading-h3-size);
    --home-card-title-line: var(--ds-heading-h3-line-height);
    --home-body-size: var(--ds-font-size-body-md);
    --home-body-line: var(--ds-type-body-md-line-height);
    --home-meta-size: var(--ds-font-size-body-sm);
    --home-meta-line: var(--ds-type-body-sm-line-height);
    --home-profile-panel-space-top: var(--home-section-space);
    --home-profile-panel-space-bottom: var(--home-section-space);
    --home-profile-card-space: var(--ds-space-16);
    --home-profile-card-gap: var(--ds-space-gap-md);
    --home-profile-card-title-size: var(--ds-heading-h1-size);
    --home-profile-card-title-line: var(--ds-heading-h1-line-height);
    --home-search-height: calc(var(--ds-space-1) * 14.5);
    --home-article-card-space: var(--ds-space-5) var(--ds-space-5) var(--ds-space-5);
    --home-article-card-gap: var(--ds-space-gap-sm);
    --home-article-card-title-size: var(--ds-heading-h3-size);
    --home-article-card-title-line: var(--ds-heading-h3-line-height);
    --home-article-card-body-size: var(--ds-font-size-body-md);
    --home-article-card-body-line: var(--ds-type-body-md-line-height);
    --home-book-card-space: var(--ds-space-4) var(--ds-space-4) var(--ds-space-5);
    --home-book-cover-height: calc(var(--ds-space-1) * 102.5);
    --home-book-image-space: var(--ds-space-5) var(--ds-space-5) var(--ds-space-3);
    --home-partner-space: var(--ds-space-8) var(--ds-space-6);
    --home-fa-grid-gap: var(--ds-space-gap-lg);
    --home-footer-columns-gap: var(--ds-space-gap-xl);
    --home-card-title-gap: calc(var(--ds-space-1) * 2.5);
    --home-card-hover-lift: calc(var(--ds-space-1) * -1);
    --home-meta-padding-top: calc(var(--ds-space-1) * 0.5);
    --home-featured-article-image-height: calc(var(--ds-space-1) * 51);
    --home-featured-article-image-height-mobile: calc(var(--ds-space-1) * 49);
    --home-profile-name-size-mobile: calc(var(--ds-space-1) * 7.5);
    --home-profile-name-size-xs: calc(var(--ds-space-1) * 6.5);
    --home-card-content-padding-mobile: var(--ds-space-4);
    --home-title-size-xs: calc(var(--ds-space-1) * 4.5);
    --home-btn-min-height: calc(var(--ds-space-1) * 11);
    --home-mobile-search-results-max-height: calc(var(--ds-space-1) * 52);
    --home-profile-stat-surface: color-mix(in srgb, var(--ds-color-brand-primary) 86%, white);
    --home-profile-stat-border: color-mix(in srgb, var(--ds-color-brand-accent) 45%, var(--ds-color-brand-primary));
}

body.home #top_header_menu ul.navbar-nav li {
    padding: var(--ds-space-2) var(--ds-space-4);
}

body.home #top_header_menu ul.navbar-nav a,
body.home .language-dropdown span {
    font-size: var(--ds-font-size-body-sm);
    line-height: var(--ds-type-body-sm-line-height);
}

body.home .telegram-btn {
    font-size: var(--ds-font-size-body-sm);
    line-height: var(--ds-type-body-sm-line-height);
    padding: var(--ds-space-3) var(--ds-space-6);
}

body.home .homepage-profile-card,
body.home #profile_container {
    background-color: var(--ds-color-brand-primary);
}

body.home #profile_container {
    color: var(--ds-color-text-on-primary);
}

body.home .featured-qa,
body.home .featured-books,
body.home .educational-partner-section {
    background: var(--ds-color-bg-canvas);
}

body.home .profile-section,
body.home #profile_container,
body.home .featured-articles,
body.home .featured-qa,
body.home .featured-books,
body.home .educational-partner-section {
    padding-top: var(--home-section-space);
    padding-bottom: var(--home-section-space);
}

body.home .featured-articles,
body.home .featured-qa,
body.home .featured-books {
    margin: 0;
}

body.home .featured-books {
    padding-top: var(--ds-space-8);
}

body.home .educational-partner-section {
    padding-top: var(--ds-space-10);
}

body.home .main-footer {
    padding-top: var(--home-section-space-tight);
    padding-bottom: var(--home-footer-bottom-space);
}

body.home .profile-section {
    padding-top: var(--home-hero-space);
    padding-bottom: var(--home-hero-space);
    background-image: url('../images/Clip_path_group.svg');
    background-size: cover;
    background-repeat: no-repeat;
    background-color: var(--ds-color-bg-canvas);
}

/* Hero */
body.home .profile-section .quote {
    max-width: 54ch;
    margin: 0 0 var(--ds-space-6);
    padding: var(--ds-space-4) 0 var(--ds-space-4) var(--ds-space-6);
    font-size: var(--ds-font-size-body-lg);
    line-height: var(--ds-type-body-lg-line-height);
}

body.home .home-hero__name {
    font-size: var(--ds-font-size-md);
    line-height: 1.5;
    letter-spacing: 0.02em;
    font-weight: var(--ds-font-weight-semibold);
    margin-bottom: 0;
}

body.home .profile-section .designation,
body.home .profile-info .description p,
body.home .home-partner__description,
body.home .main-footer p,
body.home .footer-widget,
body.home .footer-column p {
    font-size: var(--home-body-size);
    line-height: var(--home-body-line);
}

body.home #profile_container .profile-info .description p:last-child {
    margin-bottom: 0;
}

body.home .profile-section .designation {
    margin-top: 0;
    line-height: var(--ds-line-height-normal);
    max-width: none;
}

body.home .home-hero__actions,
body.home .home-mobile-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--ds-space-gap-md);
    margin-top: var(--ds-space-6);
}

body.home .home-hero__action,
body.home .home-mobile-hero__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--home-btn-min-height);
    padding: var(--ds-space-3) var(--ds-space-6);
    border: 1px solid transparent;
    border-radius: var(--ds-radius-pill);
    font-size: var(--ds-font-size-body-md);
    line-height: var(--ds-type-body-md-line-height);
    font-weight: var(--ds-font-weight-medium);
    text-decoration: none;
    transition: background-color var(--ds-motion-base) var(--ds-ease-standard),
        border-color var(--ds-motion-base) var(--ds-ease-standard),
        color var(--ds-motion-base) var(--ds-ease-standard);
}

body.home .home-hero__action {
    flex: 0 0 auto;
    margin-left: 0;
}

body.home .home-hero__action--primary,
body.home .home-mobile-hero__action--primary {
    background-color: var(--ds-color-brand-primary);
    border-color: var(--ds-color-brand-primary);
    color: var(--ds-color-text-on-primary);
}

body.home .home-hero__action--primary:hover,
body.home .home-hero__action--primary:focus-visible {
    background-color: var(--ds-color-brand-accent);
    border-color: var(--ds-color-brand-accent);
    color: var(--ds-color-text-on-primary);
}

body.home .home-hero__action--secondary {
    background-color: transparent;
    border-color: var(--ds-color-brand-primary);
    color: var(--ds-color-brand-primary);
}

body.home .home-hero__action--secondary:hover,
body.home .home-hero__action--secondary:focus-visible {
    background-color: transparent;
    border-color: var(--ds-color-brand-accent);
    color: var(--ds-color-brand-accent);
}

body.home .homepage-profile-card .profile-card {
    padding: var(--home-profile-card-space) 0;
    gap: var(--home-profile-card-gap);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

body.home .homepage-profile-card .profile-name {
    margin-bottom: var(--ds-space-3);
    font-size: var(--home-profile-card-title-size);
    line-height: var(--home-profile-card-title-line);
    color: var(--ds-color-text-on-primary) !important;
    text-align: center;
}

body.home .home-mobile-hero__search {
    padding: var(--ds-space-1) 0 0;
    width: 100%;
}

body.home .home-mobile-hero__input {
    display: block;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

body.home .home-mobile-hero__input .ds-c-input {
    display: block;
    width: 100%;
    min-height: var(--home-btn-min-height);
    border: 1px solid var(--ds-color-border-default);
    border-radius: var(--ds-radius-md);
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    background: var(--ds-color-bg-surface);
    color: var(--ds-color-text-strong);
    font-size: var(--ds-font-size-body-md);
    line-height: var(--ds-type-body-md-line-height);
    margin: 0;
    padding: var(--ds-space-3) var(--ds-space-4) var(--ds-space-3) calc(var(--ds-space-4) + var(--ds-space-6));
}

body.home .home-mobile-hero__input .ds-c-input::placeholder {
    color: var(--ds-color-text-muted);
}

body.home .home-mobile-hero__results:empty {
    display: none;
}

body.home .home-mobile-hero__results {
    position: relative;
}

body.home .home-mobile-hero__results .ui-autocomplete {
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    margin-top: var(--ds-space-3);
    max-height: var(--home-mobile-search-results-max-height);
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: var(--ds-shadow-md);
}

body.home .home-mobile-hero__actions {
    justify-content: center;
    gap: var(--ds-space-gap-sm);
    margin-top: var(--ds-space-5);
}

body.home .home-mobile-hero__action--primary {
    background-color: var(--ds-color-brand-accent);
    border-color: var(--ds-color-brand-accent);
    color: var(--ds-color-text-on-accent);
}

body.home .home-mobile-hero__action--primary:hover,
body.home .home-mobile-hero__action--primary:focus-visible {
    background-color: var(--ds-color-brand-accent-deep);
    border-color: var(--ds-color-brand-accent-deep);
    color: var(--ds-color-text-on-primary);
}

body.home .home-mobile-hero__action--secondary {
    background-color: transparent;
    border-color: var(--ds-color-text-on-primary);
    color: var(--ds-color-text-on-primary);
}

body.home .home-mobile-hero__action--secondary:hover,
body.home .home-mobile-hero__action--secondary:focus-visible {
    background-color: var(--ds-color-text-on-primary);
    border-color: var(--ds-color-text-on-primary);
    color: var(--ds-color-brand-primary);
}

/* Profile panel and stats */
body.home #profile_container {
    padding-top: var(--home-profile-panel-space-top);
    padding-bottom: var(--home-profile-panel-space-bottom);
}

body.home #profile_container > .container > .home-profile-panel__row {
    align-items: flex-start;
}

body.home #profile_container .home-profile-panel__header,
body.home #profile_container .home-profile-panel__info,
body.home #profile_container .home-profile-panel__stats,
body.home .home-partner,
body.home .home-footer__columns {
    row-gap: var(--home-section-content-gap);
}

body.home #profile_container .home-profile-panel__title,
body.home #profile_container .home-profile-panel__title a {
    font-size: var(--ds-heading-h2-size);
    line-height: var(--ds-heading-h2-line-height);
    margin-bottom: var(--ds-space-4);
    color: var(--ds-color-text-on-primary);
}

body.home #profile_container .home-profile-panel__info .description p,
body.home #profile_container .home-profile-panel__stats p,
body.home #profile_container .home-profile-panel__label {
    color: var(--ds-color-text-on-primary);
    opacity: 0.82;
}

body.home #profile_container .home-profile-panel__stats-col {
    display: flex;
    align-items: center;
}

body.home #profile_container .home-profile-panel__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    align-content: start;
    padding: 0 var(--ds-space-4) 0 var(--ds-space-8);
    gap: var(--ds-space-gap-sm);
}

body.home #profile_container .home-profile-panel__card,
body.home #profile_container .home-profile-panel__stats .stat-card {
    min-width: 0;
    height: 100%;
    padding: var(--ds-space-6) var(--ds-space-5);
    text-align: left;
    border: 1px solid var(--home-profile-stat-border);
    border-radius: var(--ds-radius-lg);
    background-color: var(--home-profile-stat-surface);
}

body.home #profile_container .home-profile-panel__stats .stat-number h4 {
    font-family: var(--ds-font-family-heading);
    font-weight: var(--ds-font-weight-semibold);
    font-size: var(--ds-font-size-2xl);
    line-height: var(--ds-heading-h2-line-height);
    margin-bottom: var(--ds-space-3);
    color: var(--ds-color-brand-accent);
}

body.home #profile_container .home-profile-panel__stats .stat-card p {
    margin: 0;
}

body.home #profile_container .home-profile-panel__stats .stat-card p b {
    font-family: var(--ds-font-family-body);
    font-weight: var(--ds-font-weight-medium);
    color: var(--ds-color-text-on-primary);
    opacity: 1;
}

body.home #profile_container .home-profile-panel__stats .stat-card p small {
    font-family: var(--ds-font-family-body);
    font-size: var(--ds-font-size-caption);
    line-height: var(--ds-type-body-sm-line-height);
}

body.home #profile_container .home-profile-panel__label,
body.home #profile_container .home-profile-panel__stats p {
    font-size: var(--ds-font-size-body-sm);
    line-height: var(--ds-type-body-sm-line-height);
}

body.home #profile_container .home-profile-panel__footer {
    margin-top: var(--ds-space-8);
}

body.home #profile_container .home-profile-panel__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--home-btn-min-height);
    padding: var(--ds-space-3) var(--ds-space-6);
    border-radius: var(--ds-radius-pill);
    background: var(--ds-color-brand-accent);
    color: var(--ds-color-text-on-accent);
    font-size: var(--ds-font-size-body-md);
    line-height: var(--ds-type-body-md-line-height);
    font-weight: var(--ds-font-weight-medium);
    text-decoration: none;
    transition: background-color var(--ds-motion-base) var(--ds-ease-standard),
        color var(--ds-motion-base) var(--ds-ease-standard);
}

body.home #profile_container .home-profile-panel__action:hover,
body.home #profile_container .home-profile-panel__action:focus-visible {
    background: var(--ds-color-brand-accent-deep);
    color: var(--ds-color-text-on-primary);
}

body.home .home-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0;
    margin-bottom: var(--home-section-header-gap);
}

body.home .home-section-header .section-title {
    margin-bottom: 0;
}

body.home .featured-articles .home-section-header,
body.home .featured-qa .home-section-header {
    border-top: none;
}

/* Featured articles */
body.home .home-articles-grid {
    gap: var(--home-fa-grid-gap);
}

body.home .home-qa-grid,
body.home .home-books-grid {
    --bs-gutter-x: var(--home-section-content-gap);
    --bs-gutter-y: var(--home-section-content-gap);
    row-gap: var(--home-section-content-gap);
}

body.home .home-qa-grid__item,
body.home .home-books-grid__item {
    display: flex;
    min-width: 0;
}

body.home .section-title,
body.home .home-partner__title {
    font-size: var(--home-title-size);
    line-height: var(--home-title-line);
    letter-spacing: -0.02em;
    margin: 0;
}

body.home .home-section-header__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--ds-space-2);
    min-height: var(--home-btn-min-height);
    padding: var(--ds-space-3) var(--ds-space-5);
    border-radius: var(--ds-radius-md);
    background: var(--ds-color-brand-accent);
    color: var(--ds-color-text-on-accent);
    font-size: var(--ds-font-size-body-sm);
    line-height: var(--ds-type-body-sm-line-height);
    font-weight: var(--ds-font-weight-medium);
    white-space: nowrap;
    text-decoration: none;
    transition: background-color var(--ds-motion-base) var(--ds-ease-standard),
        color var(--ds-motion-base) var(--ds-ease-standard),
        transform var(--ds-motion-base) var(--ds-ease-standard);
}

body.home .home-section-header__action:hover,
body.home .home-section-header__action:focus-visible {
    background: var(--ds-color-brand-accent-deep);
    color: var(--ds-color-text-on-accent);
    transform: translateY(calc(var(--ds-space-1) * -0.5));
}

body.home .book-title,
body.home .book-title a {
    font-size: var(--home-card-title-size);
    line-height: var(--home-card-title-line);
}

body.home .qa-card h3,
body.home .book-title {
    margin-bottom: var(--home-card-title-gap);
}

body.home .featured-articles p,
body.home .book-excerpt {
    font-size: var(--home-body-size);
    line-height: var(--home-body-line);
}

body.home .article-card__meta,
body.home .qa-card__meta,
body.home .featured-books .book-card__meta,
body.home .home-partner__label,
body.home .main-footer h5,
body.home .footer-bottom-links a,
body.home .copyright {
    color: var(--ds-color-brand-accent-deep);
    font-size: var(--home-meta-size);
    line-height: var(--home-meta-line);
}

/* Featured Q&A */
body.home .featured-qa .qa-card {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    gap: 0;
    height: 100%;
    margin-bottom: 0 !important;
    padding: 0 !important;
    box-shadow: var(--ds-shadow-md);
    border-radius: var(--ds-radius-lg);
    background: var(--ds-color-bg-surface);
    border: 1px solid var(--ds-color-border-default);
    transition: transform var(--ds-motion-base) var(--ds-ease-standard),
        box-shadow var(--ds-motion-base) var(--ds-ease-standard),
        border-color var(--ds-motion-base) var(--ds-ease-standard);
}

body.home .featured-qa .qa-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: var(--ds-space-stack-md);
    padding: var(--ds-space-4);
}

body.home .featured-qa .qa-card:hover,
body.home .featured-qa .qa-card:focus-within {
    transform: translateY(var(--home-card-hover-lift));
    box-shadow: var(--ds-shadow-lg);
    border-color: var(--ds-color-border-warning);
}

body.home .featured-qa .qa-card__header {
    display: flex;
    align-items: center;
    gap: var(--ds-space-gap-sm);
    margin-bottom: var(--ds-space-2);
}

body.home .featured-qa .qa-icon {
    flex: 0 0 auto;
}

body.home .featured-qa .qa-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: var(--ds-space-stack-sm);
    min-width: 0;
}

body.home .featured-qa .qa-card__content .text-secondary {
    margin-top: 0;
}

body.home .featured-qa .qa-card__title,
body.home .featured-qa .qa-card h3 {
    margin: 0;
    font-size: var(--home-card-title-size);
    line-height: var(--home-card-title-line);
}

body.home .featured-qa .qa-card__title a,
body.home .featured-qa .qa-card h3 a {
    font-size: var(--home-card-title-size);
    line-height: var(--home-card-title-line);
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

body.home .featured-qa .qa-card__title a:hover,
body.home .featured-qa .qa-card__title a:focus-visible,
body.home .featured-qa .qa-card h3 a:hover,
body.home .featured-qa .qa-card h3 a:focus-visible {
    text-decoration: underline;
}

body.home .featured-qa .qa-card__excerpt,
body.home .featured-qa .qa-card__content p {
    margin: 0;
    font-size: var(--home-body-size);
    line-height: var(--home-body-line);
    color: var(--ds-color-text-body);
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
}

body.home .featured-qa .qa-card__meta,
body.home .featured-qa .qa-card__meta.ds-c-meta {
    display: flex;
    justify-content: flex-start;
    margin-top: auto;
    padding-top: var(--home-meta-padding-top);
}

body.home .featured-qa .qa-card .read-link {
    font-size: var(--ds-font-size-body-sm);
    line-height: var(--ds-type-body-sm-line-height);
}

body.home .featured-articles .article-card {
    container-type: inline-size;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: var(--ds-radius-lg);
    background: var(--ds-color-bg-surface);
    border: 1px solid var(--ds-color-border-default);
    transition: transform var(--ds-motion-base) var(--ds-ease-standard),
        box-shadow var(--ds-motion-base) var(--ds-ease-standard),
        border-color var(--ds-motion-base) var(--ds-ease-standard);
}

body.home .featured-articles .article-card:hover,
body.home .featured-articles .article-card:focus-within {
    transform: translateY(var(--home-card-hover-lift));
    box-shadow: var(--ds-shadow-lg);
    border-color: var(--ds-color-border-warning);
}

body.home .featured-articles .article-card .ds-c-card__image {
    position: relative;
}

body.home .featured-articles .article-card__image a {
    display: block;
    width: 100%;
}

body.home .featured-articles .article-card img {
    display: block;
    width: 100%;
    height: var(--home-featured-article-image-height);
    object-fit: cover;
}

body.home .featured-articles .article-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: var(--ds-space-stack-md);
    padding: var(--ds-space-4);
}

body.home .featured-articles .article-card__categories {
    margin-bottom: 0;
    display: flex;
    gap: var(--ds-space-gap-sm);
    flex-wrap: nowrap;
    align-items: center;
    overflow: hidden;
    min-height: var(--ds-pill-height-sm);
}

body.home .featured-articles .article-card__categories::-webkit-scrollbar {
    display: none;
}

body.home .featured-articles .article-card .ds-c-pill {
    display: inline-flex;
    flex: 0 0 auto;
    width: auto;
    max-width: none;
}

body.home .featured-articles .article-card .badge-featured {
    top: var(--ds-space-4);
    left: var(--ds-space-4);
    padding: var(--ds-space-2) var(--ds-space-3);
    border-radius: var(--ds-radius-md);
    font-size: var(--ds-font-size-caption);
    line-height: var(--ds-type-caption-line-height);
}

body.home .featured-articles .article-card__title,
body.home .featured-articles .article-card h3 {
    margin: 0;
}

body.home .featured-articles .article-card__title,
body.home .featured-articles .article-card__title a,
body.home .featured-articles .article-card h3,
body.home .featured-articles .article-card h3 a {
    font-size: var(--home-article-card-title-size);
    line-height: var(--home-article-card-title-line);
}

body.home .featured-articles .article-card__title a,
body.home .featured-articles .article-card h3 a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

body.home .featured-articles .article-card__title a:hover,
body.home .featured-articles .article-card__title a:focus-visible,
body.home .featured-articles .article-card h3 a:hover,
body.home .featured-articles .article-card h3 a:focus-visible {
    text-decoration: underline;
}

body.home .featured-articles .article-card__excerpt,
body.home .featured-articles .article-card p {
    margin: 0;
    font-size: var(--home-article-card-body-size);
    line-height: var(--home-article-card-body-line);
    min-height: calc(var(--home-article-card-body-size) * var(--home-article-card-body-line) * 3);
    color: var(--ds-color-text-body);
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

body.home .featured-articles .article-card__meta,
body.home .featured-articles .article-card__meta.ds-c-meta {
    display: flex;
    justify-content: flex-start;
    margin-top: 0;
    padding-top: 0;
}

body.home .featured-articles .article-card .read-link {
    font-size: var(--ds-font-size-body-sm);
    line-height: var(--ds-type-body-sm-line-height);
}

/* Featured books */
body.home .home-books-grid__item {
    display: flex;
}

body.home .featured-books .home-book-card {
    display: flex;
    width: 100%;
    padding: 0;
    flex-direction: column;
    border-radius: var(--ds-radius-lg);
    overflow: hidden;
    background: var(--ds-color-bg-surface);
    border: 1px solid var(--ds-color-border-default);
}

body.home .featured-books .home-book-card__image-link {
    display: block;
    overflow: hidden;
}

body.home .featured-books .book-card__body {
    display: flex;
    flex: 1;
    align-items: flex-start;
    padding: var(--home-book-card-space);
}

body.home .featured-books .book-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--ds-space-gap-sm);
    padding-top: var(--home-meta-padding-top);
}

body.home .home-book-card,
body.home .featured-articles .article-card {
    box-shadow: var(--ds-shadow-md);
}

body.home .featured-books-slider .slick-slide {
    padding: 0 var(--ds-space-1);
}

body.home .featured-books .book-card__image,
body.home .featured-books .book-image {
    display: block;
    width: 100%;
    height: var(--home-book-cover-height);
    padding: 0;
    background: transparent;
    border-radius: var(--ds-radius-lg) var(--ds-radius-lg) 0 0;
    object-fit: cover;
    object-position: top center;
}

body.home .featured-books .book-title {
    margin-bottom: 0;
}

body.home .featured-books .book-title a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    letter-spacing: normal;
}

body.home .featured-books-slider.slick-dotted.slick-slider {
    margin-bottom: calc(var(--ds-space-12) + var(--ds-space-3)) !important;
}

body.home .featured-books-slider .slick-list {
    padding: var(--ds-space-5) 0;
}

body.home .featured-books-slider .slick-dots li button {
    background-color: transparent !important;
}

body.home .featured-books-slider .slick-dots li {
    width: var(--ds-space-2) !important;
}

/* Partner */
body.home .home-partner {
    padding: var(--home-partner-space);
    background: var(--ds-color-bg-surface);
    border: 1px solid var(--ds-color-border-default);
    border-radius: var(--ds-radius-lg);
    box-shadow: var(--ds-shadow-sm);
}

body.home .home-partner__row {
    align-items: center;
    row-gap: var(--ds-space-gap-md);
}

body.home .home-partner__content {
    display: flex;
    flex-direction: column;
    gap: var(--ds-space-gap-md);
    padding-block: var(--ds-space-1);
}

body.home .home-partner__header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 0;
    gap: var(--ds-space-gap-sm);
}

body.home .home-partner__title {
    margin: 0;
}

body.home .home-partner__description {
    margin: 0;
    max-width: 44ch;
}

body.home .home-partner__cta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

body.home .home-partner__icon {
    flex: 0 0 auto;
}

body.home .home-partner__label {
    letter-spacing: var(--ds-type-overline-letter-spacing);
}

body.home .home-partner__action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--home-btn-min-height);
    padding: var(--ds-space-3) var(--ds-space-5);
    border-radius: var(--ds-radius-pill);
    background: var(--ds-color-brand-primary);
    color: var(--ds-color-text-on-primary);
    font-size: var(--ds-font-size-body-md);
    line-height: var(--ds-type-body-md-line-height);
    font-weight: var(--ds-font-weight-medium);
    text-decoration: none;
    transition: background-color var(--ds-motion-base) var(--ds-ease-standard),
        color var(--ds-motion-base) var(--ds-ease-standard);
}

body.home .home-partner__action-link:hover,
body.home .home-partner__action-link:focus-visible {
    background: var(--ds-color-info);
    color: var(--ds-color-text-on-primary);
}

body.home .home-footer__columns {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--home-footer-columns-gap);
    margin-bottom: var(--ds-space-6);
}

body.home .footer-column h3 {
    margin-bottom: var(--ds-space-3);
    font-size: var(--ds-heading-h5-size);
    line-height: var(--ds-heading-h5-line-height);
    color: var(--ds-color-text-strong);
}

body.home .footer-widget,
body.home .footer-column p {
    color: var(--ds-color-text-body);
}

body.home .footer-links,
body.home .footer-bottom-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

body.home .footer-links a,
body.home .footer-widget ul a {
    font-size: var(--ds-font-size-body-sm);
    line-height: var(--ds-type-body-sm-line-height);
    display: inline-block;
    font-weight: var(--ds-font-weight-regular);
    color: var(--ds-color-text-strong);
    text-decoration: none;
    transition: var(--transition);
}

body.home .footer-widget li,
body.home .footer-links li {
    margin-bottom: var(--ds-space-2);
    min-height: var(--ds-space-6);
}

body.home .footer-links a:hover,
body.home .footer-widget ul a:hover {
    color: var(--ds-color-link-hover);
    transform: translateX(calc(var(--ds-space-1) * 0.75));
}

body.home .home-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    padding-top: var(--ds-space-4);
    margin-top: var(--ds-space-2);
    border-top: 1px solid var(--ds-color-border-default);
}

body.home .footer-bottom-links {
    display: flex;
    justify-content: center;
    gap: var(--ds-space-5);
    margin-bottom: var(--ds-space-2);
    flex-wrap: wrap;
}

body.home .home-hero__action:focus-visible,
body.home .home-mobile-hero__action:focus-visible,
body.home #profile_container .home-profile-panel__action:focus-visible,
body.home .home-partner__action-link:focus-visible,
body.home .home-section-header__action:focus-visible,
body.home .article-card .read-link:focus-visible,
body.home .qa-card .read-link:focus-visible,
body.home #homepage-search:focus-visible {
    outline: var(--ds-state-focus-ring-width) solid var(--ds-state-focus-ring-color);
    outline-offset: var(--ds-state-focus-ring-offset);
}

@media (max-width: 991.98px) {
    body.home {
        --home-hero-space: var(--ds-space-section-md);
        --home-section-space: var(--ds-space-section-sm);
        --home-section-space-tight: var(--ds-space-12);
        --home-section-header-gap: var(--ds-space-gap-lg);
        --home-section-content-gap: var(--ds-space-gap-md);
        --home-title-size: var(--ds-heading-h2-size);
        --home-card-title-size: var(--ds-heading-h3-size);
        --home-card-title-line: var(--ds-heading-h3-line-height);
        --home-book-cover-height: calc(var(--ds-space-1) * 95);
    }

    body.home #profile_container .home-profile-panel__title,
    body.home #profile_container .home-profile-panel__title a {
        font-size: var(--ds-heading-h2-size);
    }

    body.home .featured-books {
        padding-top: var(--ds-space-6);
    }

    body.home .home-footer__columns {
        grid-template-columns: 1fr 1fr;
        gap: var(--ds-space-8);
    }

    body.home .home-footer__columns > :first-child {
        grid-column: 1 / -1;
    }

    body.home .home-partner {
        padding: var(--ds-space-6) var(--ds-space-5);
    }

    body.home .educational-partner-section {
        padding-top: var(--ds-space-8);
    }
}

@media (max-width: 767.98px) {
    body.home {
        --home-hero-space: var(--ds-space-section-sm);
        --home-section-space: var(--ds-space-section-sm);
        --home-section-space-tight: var(--ds-space-12);
        --home-footer-bottom-space: var(--ds-space-6);
        --home-section-header-gap: var(--ds-space-gap-md);
        --home-section-content-gap: var(--ds-space-gap-md);
        --home-title-size: var(--ds-heading-h2-size);
        --home-title-line: var(--ds-heading-h2-line-height);
        --home-card-title-size: var(--ds-heading-h3-size);
        --home-card-title-line: var(--ds-heading-h3-line-height);
        --home-profile-panel-space-top: var(--home-section-space-tight);
        --home-profile-panel-space-bottom: var(--home-section-space-tight);
        --home-profile-card-space: var(--ds-space-12);
        --home-profile-card-gap: var(--ds-space-gap-sm);
        --home-profile-card-title-size: var(--ds-heading-h1-size);
        --home-profile-card-title-line: var(--ds-heading-h1-line-height);
        --home-search-height: calc(var(--ds-space-1) * 14);
        --home-article-card-space: var(--ds-space-4) var(--ds-space-4) var(--ds-space-4);
        --home-article-card-gap: var(--ds-space-gap-sm);
        --home-article-card-title-size: var(--ds-heading-h3-size);
        --home-article-card-title-line: var(--ds-heading-h3-line-height);
        --home-article-card-body-size: var(--ds-font-size-body-md);
        --home-article-card-body-line: var(--ds-type-body-md-line-height);
        --home-partner-space: var(--ds-space-5);
        --home-footer-columns-gap: var(--ds-space-gap-lg);
        --home-fa-grid-gap: var(--ds-space-gap-md);
        --home-book-cover-height: calc(var(--ds-space-1) * 85);
    }

    body.home main.main-content {
        display: flex;
        flex-direction: column;
    }

    body.home section.homepage-profile-card {
        order: 1;
    }

    body.home section.featured-articles {
        order: 2;
    }

    body.home section.featured-qa {
        order: 3;
    }

    body.home section.featured-books {
        order: 4;
    }

    body.home section#profile_container {
        order: 5;
    }

    body.home section.educational-partner-section {
        order: 6;
    }

    body.home .container {
        padding-left: var(--ds-container-padding-x);
        padding-right: var(--ds-container-padding-x);
    }

    body.home .homepage-profile-card {
        background-color: var(--ds-color-brand-primary);
    }

    body.home .home-mobile-hero__body,
    body.home .homepage-profile-card .profile-card {
        padding-top: var(--ds-space-10);
        padding-bottom: var(--ds-space-10);
        gap: var(--ds-space-stack-md);
    }

    body.home .homepage-profile-card .profile-name {
        max-width: 18ch;
        margin-bottom: var(--ds-space-3);
        font-size: var(--home-profile-card-title-size);
        line-height: var(--home-profile-card-title-line);
        letter-spacing: -0.01em;
    }

    body.home .home-mobile-hero__search {
        padding: 0;
    }

    body.home .home-mobile-hero__input .ds-c-input {
        min-height: var(--home-btn-min-height);
    }

    body.home .home-mobile-hero__input span {
        position: absolute;
        left: var(--ds-space-4);
        top: 50%;
        z-index: 1;
        pointer-events: none;
        transform: translateY(-50%);
    }

    body.home .home-mobile-hero__action {
        min-height: var(--ds-pill-height-lg);
        padding: var(--ds-space-3) var(--ds-space-4);
        font-size: var(--ds-font-size-body-sm);
        line-height: var(--ds-type-body-sm-line-height);
        font-weight: var(--ds-font-weight-semibold);
    }

    body.home .home-mobile-hero__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    body.home .home-mobile-hero__action {
        justify-content: center;
        width: 100%;
    }

    body.home .home-section-header__action {
        display: none;
    }

    body.home .section-title {
        letter-spacing: -0.015em;
    }

    body.home .featured-articles .article-card__body,
    body.home .featured-qa .qa-card__body,
    body.home .featured-books .book-card__body {
        padding: var(--home-card-content-padding-mobile);
    }

    body.home .featured-books-slider .slick-slide {
        padding: 0 calc(var(--ds-space-1) * 0.5);
    }

    body.home .featured-books .book-image {
        object-fit: cover;
        object-position: center top;
        background: transparent;
    }

    body.home .featured-qa .qa-card__title,
    body.home .featured-qa .qa-card__title a,
    body.home .featured-qa .qa-card h3,
    body.home .featured-qa .qa-card h3 a {
        line-height: var(--home-card-title-line);
    }

    body.home .featured-articles .article-card__excerpt,
    body.home .featured-articles .article-card p {
        min-height: auto;
    }

    body.home #profile_container .home-profile-panel__title,
    body.home #profile_container .home-profile-panel__title a {
        font-size: var(--ds-heading-h2-size);
        line-height: var(--ds-heading-h2-line-height);
        margin-bottom: var(--ds-space-4);
    }

    body.home #profile_container {
        padding-top: var(--ds-space-section-md);
        padding-bottom: var(--ds-space-section-md);
    }

    body.home #profile_container .home-profile-panel__info .description p {
        font-size: var(--ds-font-size-body-md);
        line-height: var(--ds-type-body-md-line-height);
        margin-bottom: var(--ds-space-4);
    }

    body.home #profile_container .home-profile-panel__footer {
        margin-top: var(--ds-space-10);
        margin-bottom: var(--ds-space-5);
    }

    body.home #profile_container .home-profile-panel__stats {
        grid-template-columns: 1fr;
        padding: 0;
        gap: var(--ds-space-gap-sm);
        margin-top: var(--ds-space-3);
    }

    body.home #profile_container .home-profile-panel__card,
    body.home #profile_container .home-profile-panel__stats .stat-card {
        padding: var(--ds-space-5) var(--ds-space-4);
    }

    body.home #profile_container .home-profile-panel__stats .stat-number h4 {
        font-size: var(--ds-heading-h2-size);
        margin-bottom: var(--ds-space-2);
    }

    body.home .home-section-header {
        margin-bottom: var(--home-section-header-gap);
    }

    body.home .featured-articles .article-card img {
        height: var(--home-featured-article-image-height-mobile);
    }

    body.home .featured-books {
        padding-top: var(--ds-space-6);
    }

    body.home .educational-partner-section {
        padding-top: var(--ds-space-6);
    }

    body.home .home-partner {
        padding: var(--home-partner-space);
    }

    body.home .home-partner__row {
        row-gap: var(--ds-space-gap-md);
    }

    body.home .home-partner__cta {
        justify-content: center;
    }

    body.home .home-partner,
    body.home .home-partner__content,
    body.home .home-partner__cta,
    body.home .home-profile-panel__stats-col {
        text-align: center;
        align-items: center;
    }

    body.home .home-partner__header {
        justify-content: center;
        text-align: center;
        width: 100%;
    }

    body.home .home-partner__description {
        margin-left: auto;
        margin-right: auto;
    }

    body.home .home-partner__action-link {
        margin-left: auto;
        margin-right: auto;
    }

    body.home .featured-qa .qa-card__excerpt,
    body.home .featured-qa .qa-card__content p {
        -webkit-line-clamp: 4;
    }

    body.home .home-footer__bottom {
        flex-direction: column;
        gap: var(--ds-space-gap-md);
    }
}

@media (max-width: 419.98px) {
    body.home {
        --home-hero-space: var(--ds-space-10);
        --home-section-space: var(--ds-space-10);
        --home-section-space-tight: var(--ds-space-8);
        --home-footer-bottom-space: var(--ds-space-6);
        --home-section-header-gap: var(--ds-space-gap-md);
        --home-section-content-gap: var(--ds-space-gap-md);
        --home-title-size: var(--ds-heading-h2-size);
        --home-title-line: var(--ds-heading-h2-line-height);
        --home-card-title-size: var(--ds-heading-h3-size);
        --home-card-title-line: var(--ds-heading-h3-line-height);
        --home-body-size: var(--ds-font-size-body-md);
        --home-profile-panel-space-top: var(--home-section-space-tight);
        --home-profile-panel-space-bottom: var(--home-section-space);
        --home-profile-card-title-size: var(--ds-heading-h1-size);
        --home-profile-card-title-line: var(--ds-heading-h1-line-height);
        --home-article-card-title-size: var(--ds-heading-h3-size);
        --home-article-card-title-line: var(--ds-heading-h3-line-height);
        --home-book-cover-height: calc(var(--ds-space-1) * 75);
    }

    body.home .container {
        padding-left: var(--ds-container-padding-x);
        padding-right: var(--ds-container-padding-x);
    }

    body.home .homepage-profile-card .profile-name {
        font-size: var(--home-profile-card-title-size);
        line-height: var(--home-profile-card-title-line);
        margin-bottom: var(--home-card-title-gap);
    }

    body.home .home-mobile-hero__action {
        min-height: var(--home-btn-min-height);
    }

    body.home .section-title {
        line-height: var(--home-title-line);
    }

    body.home .featured-books {
        padding-top: var(--ds-space-5);
    }

    body.home .educational-partner-section {
        padding-top: var(--ds-space-6);
    }

    body.home .featured-articles .article-card__excerpt,
    body.home .featured-articles .article-card p {
        min-height: auto;
        -webkit-line-clamp: 4;
    }

    body.home #profile_container {
        padding-top: var(--ds-space-section-sm);
        padding-bottom: var(--ds-space-section-sm);
    }

    body.home #profile_container .home-profile-panel__info .description p {
        margin-bottom: var(--ds-space-3);
    }
}
