:root {
    --color-primary: #2196F3;
    --color-primary-dark: #1e3a8a;
    --color-success: #10b981;
    --color-text: #111827;
    --color-text-muted: #4b5563;
    --color-border: #e5e7eb;
    --color-surface: #ffffff;
    --color-surface-muted: #f9fafb;
    --color-footer-text: #374151;
    --color-footer-bg: #f8fafc;
    --color-footer-border-full: rgba(37, 99, 235, 0.09);
    --color-footer-border-inner: rgba(15, 23, 42, 0.055);
    --shadow-header: 0 1px 3px rgba(0, 0, 0, 0.05);
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
    /* Home + general inner-page hero (brighter sky → brand blue) */
    --iaoa-page-hero-gradient:
            linear-gradient(145deg, #1565c0 0%, #2196F3 38%, #2563eb 72%, #1d4ed8 100%);
    /* Magazine detail / issue hero only */
    --iaoa-magazine-hero-gradient: linear-gradient(201deg, #0b3f6d 0%, #155fb8 35%, #2563eb 65%, #1e40af 100%);
}

/* Magazine-only hero background (magazine templates) */
.iaoa-bg-magazine-hero-gradient {
    background: var(--iaoa-magazine-hero-gradient);
}

/* List index pages (books / news / conferences / journals): shared muted gradient shell */
.iaoa-list-section {
    padding: 2rem 0 3.25rem;
    background:
        radial-gradient(ellipse 92% 78% at 0% 0%, rgba(147, 197, 253, 0.34) 0%, rgba(147, 197, 253, 0) 58%),
        radial-gradient(ellipse 88% 76% at 100% 100%, rgba(37, 99, 235, 0.11) 0%, rgba(37, 99, 235, 0) 58%),
        linear-gradient(180deg, #ffffff 0%, #fbfcfe 52%, #fafbfc 100%);
}

@media (min-width: 992px) {
    .iaoa-list-section {
        padding: 2.5rem 0 3.75rem;
    }
}

/* Shared top hero band (home + inner pages: .iaoa-page-hero + page-specific modifiers) */
.iaoa-page-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(22rem, 58vh, 38rem);
    padding: 5rem 0 5.75rem;
    background: var(--iaoa-page-hero-gradient);
    color: #fff;
}

.iaoa-page-hero__inner {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.iaoa-page-hero__title {
    margin: 0 auto 1rem;
    font-size: clamp(1.9rem, 4.8vw + 0.65rem, 3.15rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #fff;
}

.iaoa-page-hero__lead {
    margin: 0 auto 2rem;
    max-width: 42rem;
    font-size: clamp(1.1rem, 1.35vw + 0.9rem, 1.4rem);
    font-weight: 400;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
}

.iaoa-page-hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 10.5rem;
    padding: 0.65rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease,
        transform 0.15s ease;
}

.iaoa-page-hero__btn--primary {
    color: #082f49;
    background-color: #f2f6f7;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 18px rgba(2, 132, 199, 0.35);
}

.iaoa-page-hero__btn--primary:hover {
    color: #06131d;
    background-color: #f2f6f7;
    border-color: #ffffff;
    filter: brightness(1.08);
    box-shadow: 0 6px 24px rgba(14, 165, 233, 0.45);
}

.iaoa-page-hero__btn--primary:active {
    transform: scale(0.98);
    filter: brightness(1.02);
}

.iaoa-page-hero__btn--outline {
    color: #bae6fd;
    background-color: rgba(8, 47, 73, 0.42);
    border: 2px solid rgba(125, 211, 252, 0.75);
    box-shadow: inset 0 1px 0 rgba(125, 211, 252, 0.15);
}

.iaoa-page-hero__btn--outline:hover {
    color: #e0f2fe;
    background-color: rgba(125, 211, 252, 0.16);
    border-color: rgba(186, 230, 253, 0.95);
    filter: brightness(1.06);
    box-shadow:
        inset 0 1px 0 rgba(186, 230, 253, 0.25),
        0 4px 16px rgba(2, 132, 199, 0.2);
}

.iaoa-page-hero__btn--outline:active {
    transform: scale(0.98);
    filter: brightness(1.02);
}

/* -------------------------------------------------------------------------- */
/* Bootstrap placeholder sizing — use with .placeholder (+ wave/glow, etc.)   */
/* -------------------------------------------------------------------------- */

.iaoa-placeholder-input {
    height: 2.75rem;
}

.iaoa-placeholder-textarea {
    height: 9rem;
}

.iaoa-placeholder-btn {
    width: 10rem;
    height: 2.65rem;
}

/* Softer Bootstrap placeholders (.placeholder uses currentColor) */
.iaoa-placeholder-soft {
    color: #e1e5ea;
}

.iaoa-placeholder-soft .placeholder {
    opacity: 0.85;
}

/* Vue: hide nodes until mounted (v-cloak removed) — avoids raw template flash */
[v-cloak] {
    display: none !important;
}

/* -------------------------------------------------------------------------- */
/* Form layout grid — use on wrappers / el-form-item (e.g. with iaoa-el-form) */
/* -------------------------------------------------------------------------- */

.iaoa-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.45rem;
}

@media (min-width: 576px) {
    .iaoa-form-grid--split {
        grid-template-columns: repeat(2, 1fr);
    }
}

.iaoa-form-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.iaoa-form-field--full {
    grid-column: 1 / -1;
}

.iaoa-form-actions {
    margin-top: 1.25rem;
}

/* -------------------------------------------------------------------------- */
/* Element Plus form skin — add "iaoa-el-form" on <el-form>, layout classes     */
/* "iaoa-form-grid" / "iaoa-form-field" / "iaoa-form-actions" on wrappers, and  */
/* "iaoa-el-form__submit" on primary submit buttons.                            */
/* -------------------------------------------------------------------------- */

.iaoa-el-form .el-form-item {
    margin-bottom: 0;
}

.iaoa-el-form .el-form-item__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.35rem !important;
    line-height: 1.25;
    padding: 0 !important;
}

.iaoa-el-form .el-form-item__error {
    padding-top: 0.25rem;
}

.iaoa-el-form .el-textarea {
    --el-input-border-color: rgba(15, 23, 42, 0.14);
    --el-input-hover-border-color: rgba(15, 23, 42, 0.22);
    --el-input-focus-border-color: rgba(37, 99, 235, 0.55);
    box-shadow: none !important;
}

.iaoa-el-form .el-input--textarea {
    box-shadow: none !important;
}

.iaoa-el-form .el-input--textarea:hover:not(:focus-within) .el-textarea__inner,
.iaoa-el-form .el-input--textarea.is-hover:not(:focus-within) .el-textarea__inner {
    border-color: rgba(15, 23, 42, 0.22);
    box-shadow: none !important;
}

.iaoa-el-form .el-input__wrapper {
    border-radius: 10px;
    box-shadow: none !important;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background-color: #fff;
    min-height: 2.75rem;
    padding: 0.1rem 0.85rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.iaoa-el-form .el-input__wrapper:hover {
    border-color: rgba(15, 23, 42, 0.22);
}

.iaoa-el-form .el-input__wrapper.is-focus {
    border-color: rgba(37, 99, 235, 0.55);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

.iaoa-el-form .el-input__inner {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--color-text);
}

.iaoa-el-form .el-input__inner::placeholder {
    color: #94a3b8;
}

.iaoa-el-form .el-textarea__inner {
    border-radius: 10px;
    box-shadow: none !important;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background-color: #fff;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--color-text);
    padding: 0.65rem 0.85rem;
    min-height: 9rem;
    resize: vertical;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.iaoa-el-form .el-textarea:hover:not(:focus-within) .el-textarea__inner,
.iaoa-el-form .el-textarea.is-hover:not(:focus-within) .el-textarea__inner,
.iaoa-el-form .el-textarea__inner:hover:not(:focus) {
    border-color: rgba(15, 23, 42, 0.22);
    box-shadow: none !important;
}

.iaoa-el-form .el-textarea__inner:focus,
.iaoa-el-form .el-textarea__inner.is-focus {
    outline: none;
    border-color: rgba(37, 99, 235, 0.55);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

.iaoa-el-form .el-input--textarea:hover .el-textarea__inner:focus,
.iaoa-el-form .el-input--textarea:hover .el-textarea__inner.is-focus,
.iaoa-el-form .el-input--textarea.is-hover .el-textarea__inner:focus,
.iaoa-el-form .el-input--textarea.is-hover .el-textarea__inner.is-focus {
    border-color: rgba(37, 99, 235, 0.55);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

.iaoa-el-form .el-textarea__inner::placeholder {
    color: #94a3b8;
}

.iaoa-el-form .iaoa-el-form__submit.el-button--primary {
    --el-border-radius-base: 9px;
    --el-border-radius-small: 9px;
    --el-border-radius-round: 9px;
    --el-button-bg-color: transparent;
    --el-button-border-color: rgba(37, 99, 235, 0.45);
    --el-button-hover-bg-color: transparent;
    --el-button-hover-border-color: rgba(37, 99, 235, 0.55);
    --el-button-active-bg-color: transparent;
    --el-button-active-border-color: rgba(37, 99, 235, 0.45);
    height: auto !important;
    min-height: 2.85rem;
    min-width: 12.5rem;
    padding: 0.75rem 2.25rem !important;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.35;
    color: #f8fafc !important;
    border-radius: 9px !important;
    border-width: 1px;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.12) 0%, transparent 38%),
        linear-gradient(165deg, #3b82f6 0%, #2563eb 38%, #1d4ed8 72%, #1e3a8a 100%) !important;
    box-shadow: none !important;
    transition: filter 0.2s ease, transform 0.15s ease;
}

.iaoa-el-form .iaoa-el-form__submit.el-button--primary > span {
    border-radius: inherit;
}

.iaoa-el-form .iaoa-el-form__submit.el-button--primary:hover {
    filter: brightness(1.06);
    box-shadow: none !important;
}

.iaoa-el-form .iaoa-el-form__submit.el-button--primary:focus,
.iaoa-el-form .iaoa-el-form__submit.el-button--primary:focus-visible {
    box-shadow: none !important;
}

.iaoa-el-form .iaoa-el-form__submit.el-button--primary:active {
    transform: scale(0.98);
}

.iaoa-el-form .iaoa-el-form__submit.el-button--primary.is-loading {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.12) 0%, transparent 38%),
        linear-gradient(165deg, #3b82f6 0%, #2563eb 38%, #1d4ed8 72%, #1e3a8a 100%) !important;
    box-shadow: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .iaoa-el-form .el-input__wrapper,
    .iaoa-el-form .el-textarea__inner,
    .iaoa-el-form .iaoa-el-form__submit.el-button--primary {
        transition: none;
    }

    .iaoa-el-form .iaoa-el-form__submit.el-button--primary:active {
        transform: none;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-surface);
    line-height: 1.5;
}

.container-fluid {
    max-width: 1440px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.iaoa-breadcrumb {
    margin-bottom: 1.25rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: #888888;
    background-color: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.iaoa-breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.iaoa-breadcrumb__item {
    display: flex;
    align-items: center;
    min-width: 0;
}

.iaoa-breadcrumb__sep {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding: 0 0.45rem;
    font-size: 0.75rem;
    color: #999999;
    user-select: none;
}

.iaoa-breadcrumb__link {
    color: #888888;
    text-decoration: none;
    transition: color 0.15s ease;
}

.iaoa-breadcrumb__link:hover {
    color: #555555;
}

.iaoa-breadcrumb__item:last-child {
    flex: 1;
    min-width: 0;
}

.iaoa-breadcrumb__current {
    display: block;
    font-weight: 500;
    color: #2c3e50;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--color-surface);
    box-shadow: var(--shadow-header);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 3.25rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    transition:
        min-height 0.38s ease,
        gap 0.38s ease,
        padding 0.38s ease;
}

.header__brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.header__logo {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: contain;
    transition:
        width 0.38s ease,
        height 0.38s ease;
}

.header__nav {
    flex: 1;
    display: flex;
    min-width: 0;
}

.header__nav--desktop {
    display: none;
}

.header__actions--desktop {
    display: none;
}

.header__nav-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.25rem 2.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header__link {
    display: inline-block;
    position: relative;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    white-space: nowrap;
    padding-bottom: 2px;
}

.header__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.header__link:hover {
    color: var(--color-primary);
}

.header__link:hover::after {
    transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
    .header__link::after {
        transition: none;
    }

    .header__link:hover::after {
        transform: scaleX(1);
    }

    .header__drawer,
    .header__drawer-backdrop {
        transition: none;
    }

    .header__inner,
    .header__logo {
        transition: none;
    }

    .header__menu-btn,
    .header__menu-bars,
    .header__menu-bars::before,
    .header__menu-bars::after {
        transition: none;
    }
}

.header__actions {
    flex-shrink: 0;
}

.header__menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    margin-left: auto;
    padding: 0;
    border: none;
    border-radius: 12px;
    background-color: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    transition:
        background-color 0.22s ease,
        color 0.22s ease,
        transform 0.18s ease,
        box-shadow 0.22s ease;
}

.header__menu-btn:hover {
    background-color: rgba(33, 150, 243, 0.1);
    color: var(--color-primary);
    box-shadow: 0 2px 12px rgba(33, 150, 243, 0.12);
}

.header__menu-btn:active {
    transform: scale(0.94);
}

.header__menu-btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.header__menu-bars,
.header__menu-bars::before,
.header__menu-bars::after {
    display: block;
    width: 1.35rem;
    height: 2px;
    border-radius: 1px;
    background-color: #000;
    transition:
        transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
        top 0.32s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.22s ease,
        background-color 0.22s ease;
}

.header__menu-bars {
    position: relative;
}

.header__menu-bars::before,
.header__menu-bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.header__menu-bars::before {
    top: -7px;
}

.header__menu-bars::after {
    top: 7px;
}

.header__menu-btn:hover .header__menu-bars {
    transform: scaleX(1.06);
}

.header__menu-btn:hover .header__menu-bars::before {
    transform: translateY(2px);
}

.header__menu-btn:hover .header__menu-bars::after {
    transform: translateY(-2px);
}

.header--drawer-open .header__menu-bars {
    background-color: transparent;
}

.header--drawer-open .header__menu-bars::before {
    top: 0;
    transform: rotate(45deg);
}

.header--drawer-open .header__menu-bars::after {
    top: 0;
    transform: rotate(-45deg);
}

.header--drawer-open .header__menu-btn {
    color: var(--color-primary);
    background-color: rgba(33, 150, 243, 0.08);
}

.header--drawer-open .header__menu-btn:hover .header__menu-bars {
    transform: none;
}

.header--drawer-open .header__menu-btn:hover .header__menu-bars::before {
    top: 0;
    transform: rotate(45deg);
}

.header--drawer-open .header__menu-btn:hover .header__menu-bars::after {
    top: 0;
    transform: rotate(-45deg);
}

.header__drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1001;
    background-color: rgba(15, 23, 42, 0.38);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.22s ease,
        visibility 0.22s ease;
}

.header--drawer-open .header__drawer-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.header__drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1002;
    display: flex;
    flex-direction: column;
    width: min(20.5rem, 88vw);
    max-width: 100%;
    padding: 1rem 1.15rem 1.25rem;
    background-color: var(--color-surface);
    box-shadow: -8px 0 32px rgba(15, 23, 42, 0.12);
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition:
        transform 0.28s ease,
        visibility 0.28s ease;
}

.header--drawer-open .header__drawer {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

.header__drawer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.header__drawer-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
}

.header__drawer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}

.header__drawer-close:hover {
    background-color: var(--color-surface-muted);
    color: var(--color-text);
}

.header__drawer-close:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.header__drawer-nav {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.header__drawer-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.header__drawer-list li {
    border-bottom: 1px solid rgba(229, 231, 235, 0.95);
}

.header__drawer-list li:last-child {
    border-bottom: none;
}

.header__link--drawer {
    display: block;
    padding: 0.85rem 0;
    white-space: normal;
    font-size: 0.9375rem;
}

.header__link--drawer::after {
    display: none;
}

.header__drawer-actions {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.btn-login--drawer {
    width: 100%;
    justify-content: center;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    border: none;
    border-radius: 9px;
    text-decoration: none;
    background-color: #1e40af;
    background-image: linear-gradient(135deg, #60a5fa 0%, #3b82f6 28%, #2563eb 55%, #1e40af 82%, #1e3a8a 100%);
    background-size: 200% 200%;
    background-position: 0% 40%;
    transition:
        background-position 0.45s ease,
        filter 0.22s ease;
}

.btn-login:hover {
    color: #fff;
    background-position: 100% 60%;
    filter: brightness(1.05);
}

.btn-login:active {
    filter: brightness(0.98);
}

@media (prefers-reduced-motion: reduce) {
    .btn-login {
        background-size: 100% 100%;
        background-position: 0 0;
        transition: filter 0.2s ease;
    }

    .btn-login:hover {
        filter: brightness(1.08);
    }

    .btn-login:active {
        filter: brightness(0.96);
    }
}

@media (min-width: 1200px) {
    .header__inner {
        min-height: 4.5rem;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        gap: 1.5rem;
    }

    .header__logo {
        width: 120px;
        height: 120px;
    }

    .header__nav--desktop {
        display: flex;
        flex: 1;
        justify-content: start;
    }

    .header__actions--desktop {
        display: block;
    }

    .header__menu-btn {
        display: none;
    }

    .header__nav-list {
        justify-content: center;
    }
}

.footer {
    background-color: var(--color-footer-bg);
    border-top: 1px solid var(--color-footer-border-full);
}

/* Vertical spacing when footer columns wrap (no row g-* utilities) */
.footer > .container-fluid > .row {
    row-gap: 1.75rem;
}

@media (min-width: 992px) {
    .footer > .container-fluid > .row {
        row-gap: 0;
    }
}

.footer .footer-bar {
    border-top: 1px solid var(--color-footer-border-inner);
}

.footer .contact-icon {
    color: var(--color-primary);
}

.footer .img-brand {
    max-width: 4.5rem;
    height: auto;
}

.footer .link-secondary:hover {
    color: var(--color-primary) !important;
}

/* -------------------------------------------------------------------------- */
/* Shared section + card patterns (home + publications + about headings)    */
/* -------------------------------------------------------------------------- */

.home-section-head {
    text-align: center;
    margin-bottom: 2.75rem;
}

.home-section-head__title {
    margin: 0 0 1rem;
    font-size: clamp(1.5rem, 2vw + 1rem, 2rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.home-section-head__rule {
    display: block;
    width: 3rem;
    height: 3px;
    margin: 0 auto;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--color-primary), #2563eb);
}

.home-section {
    padding: 4rem 0 5.25rem;
    color: var(--color-text);
}

.home-section--surface {
    background: var(--color-surface);
}

.home-section--muted {
    background:
        radial-gradient(ellipse 92% 78% at 0% 0%, rgba(147, 197, 253, 0.34) 0%, rgba(147, 197, 253, 0) 58%),
        radial-gradient(ellipse 88% 76% at 100% 100%, rgba(37, 99, 235, 0.11) 0%, rgba(37, 99, 235, 0) 58%),
        linear-gradient(180deg, #ffffff 0%, #fbfcfe 52%, #fafbfc 100%);
}

.home-section--tone-conf {
    background: #ffffff;
}

.home-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.home-card-link:hover :is(.home-journals-card__title, .home-books-card__title, .home-news-card__title) {
    color: #1d4ed8;
}

.home-conf-item__link:hover .home-conf-item__title {
    color: #1d4ed8;
}

.home-journals-card__title,
.home-books-card__title,
.home-news-card__title,
.home-conf-item__title {
    font-size: clamp(1.2rem, 1.1vw + 1rem, 1.35rem);
    line-height: 1.3;
    letter-spacing: -0.02em;
    transition: color 0.18s ease;
}

.home-journals-card {
    height: 100%;
    padding: 0;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 16px;
    box-shadow: none;
    transition:
        transform 0.22s ease,
        border-color 0.22s ease;
}

.home-journals-card__link {
    padding: 1.25rem;
}

.home-journals-card__cover {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 100%;
    padding: 0.5rem 0 1rem;
    background: transparent;
}

.home-journals-card__cover .home-journals-card__cover-img {
    width: min(100%, 12rem);
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

@media (min-width: 576px) {
    .home-journals-card__link {
        flex-direction: row;
        align-items: stretch;
        gap: 1.25rem;
    }

    .home-journals-card__cover {
        width: 11.5rem;
        padding: 0.5rem;
        align-self: center;
    }

    .home-journals-card__cover .home-journals-card__cover-img {
        width: 100%;
        max-width: 10.5rem;
    }
}

@media (min-width: 992px) {
    .home-journals-card__cover {
        width: 12.5rem;
    }

    .home-journals-card__cover .home-journals-card__cover-img {
        max-width: 11.25rem;
    }
}

.home-journals-card:has(.home-journals-card__link:hover) {
    border-color: rgba(37, 99, 235, 0.28);
    transform: translateY(-2px);
}

.home-journals-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.home-journals-card__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.65rem;
}

.home-journals-card__title {
    margin: 0;
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    color: var(--color-text);
    word-break: break-word;
}

.home-journals-card__badge {
    grid-column: 2;
    grid-row: 1;
    padding: 0.2rem 0.55rem;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background-color: var(--color-success);
    border-radius: 999px;
    white-space: nowrap;
}

.home-journals-card__badge--submission {
    background-color: #0d9488;
}

.home-journals-card__cover-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

.home-journals-card__desc {
    margin: 0 0 1rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

.home-journals-card__meta {
    margin: auto 0 0;
    padding: 0;
}

.home-journals-card__meta > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.3rem 0;
    font-size: 0.8125rem;
    line-height: 1.4;
}

.home-journals-card__meta dt {
    margin: 0;
    font-weight: 500;
    color: var(--color-text-muted);
}

.home-journals-card__meta dd {
    margin: 0;
    text-align: right;
    font-weight: 600;
    color: var(--color-text);
}

/* Section CTAs (Bootstrap row utilities in templates) */
.home-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    min-width: 11rem;
    padding: 0.65rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease;
}

.home-cta .bi {
    font-size: 1.25rem;
    line-height: 1;
}

.home-cta--primary {
    color: #f8fafc;
    border: 1px solid rgba(37, 99, 235, 0.45);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        linear-gradient(135deg, #1e40af 0%, #2563eb 45%, #1d4ed8 100%);
    box-shadow:
        0 2px 4px rgba(15, 23, 42, 0.06),
        0 10px 24px rgba(37, 99, 235, 0.2);
}

.home-cta--primary:hover {
    color: #fff;
    filter: brightness(1.06);
    border-color: rgba(125, 211, 252, 0.5);
    box-shadow:
        0 4px 8px rgba(15, 23, 42, 0.08),
        0 14px 32px rgba(37, 99, 235, 0.26);
    transform: translateY(-2px);
}

.home-cta--outline {
    color: #1d4ed8;
    background-color: rgba(255, 255, 255, 0.65);
    border: 2px solid rgba(37, 99, 235, 0.55);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.home-cta--outline:hover {
    color: #1e3a8a;
    background-color: #fff;
    border-color: #2563eb;
    filter: brightness(1.03);
    transform: translateY(-2px);
}

.home-cta:active {
    transform: translateY(0);
    filter: brightness(0.98);
}

/* Books featured card */
.home-books-card {
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 14px;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 12px 32px rgba(15, 23, 42, 0.06);
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.home-books-card__link {
    gap: 1.25rem;
    padding: 1.35rem 1.25rem;
}

.home-books-card:has(.home-books-card__link:hover) {
    border-color: rgba(37, 99, 235, 0.22);
    box-shadow:
        0 2px 6px rgba(15, 23, 42, 0.05),
        0 18px 40px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.home-books-card__media {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}

.home-books-card__cover-img {
    width: min(100%, 11.25rem);
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

.home-books-card__body {
    flex: 1;
    min-width: 0;
}

.home-books-card__title {
    margin: 0 0 0.35rem;
    color: var(--color-text);
    word-break: break-word;
}

.home-books-card__author {
    margin: 0 0 0.85rem;
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}

.home-books-card__desc {
    margin: 0 0 1.1rem;
    line-height: 1.65;
    color: var(--color-text-muted);
    word-break: break-word;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

.home-books-card__meta {
    margin: 0;
    padding-top: 0.35rem;
}

.home-books-card__meta-line {
    margin: 0 0 0.35rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: rgba(100, 116, 139, 0.95);
}

.home-books-card__meta-line:last-child {
    margin-bottom: 0;
}

.home-books-card__meta-sep {
    margin: 0 0.35rem;
    color: rgba(148, 163, 184, 0.95);
    font-weight: 400;
}

@media (min-width: 768px) {
    .home-books-card__link {
        flex-direction: row;
        align-items: stretch;
        gap: 1.75rem;
        padding: 1.5rem 1.75rem;
    }

    .home-books-card__media {
        align-items: center;
        width: 12rem;
    }

    .home-books-card__cover-img {
        width: 100%;
        max-width: 11.5rem;
    }
}

/* CMS / editor rich text (use on wrappers with th:utext) */
.content-text {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.75;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.content-text > :first-child {
    margin-top: 0;
}

.content-text > :last-child {
    margin-bottom: 0;
}

.content-text h1,
.content-text h2,
.content-text h3,
.content-text h4,
.content-text h5,
.content-text h6 {
    margin: 1.5rem 0 0.75rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.content-text h1 {
    font-size: clamp(1.75rem, 2vw + 1rem, 2.25rem);
}

.content-text h2 {
    font-size: clamp(1.5rem, 1.5vw + 0.85rem, 1.875rem);
}

.content-text h3 {
    font-size: clamp(1.25rem, 1vw + 0.75rem, 1.5rem);
}

.content-text h4 {
    font-size: 1.125rem;
}

.content-text h5 {
    font-size: 1.0625rem;
}

.content-text h6 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.content-text p {
    margin: 0 0 1.25rem;
}

.content-text p:last-child {
    margin-bottom: 0;
}

.content-text a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 0.15em;
    word-break: break-word;
}

.content-text a:hover,
.content-text a:focus-visible {
    color: var(--color-primary-dark);
}

.content-text strong,
.content-text b {
    font-weight: 700;
    color: var(--color-text);
}

.content-text em,
.content-text i {
    font-style: italic;
}

.content-text ul,
.content-text ol {
    margin: 0 0 1.25rem;
    padding-left: 1.5rem;
}

.content-text ul {
    list-style-type: disc;
}

.content-text ol {
    list-style-type: decimal;
}

.content-text li {
    margin-bottom: 0.35rem;
}

.content-text li > ul,
.content-text li > ol {
    margin-top: 0.35rem;
    margin-bottom: 0;
}

.content-text blockquote {
    margin: 0 0 1.25rem;
    padding: 0.75rem 1rem;
    border-left: 4px solid rgba(37, 99, 235, 0.35);
    background: var(--color-surface-muted);
    color: var(--color-text-muted);
}

.content-text blockquote p:last-child {
    margin-bottom: 0;
}

.content-text hr {
    margin: 1.5rem 0;
    border: 0;
    border-top: 1px solid var(--color-border);
}

.content-text img,
.content-text video,
.content-text iframe {
    max-width: 100%;
    height: auto;
}

.content-text img {
    display: block;
    margin: 1rem 0;
    border-radius: 6px;
}

.content-text figure {
    margin: 0 0 1.25rem;
    max-width: 100%;
}

.content-text figcaption {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--color-text-muted);
}

.content-text table {
    width: 100%;
    max-width: 100%;
    margin: 0 0 1.25rem;
    border-collapse: collapse;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.content-text th,
.content-text td {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border);
    text-align: left;
    vertical-align: top;
    word-break: break-word;
}

.content-text th {
    font-weight: 600;
    color: var(--color-text);
    background: var(--color-surface-muted);
}

.content-text pre,
.content-text code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    font-size: 0.875em;
}

.content-text pre {
    margin: 0 0 1.25rem;
    padding: 1rem;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
    background: var(--color-surface-muted);
    border: 1px solid var(--color-border);
    border-radius: 6px;
}

.content-text code {
    padding: 0.125em 0.35em;
    background: var(--color-surface-muted);
    border-radius: 4px;
}

.content-text pre code {
    padding: 0;
    background: transparent;
    border-radius: 0;
}

@media (max-width: 575.98px) {
    .content-text table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (prefers-reduced-motion: reduce) {
    .iaoa-page-hero__btn {
        transition: none;
    }

    .iaoa-page-hero__btn--primary:active,
    .iaoa-page-hero__btn--outline:active {
        transform: none;
    }

    .home-journals-card:has(.home-journals-card__link:hover),
    .home-cta:hover,
    .home-books-card:has(.home-books-card__link:hover) {
        transform: none;
    }

    .home-journals-card,
    .home-books-card,
    .home-cta,
    .home-card-link {
        transition: none;
    }
}
