/* General & Reset */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&display=swap'); /* Added Outfit font */

:root {
    --primary-color: #007bff; /* Example, adjust as needed */
    --text-dark: #000;
    --text-light: #fff;
    --glass-bg: rgba(255, 255, 255, 0.15); /* Main glassmorphism background */
    --glass-border: rgba(255, 255, 255, 0.18); /* Glassmorphism border */
    --shadow-light: rgba(0, 0, 0, 0.1);
    --nav-link-color: #555; /* Default light background nav link color */
    --nav-link-hover-glow: rgba(0, 123, 255, 0.5); /* Blue glow */
    --nav-link-dark-color: #fff; /* Dark background nav link color */
    --button-bg-light: #f0f2f5;
    --button-text-light: #555;
    --button-bg-dark: #6a5acd; /* Example for JOIN button */
    --button-text-dark: #fff;

    /* NEW: Variables for Hamburger Menu Bars */
    --hamburger-bar-color: var(--text-dark); /* Default bar color */
    --hamburger-bar-dark-theme-color: var(--text-light); /* Bar color in dark theme */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif; /* Keep Inter for body text */
    line-height: 1.6;
    color: var(--text-light); /* Default body text color, for elements not in cards */
    /* Default homepage background */
    background-image: url('../img/alarms.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow-x: hidden;
}

/* NEW: Prevents body scroll when mobile menu is active */
body.no-scroll {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* -------------------- Glassmorphism Effect Base -------------------- */
.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* For Safari */
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--shadow-light);
    overflow: hidden; /* Ensures content stays within rounded corners */
}

/* -------------------- Navbar Styling -------------------- */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%; /* Increased width to span more of the screen */
    max-width: 1200px; /* Increased max-width to allow more horizontal space */
    padding: 15px 30px;
    z-index: 1000;
    display: flex;
    justify-content: center; /* Center the glassmorphism container */
    align-items: center;
    background: rgba(255, 255, 255, 0.3); /* Slightly more opaque glass for navbar */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px; /* Rounded corners for navbar */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: background 0.3s ease, border 0.3s ease, box-shadow 0.3s ease; /* Added transition for smooth theme change */
}

.nav-content {
    display: flex;
    justify-content: space-between; /* This is the key change! */
    align-items: center;
    width: 100%;
}

/* NEW: Style for the <nav> element to center the links */
.nav-content nav {
    display: flex; /* Make nav itself a flex container for its ul */
    justify-content: center; /* Center its children (nav-links) horizontally */
    /* Removed auto margins here as justify-content: space-between on parent handles spacing */
}


.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px; /* Adjusted gap from 30px to 20px for better spacing */
    /* justify-content is handled by .nav-content nav now for desktop */
}

.nav-link {
    text-decoration: none;
    color: var(--nav-link-color);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.1s ease-out;
}

/* Nav Link Hover & Glow */
.nav-link:hover {
    color: var(--primary-color); /* Change color on hover */
    text-shadow: 0 0 8px var(--nav-link-hover-glow); /* Glow effect */
}

/* Nav Link Expand on Click (using :active for brief visual feedback) */
.nav-link:active {
    transform: scale(1.05); /* Slightly expand */
}

/* Ensure active link on the current page is distinct */
.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* NEW: Styles when navbar is over a dark section (JavaScript adds .dark-theme-active) */
.navbar.dark-theme-active {
    background: rgba(0, 0, 0, 0.4); /* Darker, slightly more opaque glass for dark theme */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.navbar.dark-theme-active .logo {
    color: var(--nav-link-dark-color); /* White text for logo on dark sections */
}

.navbar.dark-theme-active .nav-links .nav-link {
    color: var(--nav-link-dark-color); /* White text for links on dark sections */
    text-shadow: none; /* Remove any text shadow that might obscure white text */
}

.navbar.dark-theme-active .nav-links .nav-link:hover {
    color: var(--primary-color); /* Hover remains primary for contrast */
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5); /* Slight white glow on hover */
}

.navbar.dark-theme-active .nav-links .nav-link.active {
    color: var(--primary-color); /* Active link remains primary */
}

/* NEW: Hamburger Menu Styles */
.hamburger-menu {
    display: none; /* Hidden by default on desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001; /* Ensure it's on top */
}

.hamburger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: var(--hamburger-bar-color); /* Default bar color */
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Hamburger menu active state (transforms to 'X') */
.hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* Dark theme adjustments for Hamburger bars */
.navbar.dark-theme-active .hamburger-menu .bar {
    background-color: var(--hamburger-bar-dark-theme-color);
}

