@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Sinhala:wght@100..900&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
    scroll-padding-top: 106px;
}

body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    position: relative;
    color: var(--dark-text);
    overflow-x: hidden;
    line-height: 1.6;
    font-family: 'Poppins', sans-serif;
    background-color: var(--gray-bg);
}

/* ===== VARIABLES ===== */
:root {
    --primary-blue: #003366;
    --secondary-blue: #1a4d80;
    --accent-gold: #f1c40f;
    --bright-gold: #FFD700;
    --light-gold: #f9e79f;
    --dark-text: #222;
    --light-text: #f5f5f5;
    --gray-bg: #f8f9fa;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

/* ===== TOP RIBBON ===== */
.top-ribbon {
    background-color: var(--bright-gold);
    color: var(--primary-blue);
    padding: 8px 0;
    font-size: 0.85rem;
    font-weight: 500;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    height: 36px;
    display: flex;
    align-items: center;
    transform: translateY(0);
    transition: none;
}

.ribbon-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    cursor: pointer;
}

.contact-item:hover {
    color: var(--secondary-blue);
    transform: translateY(-1px);
}

.contact-item i {
    font-size: 0.9rem;
}

/* SIMPLIFIED SOCIAL LINKS */
.ribbon-social {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ribbon-social a {
    color: var(--primary-blue);
    font-size: 1rem;
    transition: var(--transition);
}

.ribbon-social a:hover {
    color: var(--secondary-blue);
    transform: translateY(-2px);
}

/* ===== NAVBAR ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 51, 102, 0.95);
    color: white;
    padding: 0.8rem 5%;
    position: fixed;
    top: 36px; /* Position below ribbon */
    left: 0;
    width: 100%;
    z-index: 10000;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: none;
}

/* Body spacing to account for fixed elements */
body {
    padding-top: 106px !important; /* 36px ribbon + 70px navbar */
    margin-top: 0 !important;
}

.homepage body {
    padding-top: 106px !important;
    margin-top: 0 !important;
}

/* ===== LOGO - FIXED ===== */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 60px;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white; /* Added white background */
    border-radius: 50%; /* Made circular */
    padding: 5px; /* Added padding */
    border: 2px solid var(--bright-gold); /* Added gold border */
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.3); /* Added shadow */
}

.logo-img img {
    max-height: 50px; /* Fixed size */
    max-width: 50px; /* Fixed size */
    height: auto;
    width: auto;
    object-fit: contain; /* Ensure logo fits */
}

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

.logo-text h1 {
    font-family: 'Merriweather', serif;
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(to right, #fff, var(--bright-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    margin-bottom: 3px;
}

.tagline {
    font-family: 'Noto Sans Sinhala', 'Merriweather', serif; /* Added Sinhala font */
    font-size: 1rem;
    color: var(--bright-gold);
    font-style: italic;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* ===== NAVIGATION ===== */
.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    font-weight: 500;
    border-radius: 4px;
    transition: var(--transition);
    position: relative;
    font-family: 'Poppins', sans-serif;
}

.nav-links li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--bright-gold);
}

/* Active navigation link styling */
.nav-links li a.active {
    color: var(--bright-gold) !important;
    background: rgba(255, 215, 0, 0.15) !important;
    font-weight: 600;
}

.nav-links li a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 3px;
    background: var(--bright-gold);
    border-radius: 2px;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--bright-gold);
    transition: width 0.3s ease;
}

.nav-links li a:hover::after {
    width: 70%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
    color: white;
    transition: var(--transition);
}

.menu-toggle:hover {
    color: var(--bright-gold);
}

/* ===== HOMEPAGE HERO ===== */
.homepage .hero {
    height: calc(100vh - 106px) !important; /* Fixed: Correct height calculation */
    margin-top: 0 !important;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    transform: translateY(0);
    transition: none;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
}

.video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 51, 102, 0.9), rgba(0, 51, 102, 0.8)), 
                url('../images/school-bg.jpg') center/cover;
    display: none;
    z-index: -3;
}

/* Text overlay for better readability */
.text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.2) 30%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.2) 70%,
        rgba(0, 0, 0, 0.5) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    z-index: 1;
}

.hero-title {
    font-family: 'Merriweather', serif;
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: white;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease-out 0.5s forwards;
}

.hero-subtitle {
    font-family: 'Noto Sans Sinhala', 'Merriweather', serif; /* Added Sinhala font */
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--bright-gold);
    font-style: italic;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease-out 1s forwards;
    letter-spacing: 1px;
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.95;
    font-family: 'Poppins', sans-serif;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease-out 1.5s forwards;
}

