/* Fonts & Variables */
@font-face {
    font-family: 'UAF Sans';
    src: local('UAF Sans'), local('UAFSans'),
         url('fonts/UAFSans-Regular.woff2') format('woff2'),
         url('fonts/UAFSans-Regular.woff') format('woff'),
         url('fonts/UAFSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'UAF Sans';
    src: local('UAF Sans Medium'), local('UAFSans-Medium'),
         url('fonts/UAFSans-Medium.woff2') format('woff2'),
         url('fonts/UAFSans-Medium.woff') format('woff'),
         url('fonts/UAFSans-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'UAF Sans';
    src: local('UAF Sans Bold'), local('UAFSans-Bold'),
         url('fonts/UAFSans-Bold.woff2') format('woff2'),
         url('fonts/UAFSans-Bold.woff') format('woff'),
         url('fonts/UAFSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'UAF Sans';
    src: local('UAF Sans SemiBold'), local('UAFSans-SemiBold'),
         url('fonts/UAFSans-SemiBold.woff2') format('woff2'),
         url('fonts/UAFSans-SemiBold.woff') format('woff'),
         url('fonts/UAFSans-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

:root {
    --color-bg-dark: #0f1110;
    --color-bg-light: #171a18;
    --color-bg-card: rgba(22, 26, 24, 0.65);
    --color-bg-card-hover: rgba(28, 33, 30, 0.85);
    --color-border: rgba(212, 175, 55, 0.15);
    --color-border-hover: rgba(212, 175, 55, 0.4);
    --color-olive-dark: #2c3a28;
    --color-olive-medium: #3b4d35;
    --color-olive-light: #526b4a;
    --color-olive-glow: rgba(82, 107, 74, 0.3);
    --color-gold: #c5a028;
    --color-gold-light: #ebd694;
    --color-gold-glow: rgba(197, 160, 40, 0.2);
    --color-text-bright: #f3f5f4;
    --color-text-regular: #cbd3ce;
    --color-text-muted: #8c9790;
    --color-gold-dark: var(--color-gold);
    --color-dark-main: var(--color-bg-dark);
    --color-text-light: var(--color-text-bright);
    --font-primary: 'UAF Sans', 'Outfit', sans-serif;
    --font-secondary: 'UAF Sans', 'Playfair Display', serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
    --border-radius-lg: 16px;
    --border-radius-md: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--color-bg-dark);
    color: var(--color-text-regular);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Background Effects */
.bg-grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(82, 107, 74, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(82, 107, 74, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: -2;
}

.bg-radial-glow {
    position: fixed;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(44, 58, 40, 0.3) 0%, rgba(15, 17, 16, 0) 70%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header Styling */
.main-header {
    background: linear-gradient(180deg, rgba(15, 17, 16, 0.9) 0%, rgba(15, 17, 16, 0) 100%);
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 16px;
}

.institute-logo {
    width: 56px;
    height: 56px;
    filter: drop-shadow(0 0 8px var(--color-gold-glow));
    transition: var(--transition-smooth);
}

.logo-area:hover .institute-logo {
    transform: rotate(5deg) scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.inst-sub {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    font-weight: 500;
}

.inst-main {
    font-family: var(--font-secondary);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text-bright);
    letter-spacing: 0.02em;
}

.inst-program {
    font-size: 12px;
    color: var(--color-gold-light);
    letter-spacing: 0.05em;
    text-transform: lowercase;
    font-style: italic;
    opacity: 0.9;
}

.header-badge {
    background: linear-gradient(135deg, var(--color-olive-dark) 0%, var(--color-olive-medium) 100%);
    border: 1px solid var(--color-gold);
    border-radius: 40px;
    padding: 6px 16px;
    box-shadow: 0 0 10px var(--color-gold-glow);
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-block;
}

.header-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(197, 160, 40, 0.4);
    border-color: var(--color-gold-light);
    background: linear-gradient(135deg, var(--color-olive-medium) 0%, var(--color-olive-light) 100%);
}

.badge-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-gold-light);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 60px 0 40px 0;
}

.hero-title {
    font-family: var(--font-secondary);
    font-size: 42px;
    font-weight: 700;
    color: var(--color-text-bright);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--color-text-muted);
    max-width: 750px; /* Expanded slightly to fit the badge without wrapping early */
    margin: 0 auto 36px auto;
}

.hero-alert-badge {
    color: #ffd166; /* Bright warning amber */
    font-weight: 700;
    text-shadow: 0 0 8px rgba(255, 209, 102, 0.4);
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    background: rgba(255, 209, 102, 0.1);
    margin-left: 4px;
    font-size: 14px;
    letter-spacing: 0.02em;
    animation: pulse-glow 2s infinite ease-in-out;
    vertical-align: middle;
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 5px rgba(255, 209, 102, 0.1);
        background: rgba(255, 209, 102, 0.1);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 0 15px rgba(255, 209, 102, 0.4);
        border-color: rgba(255, 209, 102, 0.5);
        background: rgba(255, 209, 102, 0.15);
    }
}

/* Search Bar */
.search-container {
    max-width: 680px;
    margin: 0 auto;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 30px;
    padding: 6px 18px 6px 22px;
    transition: var(--transition-smooth);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-premium);
}

.search-wrapper:focus-within {
    border-color: var(--color-gold);
    box-shadow: 0 0 20px rgba(197, 160, 40, 0.25);
    background: var(--color-bg-card-hover);
}

.search-icon {
    width: 22px;
    height: 22px;
    color: var(--color-text-muted);
    margin-right: 14px;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.search-wrapper:focus-within .search-icon {
    color: var(--color-gold);
}

#faq-search {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--color-text-bright);
    font-size: 16px;
    font-family: var(--font-primary);
    padding: 10px 0;
}

#faq-search::placeholder {
    color: var(--color-text-muted);
    opacity: 0.8;
}

