/* Homepage styles — index.php only */

:root {
    --uca-navy: #0f2744;
    --uca-blue: #1a4f8a;
    --uca-accent: #3b82f6;
    --uca-accent-light: #60a5fa;
    --uca-gold: #f59e0b;
    --uca-green: #10b981;
    --uca-light: #eff6ff;
    --uca-bg: #f8fafc;
    --uca-text: #1e293b;
    --uca-muted: #64748b;
    --uca-white: #ffffff;
    --uca-radius: 14px;
    --uca-radius-lg: 22px;
    --uca-shadow: 0 4px 24px rgba(15, 39, 68, 0.07);
    --uca-shadow-md: 0 12px 40px rgba(15, 39, 68, 0.12);
    --uca-shadow-lg: 0 20px 60px rgba(15, 39, 68, 0.15);
    --header-h: 76px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.home-page {
    margin: 0;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background:
        radial-gradient(ellipse 70% 50% at 0% 0%, rgba(59, 130, 246, 0.08) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 100% 10%, rgba(15, 39, 68, 0.06) 0%, transparent 50%),
        var(--uca-bg);
    color: var(--uca-text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.home-page a {
    text-decoration: none;
}

/* ========== Sticky Header ========== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(15, 39, 68, 0.06);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 24px rgba(15, 39, 68, 0.08);
}

.site-header .navbar {
    padding: 0.7rem 0;
    min-height: var(--header-h);
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--uca-navy);
}

.brand-link:hover {
    color: var(--uca-blue);
}

.brand-logo,
.brand-logo-icon {
    height: 50px;
    width: auto;
    max-width: 76px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-logo-icon {
    font-size: 2.1rem;
    color: var(--uca-accent);
    display: flex;
    align-items: center;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text .brand-name {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    color: var(--uca-navy);
    max-width: min(220px, 55vw);
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    line-height: 1.25;
    word-break: break-word;
}

.brand-text .brand-sub {
    display: none;
}

.nav-main .nav-link {
    color: var(--uca-navy);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.5rem 1rem !important;
    border-radius: 10px;
    transition: color 0.2s ease, background 0.2s ease;
    position: relative;
}

.nav-main .nav-link:hover,
.nav-main .nav-link:focus {
    color: var(--uca-accent);
    background: rgba(59, 130, 246, 0.08);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Language switcher */
.language-switcher {
    position: relative;
}

.language-dropdown {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 10px;
    border: 1px solid rgba(15, 39, 68, 0.12);
    background: var(--uca-white);
    color: var(--uca-navy);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.language-dropdown:hover {
    border-color: var(--uca-accent);
    background: var(--uca-light);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.12);
}

.language-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: var(--uca-white);
    border-radius: 12px;
    box-shadow: var(--uca-shadow-md);
    border: 1px solid rgba(15, 39, 68, 0.08);
    overflow: hidden;
    z-index: 1050;
}

.language-switcher.is-open .language-menu,
.language-switcher:hover .language-menu {
    display: block;
}

.language-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    color: var(--uca-navy);
    font-size: 0.88rem;
    font-weight: 500;
    transition: background 0.15s ease;
}

.language-menu a:hover,
.language-menu a.active {
    background: var(--uca-light);
    color: var(--uca-blue);
}

.btn-header {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.1rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-header-outline {
    border: 1.5px solid var(--uca-navy);
    color: var(--uca-navy);
    background: transparent;
}

.btn-header-outline:hover {
    background: var(--uca-navy);
    color: var(--uca-white);
}

.btn-header-primary {
    background: linear-gradient(135deg, var(--uca-accent) 0%, var(--uca-blue) 100%);
    color: var(--uca-white);
    border: none;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.btn-header-primary:hover {
    color: var(--uca-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
}

.btn-header.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.navbar-toggler {
    border: 1px solid rgba(15, 39, 68, 0.15);
    padding: 0.45rem 0.6rem;
    border-radius: 8px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230f2744' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ========== Hero ========== */
.hero {
    position: relative;
    padding: 4rem 0 5rem;
    overflow: hidden;
    background:
        linear-gradient(135deg, var(--uca-navy) 0%, #163a6b 40%, var(--uca-blue) 75%, #2563eb 100%);
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
}

.hero-shape--1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #fff 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation: float-shape 8s ease-in-out infinite;
}

.hero-shape--2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--uca-accent-light) 0%, transparent 70%);
    bottom: -80px;
    left: -60px;
    animation: float-shape 10s ease-in-out infinite reverse;
}

.hero-shape--3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--uca-gold) 0%, transparent 70%);
    top: 40%;
    left: 45%;
    animation: float-shape 12s ease-in-out infinite;
}

