:root {
    /* Color Palette */
    --navy: #1a3a52;
    --light-blue: #0099cc;
    --sky-blue: #66ccff;
    --cream: #f5f1e8;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --border: #e0e0e0;

    /* Custom Bootstrap Overrides (Optional, but good practice) */
    --bs-primary: var(--light-blue);
    --bs-secondary: var(--navy);
    --bs-body-color: var(--text-dark);
    --bs-font-sans-serif: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    background: var(--cream); /* Default body background */
    color: var(--text-dark);
}

/* --- Utility Classes (Highly Recommended) --- */
.bg-navy { background-color: var(--navy) !important; }
.text-skyblue { color: var(--sky-blue) !important; }
.border-lightblue { border-color: var(--light-blue) !important; }

/* --- Header & Navigation (Used on All Pages) --- */
.navbar {
    background: linear-gradient(135deg, var(--navy) 0%, #2c5282 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-brand .logo-text h1 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1;
    color: var(--white);
}

.navbar-brand .logo-text p {
    font-size: 0.75rem;
    color: var(--sky-blue);
    font-style: italic;
    margin: 0;
    line-height: 1;
}

.nav-link, .btn-link {
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
    color: var(--white) !important; /* Ensure nav links are white */
}

.nav-link:hover, .btn-link:hover {
    color: var(--sky-blue) !important;
}

.nav-item .active { 
    border-bottom: 2px solid var(--sky-blue); 
}

/* Optional: Add a subtle border or background to the button itself if needed */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5); /* Light border */
}

/* Custom CSS to enable dropdown on hover for large screens (lg) and up */
@media screen and (min-width: 992px) {
    /* Hide the menu by default, overriding Bootstrap's display: none */
    .navbar-nav .dropdown-menu {
        display: block; /* Show the menu */
        visibility: hidden; /* Keep it invisible until hover */
        opacity: 0; /* Fade it in */
        transition: visibility 0s, opacity 0.3s linear;
        margin-top: 0;
    }

    /* Show the menu when the list item is hovered */
    .navbar-nav .dropdown:hover .dropdown-menu {
        visibility: visible;
        opacity: 1;
        margin-top: 0.125rem; /* Small margin for spacing */
    }

    /* Remove the default click arrow on hover links */
    .dropdown-toggle::after {
        content: none; 
    }
}

/* Custom CTA Button Style (Used on All Pages) */
.btn-cta-primary {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--sky-blue) 100%);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    font-size: 14px;
}
.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 153, 204, 0.4);
}

/* --- Section Titles (Used on All Pages) --- */
.section-title h2 {
    font-size: 2.5rem; /* ~38-40px */
    color: var(--navy);
    font-weight: 800;
}

/* --- Home Page Specific Styles (Carousel, Hero, Impact, etc.) --- */

/* Carousel (Home Page) */
.carousel-item img {
    height: 400px;
    object-fit: cover;
    filter: brightness(0.7);
}
.carousel-caption {
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    padding-bottom: 0;
}
.carousel-caption h5 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--sky-blue);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.carousel-caption p {
    font-size: 1.25rem;
    font-weight: 500;
    background: rgba(26, 58, 82, 0.7);
    display: inline-block;
    padding: 8px 15px;
    border-radius: 5px;
}

/* Hero Section (Home Page) */
.hero {
    background: linear-gradient(135deg, #c6e3ff 0%, #e6f3ff 100%);
}
.hero h2 {
    font-size: 2.625rem;
    color: var(--navy);
    font-weight: 700;
}
.hero-image img {
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}
.btn-primary-custom { /* Primary Button for main content */
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--sky-blue) 100%);
    color: var(--white) !important;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}
.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 153, 204, 0.3);
}
.btn-secondary-custom { /* Secondary Button for main content */
    background: var(--white);
    color: var(--light-blue);
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    border: 2px solid var(--light-blue);
    transition: all 0.3s ease;
}
.btn-secondary-custom:hover {
    background: var(--light-blue);
    color: var(--white);
    transform: translateY(-3px);
}