.clear-btn {
    background: transparent;
    border: none;
    outline: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 6px;
    display: none; /* Controlled by JS */
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.clear-btn:hover {
    color: var(--color-text-bright);
}

.clear-btn svg {
    width: 18px;
    height: 18px;
}

/* Roadmap Stepper */
.roadmap-section {
    padding: 40px 0;
}

.section-title {
    font-family: var(--font-secondary);
    font-size: 26px;
    font-weight: 700;
    color: var(--color-text-bright);
    margin-bottom: 24px;
    text-align: center;
    position: relative;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--color-gold);
}

.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.step-link {
    color: var(--color-gold);
    text-decoration: underline;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.step-link:hover {
    color: var(--color-gold-light);
    text-shadow: 0 0 8px var(--color-gold-glow);
}

.roadmap-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: 24px 20px;
    backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
}

.roadmap-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    transform: translateX(-100%);
    transition: var(--transition-smooth);
}

.roadmap-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-border-hover);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5), 0 0 15px rgba(82, 107, 74, 0.1);
}

.roadmap-card:hover::before {
    transform: translateX(100%);
    transition: all 0.8s ease-in-out;
}

.roadmap-step {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-gold);
    background: rgba(197, 160, 40, 0.1);
    border: 1px solid rgba(197, 160, 40, 0.3);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 0 10px var(--color-gold-glow);
}

.roadmap-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-bright);
    margin-bottom: 8px;
}

.roadmap-content p {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* Timeline Section */
.timeline-section {
    padding: 40px 0 60px 0;
    position: relative;
}

.timeline-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 40px;
    gap: 24px;
    padding: 10px 0;
}

.timeline-line {
    position: absolute;
    top: 30px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg, rgba(82, 107, 74, 0.1), var(--color-gold), rgba(82, 107, 74, 0.1));
    z-index: 1;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    z-index: 2;
    position: relative;
}

.timeline-badge {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--color-bg-dark);
    border: 2px solid var(--color-gold);
    color: var(--color-gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 24px;
    box-shadow: 0 0 12px var(--color-gold-glow);
    transition: var(--transition-smooth);
}