@keyframes float-shape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -15px) scale(1.05); }
}

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

.hero-content {
    max-width: 42rem;
}

.hero-badge {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(8px);
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
    line-height: 1.45;
}

.hero-badge i {
    color: var(--uca-gold);
}

.hero-brand {
    font-size: clamp(1.45rem, 5.5vw, 2.6rem);
    font-weight: 800;
    color: var(--uca-white);
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: 0 0 0.5rem;
    max-width: 36rem;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.hero-brand span {
    display: none;
}

.hero-subtitle {
    max-width: 34rem;
    font-size: clamp(0.95rem, 3.2vw, 1.08rem);
    color: rgba(255, 255, 255, 0.88);
    margin: 1rem 0 0;
    font-weight: 400;
    line-height: 1.7;
    word-wrap: break-word;
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.82rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.hero-pill i {
    font-size: 0.75rem;
    opacity: 0.85;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2rem;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.75rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    border: none;
    cursor: pointer;
}

.btn-hero-light {
    background: var(--uca-white);
    color: var(--uca-navy);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

.btn-hero-light:hover {
    color: var(--uca-blue);
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.22);
}

.btn-hero-outline {
    background: transparent;
    color: var(--uca-white);
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--uca-white);
    border-color: var(--uca-white);
    transform: translateY(-2px);
}

.btn-hero:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ========== Sections common ========== */
.home-section {
    padding: 3.5rem 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-tag {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: var(--uca-light);
    color: var(--uca-accent);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 50px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-heading h2 {
    font-size: clamp(1.6rem, 3.5vw, 2rem);
    font-weight: 800;
    color: var(--uca-navy);
    margin: 0 0 0.5rem;
}

.section-heading h2 i {
    color: var(--uca-accent);
    margin-right: 0.4rem;
}

.section-heading .subtitle {
    color: var(--uca-muted);
    font-size: 1.02rem;
    margin: 0;
    max-width: 38rem;
    margin-inline: auto;
}

/* ========== Period cards ========== */
.period-section {
    margin-top: 2rem;
    position: relative;
    z-index: 3;
}

.period-panel {
    background: var(--uca-white);
    border-radius: var(--uca-radius-lg);
    padding: 2.25rem;
    box-shadow: var(--uca-shadow-md);
    border: 1px solid rgba(15, 39, 68, 0.05);
}

.period-panel .section-heading {
    margin-bottom: 1.75rem;
}

.period-card {
    background: var(--uca-light);
    border-radius: var(--uca-radius);
    padding: 1.75rem;
    height: 100%;
    border: 1px solid rgba(59, 130, 246, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.period-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--uca-shadow);
}

.period-card--start {
    background: linear-gradient(145deg, #eff6ff 0%, #dbeafe 100%);
    border-color: rgba(59, 130, 246, 0.25);
}

.period-card--end {
    background: linear-gradient(145deg, #fffbeb 0%, #fef3c7 100%);
    border-color: rgba(245, 158, 11, 0.25);
}

.period-card-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

.period-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    font-size: 1.3rem;
    color: var(--uca-blue);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.period-card--end .period-card-icon {
    color: var(--uca-gold);
}

.period-card-label {
    font-weight: 700;
    font-size: 1rem;
    color: var(--uca-navy);
}

.period-card-date {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--uca-navy);
    letter-spacing: 0.02em;
    margin-bottom: 0.65rem;
}

.period-card-desc {
    font-size: 0.85rem;
    color: var(--uca-muted);
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    margin: 0;
}

/* ========== Status banner ========== */
.status-banner {
    border-radius: var(--uca-radius);
    padding: 1.15rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
    border: 1px solid transparent;
}

.status-banner--open {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-color: rgba(16, 185, 129, 0.3);
    color: #065f46;
}

.status-banner--closed {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-color: rgba(239, 68, 68, 0.3);
    color: #991b1b;
}

.status-banner-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.status-banner--open .status-banner-icon {
    color: #059669;
}

.status-banner--closed .status-banner-icon {
    color: #dc2626;
}

.status-banner-label {
    font-weight: 800;
    font-size: 1.05rem;
}

.status-banner-msg {
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 0.9;
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.status-banner-track {
    overflow: hidden;
    width: 100%;
    margin-top: 0.35rem;
}

.status-banner-marquee {
    display: block;
    white-space: normal;
    animation: none;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.5;
    word-wrap: break-word;
}

@keyframes home-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========== Feature cards ========== */
.feature-card {
    background: var(--uca-white);
    border-radius: var(--uca-radius);
    padding: 1.75rem;
    height: 100%;
    border: 1px solid rgba(15, 39, 68, 0.06);
    box-shadow: var(--uca-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--uca-shadow-md);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--uca-accent), var(--uca-blue));
    color: var(--uca-white);
    font-size: 1.15rem;
    margin-bottom: 1.1rem;
}

.feature-icon--green {
    background: linear-gradient(135deg, var(--uca-green), #059669);
}

.feature-icon--amber {
    background: linear-gradient(135deg, var(--uca-gold), #d97706);
}

.feature-icon--purple {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.feature-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--uca-navy);
    margin: 0 0 0.6rem;
}

.feature-card p {
    margin: 0;
    color: var(--uca-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

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

.feature-list li {
    position: relative;
    padding-left: 1.2rem;
    color: var(--uca-muted);
    font-size: 0.88rem;
    margin-bottom: 0.4rem;
    line-height: 1.5;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--uca-accent);
}

/* ========== Apply section ========== */
.apply-section {
    background: linear-gradient(135deg, var(--uca-navy) 0%, var(--uca-blue) 60%, #2563eb 100%);
    border-radius: var(--uca-radius-lg);
    padding: 3rem 2.5rem;
    text-align: center;
    color: var(--uca-white);
    box-shadow: var(--uca-shadow-lg);
    margin: 1rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.apply-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.apply-section h2 {
    font-weight: 800;
    font-size: 1.85rem;
    margin: 0 0 0.5rem;
    position: relative;
}

.apply-section .subtitle {
    opacity: 0.92;
    margin-bottom: 0.75rem;
    position: relative;
}

.apply-section .description {
    max-width: 38rem;
    margin: 0 auto 2rem;
    opacity: 0.85;
    font-size: 1rem;
    position: relative;
}

.btn-apply {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.95rem 2rem;
    border-radius: 12px;
    background: var(--uca-white);
    color: var(--uca-navy);
    font-weight: 700;
    font-size: 1.05rem;
    border: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    cursor: pointer;
}

.btn-apply:hover:not(:disabled) {
    color: var(--uca-blue);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-apply:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========== Requirements & Steps ========== */
.requirement-card,
.step-card {
    background: var(--uca-white);
    border-radius: var(--uca-radius);
    padding: 1.75rem;
    height: 100%;
    border: 1px solid rgba(15, 39, 68, 0.06);
    box-shadow: var(--uca-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.requirement-card:hover,
.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--uca-shadow-md);
}

.requirement-card .icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--uca-accent), var(--uca-blue));
    color: var(--uca-white);
    font-size: 1.2rem;
    margin-bottom: 1.1rem;
}

.requirement-card h4,
.step-card h4 {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--uca-navy);
    margin: 0 0 0.5rem;
}

.requirement-card p,
.step-card p {
    margin: 0;
    color: var(--uca-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--uca-accent), var(--uca-navy));
    color: var(--uca-white);
    font-weight: 800;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* ========== Reveal animation ========== */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== Footer ========== */
.site-footer {
    background: var(--uca-white);
    color: var(--uca-text);
    padding: 2.75rem 0 2rem;
    margin-top: 2.5rem;
    border-top: 1px solid rgba(15, 39, 68, 0.08);
    box-shadow: 0 -4px 24px rgba(15, 39, 68, 0.04);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.footer-brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
}

.footer-brand img,
.footer-brand .brand-logo-icon {
    height: 48px;
    width: auto;
    max-width: 72px;
    margin-bottom: 0;
}

.footer-brand .brand-logo-icon {
    font-size: 2rem;
    color: var(--uca-accent);
}

.footer-brand strong {
    display: none;
}

.footer-brand span {
    font-size: 0.95rem;
    color: var(--uca-navy);
    font-weight: 600;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    justify-content: flex-end;
    align-items: center;
}

.footer-links a {
    color: var(--uca-navy);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.35rem 0.6rem;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}

.footer-links a:hover {
    color: var(--uca-accent);
    background: var(--uca-light);
}

.footer-copy {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(15, 39, 68, 0.08);
}

.footer-copy p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.8;
    color: var(--uca-muted);
}

/* ========== Scroll to top ========== */
.scroll-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--uca-accent), var(--uca-blue));
    color: var(--uca-white);
    border: none;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1020;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(59, 130, 246, 0.5);
}