/* NEW: Hide desktop-only button on mobile, show mobile-only button within nav */
.desktop-only-btn {
    display: inline-block; /* Default for desktop */
    /* Removed margin-left: auto; here as it's now handled by parent's justify-content */
}

.mobile-only-btn {
    display: none; /* Hidden by default for desktop */
}


/* -------------------- Buttons Styling -------------------- */
.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.4);
}

.btn-join {
    background-color: var(--button-bg-dark); /* Distinct background for JOIN */
    color: var(--button-text-dark);
    box-shadow: 0 4px 10px rgba(106, 90, 205, 0.3);
}

.btn-join:hover {
    background-color: #5d4aa3;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(106, 90, 205, 0.4);
}

/* Small button for cards */
.btn-small {
    padding: 8px 18px;
    font-size: 0.9rem;
    border-radius: 20px;
}

/* -------------------- Hero Section Styling - Homepage -------------------- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column; /* Allows content and slogan to stack within hero */
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    padding-top: 120px; /* Space for fixed navbar - Reduced from 150px */
    padding-bottom: 60px; /* Reduced from 80px */
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    z-index: 1;
    position: relative;
    margin-top: 0;
    flex-grow: 1; /* Allow container to grow and push slogan to bottom */
    max-width: 1000px; /* Aligns with navbar's max-width for consistent content area */
    width: 90%; /* Responsive width, provides side spacing */
    margin: 0 auto; /* Centers the container horizontally */
}

.hero-text-content {
    flex: 2;
    padding: 30px; /* Added internal padding for consistent box-like feel, even if transparent */
    background: transparent; /* Ensure it stays transparent */
    backdrop-filter: none; /* Ensure no blur */
    border: none; /* Ensure no border */
    box-shadow: none; /* Ensure no shadow */
    text-align: left;
    max-width: 500px;
    z-index: 2;
}

.hero-text-content h1 {
    font-family: 'Outfit', sans-serif; /* Outfit for headings */
    font-size: 4.0rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #000;
}

.hero-text-content p {
    font-size: 1.1rem;
    color: #000;
    margin-bottom: 30px;
    max-width: 500px;
}

.trusted-members-box {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    text-align: center;
    z-index: 2;
    /* Ensuring glassmorphism properties are explicitly here */
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--shadow-light);
    overflow: hidden;
}

.trusted-members-box h2 {
    font-family: 'Outfit', sans-serif; /* Outfit for headings */
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.trusted-members-box ul {
    list-style: none;
    margin-bottom: 20px;
    padding-left: 0;
}

.trusted-members-box ul li {
    font-size: 1rem;
    color: var(--text-dark); /* Changed to dark for readability on light glass card */
    padding: 5px 0;
}

.trusted-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.trusted-members-box .since {
    font-size: 0.9rem;
    color: var(--text-dark); /* Changed to dark for readability on light glass card */
    margin-top: 20px;
}

/* -------------------- Gradient Ribbon Background (reused) -------------------- */
.gradient-ribbon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120vw;
    height: 100vh;
    transform: translate(-50%, -50%) rotate(-10deg);
    background: linear-gradient(
        270deg,
        rgba(100, 100, 255, 0.15),
        rgba(150, 200, 255, 0.25),
        rgba(200, 255, 255, 0.35),
        rgba(255, 200, 255, 0.25),
        rgba(255, 100, 200, 0.15)
    );
    opacity: 0.8;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
}

/* -------------------- Scroll Indicator Chevron -------------------- */
.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
    color: var(--primary-color);
    z-index: 1;
    cursor: pointer; /* Make it clear it's clickable */
    display: flex; /* Allow text and icon to be side-by-side */
    flex-direction: column; /* Stack icon and text vertically */
    align-items: center; /* Center horizontally */
    transition: transform 0.3s ease; /* Smooth hover effect */
}

.scroll-indicator:hover {
    transform: translateX(-50%) translateY(-5px); /* Lift slightly on hover */
}

.scroll-indicator .scroll-text {
    font-size: 0.9rem; /* Smaller font for the text */
    color: var(--text-light); /* Or adjust to a visible color like #eee */
    margin-top: 5px; /* Space between chevron and text */
    opacity: 0.8;
    text-shadow: 0 0 5px rgba(0,0,0,0.5); /* Add subtle shadow for visibility */
}

