/* Color Palette */
:root {
    --primary-navy: #003366;
    --secondary-blue: #004080;
    --light-blue-bg: #E8F0FE;
    --orange-accent: #FF6600;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --text-dark: #333333;
    --text-light: #666666;
    --success-green: #28a745;
    --danger-red: #dc3545;
}

/* 1. Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

/* 2. .container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 3. .gov-bar */
.gov-bar {
    background: #333333;
    color: var(--white);
    font-size: 13px;
    padding: 5px 0;
}
.gov-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.accessibility-controls button {
    background: transparent;
    border: 1px solid var(--white);
    color: var(--white);
    padding: 2px 6px;
    margin-left: 5px;
    cursor: pointer;
    font-size: 12px;
}
.accessibility-controls button:hover {
    background: rgba(255,255,255,0.2);
}

/* 4. .main-header */
.main-header {
    background: var(--white);
    border-bottom: 3px solid var(--primary-navy);
    padding: 15px 0;
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}
.logo-circle {
    width: 70px;
    height: 70px;
    background: var(--primary-navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    font-size: 16px;
}
.header-text h1 {
    color: var(--primary-navy);
    font-size: 22px;
    margin: 0;
}
.header-text p {
    color: var(--orange-accent);
    font-size: 16px;
    margin: 2px 0;
}
.header-text small {
    color: var(--text-light);
}
.emblem-circle {
    width: 60px;
    height: 60px;
    border: 2px solid var(--orange-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-navy);
}

/* 5. .main-nav */
.main-nav {
    background: var(--primary-navy);
    padding: 0;
}
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-menu > li > a {
    color: var(--white);
    padding: 15px 20px;
    display: block;
    text-decoration: none;
}
.nav-menu > li > a:hover {
    background: var(--secondary-blue);
}
.dropdown {
    position: relative;
}
.dropdown-menu {
    display: none;
    position: absolute;
    background: var(--white);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    min-width: 220px;
    z-index: 100;
    list-style: none;
    padding: 0;
    top: 100%;
    left: 0;
}
.dropdown:hover .dropdown-menu {
    display: block;
}
.dropdown-menu a {
    color: var(--text-dark);
    padding: 10px 20px;
    display: block;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
}
.dropdown-menu a:hover {
    background: var(--light-blue-bg);
}
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    padding: 15px;
    cursor: pointer;
}