.timeline-content {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: 22px 18px;
    backdrop-filter: blur(12px);
    width: 100%;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.timeline-item:hover .timeline-badge {
    transform: scale(1.1);
    background: var(--color-olive-medium);
    box-shadow: 0 0 20px rgba(197, 160, 40, 0.4);
    color: var(--color-text-bright);
}

.timeline-item:hover .timeline-content {
    border-color: var(--color-border-hover);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.timeline-format {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: #4b8df8;
    letter-spacing: 0.05em;
    background: rgba(75, 141, 248, 0.1);
    border: 1px solid rgba(75, 141, 248, 0.2);
    padding: 4px 12px;
    border-radius: 12px;
    align-self: center;
}

.timeline-format.format-offline {
    color: var(--color-gold-light);
    background: rgba(197, 160, 40, 0.1);
    border-color: rgba(197, 160, 40, 0.2);
}

.timeline-format.format-exam {
    color: #39d353;
    background: rgba(57, 211, 83, 0.1);
    border-color: rgba(57, 211, 83, 0.2);
}

.timeline-content h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-bright);
}

.timeline-content p {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* Main Layout Grid */
.main-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    padding: 40px 24px 80px 24px;
    align-items: start;
}

/* FAQ Area & Category Tabs */
.faq-area {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.faq-area .section-title {
    text-align: left;
}

.faq-area .section-title::after {
    left: 0;
    transform: none;
}

.faq-area .search-container {
    max-width: 100%;
    margin: 0;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tab-btn {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 30px;
    padding: 8px 16px;
    color: var(--color-text-regular);
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
    backdrop-filter: blur(8px);
}

.tab-btn:hover {
    border-color: var(--color-border-hover);
    color: var(--color-text-bright);
    background: rgba(82, 107, 74, 0.15);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--color-olive-medium) 0%, var(--color-olive-dark) 100%);
    border-color: var(--color-gold);
    color: var(--color-gold-light);
    box-shadow: 0 0 10px var(--color-gold-glow);
}

.tab-icon {
    width: 16px;
    height: 16px;
    stroke-width: 2px;
}

/* FAQ Accordion List */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
    overflow: hidden;
}

.faq-item:hover {
    border-color: var(--color-border-hover);
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.faq-item.active {
    border-color: rgba(197, 160, 40, 0.35);
    background: var(--color-bg-card-hover);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.6);
}

.faq-question-btn {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    padding: 22px 24px;
    text-align: left;
    color: var(--color-text-bright);
    font-family: var(--font-primary);
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.faq-question-btn:focus-visible {
    background: rgba(82, 107, 74, 0.1);
}

.faq-toggle-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--color-text-muted);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), color 0.6s;
}

.faq-item.active .faq-toggle-icon {
    transform: rotate(180deg);
    color: var(--color-gold);
}