/* Chevron Bounce Animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-7px);
    }
}

.chevron-bounce {
    animation: bounce 2s infinite;
}

/* -------------------- Subpage Hero Sections (About Us, Services, Staff, Contact, News & Events, Gallery, Loans) -------------------- */
.hero-subpage {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 120px; /* Reduced from 150px */
    padding-bottom: 60px; /* Reduced from 80px */
    overflow: hidden;
}

/* Add dark-section to hero-subpages that should trigger dark navbar theme on scroll */
#about-us.hero-subpage,
#services.hero-subpage,
#staff.hero-subpage,
#contact.contact-hero-section,
.news-events-hero, /* NEW */
.gallery-hero, /* NEW */
.loans-hero /* NEW (reusing services-hero background) */
{
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll; /* Section background scrolls */
}


/* Specific hero backgrounds */
#about-us.hero-subpage {
    background-image: url('../img/about-us/about-us.jpg');
}

#services.hero-subpage, .loans-hero { /* .loans-hero added to reuse this background */
    background-image: url('../img/services/services-bg.jpg');
}

#staff.hero-subpage {
    background-image: url('../img/TEAM.jpg');
    color: var(--text-light); /* Ensure text is readable */
}

#contact.contact-hero-section {
    background-image: url('../img/contact/contact.jpg');
}



/* Wrapper for content within subpage heroes, similar to contact-cards-wrapper */
.subpage-hero-content-wrapper {
    display: flex;
    gap: 40px; /* Adjust gap as needed */
    align-items: flex-start; /* Align items to the start of the cross axis (top) */
    justify-content: center; /* Center content horizontally */
    z-index: 1;
    max-width: 1000px; /* Match max-width of contact-cards-wrapper */
    width: 90%;
    margin-bottom: 50px; /* Add some space below the content wrapper */
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
}

.hero-subpage-content {
    z-index: 1;
    flex: 1;
    min-width: 350px;
    padding: 30px;
    text-align: center;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--shadow-light);
    overflow: hidden;
}

/* UPDATED: Corrected colors for text within the light glassmorphism card */
.hero-subpage-content h1 { /* Changed selector from .hero-subpage h1 to target specific content */
    font-family: 'Outfit', sans-serif; /* Outfit for headings */
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark); /* Ensure text is dark on the light glassmorphism card */
    text-shadow: none;
}

.hero-subpage-content p { 
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-dark); /* Ensure text is dark on the light glassmorphism card */
    text-shadow: none; 
}

/* Reusing gradient-ribbon for subpage hero as well */
.hero-subpage .gradient-ribbon {
    top: 60%;
    height: 80vh;
    transform: translate(-50%, -50%) rotate(5deg);
    opacity: 0.6;
}


/* -------------------- General Section Styling -------------------- */
.section-padding {
    padding: 60px 0;
}

.bg-light {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* For Safari */
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--shadow-light);
}


h2 {
    font-family: 'Outfit', sans-serif; /* Outfit for headings */
    font-size: 2.5rem;
    font-weight: 700;
    color: #000;
    text-align: center;
    margin-bottom: 40px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-dark);
    text-align: center;
    max-width: 800px;
    margin: -30px auto 50px auto; /* Reduced margin-bottom from 80px to 50px */
}

/* NEW: Styles for detailed list items within service/loan cards */
.list-details {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-top: 15px;
    color: #000; /* Dark text for list items on light cards */
}

.list-details li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.list-details li strong {
    color: var(--primary-color);
}


/* -------------------- About Us Section Content -------------------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.about-text-content h2 {
    font-family: 'Outfit', sans-serif; /* Outfit for headings */
    text-align: left;
    margin-bottom: 20px;
    font-size: 2.2rem;
}

.about-text-content p {
    font-size: 1.05rem;
    color: #000; /* Adjusted for better contrast on light backgrounds */
    margin-bottom: 15px;
}

.about-text-content p:last-child {
    margin-bottom: 0;
}

/* Values Section (Used in About Us) */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.value-item {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* For Safari */
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--shadow-light);
    overflow: hidden;
}

.value-item i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.value-item:hover i {
    transform: translateY(-5px);
}

