:root {
    --gov-blue: #003366;
    --gov-blue-dark: #002244;
    --gov-light-blue: #0055aa;
    --gov-gold: #ffcc00;
    --accent-color: #f1c40f;
    --text-dark: #333;
    --text-light: #fff;
    --bg-light: #f4f7f6;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Noto Sans Sinhala', sans-serif;
    line-height: 1.8;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
    font-size: 18px;
    /* Increased base font size */
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* === TOP BAR === */
.top-bar {
    background-color: var(--gov-blue-dark);
    color: var(--text-light);
    padding: 12px 0;
    font-size: 13px;
    border-bottom: 3px solid var(--gov-gold);
}

.top-bar-content {
    display: flex;
    justify-content: flex-end;
    gap: 25px;
    flex-wrap: wrap;
    align-items: center;
}

.language-switcher {
    display: flex;
    gap: 12px;
    margin-right: auto;
    /* Push contacts to the right, language to the left */
}

.language-switcher a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    padding: 3px 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: var(--transition);
}

.language-switcher a:hover,
.language-switcher a.active {
    background: var(--gov-gold);
    color: #000;
    border-color: var(--gov-gold);
}

.top-bar-content span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

/* === HEADER === */
.main-header {
    background-color: #fff;
    padding: 40px 0;
    /* More breathing room for larger logos */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--gov-blue);
    /* Stronger professional header identity */
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-left,
.logo-right {
    flex-shrink: 0;
    width: 180px;
    /* Give enough room for bigger logos */
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-left img,
.logo-right img {
    height: 160px;
    /* Significantly larger */
    max-width: 100%;
    object-fit: contain;
    transition: var(--transition);
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
    /* Premium touch */
}

.logo-left img:hover,
.logo-right img:hover {
    transform: scale(1.05);
}

.dept-names h2 {
    color: var(--gov-blue);
    font-size: 40px;
    /* Much larger */
    margin-bottom: 10px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.dept-names h3 {
    color: #666;
    font-size: 24px;
    /* Larger */
    margin-bottom: 10px;
    font-weight: 500;
}

.dept-names h1 {
    color: var(--gov-light-blue);
    font-size: 22px;
    /* Larger */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
}

/* === NAVIGATION === */
.main-nav {
    background-color: var(--gov-blue);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.nav-toggle {
    display: none;
    /* Mobile Only */
    color: white;
    text-align: center;
    padding: 15px;
    font-weight: 700;
    cursor: pointer;
    background: var(--gov-blue-dark);
}

.nav-list {
    display: flex;
    list-style: none;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-list li a {
    color: var(--text-light);
    text-decoration: none;
    padding: 15px 25px;
    display: block;
    font-size: 18px;
    /* Primary language */
    font-weight: 800;
    transition: var(--transition);
    position: relative;
    text-align: center;
    line-height: 1.2;
}

.nav-list li a span {
    display: block;
    font-size: 12px;
    /* Secondary languages */
    font-weight: 500;
    opacity: 0.8;
    margin-top: 4px;
}

.nav-list li a:hover,
.nav-list li a.active {
    background-color: var(--gov-blue-dark);
    color: var(--gov-gold);
}

/* === HERO & SLIDER === */
.hero-section {
    position: relative;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background: #111;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    /* Keep faces in view */
    filter: brightness(0.85);
}

.news-ticker-overlay {
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 15px 0;
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-top: 3px solid var(--gov-gold);
}

.ticker-container {
    display: flex;
    align-items: center;
}

.ticker-label {
    background-color: var(--gov-gold);
    color: #000;
    padding: 10px 25px;
    font-weight: 800;
    font-size: 16px;
    /* Larger label */
    margin-right: 30px;
    border-radius: 4px;
    white-space: nowrap;
}

.ticker-text {
    flex-grow: 1;
    font-size: 18px;
    /* Larger ticker text */
    font-weight: 600;
}

/* === TOP BAR SOCIAL === */
.top-social {
    display: flex;
    gap: 15px;
    margin-left: 30px;
    padding-left: 30px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.top-social a {
    color: var(--text-light);
    font-size: 14px;
    transition: var(--transition);
}

.top-social a:hover {
    color: var(--gov-gold);
    transform: translateY(-2px);
}

/* === ENHANCED NEWS TICKER === */
.news-ticker-overlay {
    background: rgba(5, 16, 32, 0.9);
    backdrop-filter: blur(15px);
    color: #fff;
    padding: 15px 0;
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: 100;
    border-top: 4px solid var(--gov-gold);
}

/* === SERVICES SECTION === */
.services-overview {
    padding: 100px 0;
    text-align: center;
}

.section-header {
    margin-bottom: 60px;
}

.section-header p {
    color: #666;
    font-size: 20px;
    margin-top: -30px;
    font-weight: 500;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background: #fff;
    padding: 50px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out forwards;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gov-blue);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.service-card:hover::before {
    height: 100%;
    z-index: -1;
    opacity: 0.05;
}

.service-card i {
    font-size: 45px;
    color: var(--gov-blue);
    margin-bottom: 30px;
    display: block;
    transition: var(--transition);
}

.service-card:hover i {
    color: var(--gov-gold);
    transform: scale(1.1);
}

.service-card h4 {
    color: var(--gov-blue);
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 800;
}

.service-card p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

/* === MAIN CONTENT === */
.main-content {
    background: #fff;
    padding: 80px 60px;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    margin-top: 50px;
    margin-bottom: 80px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out forwards;
}

.main-content img {
    max-width: 100%;
    border-radius: 15px;
    object-fit: cover;
    object-position: center top;
    /* Ensure faces stay visible */
}

.content-title {
    color: var(--gov-blue);
    font-size: 36px;
    /* High visibility title */
    margin-bottom: 40px;
    padding-bottom: 12px;
    border-bottom: 5px solid var(--gov-gold);
    display: inline-block;
    font-weight: 800;
}

.content-row {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 50px;
}

/* === FOOTER === */
footer {
    background-color: #051020;
    color: #e0e0e0;
    padding: 80px 0 0 0;
}

.footer-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 60px;
}

.footer-col h4 {
    color: var(--gov-gold);
    font-size: 22px;
    /* Larger footer titles */
    margin-bottom: 30px;
    text-transform: uppercase;
    font-weight: 800;
}

.footer-list {
    list-style: none;
}

.footer-list li {
    margin-bottom: 15px;
}

.footer-list li a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 16px;
    /* Larger footer links */
    transition: var(--transition);
}

.footer-list li a:hover {
    color: #fff;
    padding-left: 8px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.gallery-grid img {
    width: 100%;
    height: 70px;
    object-fit: cover;
    object-position: top center;
    /* Focus on faces */
    border-radius: 5px;
}

.copyright-bar {
    background-color: #020810;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === PHOTO HIGHLIGHTS GALLERY === */
.photo-highlights {
    padding-bottom: 80px;
}

.featured-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 400px;
    /* Increased height for better framing */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    /* Keep faces at the top visible */
    transition: transform 0.6s ease;
}

.gallery-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 51, 102, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-card .overlay i {
    color: var(--gov-gold);
    font-size: 30px;
    transform: scale(0.5);
    transition: var(--transition);
}

.gallery-card:hover img {
    transform: scale(1.1);
}

.gallery-card:hover .overlay {
    opacity: 1;
}

.gallery-card:hover .overlay i {
    transform: scale(1);
}

.btn-more {
    display: inline-block;
    padding: 15px 40px;
    background: var(--gov-blue);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
    border: 2px solid var(--gov-blue);
}

.btn-more:hover {
    background: transparent;
    color: var(--gov-blue);
    transform: translateX(10px);
}

/* === RESPONSIVE (MOBILE) === */
@media (max-width: 992px) {
    .header-inner {
        flex-direction: column;
        gap: 20px;
    }

    .dept-names {
        padding: 0;
    }

    .dept-names h2 {
        font-size: 24px;
    }

    .content-row {
        grid-template-columns: 1fr;
    }

    .footer-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .featured-gallery {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .top-bar-content {
        justify-content: center;
        text-align: center;
        gap: 10px;
    }

    .top-social {
        border: none;
        margin: 10px 0 0 0;
        padding: 0;
    }

    .nav-toggle {
        display: block;
        /* Show menu toggle */
    }

    .nav-list {
        display: none;
        /* Hide menu items */
        flex-direction: column;
        background-color: var(--gov-blue-dark);
    }

    .nav-list.show {
        display: flex;
    }

    .nav-list li a {
        text-align: center;
        padding: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .hero-slider {
        height: 300px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .main-content {
        padding: 40px 20px;
    }

    .footer-row {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .gallery-grid {
        justify-content: center;
        max-width: 300px;
        margin: 0 auto;
    }

    .copyright-bar .container {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {

    .logo-left img,
    .logo-right img {
        height: 110px;
        /* Bigger on mobile too */
    }

    .dept-names h2 {
        font-size: 20px;
    }

    .dept-names h3 {
        font-size: 14px;
    }

    .hero-slider {
        height: 200px;
    }
}