.faq-answer-wrapper {
    /* Height animated via JS */
    height: 0;
    overflow: hidden;
    transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-content {
    padding: 0 24px 24px 24px;
    color: var(--color-text-regular);
    font-size: 15px;
    line-height: 1.6;
    border-top: 1px solid rgba(212, 175, 55, 0.05);
}

.faq-answer-content p {
    margin-bottom: 12px;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

.faq-answer-content ul, .faq-answer-content ol {
    margin-left: 20px;
    margin-bottom: 12px;
}

.faq-answer-content li {
    margin-bottom: 6px;
}

.faq-answer-content strong {
    color: var(--color-gold-light);
}

.faq-answer-content a {
    color: var(--color-gold-light);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.faq-answer-content a:hover {
    opacity: 0.8;
}

/* Loading, No Results, and Highlight states */
.loading-state {
    padding: 40px;
    text-align: center;
    color: var(--color-text-muted);
    font-style: italic;
}

.no-results-state {
    text-align: center;
    padding: 50px 20px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
}

.no-results-state svg {
    width: 48px;
    height: 48px;
    color: var(--color-text-muted);
    margin-bottom: 16px;
    opacity: 0.6;
}

.no-results-state p {
    font-size: 16px;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.highlight {
    background: rgba(197, 160, 40, 0.25);
    color: var(--color-text-bright);
    padding: 1px 4px;
    border-radius: 4px;
    font-weight: 500;
}

.hidden {
    display: none !important;
}

/* Checklist Area */
.checklist-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: 30px 24px;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-premium);
    position: sticky;
    top: 110px; /* Keep visible on scroll */
}

.checklist-title {
    font-family: var(--font-secondary);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text-bright);
    margin-bottom: 10px;
}

.checklist-desc {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.checklist-copy-reqs {
    font-size: 13px;
    color: var(--color-text-muted);
    background: rgba(212, 175, 55, 0.05);
    border-left: 3px solid var(--color-gold-dark, rgba(212, 175, 55, 0.5));
    padding: 12px 14px;
    margin-bottom: 24px;
    border-radius: 0 4px 4px 0;
    line-height: 1.45;
}

.checklist-copy-reqs strong {
    color: var(--color-gold-light);
}

.checklist-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 8px;
    margin-bottom: 24px;
}

/* Custom Scrollbar for Checklist */
.checklist-items::-webkit-scrollbar {
    width: 6px;
}

.checklist-items::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
    border-radius: 10px;
}

.checklist-items::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 10px;
}

.checklist-items::-webkit-scrollbar-thumb:hover {
    background: var(--color-border-hover);
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 10px;
    border-radius: var(--border-radius-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    transition: var(--transition-smooth);
}

.checklist-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(212, 175, 55, 0.08);
}

.checklist-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-checkbox {
    width: 20px;
    height: 20px;
    border: 1.5px solid var(--color-border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    transition: var(--transition-smooth);
    background: rgba(0,0,0,0.2);
}

.checklist-item:hover .custom-checkbox {
    border-color: var(--color-border-hover);
}

.checklist-item input:checked ~ .custom-checkbox {
    background: var(--color-olive-medium);
    border-color: var(--color-gold);
    box-shadow: 0 0 8px rgba(82, 107, 74, 0.5);
}

.custom-checkbox svg {
    width: 14px;
    height: 14px;
    color: var(--color-gold-light);
    transform: scale(0);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.checklist-item input:checked ~ .custom-checkbox svg {
    transform: scale(1);
}

.checklist-text {
    font-size: 13.5px;
    color: var(--color-text-regular);
    line-height: 1.4;
    transition: var(--transition-smooth);
}

.checklist-item input:checked ~ .checklist-text {
    color: var(--color-text-muted);
    text-decoration: line-through;
    opacity: 0.7;
}

.checklist-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid var(--color-border);
    padding-top: 20px;
}

/* Button UI */
.btn {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    border: none;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-gold) 0%, #a8841a 100%);
    color: #121413;
    box-shadow: 0 4px 15px rgba(197, 160, 40, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 160, 40, 0.4);
    background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 100%);
}

.btn-secondary {
    background: var(--color-olive-medium);
    border: 1px solid var(--color-border);
    color: var(--color-text-bright);
}

.btn-secondary:hover {
    background: var(--color-olive-light);
    border-color: var(--color-border-hover);
}

.btn-link {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-weight: 500;
    text-decoration: underline;
    font-size: 13px;
}

.btn-link:hover {
    color: var(--color-text-bright);
}

.btn-icon {
    width: 16px;
    height: 16px;
}

/* Print Specific Header & Footer - Hidden on web view */
.print-header-only, .print-footer-only {
    display: none;
}

/* Footer Styling */
.main-footer {
    border-top: 1px solid var(--color-border);
    background: #090a0a;
    padding: 40px 0 30px 0;
    margin-top: 80px;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.footer-info h3 {
    grid-column: span 2;
    font-family: var(--font-secondary);
    font-size: 20px;
    color: var(--color-text-bright);
    margin-bottom: 4px;
}

.footer-info p {
    font-size: 14px;
    color: var(--color-text-regular);
}

.footer-info strong {
    color: var(--color-gold);
}

.footer-info a {
    color: var(--color-text-regular);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-info a:hover {
    color: var(--color-gold);
    text-decoration: underline;
}

.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--color-text-muted);
}