.value-item h3 {
    font-family: 'Outfit', sans-serif; /* Outfit for headings */
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.value-item p {
    font-size: 0.95rem;
    color: var(--text-dark); /* Adjusted for better contrast on light backgrounds */
}

/* -------------------- Services Section Content -------------------- */
.services-details-section {
    width: 100%;
    max-width: unset;
    padding: 60px 20px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
}

.service-card {
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 280px;
}

.service-card .service-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    font-family: 'Outfit', sans-serif; /* Outfit for headings */
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-card p {
    font-size: 1rem;
    color: var(--text-dark); /* Adjusted for better contrast on light backgrounds */
    margin-bottom: 25px;
    flex-grow: 1;
}

/* -------------------- Staff Section Content -------------------- */
.team-card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
    margin-bottom: 40px;
}

.team-card {
    text-align: center;
    padding: 25px;
    background: rgba(255, 255, 255, 0.4); /* Already set to glassmorphism style */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.team-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.team-card h3 {
    font-family: 'Outfit', sans-serif; /* Outfit for headings */
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.team-card p { /* For the role */
    font-size: 0.95rem;
    color: var(--text-dark); /* Adjusted for better contrast on light backgrounds */
    margin-bottom: 10px; /* Adjusted margin */
}

/* NEW: Role description style */
.team-card .role-description {
    font-size: 0.85rem;
    color: #000; /* Slightly lighter for description */
    margin-bottom: 15px; /* Space before social links */
    display: block; /* Ensures it takes its own line */
}

.social-links a {
    color: #888;
    font-size: 1.3rem;
    margin: 0 8px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 40px;
}

/* -------------------- Contact Section Content -------------------- */
.contact-cards-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    justify-content: center;
    z-index: 1;
    max-width: 1000px;
    width: 90%;
    margin-bottom: 50px;
}

.contact-info-card {
    flex: 1;
    min-width: 350px;
    padding: 40px;
    text-align: left;
    height: fit-content;
}

.contact-info-card h2 {
    font-family: 'Outfit', sans-serif; /* Outfit for headings */
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-dark);
    text-align: left;
}

.contact-detail {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-dark); /* Adjusted for better contrast on light backgrounds */
}

.contact-detail i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
    width: 25px;
    text-align: center;
}

.contact-detail span {
    flex-grow: 1;
}

.map-card {
    flex: 1.5;
    min-width: 450px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: fit-content;
}

.map-card iframe {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.get-directions-btn {
    width: fit-content;
    padding: 12px 30px;
    font-size: 1rem;
}

.get-directions-btn i {
    margin-right: 10px;
}

/* NEW: Contact Form Styles */
.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark); /* Dark label text on light background */
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.7); /* Slightly translucent input */
    color: var(--text-dark);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #888;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
    outline: none;
}

.contact-form textarea {
    resize: vertical; /* Allow vertical resizing */
    min-height: 120px;
}

/* NEW: Social Media Section Styles */
.social-icons-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.social-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--primary-color); /* Icon color */
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.social-icon-circle:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.3); /* Slightly more opaque on hover */
}


/* -------------------- News & Events Page Styles -------------------- */


.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.news-card {
    text-align: left;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--shadow-light);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.news-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistent cards */
    object-fit: cover;
    display: block;
}

.news-card .card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-card h3 {
    font-family: 'Outfit', sans-serif; /* Outfit for headings */
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
    text-align: left; /* Override general h2 center alignment */
}

.news-card .news-date {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 15px;
    display: block;
}

.news-card .news-date i {
    margin-right: 8px;
    color: var(--primary-color);
}

.news-card p {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1; /* Allows paragraph to take available space */
}

.news-card .btn {
    align-self: flex-start; /* Align button to the left */
}

.event-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 40px;
}

.event-item {
    display: flex;
    align-items: flex-start;
    padding: 25px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 4px 15px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.event-date-box {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 15px 10px;
    border-radius: 10px;
    text-align: center;
    min-width: 80px;
    flex-shrink: 0; /* Prevent it from shrinking */
    margin-right: 20px;
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.3);
}