/* ========== Responsive ========== */
@media (max-width: 991.98px) {
    .nav-main {
        padding: 1rem 0 0.5rem;
        border-top: 1px solid rgba(15, 39, 68, 0.08);
        margin-top: 0.75rem;
    }

    .header-actions {
        width: 100%;
        padding-top: 0.75rem;
        gap: 0.5rem;
    }

    .header-actions .btn-header {
        flex: 1 1 calc(50% - 0.5rem);
        justify-content: center;
        min-width: 0;
        white-space: normal;
        text-align: center;
        line-height: 1.3;
    }

    .language-dropdown {
        width: 100%;
        justify-content: center;
    }

    .hero {
        padding: 2.5rem 0 3rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .period-panel {
        padding: 1.25rem;
    }

    .period-card-date {
        font-size: 1.45rem;
        word-break: break-word;
    }

    .apply-section {
        padding: 2rem 1.15rem;
    }

    .apply-section h2,
    .section-heading h2,
    .feature-card h4,
    .requirement-card h4,
    .step-card h4 {
        word-wrap: break-word;
        overflow-wrap: anywhere;
    }

    .feature-card,
    .requirement-card,
    .step-card {
        padding: 1.25rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-copy p {
        word-wrap: break-word;
        overflow-wrap: anywhere;
        padding: 0 0.5rem;
    }
}

@media (max-width: 575.98px) {
    .site-header .container {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .brand-logo,
    .brand-logo-icon {
        height: 40px;
        max-width: 56px;
    }

    .brand-text .brand-name {
        max-width: none;
        flex: 1;
        font-size: 0.78rem;
    }

    .brand-link {
        gap: 0.55rem;
        min-width: 0;
        flex: 1;
    }

    .brand-text {
        min-width: 0;
        flex: 1;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn-hero,
    .btn-apply {
        width: 100%;
        justify-content: center;
        white-space: normal;
        line-height: 1.35;
        padding: 0.85rem 1.1rem;
    }

    .hero-pills {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-pill {
        justify-content: flex-start;
        white-space: normal;
    }

    .status-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .main.container,
    body.home-page > main.container,
    .home-page main.container {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .period-card-desc,
    .feature-card p,
    .requirement-card p,
    .step-card p,
    .apply-section .description {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .scroll-top {
        bottom: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero-shape,
    .status-banner-marquee {
        animation: none;
    }

    .period-card,
    .requirement-card,
    .step-card,
    .feature-card,
    .btn-hero,
    .btn-apply,
    .btn-header-primary {
        transition: none;
    }

    .period-card:hover,
    .requirement-card:hover,
    .step-card:hover,
    .feature-card:hover,
    .btn-hero:hover,
    .btn-apply:hover {
        transform: none;
    }

    .status-banner-marquee {
        white-space: normal;
    }
}