.developer-tag {
    color: var(--color-gold-light);
    opacity: 0.8;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .checklist-card {
        position: static;
    }
    
    /* roadmap-grid is handled automatically by auto-fit */

    /* timeline responsive */
    .timeline-container {
        flex-direction: column;
        gap: 30px;
        padding-left: 20px;
    }
    
    .timeline-line {
        top: 0;
        bottom: 0;
        left: 20px;
        width: 2px;
        height: auto;
        right: auto;
        background: linear-gradient(180deg, rgba(82, 107, 74, 0.1), var(--color-gold), rgba(82, 107, 74, 0.1));
    }
    
    .timeline-item {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 20px;
    }
    
    .timeline-badge {
        margin-bottom: 0;
        flex-shrink: 0;
        margin-top: 4px;
        transform: translateX(-10px);
    }
    
    .timeline-item:hover .timeline-badge {
        transform: scale(1.1) translateX(-9px);
    }
    
    .timeline-content {
        align-items: flex-start;
    }
    
    .timeline-format {
        align-self: flex-start;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 15px;
    }
    
    .roadmap-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-info {
        grid-template-columns: 1fr;
    }
    
    .footer-info h3 {
        grid-column: span 1;
    }
    
    .footer-copyright {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .main-header {
        padding: 10px 0;
    }

    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        text-align: left;
    }

    .logo-area {
        flex-direction: row;
        gap: 10px;
        align-items: center;
    }

    /* Приховати лого та другорядний текст на мобільному */
    .institute-logo,
    .inst-sub,
    .inst-program {
        display: none;
    }

    .inst-main {
        font-size: 15px;
        line-height: 1.2;
    }
}

/* PRINT MEDIA STYLES - Crucial for document checklist printing */
@media print {
    @page {
        margin: 20mm 20mm 20mm 30mm;
    }

    /* Hide everything that isn't the checklist card */
    body {
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 12pt;
    }
    
    .bg-grid-overlay, .bg-radial-glow, .no-print, header, footer, .hero-section, .roadmap-section, .faq-area {
        display: none !important;
    }
    
    .main-content {
        display: block;
        padding: 0;
        margin: 0;
    }
    
    .checklist-area {
        width: 100% !important;
    }
    
    .checklist-card {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        position: static !important;
        backdrop-filter: none !important;
    }
    
    .checklist-title, .checklist-desc {
        display: none !important;
    }
    
    /* Show print-only header and footer */
    .print-header-only {
        display: block !important;
        margin-bottom: 30px;
        border-bottom: 2px solid #000000;
        padding-bottom: 15px;
    }
    
    .print-header-only h3 {
        font-size: 12pt;
        font-weight: 700;
        margin-bottom: 4px;
        text-transform: uppercase;
    }
    
    .print-header-only h4 {
        font-size: 11pt;
        font-weight: 600;
        margin-bottom: 10px;
    }
    
    .print-doc-title {
        font-size: 11pt;
        font-style: italic;
        color: #333333;
    }
    
    .print-date {
        font-size: 9pt;
        text-align: right;
        margin-top: 5px;
        color: #555555;
    }
    
    .checklist-items {
        max-height: none !important;
        overflow: visible !important;
        gap: 15px;
    }
    
    .checklist-item {
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        page-break-inside: avoid;
    }
    
    /* Make checkbox render appropriately for print */
    .custom-checkbox {
        border: 1px solid #000000 !important;
        background: transparent !important;
        width: 15px;
        height: 15px;
        box-shadow: none !important;
    }
    
    .checklist-item input:checked ~ .custom-checkbox {
        background: transparent !important;
        border: 1px solid #000000 !important;
    }
    
    .custom-checkbox svg {
        color: #000000 !important;
    }
    
    .checklist-text {
        font-size: 11pt !important;
        color: #000000 !important;
        text-decoration: none !important;
        opacity: 1 !important;
    }
    
    .print-footer-only {
        display: block !important;
        margin-top: 50px;
        border-top: 1px solid #000000;
        padding-top: 20px;
    }
    
    .signature-line {
        display: flex;
        justify-content: space-between;
        margin-bottom: 30px;
        font-size: 11pt;
    }
    
    .print-note {
        font-size: 9pt;
        text-align: center;
        font-style: italic;
        color: #666666;
    }
}

