/* ---------- General Reset and Variables ---------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Noto+Sans+Sinhala:wght@100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Yaldevi:wght@200..700&display=swap');


* {
    font-family: "Noto Sans Sinhala", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #f5b400;
    /* Gold/Yellow Accent */
    --secondary-color: #fff;
    /* White Text */
    --bg-dark: #0a0f1c;
    /* Dark Blue Background */
    --bg-mid: #10182f;
    /* Slightly lighter dark background */
    --text-light: #ccc;
    --text-light: #aaaaaa;
    /* Lighter grey for meta info */
    --latest-highlight: #4a400a;
    /* Subtle background for latest items */
}


body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--secondary-color);
    background: var(--bg-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* Utility Classes */
.section-title {
    color: var(--primary-color);
    margin-bottom: 40px;
    font-size: 2.2rem;
    text-align: center;
    font-weight: 700;
}

.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 25px;
    background: var(--primary-color);
    color: #000;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: background 0.3s;
}

.btn:hover {
    background: var(--secondary-color);
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    padding: 15px 0;
    transition: background 0.3s, padding 0.3s;
    z-index: 1000;
}

.navbar.scrolled {
    background: rgba(16, 24, 47, 0.95);
    /* Adjusted from black for better integration */
    backdrop-filter: blur(6px);
    padding: 10px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-area img {
    width: 80px;
    /* Reduced size slightly for better fit */
}

.logo-area h2 {
    font-size: 1.3rem;
    /* Reduced font size */
    color: var(--primary-color);
    line-height: 1.2;
}

.logo-area h2 span {
    font-size: 0.9rem;
    /* Reduced font size */
    color: var(--secondary-color);
    display: block;
}


/* ---------- Main Nav Menu ---------- */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    position: relative;
}

.nav-menu>li {
    position: relative;
}

.nav-menu li a {
    color: var(--secondary-color);
    font-weight: 500;
    transition: color 0.3s;
    padding: 8px 0;
    display: inline-block;
}

.nav-menu li a:hover {
    color: var(--primary-color);
}

.nav-menu li a i {
    font-size: 0.7rem;
    margin-left: 5px;
}

/* ---------- Language Dropdown ---------- */

/* Style the main language button */
.language-dropdown .lang-button {
    /* Optional: Center the icon and arrow if needed */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    /* Smaller padding for a button feel */
    border: 1px solid var(--secondary-color);
    /* Light border */
    border-radius: 5px;
}

.language-dropdown .lang-button:hover {
    border-color: var(--primary-color);
}

.lang-icon {
    font-size: 1.2rem;
    /* Make flag icons slightly larger */
    margin-right: 5px;
}

/* Style the dropdown menu for languages */
.lang-menu {
    /* Narrower width for the language menu */
    min-width: 150px;
    /* Adjust position if needed, e.g., to align right for better visual balance */
    left: auto;
    right: 0;
}

.lang-menu li a {
    /* Adjust padding for the menu items */
    padding: 8px 15px;
    /* Ensure the icon and text are aligned */
    display: flex;
    align-items: center;
}

.lang-menu li a .lang-icon {
    margin-right: 8px;
    font-size: 1rem;
    /* Flag icon size in dropdown */
}

/* Keep the existing hover behavior for the dropdown */
.dropdown:hover>.dropdown-menu {
    display: block;
}

/* ---------- Dropdown Menu ---------- */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-mid);
    padding: 10px 0;
    min-width: 220px;
    border-top: 3px solid var(--primary-color);
    border-radius: 0 0 5px 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--secondary-color);
    font-size: 0.95rem;
    white-space: nowrap;
    /* Prevent breaking of long menu items */
}

.dropdown-menu li a:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
}

/* Show dropdown on hover (Desktop) */
.dropdown:hover>.dropdown-menu {
    display: block;
}

/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    padding-top: 80px;
    /* Account for fixed navbar */
}

#bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(50%);
    /* Increased filter for better text readability */
    z-index: -1;
}