/* Mission/Vision Box (Home Page) */
.mission-box {
    background: linear-gradient(135deg, #e6f3ff 0%, #f0f8ff 100%);
    border-left: 5px solid var(--light-blue);
}

/* Service Cards (Home Page) */
.service-card {
    background: var(--white);
    border-top: 4px solid var(--light-blue);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%; /* For uniform height in grids */
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}
.service-icon {
    font-size: 48px;
    color: var(--light-blue);
}
.service-card h3 {
    color: var(--navy);
    font-weight: 600;
}

/* Impact Section (Home Page) */
.impact {
    background: linear-gradient(135deg, var(--navy) 0%, #2c5282 100%);
    color: var(--white);
}
.impact-item h3 {
    font-size: 40px;
    font-weight: 700;
    color: var(--sky-blue);
}
.impact-item p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
}

/* Form Styling (Home Page Contact) */
.form-control:focus {
    border-color: var(--light-blue) !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 153, 204, 0.25);
}
.form-submit {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--sky-blue) 100%);
    color: var(--white) !important;
    padding: 14px 40px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 153, 204, 0.4);
}

/* --- Services Page Specific Styles --- */

/* HERO BANNER */
.hero-banner {
    position: relative;
    height: 300px;
    overflow: hidden;
    background-color: var(--navy);
}
.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
}
.hero-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.hero-banner-overlay h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--sky-blue);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

/* Service Cards (Dedicated Page) */
.service-card {
    border-top: 5px solid var(--light-blue);
}

.card-icon-box {
    font-size: 3rem;
    color: var(--light-blue);
    margin-bottom: 1rem;
    line-height: 1;
}

.card-title {
    color: var(--navy);
    font-weight: 700;
    font-size: 1.5rem;
}

.impact-img-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px dotted #007bff;
    padding: 5px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white; /* stops weird shadows inside */
}

.impact-img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 50%;
    object-fit: contain;  /* ⭐ shows whole image, no zoom */
}

/* Footer (Name and Role) - Reduced size and margin */
.blockquote-footer {
    font-size: 0.7rem; /* Smallest practical size */
    line-height: 1;
    margin-top: 0.1rem !important;
}
/* --- About Page Specific Styles --- */

.about-section {
    padding: 5rem 0;
}

.profile-card {
    background: var(--white);
    border-left: 5px solid var(--light-blue);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.what-we-do-list {
    list-style: none;
    padding-left: 0;
}

.what-we-do-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.what-we-do-list li i {
    position: absolute;
    left: 0;
    top: 0;
    color: var(--light-blue);
}

.vision-mission-box {
    background: linear-gradient(45deg, var(--navy) 0%, #2c5282 100%);
    color: var(--white);
    border-radius: 10px;
}

.vision-mission-box h3 {
    color: var(--sky-blue);
    font-weight: 700;
    border-bottom: 2px solid var(--sky-blue);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}


/* --- Footer (Used on All Pages) --- */
footer {
    background: var(--navy);
    color: var(--white);
}

.footer-section h4 {
    color: var(--sky-blue);
}

.social-links a {
    background: rgba(255, 255, 255, 0.1);
    color: var(--sky-blue);
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
}

.social-links a:hover {
    background: var(--light-blue);
    color: var(--white);
}
#backToTopBtn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #0d6efd;
    color: white;
    border: none;
    font-size: 22px;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    display: none; /* hidden by default */
    z-index: 9999;
    transition: all 0.3s ease;
}

#backToTopBtn:hover {
    background: #0b5ed7;
}

/* --- Management Page Specific Styles --- */
.management-card {
    background-color: var(--white);
    border: 0;
    border-left: 5px solid var(--light-blue);
    align-items: center;
}

.management-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid var(--white);
    box-shadow: 0 0 15px rgba(0,0,0,0.15);
}

.management-social a {
    color: var(--light-blue);
    font-size: 1.3rem;
    margin-right: 1rem;
    transition: color 0.3s ease;
}

.management-social a:hover {
    color: var(--navy);
}
/* Custom styles for team member cards */
.team-member-card {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure cards have uniform height */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
}
.team-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.team-member-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--light-blue);
    margin-bottom: 1.5rem;
}
.team-member-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}
.team-member-card p {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}
.team-member-social a {
    color: var(--light-blue);
    font-size: 1.2rem;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}
.team-member-social a:hover {
    color: var(--navy);
}
.gallery-item {
    width: 100%;
    padding-top: 100%; /* square */
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.gallery-item img {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