/* =============================================
   BACK TO TOP BUTTON
   ============================================= */
#back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 999;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid rgba(212, 175, 55, 0.4);
    background: rgba(22, 26, 24, 0.92);
    color: var(--color-gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease, border-color 0.2s ease;
    backdrop-filter: blur(8px);
}

#back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#back-to-top:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.7);
}

#back-to-top svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 480px) {
    #back-to-top {
        bottom: 20px;
        right: 16px;
        width: 44px;
        height: 44px;
    }
}

/* VOS FAQ Table Styling */
.faq-vos-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 14px;
    font-size: 0.92rem;
    line-height: 1.5;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    overflow: hidden;
}

.faq-vos-table th, .faq-vos-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-vos-table th {
    font-weight: 600;
    color: var(--color-text-muted);
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 2px solid var(--color-gold-dark, rgba(212, 175, 55, 0.35));
}

.faq-vos-table tr:last-child td {
    border-bottom: none;
}

.faq-vos-table td strong {
    color: var(--color-gold-light);
    font-family: var(--font-mono, monospace);
    font-size: 0.95em;
    letter-spacing: 0.5px;
}

/* Accented FAQ Item (for military algorithm) */
.faq-item.faq-item-accented {
    border-left: 4px solid var(--color-gold);
    border-color: rgba(197, 160, 40, 0.25);
    background: rgba(22, 26, 24, 0.85);
}

.faq-item.faq-item-accented .faq-question-btn {
    color: var(--color-gold-light);
}

.faq-item.faq-item-accented:hover {
    border-color: rgba(197, 160, 40, 0.5);
    box-shadow: 0 0 25px rgba(197, 160, 40, 0.12), 0 5px 15px rgba(0, 0, 0, 0.4);
}

.faq-item.faq-item-accented.active {
    border-color: var(--color-gold);
    box-shadow: 0 0 30px rgba(197, 160, 40, 0.22), 0 10px 25px -5px rgba(0, 0, 0, 0.6);
}

/* Accented FAQ Item (for civilian algorithm - olive theme) */
.faq-item.faq-item-accented-olive {
    border-left: 4px solid var(--color-olive-light, #526b4a);
    border-color: rgba(82, 107, 74, 0.25);
    background: rgba(22, 26, 24, 0.85);
}

.faq-item.faq-item-accented-olive .faq-question-btn {
    color: #a7cda0; /* Light olive-green, highly readable and premium */
}

.faq-item.faq-item-accented-olive:hover {
    border-color: rgba(82, 107, 74, 0.5);
    box-shadow: 0 0 25px rgba(82, 107, 74, 0.12), 0 5px 15px rgba(0, 0, 0, 0.4);
}

.faq-item.faq-item-accented-olive.active {
    border-color: var(--color-olive-light, #526b4a);
    box-shadow: 0 0 30px rgba(82, 107, 74, 0.22), 0 10px 25px -5px rgba(0, 0, 0, 0.6);
}

/* ========== WHATSAPP ANNOUNCEMENT BANNER ========== */
.whatsapp-banner {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(16, 46, 26, 0.45) 0%, rgba(7, 24, 13, 0.65) 100%);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 16px;
  padding: 20px 24px;
  margin-top: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 20px rgba(34, 197, 94, 0.05);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.whatsapp-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.whatsapp-banner:hover {
  border-color: rgba(34, 197, 94, 0.45);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25), 0 0 25px rgba(34, 197, 94, 0.12);
  transform: translateY(-2px);
}

.wa-icon-wrapper {
  background: #25d366;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 20px;
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.4);
  animation: waPulse 2s infinite ease-in-out;
}