/* ===== PAGE HEADER (Non-home pages) ===== */
.page-header {
    background: linear-gradient(rgba(0, 51, 102, 0.9), rgba(0, 51, 102, 0.9)), 
                url('../images/page-header-bg.jpg') center/cover no-repeat;
    color: white;
    padding: 60px 0 40px;
    text-align: center;
    margin-top: 0;
    position: relative;
    top: 0;
}

.page-header h1 {
    font-family: 'Merriweather', serif;
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--bright-gold);
    font-weight: 700;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--bright-gold);
    color: var(--primary-blue);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
    border: 2px solid transparent;
    font-family: 'Poppins', sans-serif;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease-out 2s forwards;
    cursor: pointer;
}

.btn:hover {
    background: white;
    color: var(--primary-blue);
    border-color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

/* ===== CONTAINER ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
    padding: 100px 10%;
    text-align: center;
    scroll-margin-top: 106px;
}

.section-title {
    font-family: 'Merriweather', serif;
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--bright-gold);
    border-radius: 2px;
}

/* ===== MOTTO BOX ===== */
.motto-box {
    margin-top: 40px;
    padding: 30px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    font-size: 1.5rem;
    font-style: italic;
    box-shadow: var(--card-shadow);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    border-left: 5px solid var(--bright-gold);
    font-family: 'Merriweather', serif;
    transform: translateY(30px);
    opacity: 0;
    animation: fadeUp 0.8s ease-out forwards;
}

/* ===== PRINCIPAL SECTION ===== */
.principal-section {
    background-color: var(--gray-bg);
    padding: 100px 10%;
    scroll-margin-top: 106px;
}

.principal-content {
    display: flex;
    align-items: center;
    gap: 50px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    padding: 30px;
    transform: translateY(30px);
    opacity: 0;
    animation: fadeUp 0.8s ease-out forwards;
}

.principal-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.principal-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.principal-image:hover img {
    transform: scale(1.05);
}

.principal-text {
    flex: 2;
    text-align: left;
}

.principal-text h3 {
    font-family: 'Merriweather', serif;
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-weight: 700;
}

.principal-text p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}

/* ===== HOUSES GRID (Now Services Grid) ===== */
.house-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.house-card {
    padding: 40px 20px;
    border-radius: 12px;
    color: white;
    font-weight: bold;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transform: translateY(30px);
    opacity: 0;
    animation: fadeUp 0.8s ease-out forwards;
}

.house-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: -1;
}

.house-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.house-card h4 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-family: 'Merriweather', serif;
}

.house-red { background: linear-gradient(135deg, #d63031, #ff7675); }
.house-blue { background: linear-gradient(135deg, #0984e3, #74b9ff); }
.house-green { background: linear-gradient(135deg, #27ae60, #55efc4); }
.house-yellow { background: linear-gradient(135deg, #f1c40f, #f9e79f); color: #333; }

/* ===== NEWS GRID ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    transform: translateY(30px);
    opacity: 0;
    animation: fadeUp 0.8s ease-out forwards;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image {
    transform: scale(1.05);
}

.news-content {
    padding: 25px;
}

.news-content h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-weight: 600;
}

.news-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-date i {
    color: var(--bright-gold);
}

.news-content p {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.read-more {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--secondary-blue);
    gap: 10px;
}

/* ===== STATS SECTION ===== */
.stats-section {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    padding: 80px 10%;
    scroll-margin-top: 106px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 30px 20px;
    transform: translateY(30px);
    opacity: 0;
    animation: fadeUp 0.8s ease-out forwards;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--bright-gold);
    margin-bottom: 10px;
    font-family: 'Merriweather', serif;
}

.stat-label {
    font-size: 1.2rem;
    opacity: 0.9;
    font-family: 'Poppins', sans-serif;
}

/* ===== SCHOOL EMBLEM SECTION ===== */
.emblem-section {
    background-color: white;
    padding: 60px 10%;
    text-align: center;
    scroll-margin-top: 106px;
}

.emblem-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.emblem {
    width: 120px;
    height: 120px;
    margin-bottom: 15px;
}

.emblem img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.emblem-motto {
    font-family: 'Merriweather', serif;
    font-size: 1.2rem;
    color: var(--primary-blue);
    font-style: italic;
    max-width: 600px;
    line-height: 1.8;
    transform: translateY(30px);
    opacity: 0;
    animation: fadeUp 0.8s ease-out forwards;
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(to right, var(--primary-blue), var(--secondary-blue));
    color: white;
    padding: 40px 5%;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--bright-gold);
    margin-bottom: 20px;
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--bright-gold);
    transform: translateX(5px);
}

/* SIMPLIFIED FOOTER SOCIAL LINKS */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    color: white;
    font-size: 1.3rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--bright-gold);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Poppins', sans-serif;
}

/* ===== VIDEO CONTROLS ===== */
.video-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    gap: 10px;
    opacity: 0;
    transform: translateX(50px);
    animation: slideInLeft 0.8s ease-out 2.5s forwards;
}

.video-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1.2rem;
}

.video-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
    color: var(--bright-gold);
}

