:root {
    --primary-color: #102a43;
    --secondary-color: #1f5aa6;
    --accent-color: #f2d680;
    --accent-strong: #f6e8b1;
    --text-color: #243b53;
    --muted-text: #5d6d7e;
    --light-bg: #f5f7fb;
    --sand-bg: #fbf7ef;
    --white: #ffffff;
    --border-color: rgba(16, 42, 67, 0.12);
    --shadow-lg: 0 24px 60px rgba(16, 42, 67, 0.18);
    --shadow-md: 0 12px 34px rgba(16, 42, 67, 0.12);
    --shadow-sm: 0 8px 20px rgba(16, 42, 67, 0.08);
    --header-height: 82px;
    --transition-speed: 0.28s;
    --content-width: 1200px;
}

.has-primary-color { color: var(--primary-color); }
.has-primary-background-color { background-color: var(--primary-color); }
.has-secondary-color { color: var(--secondary-color); }
.has-secondary-background-color { background-color: var(--secondary-color); }
.has-accent-color { color: var(--accent-color); }
.has-accent-background-color { background-color: var(--accent-color); }
.has-dark-text-color { color: var(--text-color); }
.has-dark-text-background-color { background-color: var(--text-color); }
.has-white-color { color: var(--white); }
.has-white-background-color { background-color: var(--white); }
.is-style-justified { text-align: justify; }

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background:
        radial-gradient(circle at top left, rgba(242, 214, 128, 0.12), transparent 22%),
        linear-gradient(180deg, #f7f9fc 0%, #ffffff 26%, #f8fafc 100%);
    padding-top: var(--header-height);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color var(--transition-speed), opacity var(--transition-speed), transform var(--transition-speed);
}

a:hover {
    color: var(--primary-color);
}

p,
li {
    line-height: 1.75;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 1rem;
    color: var(--primary-color);
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.25;
}

.container {
    width: min(var(--content-width), calc(100% - 40px));
    margin: 0 auto;
}

.section-padding {
    padding-top: 72px;
    padding-bottom: 72px;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed), background-color var(--transition-speed), color var(--transition-speed), border-color var(--transition-speed);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, #f5df97 0%, #f2d680 45%, #e5bc53 100%);
    color: #493100;
    box-shadow: 0 18px 30px rgba(229, 188, 83, 0.28);
}

.btn-primary:hover {
    color: #2f2200;
    box-shadow: 0 20px 38px rgba(229, 188, 83, 0.34);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.48);
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.btn-outline:hover {
    color: var(--primary-color);
    background: var(--white);
    border-color: var(--white);
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: var(--header-height);
    z-index: 1000;
    background: rgba(8, 28, 48, 0.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 24px rgba(9, 20, 36, 0.22);
}

.header-flex {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    min-height: var(--header-height);
    padding: 10px 0;
}

.site-kicker,
.footer-kicker,
.section-kicker {
    margin: 0 0 10px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.site-title-link {
    display: inline-block;
}

.site-title-text {
    display: inline-block;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: clamp(1.45rem, 2.2vw, 1.95rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #fffaf0 0%, #fdf2c4 16%, #f5df97 36%, #f6e7af 54%, #fff7db 72%, #d5ac3d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 20px rgba(242, 214, 128, 0.16);
}

.main-navigation {
    position: relative;
}

.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-navigation ul li {
    position: relative;
}

.main-navigation li.menu-item-has-children::after,
.main-navigation li.page_item_has_children::after {
    content: '';
    position: absolute;
    top: 100%;
    left: -18px;
    width: max(100%, 240px);
    height: 14px;
}

.main-navigation ul li a {
    display: block;
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.93rem;
    font-weight: 600;
}

.main-navigation ul li:hover > a,
.main-navigation ul li:focus-within > a,
.main-navigation ul li.current-menu-item > a,
.main-navigation ul li.current-menu-ancestor > a {
    color: var(--accent-strong);
}

.main-navigation ul ul {
    position: absolute;
    top: calc(100% + 6px);
    left: -18px;
    display: none;
    flex-direction: column;
    gap: 0;
    min-width: 240px;
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(16, 42, 67, 0.08);
}

.main-navigation ul ul::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    width: 100%;
    height: 8px;
}

.main-navigation ul ul li {
    width: 100%;
}

.main-navigation ul ul li a {
    padding: 12px 20px;
    color: var(--primary-color);
    font-size: 0.92rem;
}

.main-navigation ul ul li a:hover {
    background: rgba(31, 90, 166, 0.06);
    color: var(--secondary-color);
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.toggled-on > ul,
.main-navigation ul li:focus-within > ul {
    display: flex;
}

.menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--white);
    border-radius: 999px;
    position: relative;
    margin: 0 auto;
    transition: transform var(--transition-speed), opacity var(--transition-speed);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

.hero-section {
    position: relative;
    padding: 72px 0 132px;
    color: var(--white);
    background: var(--primary-color);
    overflow: hidden;
}

.hero-background,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-background {
    background-size: cover;
    background-position: center;
    transform: scale(1.03);
}

.hero-overlay {
    background:
        radial-gradient(circle at top left, rgba(242, 214, 128, 0.2), transparent 26%),
        linear-gradient(115deg, rgba(5, 20, 35, 0.94) 0%, rgba(16, 42, 67, 0.86) 42%, rgba(31, 90, 166, 0.74) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-flex-layout {
    display: grid;
    grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
    gap: 46px;
    align-items: center;
}

.hero-col-portrait {
    display: flex;
    justify-content: center;
}

.portrait-frame {
    position: relative;
    width: min(280px, 70vw);
    aspect-ratio: 4 / 5;
    padding: 14px;
    border-radius: 34px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(242, 214, 128, 0.22));
    box-shadow: 0 26px 56px rgba(8, 20, 37, 0.34);
    backdrop-filter: blur(10px);
}

.portrait-frame::after {
    content: '';
    position: absolute;
    inset: 18px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    pointer-events: none;
}

.hero-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
}

.hero-col-text {
    max-width: 760px;
}

.hero-eyebrow {
    margin: 0 0 18px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(242, 214, 128, 0.92);
}

.hero-title,
.hero-widget h1,
.hero-widget h2,
.hero-widget h3 {
    margin-bottom: 14px;
    color: var(--white);
    font-size: clamp(2.8rem, 6vw, 4.75rem);
}

.hero-subtitle,
.hero-widget p {
    max-width: 720px;
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.88);
}

.hero-affiliation {
    max-width: 760px;
    margin: 0 0 24px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.82);
}