.event-date-box .month {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.event-date-box .day {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
}

.event-details {
    flex-grow: 1;
    text-align: left;
}

.event-details h3 {
    font-family: 'Outfit', sans-serif; /* Outfit for headings */
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.event-details p {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 5px;
    line-height: 1.4;
}

.event-details p i {
    margin-right: 8px;
    color: var(--primary-color);
}

.event-details .event-description {
    margin-top: 10px;
    margin-bottom: 15px;
    color: #000;
}

/* -------------------- Gallery Page Styles -------------------- */
.gallery-hero {
    /* background-image: url('../img/TEAM.jpg'); Placeholder image */
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.gallery-item {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--shadow-light);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 220px; /* Fixed height for consistent image previews */
    object-fit: cover;
    display: block;
}

.gallery-caption {
    padding: 20px;
    text-align: left;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.gallery-caption h3 {
    font-family: 'Outfit', sans-serif; /* Outfit for headings */
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
    text-align: left; /* Override general h2 center alignment */
}

.gallery-caption p {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.5;
}


/* -------------------- Global Footer -------------------- */
.global-slogan-footer {
    position: relative; /* Changed from absolute to relative */
    bottom: unset;
    left: unset;
    transform: unset;
    width: 100%;
    text-align: center;
    padding: 30px 20px; /* Add vertical padding */
    z-index: 1;
    margin-top: 30px; /* Reduced from 50px */
    background-color: #2c3e50; /* Add a background for the footer */
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.global-slogan-footer p {
    color: #eee;
    font-size: 1.1rem;
    font-style: italic;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}


/* -------------------- Responsive Design -------------------- */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        max-width: 90%; /* Adjusted for better spacing on tablets */
    }

    .hero-text-content, .trusted-members-box {
        text-align: center;
        max-width: 90%;
        width: 100%; /* Ensure they take full width when stacked */
        padding: 25px; /* Slightly less padding on smaller screens */
    }

    .hero-text-content h1 {
        font-size: 2.8rem;
    }

    .hero-text-content p {
        font-size: 1.1rem;
    }

    .trusted-members-box {
        width: 100%;
        margin-top: 20px;
    }

    /* Subpage hero responsive */
    .hero-subpage h1 {
        font-size: 2.5rem;
    }

    .hero-subpage p {
        font-size: 1rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        order: -1;
    }

    .about-text-content h2 {
        text-align: center;
    }

    .section-padding {
        padding: 50px 0; /* Reduced further for responsiveness */
    }

    h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .section-description {
        margin: -20px auto 40px auto; /* Reduced further for responsiveness */
    }

    .values-grid, .team-card-container, .services-grid, .news-grid, .gallery-grid { /* Added news and gallery grids */
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    /* Responsive adjustments for Contact page & Subpage hero wrapper */
    .contact-cards-wrapper, .subpage-hero-content-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        margin-top: 0;
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .contact-hero-section, .hero-subpage {
        height: auto;
        min-height: 100vh;
        padding-top: 100px; /* Adjusted for responsive hero sections */
        padding-bottom: 50px; /* Adjusted for responsive hero sections */
    }

    .contact-info-card, .map-card, .hero-subpage-content {
        min-width: unset;
        width: 90%;
        max-width: 600px;
    }

    .map-card iframe {
        height: 300px;
    }

    /* Services section full width adjustment for responsive */
    .services-details-section {
        padding: 50px 15px; /* Adjust padding for smaller screens */
    }

    /* News & Events and Gallery specific responsive adjustments */
    .news-card img, .gallery-item img {
        height: 180px; /* Adjust image height for smaller screens */
    }
}

@media (max-width: 768px) {
    .navbar {
        width: 100%;
        /* background-color: #ffffff; */
        padding: 15px 0;
        /* top: 10px; */
    }

    /* Show hamburger menu */
    .hamburger-menu {
        display: flex;
        margin-left: auto; /* Align hamburger to the right */
        order: 2; /* Ensure hamburger is on the right side of the nav-content */
    }

    /* Fix: Ensure nav-content aligns logo left and hamburger right */
    .nav-content {
        justify-content: space-between; /* Changed from center to space-between */
    }

    /* Hide desktop nav links and desktop join button */
    .nav-links {
        display: none; /* Hidden by default on mobile */
        flex-direction: column; /* Stack links vertically */
        /* Removed glassmorphism properties, using solid white background */
        background: #ffffff; /* Solid white background */
        backdrop-filter: none; /* Removed blur */
        -webkit-backdrop-filter: none; /* Removed blur */
        border: 1px solid rgba(0, 0, 0, 0.1); /* Lighter border for clean look */
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
        
        position: absolute;
        top: 100%; /* Position below the navbar */
        left: 0;
        width: 100%;
        padding: 20px 0;
        overflow: hidden; /* Hide overflow during animation */
        transition: transform 0.3s ease-out, opacity 0.3s ease-out;
        transform: translateY(-10px); /* Start slightly up for animation */
        opacity: 0;
        pointer-events: none; /* Disable interaction when hidden */
        z-index: 999; /* Ensure it's below the hamburger but above page content */
        border-radius: 0 0 20px 20px; /* Rounded bottom corners for dropdown */

        /* NEW: Make mobile nav links scrollable if content overflows */
        max-height: calc(100vh - 80px); /* Adjust based on your navbar's actual height and top offset */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* For smoother scrolling on iOS */
    }

    /* Active state for mobile menu */
    .nav-links.active {
        display: flex; /* Show when active */
        transform: translateY(0); /* Animate into place */
        opacity: 1;
        pointer-events: all; /* Enable interaction when active */
    }

    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }

    .nav-links .nav-link { /* Target links inside the mobile menu */
        font-size: 1.1rem;
        padding: 10px 15px; /* More tap-friendly area */
        display: block; /* Make the whole link block clickable */
        width: 100%;
        color: var(--text-dark); /* Ensure readable on solid white background */
    }

    .nav-links .nav-link:hover {
        background-color: rgba(0, 123, 255, 0.05); /* Light highlight on hover */
        border-radius: 5px;
    }

    /* No underline animation for mobile links */
    .nav-links .nav-link::after {
        display: none;
    }

    .desktop-only-btn {
        display: none; /* Hide desktop join button */
    }

    /* NEW: Hide the mobile-only join button */
    .mobile-only-btn-wrapper {
        display: none;
    }
    .mobile-only-btn { /* Ensure the button itself is also hidden if not wrapped */
        display: none;
    }

    .logo {
        font-size: 1.2rem;
    }

    .btn-join {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .hero-text-content h1 {
        font-size: 2.2rem;
    }

    .hero-text-content p {
        font-size: 1rem;
    }

    .btn-primary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .trusted-members-box {
        padding: 20px;
        min-width: unset;
    }

    .trusted-members-box h2 {
        font-size: 1.3rem;
    }

    /* Subpage hero responsive */
    .hero-subpage {
        height: auto;
        min-height: 100vh;
        padding-top: 80px; /* Further adjusted for responsive hero sections */
        padding-bottom: 40px; /* Further adjusted for responsive hero sections */
    }

    .hero-subpage h1 {
        font-size: 2rem;
    }

    .hero-subpage p {
        font-size: 0.9rem;
    }

    .about-image img {
        width: 90%;
        margin: 0 auto;
    }

    .value-item, .team-card, .service-card {
        padding: 20px;
    }

    .service-card .service-icon {
        font-size: 3.5rem;
    }

    .service-card h3 {
        font-size: 1.4rem;
    }

    /* Responsive adjustments for global footer */
    .global-slogan-footer {
        padding: 20px 15px;
        margin-top: 20px; /* Further reduced */
    }

    /* Services section full width adjustment for responsive */
    .services-details-section {
        padding: 40px 10px; /* Adjust padding for smaller screens */
    }

    /* Ensure that the dark-theme-active class does not interfere with the
        mobile menu's text color, as it now has a static white background. */
    .navbar.dark-theme-active .nav-links .nav-link {
        color: var(--text-dark); /* Keep text dark on solid white background */
        text-shadow: none;
    }

    /* News & Events and Gallery specific responsive adjustments */
    .news-card img, .gallery-item img {
        height: 160px; /* Adjust image height for smaller screens */
    }

    .event-item {
        flex-direction: column; /* Stack date box and details vertically */
        align-items: center;
        text-align: center;
    }

    .event-date-box {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .hero-text-content h1 {
        font-size: 1.8rem;
    }
    .hero-text-content p {
        font-size: 0.9rem;
    }

    /* Subpage hero responsive */
    h2 {
        font-size: 1.8rem;
    }
    .section-description {
        font-size: 0.9rem;
        margin: -15px auto 30px auto; /* Even tighter spacing */
    }

    .value-item i {
        font-size: 3rem;
    }
    .value-item h3 {
        font-size: 1.2rem;
    }
    .team-card h3 {
        font-size: 1.3rem;
    }
    .team-card img {
        width: 120px;
        height: 120px;
    }

    .service-card .service-icon {
        font-size: 3rem;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }

    /* Responsive adjustments for very small screens */
    .services-details-section,
    .section-padding {
        padding: 30px 10px; /* Adjust padding for very small screens */
    }

    .news-card img, .gallery-item img {
        height: 140px; /* Further adjust image height for very small screens */
    }
}