/* ===== CONTENT WRAPPER ===== */
.content-wrapper {
    padding: 40px 0;
    background: var(--gray-bg);
    min-height: calc(100vh - 300px);
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    background: white;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    margin-top: 0;
}

.breadcrumb ul {
    list-style: none;
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.breadcrumb ul li {
    display: flex;
    align-items: center;
}

.breadcrumb ul li:not(:last-child)::after {
    content: '/';
    margin-left: 10px;
    color: #999;
}

.breadcrumb a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--secondary-blue);
}

.breadcrumb .current {
    color: var(--bright-gold);
    font-weight: 500;
}

/* ===== NEWS FILTER ===== */
.news-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.filter-btn {
    padding: 8px 20px;
    background: var(--gray-bg);
    color: var(--primary-blue);
    border: 2px solid #ddd;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
}

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

.filter-btn.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

/* Category Badge */
.news-category {
    margin-bottom: 10px;
}

.category-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bright-gold);
    color: var(--primary-blue);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* No news message */
.no-news {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
}

/* News card filtering animation */
.news-card {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ===== ADMIN STYLES ===== */
.admin-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 20px;
}

.login-form {
    max-width: 400px;
    width: 100%;
    padding: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
}

.login-form h2 {
    text-align: center;
    color: var(--primary-blue);
    margin-bottom: 30px;
    font-family: 'Merriweather', serif;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--primary-blue);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--bright-gold);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.error-message {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid #dc3545;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    }
}

/* Add glow animation to hero subtitle */
.hero-subtitle {
    animation: fadeUp 1s ease-out 1s forwards, textGlow 2s ease-in-out infinite 2s;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .hero-title { 
        font-size: 2.8rem !important;
        line-height: 1.2 !important;
        margin-bottom: 10px !important;
    }
    .hero-subtitle { 
        font-size: 1.5rem !important;
        margin-bottom: 15px !important;
        line-height: 1.2 !important;
    }
    .hero-description {
        font-size: 1.1rem !important;
        line-height: 1.5 !important;
    }
    .principal-content { flex-direction: column; }
    .page-header h1 { font-size: 2.5rem; }
}

/* ===== MOBILE MENU FIXES ===== */
@media (max-width: 768px) {
    /* Top Ribbon - Hide email and social links on mobile */
    .top-ribbon .contact-item:last-child, /* Hide email */
    .top-ribbon .ribbon-social {
        display: none !important;
    }
    
    .top-ribbon .contact-item:first-child {
        margin: 0 auto; /* Center the phone number */
    }
    
    .ribbon-container {
        justify-content: center; /* Center content on mobile */
    }
    
    /* Mobile Menu */
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: fixed;
        top: 96px; /* 36px ribbon + 60px navbar */
        left: 0;
        background: rgba(0, 51, 102, 0.98);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        z-index: 999;
        max-height: calc(100vh - 96px);
        overflow-y: auto;
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links.active { 
        display: flex;
        animation: slideDown 0.3s ease-out;
    }
    
    .nav-links li {
        width: 100%;
        margin: 5px 0;
    }
    
    .nav-links li a {
        display: block;
        padding: 15px 20px;
        text-align: center;
        font-size: 1.1rem;
        border-radius: 8px;
        transition: all 0.3s ease;
        border-left: 3px solid transparent;
    }
    
    .nav-links li a:hover,
    .nav-links li a.active {
        background: rgba(255, 215, 0, 0.2);
        border-left-color: var(--bright-gold);
        transform: translateX(5px);
    }
    
    .nav-links li a::after {
        display: none;
    }
    
    .nav-links li a.active::after {
        display: none;
    }
    
    /* Menu Toggle Button */
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 5px;
        transition: var(--transition);
        font-size: 1.5rem;
    }
    
    .menu-toggle:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: rotate(90deg);
    }
    
    /* Body no scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
    
    /* Body spacing */
    body {
        padding-top: 96px !important;
    }
    
    .navbar {
        top: 36px;
        padding: 0.6rem 5%;
        height: 60px;
    }
    
    /* HERO SECTION FOR MOBILE */
    .homepage .hero {
        height: calc(100vh - 96px) !important;
        padding: 0 15px !important;
    }
    
    .hero-title {
        font-size: 2.2rem !important;
        line-height: 1.1 !important;
        margin-bottom: 10px !important;
    }
    
    .hero-subtitle {
        font-size: 1.1rem !important;
        margin-bottom: 15px !important;
        line-height: 1.3 !important;
    }
    
    .hero-description {
        font-size: 1rem !important;
        margin-bottom: 20px !important;
        line-height: 1.5 !important;
    }
    
    .page-header {
        padding: 50px 0 30px;
    }
    
    html {
        scroll-padding-top: 96px;
    }
}