.hero-quick-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 0;
}

.hero-quick-facts span {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.88rem;
    backdrop-filter: blur(10px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.animate-fade-up {
    animation: fadeUp 0.9s ease-out forwards;
    opacity: 0;
    transform: translateY(26px);
}

.bounce-in {
    animation: bounceIn 1.1s cubic-bezier(0.215, 0.61, 0.355, 1) both;
}

.delay-2 { animation-delay: 0.18s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale3d(0.88, 0.88, 1); }
    60% { opacity: 1; transform: scale3d(1.02, 1.02, 1); }
    100% { opacity: 1; transform: scale3d(1, 1, 1); }
}

.info-grid {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: -58px;
    margin-bottom: 28px;
}

.info-card {
    position: relative;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(16, 42, 67, 0.06);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.info-card:hover,
.info-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 22px 42px rgba(16, 42, 67, 0.16);
}

.info-card-surface {
    display: block;
    height: 100%;
    padding: 28px 28px 24px;
    color: inherit;
    border-radius: inherit;
}

.info-card-surface:hover,
.info-card-surface:focus-visible {
    color: inherit;
}

.info-card-surface:focus-visible {
    outline: 2px solid rgba(31, 90, 166, 0.32);
    outline-offset: 4px;
}

.info-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(16, 42, 67, 0.06), rgba(16, 42, 67, 0.02));
    color: var(--secondary-color);
    box-shadow: inset 0 0 0 1px rgba(16, 42, 67, 0.06);
}

.info-card-icon svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
}

.info-card h3 {
    margin-bottom: 12px;
    font-size: 1.42rem;
}

.info-card p {
    margin: 0 0 18px;
    color: var(--muted-text);
}

.info-card-link {
    font-weight: 700;
    color: var(--secondary-color);
}

.main-content {
    position: relative;
    z-index: 2;
}

.content-wrapper {
    display: grid;
    gap: 32px;
}

.front-page-lead,
.content-card,
.intro-panel,
.feature-panel {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(16, 42, 67, 0.08);
    box-shadow: var(--shadow-sm);
}

.front-page-lead,
.content-card {
    border-radius: 28px;
    padding: clamp(28px, 4vw, 48px);
}

.intro-panel {
    padding: clamp(30px, 4vw, 44px);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255, 250, 240, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.intro-panel h2 {
    max-width: 760px;
    font-size: clamp(2rem, 4vw, 3rem);
}

.intro-panel p {
    max-width: 820px;
    color: var(--muted-text);
}

.feature-panels {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.feature-panel {
    padding: 28px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(245, 247, 251, 0.92), rgba(255, 255, 255, 0.98));
}

.feature-panel h3 {
    font-size: 1.35rem;
}

.feature-panel p {
    margin: 0;
    color: var(--muted-text);
}

.page-hero {
    margin-bottom: 22px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.entry-title {
    font-size: clamp(2.2rem, 4vw, 3.35rem);
}

.page-featured-image {
    margin: 0 0 28px;
    overflow: hidden;
    border-radius: 26px;
}

.page-featured-image img {
    width: 100%;
    display: block;
}

.rich-content > *:first-child {
    margin-top: 0;
}

.rich-content h2,
.rich-content h3,
.rich-content h4 {
    margin-top: 2.1rem;
}

.rich-content p,
.rich-content ul,
.rich-content ol,
.rich-content table,
.rich-content blockquote {
    margin-bottom: 1.35rem;
}

.rich-content ul,
.rich-content ol {
    padding-left: 1.25rem;
}

.rich-content table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
}

.rich-content th,
.rich-content td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(16, 42, 67, 0.08);
    text-align: left;
}

