:root {
    --primary-color: #0d1b2a;
    /* Deep Navy Theme */
    --secondary-color: #c9a227;
    /* Gold */
    --text-light: #f0f0f0;
    --text-dark: #333;
    --bg-light: #ffffff;
    --bg-off-white: #f4f4f9;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    margin-bottom: 20px;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.text-gold {
    color: var(--secondary-color);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--secondary-color);
    color: #fff;
    border-radius: 5px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 2px solid var(--secondary-color);
    cursor: pointer;
}

.btn:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

/* Header & Nav */
header {
    background-color: var(--primary-color);
    color: #fff;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    font-family: var(--font-heading);
    font-weight: bold;
    color: var(--secondary-color);
}

.logo img {
    height: 45px;
    width: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-color);
}

/* Dropdown */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    top: 100%;
    border-radius: 5px;
    overflow: hidden;
}

.dropdown-content a {
    color: var(--text-dark);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-transform: capitalize;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a:hover {
    background-color: var(--bg-off-white);
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
#home {
    height: 100vh;
    background: linear-gradient(rgba(13, 27, 42, 0.8), rgba(13, 27, 42, 0.6)), url('../images/hero_background.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin: 0;
    max-width: 100%;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* About Section */
#about {
    background-color: var(--bg-light);
}

.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Services Section */
#services {
    background-color: var(--bg-off-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom: 3px solid var(--secondary-color);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* Why Choose Us */
#why-choose-us {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    max-width: 100%;
}

#why-choose-us h2 {
    color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.feature-box {
    padding: 20px;
}

.feature-box i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* Mission & Vision */
#mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
    max-width: 100%;
}

.mv-block {
    padding: 100px 50px;
    color: #fff;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mv-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}


.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    margin-top: 50px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-item {
    display: flex;
    align-items: start;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 20px;
    margin-top: 5px;
}

.contact-form-wrapper {
    flex: 1.5;
    min-width: 300px;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 20px;
}

.checkbox-group input {
    width: auto;
    margin-top: 4px;
}

.map-container {
    width: 100%;
    height: 400px;
    margin-top: 50px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: #ccc;
    text-align: center;
    padding: 40px 20px;
}

footer p {
    margin-bottom: 10px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    section {
        padding: 50px 20px;
    }

    h2 {
        font-size: 2rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        background-color: var(--primary-color);
        width: 100%;
        height: calc(100vh - 70px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s;
    }

    .nav-links.active {
        right: 0;
    }

    .dropdown-content {
        position: static;
        background-color: transparent;
        box-shadow: none;
        text-align: center;
        display: none;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        color: #fff;
        padding-left: 0;
    }

    #mission-vision {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content h2 {
        font-size: 1.8rem;
        color: #fff;
        margin-bottom: 20px;
        line-height: 1.2;
    }

    .mv-block {
        padding: 60px 30px;
    }

    .contact-container {
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Hero Slider */
#home-slider {
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

/* Ensure content is above the background overlay */
.hero-content {
    position: relative;
    z-index: 3;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-content h2 {
    color: #fff;
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
    transform: translateY(30px);
    padding-bottom: 0;
}

.hero-content h2::after {
    display: none;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
    transform: translateY(30px);
}

.hero-content .btn {
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
    transform: translateY(30px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slider Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    /* Centering icon */
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.slider-btn:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.prev-btn {
    left: 30px;
}

.next-btn {
    right: 30px;
}

@media (max-width: 768px) {
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }
}

/* Community Section */
#community {
    background-color: var(--bg-off-white);
    padding-bottom: 100px;
}

.community-container {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    flex-direction: row-reverse;
}

.community-text {
    flex: 1;
    display: flex;
    /* Changed to flex to hold grid/stack of cards */
    flex-direction: column;
    gap: 25px;
}

.community-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.community-image img {
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border: 5px solid #fff;
}

/* Premium Impact Cards */
.impact-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border-top: 4px solid var(--secondary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.impact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.impact-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.impact-header i {
    font-size: 1.8rem;
    color: var(--secondary-color);
    background: rgba(201, 162, 39, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.impact-header h4 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.impact-card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    text-align: justify;
}

@media (max-width: 768px) {
    .community-container {
        flex-direction: column;
        gap: 40px;
    }

    .impact-card {
        padding: 25px;
    }
}

/* Gallery Section */
#gallery {
    background-color: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 350px;
    /* Uniform height */
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f9f9f9;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: var(--secondary-color);
    text-decoration: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .close-lightbox {
        top: 15px;
        right: 20px;
        font-size: 30px;
    }
}