.hero-content {
    z-index: 1;
    animation: fadeIn 2s ease-in-out;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero p {
    margin-top: 10px;
    font-size: 1.3rem;
    font-weight: 300;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Section Styling (General) ---------- */
.section-padding {
    padding: 80px 20px;
}

/* ---------- About Section (Mini-Introduction) ---------- */
.about {
    background: var(--bg-mid);
    text-align: center;
}

.about p {
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 20px auto;
    font-size: 1.1rem;
}

/* ---------- Vision & Mission Section ---------- */
.vision-mission {
    background: var(--bg-dark);
    text-align: center;
}

.vm-grid {
    display: flex;
    gap: 30px;
    max-width: 1000px;
    margin: auto;
}

.vm-card {
    flex: 1;
    background: var(--bg-mid);
    padding: 30px;
    border-radius: 12px;
    border-bottom: 5px solid var(--primary-color);
    text-align: left;
}

.vm-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vm-card h3 i {
    color: var(--secondary-color);
}

.vm-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Mobile adjustment for vision-mission */
@media (max-width: 900px) {
    .vm-grid {
        flex-direction: column;
    }
}

/* ---------- Leadership Messages Section (New) ---------- */
.leadership {
    background: var(--bg-dark);
    /* Use the main dark background */
    text-align: center;
}

.leader-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    max-width: 1100px;
    margin: auto;
}

.leader-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--bg-mid);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
    border-top: 5px solid var(--primary-color);
    /* Accent top border */
    /* Make cards visible by default */
    opacity: 1;
    transform: translateX(0);
}

.leader-card:hover {
    transform: translateY(-5px);
}

.leader-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #444;
    /* Placeholder background */
    margin-bottom: 20px;
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, 0.1);
}