.rich-content blockquote {
    margin-left: 0;
    padding: 22px 24px;
    border-left: 4px solid var(--accent-color);
    background: var(--sand-bg);
    border-radius: 0 16px 16px 0;
}

.section-child-pages {
    margin-top: 42px;
    padding-top: 26px;
    border-top: 1px solid var(--border-color);
}

.section-child-pages-header {
    margin-bottom: 22px;
}

.section-child-pages-header h2 {
    margin-bottom: 0;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.section-child-pages-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.section-child-card {
    display: block;
    padding: 22px 24px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(245, 247, 251, 0.92), rgba(255, 255, 255, 0.98));
    border: 1px solid rgba(16, 42, 67, 0.08);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed), border-color var(--transition-speed);
}

.section-child-card:hover,
.section-child-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(31, 90, 166, 0.18);
}

.section-child-card-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--secondary-color);
}

.section-child-card h3 {
    margin-bottom: 0;
    font-size: 1.3rem;
}

.section-child-card-link {
    display: inline-block;
    margin-top: 14px;
    font-weight: 700;
    color: var(--secondary-color);
}

.empty-state {
    text-align: center;
}

.site-footer {
    margin-top: 42px;
    padding: 58px 0 22px;
    color: rgba(255, 255, 255, 0.85);
    background: linear-gradient(180deg, #0c2237 0%, #081729 100%);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 30px;
    margin-bottom: 32px;
}

.site-footer h3 {
    margin-bottom: 14px;
    color: var(--white);
}

.site-footer p {
    margin: 0 0 10px;
}

.footer-kicker {
    color: rgba(242, 214, 128, 0.82);
}

.footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a,
.site-footer a {
    color: rgba(255, 255, 255, 0.84);
}

.footer-links a:hover,
.site-footer a:hover {
    color: var(--accent-strong);
}

.site-info {
    padding-top: 18px;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.56);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 1280px) {
    .header-flex {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 16px;
    }

    .main-navigation {
        justify-self: end;
    }
}

@media (max-width: 1100px) {
    :root {
        --header-height: 74px;
    }

    .header-flex {
        grid-template-columns: 1fr auto;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .main-navigation > .nav-container > ul {
        position: absolute;
        top: calc(100% + 14px);
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: min(340px, calc(100vw - 40px));
        max-height: calc(100vh - var(--header-height) - 28px);
        overflow-y: auto;
        padding: 10px 0;
        background: rgba(255, 255, 255, 0.98);
        border-radius: 22px;
        box-shadow: var(--shadow-lg);
        border: 1px solid rgba(16, 42, 67, 0.08);
    }

    .main-navigation.toggled > .nav-container > ul {
        display: flex;
    }

    .main-navigation ul li {
        width: 100%;
    }

    .main-navigation ul li a {
        padding: 16px 22px;
        color: var(--primary-color);
    }

    .main-navigation ul ul {
        position: static;
        display: none;
        min-width: auto;
        padding: 0;
        background: #f7f9fc;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .main-navigation ul ul li a {
        padding-left: 42px;
        font-size: 0.9rem;
    }

    .main-navigation ul li.toggled-on > ul {
        display: flex;
    }

    .submenu-link {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
    }

    .submenu-link::after {
        content: '';
        width: 8px;
        height: 8px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        transition: transform var(--transition-speed);
    }

    .toggled-on > .submenu-link::after {
        transform: rotate(225deg);
    }

    .hero-flex-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .hero-col-text {
        margin: 0 auto;
    }

    .hero-quick-facts,
    .hero-actions {
        justify-content: center;
    }

    .info-grid,
    .feature-panels,
    .section-child-pages-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(var(--content-width), calc(100% - 24px));
    }

    .section-padding {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .site-title-text {
        font-size: 1.38rem;
    }

    .hero-section {
        padding: 56px 0 112px;
    }

    .hero-title,
    .hero-widget h1,
    .hero-widget h2,
    .hero-widget h3 {
        font-size: clamp(2.3rem, 10vw, 3.35rem);
    }

    .hero-subtitle,
    .hero-widget p {
        font-size: 1rem;
    }

    .btn {
        width: 100%;
    }

    .front-page-lead,
    .content-card,
    .intro-panel,
    .feature-panel,
    .info-card {
        border-radius: 22px;
    }
}