@media (max-width: 576px) {
    .nav-links {
        top: 87px; /* 32px ribbon + 55px navbar */
        max-height: calc(100vh - 87px);
    }
    
    .nav-links li a {
        padding: 12px 15px;
        font-size: 1rem;
    }
    
    body {
        padding-top: 87px !important;
    }
    
    .navbar {
        top: 32px;
        padding: 0.5rem 4%;
        height: 55px;
    }
    
    .top-ribbon {
        height: 32px;
        padding: 6px 0;
    }
    
    /* HERO SECTION FOR SMALL MOBILE */
    .homepage .hero {
        height: calc(100vh - 87px) !important;
    }
    
    .hero-title {
        font-size: 1.8rem !important;
        line-height: 1.1 !important;
        margin-bottom: 8px !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 12px !important;
        line-height: 1.2 !important;
    }
    
    .hero-description {
        font-size: 0.9rem !important;
        margin-bottom: 15px !important;
        line-height: 1.4 !important;
    }
    
    .hero-content {
        padding: 0 15px !important;
        width: 100% !important;
    }
    
    .btn {
        padding: 10px 24px !important;
        font-size: 0.9rem !important;
    }
    
    .page-header {
        padding: 40px 0 25px;
    }
    
    html {
        scroll-padding-top: 87px;
    }
    
    .menu-toggle {
        width: 36px;
        height: 36px;
        font-size: 1.5rem;
    }
}

/* For very small screens (phones in portrait) */
@media (max-width: 400px) {
    .hero-title {
        font-size: 1.6rem !important;
        line-height: 1.1 !important;
    }
    
    .hero-subtitle {
        font-size: 0.9rem !important;
        line-height: 1.2 !important;
    }
    
    .hero-description {
        font-size: 0.85rem !important;
        line-height: 1.3 !important;
    }
    
    .btn {
        padding: 8px 20px !important;
        font-size: 0.85rem !important;
    }
    
    .logo-text h1 {
        font-size: 1rem !important;
        line-height: 1.1 !important;
    }
    
    .tagline {
        font-size: 0.65rem !important;
        line-height: 1 !important;
    }
}

/* Mobile Menu Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 96px;
    left: 0;
    width: 100%;
    height: calc(100vh - 96px);
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    backdrop-filter: blur(3px);
}

.mobile-menu-overlay.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Improve mobile touch targets */
.nav-links li a {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Additional News Styles */
.news-detail {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.news-header h1 {
    font-family: 'Merriweather', serif;
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-top: 15px;
    line-height: 1.3;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.news-date, .news-updated {
    color: #666;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-date i, .news-updated i {
    color: var(--bright-gold);
}

.featured-image {
    margin: 30px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

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

.news-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.news-body p {
    margin-bottom: 20px;
}

.news-body h2, .news-body h3, .news-body h4 {
    color: var(--primary-blue);
    margin-top: 30px;
    margin-bottom: 15px;
    font-family: 'Merriweather', serif;
}

.news-body ul, .news-body ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.news-body li {
    margin-bottom: 8px;
}

.related-news {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    align-self: start;
    position: sticky;
    top: 120px;
}

.related-news h3 {
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-family: 'Merriweather', serif;
    border-bottom: 2px solid var(--bright-gold);
    padding-bottom: 10px;
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-item {
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.related-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-item h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
}

.related-item a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition);
}

.related-item a:hover {
    color: var(--secondary-blue);
}

.related-date {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.no-news {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
}

.no-news i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.no-news h3 {
    color: #666;
    margin-bottom: 10px;
}

/* Admin specific styles */
.admin-actions {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary-blue);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .news-detail {
        grid-template-columns: 1fr;
    }
    
    .news-header h1 {
        font-size: 2rem;
    }
    
    .related-news {
        position: static;
    }
}

@media (max-width: 400px) {
    .nav-links li a {
        min-height: 45px;
        padding: 10px 15px;
    }
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: none;
    z-index: 998;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
    align-items: center;
    justify-content: center;
}

.back-to-top:hover {
    background-color: var(--bright-gold);
    color: var(--primary-blue);
    transform: translateY(-5px) scale(1.1);
}

/* ===== DROPDOWN MENU - REMOVED STYLES ===== */
/* All dropdown styles have been removed as requested */