.leader-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leader-content .role {
    display: block;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.leader-content .name {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.leader-content .quote {
    color: var(--text-light);
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 25px;
    padding: 0 10px;
    position: relative;
}

.leader-content .quote::before,
.leader-content .quote::after {
    content: '\f10d';
    /* Font Awesome Left Quote */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: rgba(245, 180, 0, 0.3);
    font-size: 2rem;
    position: absolute;
    top: -10px;
    left: 0;
}

.leader-content .quote::after {
    content: '\f10e';
    /* Font Awesome Right Quote */
    left: unset;
    right: 0;
    top: unset;
    bottom: -15px;
}

.leader-content .read-more-btn {
    background: var(--primary-color);
    color: var(--bg-dark);
    font-size: 0.9rem;
    padding: 8px 18px;
    margin-top: 15px;
}

/* Optional: Add animation for when cards come into view */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation class for when cards become visible */
.leader-card.animate-visible {
    animation: slideInFromRight 0.8s ease-out;
}

/* Responsive adjustments for Leadership section */
@media (max-width: 900px) {

    /* Ensure the mobile stacking still animates well, perhaps from the bottom/up */
    .leader-grid {
        flex-direction: column;
    }

    .leader-card {
        margin-bottom: 20px;
        /* Reset horizontal slide for mobile, use a slight vertical lift */
        transform: translateY(30px);
    }

    .leader-card.animate-visible {
        transform: translateY(0);
    }

    /* Reset Commissioner card delay on mobile so both slide in cleanly */
    .leader-card.commissioner-card {
        transition-delay: 0s;
    }
}

/* Responsive adjustments for Leadership section */
@media (max-width: 900px) {
    .leader-grid {
        flex-direction: column;
        /* Stack cards vertically on smaller screens */
    }

    .leader-card {
        margin-bottom: 20px;
    }

    .leader-content .name {
        font-size: 1.5rem;
    }

    .leader-content .quote {
        font-size: 1rem;
    }
}


/* --- General Section Styling --- */
.news-notices {
    background: var(--bg-mid);
}

.section-padding {
    padding: 60px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 40px;
}

/* --- Layout Grid for Main Sections --- */
.news-container {
    display: grid;
    grid-template-columns: 3fr 2fr;
    /* News section is slightly wider than notices container */
    gap: 40px;
}

/* ... (all other CSS rules you provided previously) ... */
.news-section,
.notices-split-container {
    padding: 20px;
    border-radius: 12px;
    background: var(--bg-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.news-section h3,
.notices-split-container h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
}

/* --- News Card Grid --- */
.news-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.news-card {
    background: #333;
    /* Slightly darker background for the card */
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 15px;
}

.news-card h4 a {
    color: var(--secondary-color);
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.news-card h4 a:hover {
    color: var(--primary-color);
}

.news-card .summary {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.news-card.latest {
    outline: 3px solid var(--primary-color);
    /* Stronger highlight for the absolute latest item */
    background: var(--latest-highlight);
}

/* --- Split Notices Container --- */
.notices-split-container {
    display: grid;
    grid-template-rows: auto auto;
    /* Stack the two notice sections */
    gap: 20px;
    padding: 0;
    /* Remove padding as it's added to sub-sections */
    background: none;
    /* Remove background from parent container */
    box-shadow: none;
}

.notices-section {
    padding: 20px;
    border-radius: 12px;
    background: var(--bg-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    /* Re-add shadow to the sub-sections */
}

/* --- List Styling for Special Notices --- */
.notice-list {
    list-style: none;
    padding: 0;
}

.notice-item {
    padding: 12px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.notice-item:last-child {
    border-bottom: none;
}

.notice-item a {
    color: var(--secondary-color);
    font-weight: 600;
    display: block;
    transition: color 0.3s;
}

.notice-item a:hover {
    color: var(--primary-color);
}

.notice-meta {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 5px;
    font-weight: 300;
}

.notice-item.latest {
    background: var(--latest-highlight);
    padding: 15px 10px;
    border-radius: 6px;
    border: 1px solid var(--primary-color);
    margin: 5px 0;
}

/* --- Tender Notice Styling --- */
.tender-notice-card {
    background: rgba(245, 180, 0, 0.1);
    border-left: 5px solid var(--primary-color);
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    transition: background 0.3s;
}

.tender-notice-card:hover {
    background: rgba(245, 180, 0, 0.2);
}

.tender-notice-card a {
    color: var(--primary-color);
    font-weight: 700;
    display: block;
    text-decoration: none;
}

.tender-notice-card p {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-top: 5px;
}

.tender-notice-card.latest {
    border: 1px solid var(--primary-color);
    background: rgba(245, 180, 0, 0.3);
}


/* --- Button Styling --- */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--bg-dark);
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: background 0.3s;
    text-align: center;
    margin-top: 20px;
}

.btn:hover {
    background: #ffcc33;
}

.btn-full {
    width: 100%;
}

.btn-small {
    width: auto;
    font-size: 0.9rem;
}

/* --- Mobile adjustment for news-notices --- */
@media (max-width: 1024px) {
    .news-container {
        grid-template-columns: 1fr;
        /* Stack on smaller screens */
    }
}


/* ---------- Services Section (Expanded) ---------- */
.services {
    background: var(--bg-dark);
    text-align: center;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-mid);
    border-radius: 12px;
    padding: 30px 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.service-card img {
    width: 50%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(245, 180, 0, 0.1);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.service-card .btn {
    padding: 8px 15px;
    font-size: 0.9rem;
    margin-top: 15px;
}


/* ---------- Footer ---------- */
.footer {
    background: linear-gradient(to bottom, #10182f, #0a0f1c96);
    /* your image path */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 40px 20px;
    text-align: center;
    color: white;
    /* optional - for contrast */
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 30px;
    text-align: left;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-col h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
    border-bottom: 2px solid rgba(245, 180, 0, 0.3);
    padding-bottom: 5px;
}

.footer-info p {
    color: var(--text-light);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.footer-info i {
    margin-right: 8px;
    color: var(--primary-color);
}

/* Quick Links / Other Websites */
.footer-links ul {
    list-style: none;
}

.footer-links ul li a {
    display: block;
    padding: 5px 0;
    color: var(--text-light);
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-social {
    margin-top: 20px;
}

.footer-social a {
    color: white;
    margin: 0 10px;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    font-size: 0.9rem;
    text-align: center;
}

/* ---------- Mobile Menu and Responsiveness ---------- */
.menu-toggle {
    display: none;
    color: white;
    font-size: 1.8rem;
    /* Increased size */
    cursor: pointer;
}

@media (max-width: 1024px) {
    .footer-container {
        justify-content: center;
        text-align: center;
    }

    .footer-col {
        min-width: 100%;
    }

    .footer-col h3 {
        text-align: center;
    }

    .footer-links ul {
        padding: 0;
    }

    .footer-links ul li a {
        padding: 5px 0;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .logo-area h2 {
        font-size: 1.2rem;
    }

    .logo-area h2 span {
        font-size: 0.8rem;
    }

    /* Mobile Nav */
    .nav-menu {
        display: none;
        flex-direction: column;
        background: rgba(16, 24, 47, 0.98);
        position: absolute;
        right: 0;
        top: 70px;
        /* Adjusted to sit below the shrunk navbar */
        width: 250px;
        padding: 20px;
        text-align: left;
        border-radius: 0 0 5px 5px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu li a {
        padding: 10px 0;
        display: block;
    }

    /* Mobile dropdown */
    .dropdown-menu {
        position: static;
        background: rgba(20, 25, 40, 0.9);
        border: none;
        box-shadow: none;
        padding-left: 15px;
        min-width: unset;
        border-top: none;
    }

    /* Show mobile dropdown on click */
    .dropdown.active>.dropdown-menu {
        display: block;
    }

    .menu-toggle {
        display: block;
    }
}