:root {
    --primary: #1e3a8a;
    --primary-dark: #1e1b4b;
    --accent: #3b82f6;
    --bg-light: #f8fafc;
    --text-main: #334155;
    --border-color: #e2e8f0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-dark);
    color: #e2e8f0;
    font-size: 0.8rem;
    padding: 0.5rem 0;
}

.top-bar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar span {
    margin-right: 1.5rem;
}

/* Header */
.main-header {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-text h1 {
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: 700;
    white-space: nowrap;
}

.logo-text p {
    font-size: 0.65rem;
    color: #64748b;
    line-height: 1.2;
}

/* Navbar Links */
.navbar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-item {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.8rem;
    padding: 0.4rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-item:hover, .nav-item.active {
    color: var(--primary);
    background-color: #eff6ff;
}

.nav-btn-apply {
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
}

/* Nested Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background: none;
    border: none;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    padding: 0.4rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.dropdown-toggle:hover {
    color: var(--primary);
    background-color: #eff6ff;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 240px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    z-index: 10;
    top: 100%;
    left: 0;
    padding: 0.5rem 0;
    list-style: none;
}

.dropdown.show .dropdown-menu {
    display: block;
}

.nested-dropdown {
    position: relative;
}

.nested-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

.nested-toggle:hover {
    background-color: #f1f5f9;
    color: var(--primary);
}

.nested-menu {
    display: none;
    background-color: #f8fafc;
    padding-left: 0;
    list-style: none;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.nested-menu.show {
    display: block;
}

.nested-menu li a {
    padding: 0.4rem 1rem 0.4rem 1.5rem;
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #475569;
    text-decoration: none;
}

.nested-menu li a:hover {
    background-color: #eff6ff;
    color: var(--primary);
}

/* Hero Section */
.hero-section {
    position: relative;
    color: white;
    padding: 3rem 0;
    overflow: hidden;
}

/* Background Video Graphic */
.hero-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

/* Dark Overlay to make text stand out */
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.85) 0%, rgba(30, 27, 75, 0.9) 100%);
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content .badge {
    background: rgba(255,255,255,0.15);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin: 1rem 0;
    line-height: 1.2;
}

.hero-content p {
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn-primary, .btn-secondary {
    padding: 0.65rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: white;
    color: var(--primary);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.4);
}

/* Video Box */
.portal-card-box {
    background: #0f172a;
    border-radius: 8px;
    border: 1px solid #1e293b;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.container-header {
    background: #1e293b;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #f8fafc;
    border-bottom: 1px solid #334155;
}

.video-placeholder-box {
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem;
    border-radius: 6px;
    overflow: hidden;
    background: #000;
}

/* Metrics Section */
.metrics-section {
    margin-top: -2rem;
    position: relative;
    z-index: 10;
    margin-bottom: 2rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.metric-card {
    background: white;
    padding: 1.25rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border-color);
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.metric-icon.blue { background: #eff6ff; color: #2563eb; }
.metric-icon.indigo { background: #eef2ff; color: #4f46e5; }
.metric-icon.green { background: #ecfdf5; color: #059669; }

.metric-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.metric-card p {
    font-size: 0.8rem;
    color: #64748b;
}

/* Notices */
.notices-section {
    margin-bottom: 3rem;
}

.notices-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.notice-box {
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.notice-header {
    padding: 1rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
}

.circular-bg { background-color: var(--primary); }
.notice-bg { background-color: #334155; }

.notice-header span {
    font-size: 0.75rem;
    background: rgba(255,255,255,0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.notice-body {
    padding: 1rem;
}

.notice-item {
    padding: 0.75rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tag {
    font-size: 0.65rem;
    background: #eff6ff;
    color: #2563eb;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    width: fit-content;
    font-weight: 600;
}

.green-tag {
    background: #ecfdf5;
    color: #059669;
}

.notice-item p {
    font-size: 0.85rem;
    font-weight: 500;
}

.date {
    font-size: 0.7rem;
    color: #94a3b8;
}

/* Static View */
.static-content-wrapper {
    background: white;
    margin: 2rem auto;
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.static-content-wrapper h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f1f5f9;
}

/* Gallery */
.gallery-container {
    padding: 2rem 1rem;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title h2 {
    color: var(--primary);
    font-size: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.gallery-card {
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.gallery-img-display {
    height: 160px;
    background: #0f172a;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-img-display img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-card-info {
    padding: 0.75rem;
}

.gallery-card-info h4 {
    font-size: 0.85rem;
    font-weight: 600;
}

.gallery-card-info p {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* Footer */
.portal-footer {
    background-color: #0f172a;
    color: #cbd5e1;
    padding: 3rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
}

.portal-footer h4 {
    color: white;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.portal-footer ul {
    list-style: none;
}

.portal-footer ul li {
    margin-bottom: 0.5rem;
}

.portal-footer ul a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
}

.portal-footer ul a:hover {
    color: white;
}

.portal-footer p {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: #94a3b8;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.75rem;
    color: #64748b;
}

.hidden {
    display: none !important;
}

@media (max-width: 900px) {
    .hero-grid, .notices-grid, .metrics-grid, .footer-grid, .gallery-grid {
        grid-template-columns: 1fr;
    }
    .navbar {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
}