@keyframes waPulse {
  0% { transform: scale(1); box-shadow: 0 0 10px rgba(37, 211, 102, 0.3); }
  50% { transform: scale(1.06); box-shadow: 0 0 20px rgba(37, 211, 102, 0.6); }
  100% { transform: scale(1); box-shadow: 0 0 10px rgba(37, 211, 102, 0.3); }
}

.wa-svg-icon {
  width: 26px;
  height: 26px;
}

.wa-content {
  flex-grow: 1;
  margin-right: 24px;
}

.whatsapp-banner h3 {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ecf3e8;
  margin: 0 0 4px 0;
  letter-spacing: -0.2px;
}

.whatsapp-banner p {
  font-size: 0.92rem;
  color: #b8c5b0;
  margin: 0;
  line-height: 1.45;
  opacity: 0.85;
}

.wa-btn {
  background: #25d366;
  color: #0b0f0a;
  padding: 12px 24px;
  border-radius: 10px;
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
  flex-shrink: 0;
}

.wa-btn:hover {
  background: #20ba5a;
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.wa-btn-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.wa-btn:hover .wa-btn-arrow {
  transform: translateX(3px);
}

@media (max-width: 768px) {
  .whatsapp-banner {
    flex-direction: column;
    text-align: center;
    padding: 24px;
    gap: 16px;
  }
  
  .wa-icon-wrapper {
    margin-right: 0;
  }
  
  .wa-content {
    margin-right: 0;
  }
  
  .wa-btn {
    width: 100%;
  }
}

/* =========================================
   Chatbot Widget Styles
   ========================================= */

.chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Outfit', sans-serif;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold-dark));
    color: var(--color-dark-main);
    border: none;
    box-shadow: 0 4px 15px rgba(184, 153, 94, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(184, 153, 94, 0.6);
}

.chatbot-toggle .chat-icon {
    width: 28px;
    height: 28px;
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: rgba(18, 20, 24, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(184, 153, 94, 0.2);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform-origin: bottom right;
}

.chatbot-window.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.chatbot-header {
    padding: 15px 20px;
    background: linear-gradient(to right, rgba(184, 153, 94, 0.1), transparent);
    border-bottom: 1px solid rgba(184, 153, 94, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-gold-light);
    font-weight: 600;
    font-size: 1.1rem;
}

.chatbot-title .bot-icon {
    width: 24px;
    height: 24px;
}

.chatbot-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.chatbot-close:hover {
    color: white;
}

.chatbot-close svg {
    width: 20px;
    height: 20px;
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}
.chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(184, 153, 94, 0.3);
    border-radius: 3px;
}

.message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.bot-message {
    align-self: flex-start;
    background: rgba(184, 153, 94, 0.1);
    color: var(--color-text-light);
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(184, 153, 94, 0.2);
}

.user-message {
    align-self: flex-end;
    background: var(--color-gold-dark);
    color: var(--color-dark-main);
    border-bottom-right-radius: 4px;
    font-weight: 500;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: rgba(184, 153, 94, 0.05);
    border-radius: 12px;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    align-items: center;
    height: 40px;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: var(--color-gold-light);
    border-radius: 50%;
    animation: typing 1s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(-4px); opacity: 1; }
}

.chatbot-input-area {
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.2);
}

#chatbot-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 10px 15px;
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

#chatbot-input:focus {
    border-color: var(--color-gold-light);
}

#chatbot-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.chatbot-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-gold-light);
    color: var(--color-dark-main);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.chatbot-send:hover {
    background: var(--color-gold-dark);
}

.chatbot-send svg {
    width: 20px;
    height: 20px;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .chatbot-container {
        bottom: 15px;
        right: 15px;
    }
    .chatbot-window {
        width: calc(100vw - 30px);
        height: calc(100vh - 120px);
        max-height: 600px;
    }
}