/* 6. .notification-ticker */
.notification-ticker {
    background: var(--orange-accent);
    color: var(--white);
    padding: 10px 0;
    overflow: hidden;
}
.ticker-content {
    display: inline-block;
    white-space: nowrap;
    animation: tickerScroll 30s linear infinite;
}
@keyframes tickerScroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* 7. .hero-slider */
.hero-slider {
    position: relative;
    height: 400px;
    overflow: hidden;
}
.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.slide.active {
    opacity: 1;
}
.slide-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,51,102,0.85), rgba(0,51,102,0.6));
}
.slide-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    text-align: center;
    padding-top: 120px;
}
.slide h2 {
    font-size: 40px;
    margin-bottom: 15px;
}
.slide p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* 8. .quick-links */
.quick-links {
    padding: 60px 0;
    background: var(--white);
}
.links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.link-card {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.link-card i {
    font-size: 40px;
    color: var(--primary-navy);
    margin-bottom: 15px;
}
.link-card h3 {
    color: var(--primary-navy);
}

/* 9. .updates-section */
.updates-section {
    padding: 60px 0;
    background: var(--light-gray);
}
.updates-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.notifications-list {
    max-height: 300px;
    overflow-y: auto;
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 8px;
}
.notification-item {
    padding: 12px;
    border-bottom: 1px solid #eee;
}
.notification-date {
    color: var(--orange-accent);
    font-size: 13px;
    margin-bottom: 5px;
}
.notification-text {
    color: var(--text-dark);
}

/* 10. .stats-section */
.stats-section {
    background: var(--primary-navy);
    color: var(--white);
    padding: 50px 0;
}
.stats-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.stat-item {
    text-align: center;
    min-width: 200px;
}
.stat-number {
    font-size: 40px;
    font-weight: bold;
    color: var(--orange-accent);
}
.stat-label {
    font-size: 16px;
    margin-top: 10px;
}

/* 11. Footer */
.main-footer .footer-top {
    background: #222;
    color: #ccc;
    padding: 40px 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.footer-col h3 {
    color: var(--white);
    border-bottom: 2px solid var(--orange-accent);
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.footer-col p {
    margin-bottom: 15px;
}
.footer-col ul {
    list-style: none;
    padding: 0;
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col a {
    color: #ccc;
    text-decoration: none;
}
.footer-col a:hover {
    color: var(--orange-accent);
}
.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background: #444;
    border-radius: 50%;
    color: var(--white);
    line-height: 35px;
    text-align: center;
    margin-right: 8px;
}
.social-links a:hover {
    background: var(--orange-accent);
}
.footer-bottom {
    background: #111;
    padding: 15px 0;
    text-align: center;
    font-size: 13px;
    color: #888;
}

/* 12. Result Search Page */
.search-section {
    padding: 60px 0;
}
.breadcrumb {
    margin-bottom: 20px;
    color: var(--text-light);
}
.breadcrumb a {
    color: var(--primary-navy);
    text-decoration: none;
}
.search-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.search-card h2 {
    color: var(--primary-navy);
    margin-bottom: 25px;
    text-align: center;
}
.radio-group {
    display: flex;
    gap: 20px;
    justify-content: center;
}
.btn-primary {
    background: var(--primary-navy);
    color: var(--white);
    padding: 14px;
    width: 100%;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}
.btn-primary:hover {
    background: var(--secondary-blue);
}

/* 13. Result Display Page */
.result-section {
    padding: 40px 0;
}
.student-info {
    background: var(--light-blue-bg);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.info-item {
    display: flex;
    gap: 10px;
}
.info-item label {
    font-weight: bold;
    color: var(--primary-navy);
    min-width: 120px;
}
.marks-table {
    width: 100%;
    border-collapse: collapse;
}
.marks-table th {
    background: var(--primary-navy);
    color: var(--white);
    padding: 12px;
    text-align: center;
    border: 1px solid #ccc;
}
.marks-table td {
    padding: 10px;
    text-align: center;
    border: 1px solid #eee;
}
.marks-table tbody tr:hover {
    background: #f9f9f9;
}
.status-pass {
    color: var(--success-green);
    font-weight: bold;
}
.status-fail {
    color: var(--danger-red);
    font-weight: bold;
}
.result-summary {
    background: var(--white);
    border: 2px solid var(--primary-navy);
    padding: 25px;
    border-radius: 8px;
}

/* 14. Responsive */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    .nav-menu {
        flex-direction: column;
        display: none;
        width: 100%;
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-menu > li > a {
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: #f5f5f5;
    }
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .header-right {
        display: none;
    }
    .hero-slider {
        height: 300px;
    }
    .slide-content {
        padding-top: 60px;
    }
    .slide h2 {
        font-size: 28px;
    }
    .links-grid {
        grid-template-columns: 1fr 1fr;
    }
    .updates-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid, .stats-grid {
        grid-template-columns: 1fr;
    }
    .info-grid {
        grid-template-columns: 1fr;
    }
    .marks-table {
        font-size: 12px;
    }
    .marks-table th, .marks-table td {
        padding: 5px;
    }
}
@media (max-width: 480px) {
    .links-grid {
        grid-template-columns: 1fr;
    }
}

/* 15. Print styles */
@media print {
    .gov-bar, .main-header, .main-nav, .main-footer, .breadcrumb, .no-print, button {
        display: none !important;
    }
    body {
        padding: 0;
        background: white;
    }
    .container {
        width: 100%;
        max-width: none;
        padding: 0;
    }
    .result-section {
        padding: 0;
    }
    .marks-table th {
        color: black !important;
        background: #f0f0f0 !important;
        -webkit-print-color-adjust: exact;
    }
}
