/* ===================================== */
/* ==== Global CSS Variables ====== */
/* ===================================== */
:root {
    /* Colors */
    --primary-color: #007bff; /* Bootstrap Blue, feel free to change! */
    --secondary-color: #6c757d; /* Bootstrap Gray */
    --accent-color: #28a745;   /* Green for success/highlights */
    --light-bg: #f8f9fa;      /* Light background */
    --dark-bg: #343a40;       /* Dark background for footer/navbar */
    --white: #ffffff;
    --black: #000000;
    --text-color: #333333;
    --muted-text: #6c757d;

    /* Fonts */
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Poppins', sans-serif;

    /* Spacing */
    --section-padding: 80px 0;
    --gap-md: 20px;
    --gap-lg: 40px;

    /* Borders & Shadows */
    --border-radius: 0.75rem; /* Rounded corners for elements */
    --shadow-sm: 0 .125rem .25rem rgba(0,0,0,.075);
    --shadow-md: 0 .5rem 1rem rgba(0,0,0,.15);
    --shadow-lg: 0 1rem 3rem rgba(0,0,0,.175);

    /* Transitions */
    --transition-ease: all 0.3s ease-in-out;
}

/* ===================================== */
/* ==== General Body & Typography ====== */
/* ===================================== */
body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden; /* Prevent horizontal scroll */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700; /* Bold headings */
    color: var(--dark-bg); /* Darker headings */
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--gap-lg);
    position: relative;
    padding-top: 15px;
    padding-bottom: 15px; /* Space for underline effect */
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

p {
    font-size: 1.05rem;
    color: var(--muted-text);
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-color);
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-muted {
    color: var(--muted-text) !important;
}

/* ===================================== */
/* ==== Layout & Spacing ====== */
/* ===================================== */
.section-padding {
    padding: var(--section-padding);
}

.bg-light {
    background-color: var(--light-bg) !important;
}

.bg-dark {
    background-color: var(--dark-bg) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* ===================================== */
/* ==== Components Styling ====== */
/* ===================================== */

/* --- Navbar --- */
.navbar {
    padding-top: 1rem;
    padding-bottom: 1rem;
    background-color: var(--dark-bg) !important;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-size: 1.50rem;
    color: var(--white) !important;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    transition: var(--transition-ease);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background-color: rgba(255, 255, 255, 0.08);
}

/* --- Buttons --- */
.btn {
    border-radius: 50px; /* Pill shape */
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    transition: var(--transition-ease);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: darken(var(--primary-color), 10%); /* This won't work in pure CSS. Use a preprocessor or hardcode */
    filter: brightness(1.1); /* Alternative for hover effect */
    border-color: darken(var(--primary-color), 10%);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-light {
    color: var(--primary-color);
    background-color: var(--white);
    border-color: var(--white);
}
.btn-light:hover {
    background-color: var(--light-bg);
    border-color: var(--light-bg);
}


/* --- Cards & Boxes --- */
.card {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition-ease);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }

/* --- Icons --- */
.icon-lg {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: var(--gap-md);
}

.icon-md {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: var(--gap-md);
}

/* ===================================== */
/* ==== Section Specific Styling ====== */
/* ===================================== */

/* --- Hero Section with Carousel (Refined Design) --- */
/* --- Hero Section with Carousel (Refined Design) --- */
#hero {
    height: 100vh; /* Full viewport height */
    overflow: hidden; /* Ensure nothing spills out */
    position: relative; /* Needed for absolute positioning of effects */
    display: flex; /* For proper centering of content inside caption */
    align-items: center; /* Vertically center content */
    justify-content: center; /* Horizontally center content */
}

#hero .carousel,
#hero .carousel-inner,
#hero .carousel-item {
    height: 100%; /* Make carousel elements take full height of hero section */
}

#hero .hero-carousel-image { /* New class for the image */
    height: 100%; /* Image takes full height */
    width: 100%; /* Image takes full width */
    object-fit: cover; /* Cover the entire area, cropping if necessary */
    
    /* Subtle overlay & gradient effect */
    filter: brightness(0.75) grayscale(20%); /* Initial brightness and slight grayscale */
    transition: filter 1.5s ease-in-out; /* Smooth transition for filter effects */
    
    /* Gradient overlay for better transition to next section */

}

#hero .carousel-item:hover .hero-carousel-image {
    filter: brightness(0.9) grayscale(0%); /* Brighter and full color on hover */
}

#hero .carousel-caption {
    position: absolute; /* Position caption over image */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
    align-items: center; /* Center content horizontally */
    text-align: center;
    z-index: 10; /* Ensure text is above the image */
    padding: 0 15px; /* Add some padding on sides */
}

#hero .carousel-caption h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem); /* Responsive font size */
    text-shadow: 2px 2px 2px rgba(0,0,0,0.6); /* Text shadow for readability */
}

#hero .carousel-caption p {
    font-size: clamp(1rem, 2vw, 1.5rem); /* Responsive font size */
    max-width: 800px; /* Limit width of paragraph */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

#hero .carousel-control-prev,
#hero .carousel-control-next {
    z-index: 15; /* Ensure controls are above the caption */
    /* NEW: Make arrows more visible */
    width: 5%; /* Increase clickable area */
    opacity: 0.8; /* Make them always slightly visible */
    background: rgba(0, 0, 0, 0.0); /* Add a semi-transparent background for contrast */
    border-radius: 0.5rem; /* Soften the background edges */
    transition: opacity 0.3s ease, background 0.3s ease; /* Smooth transition */
}

#hero .carousel-control-prev:hover,
#hero .carousel-control-next:hover {
    opacity: 1; /* Full opacity on hover */
    background: rgba(0, 0, 0, 0.0); /* Darker background on hover */
}

#hero .carousel-control-prev-icon,
#hero .carousel-control-next-icon {
    /* NEW: Enlarge arrow icons */
    width: 2rem;
    height: 2rem;
    filter: drop-shadow(0 0 3px rgba(0,0,0,0.8)); /* Add a shadow to icons for better visibility */
}


#hero .carousel-indicators {
    z-index: 15; /* Ensure indicators are above the caption */
    bottom: 30px; /* Position indicators slightly higher from the bottom */
}
/* Animations for hero section (optional, requires Animate.css) */
/* Link to Animate.css in your HTML head if you use these:
   <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"/>
*/
.animate__animated.animate__fadeInUp {
    animation-duration: 1s;
}
.animate__animated.animate__zoomIn {
    animation-duration: 1s;
}
.animate__animated.animate__pulse {
    animation-duration: 2s;
    animation-iteration-count: infinite;
}


/* --- About Us Section --- */
#about .img-fluid {
    border-radius: var(--border-radius);
}

/* --- Features Section --- */
.feature-box {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: var(--gap-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-ease);
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

/* --- Service Cards --- */
.service-card .card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-card .card-title {
    color: var(--dark-bg);
}

/* --- Portfolio Items --- */
.portfolio-item img {
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
}
.portfolio-item .card-body {
    text-align: left;
}

/* --- Menu Items --- */
.menu-item img {
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
}

/* --- Pricing Cards --- */
.pricing-card {
    text-align: center;
    padding: var(--gap-md);
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-ease);
    height: 100%;
}
.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.pricing-card .display-4 {
    color: var(--primary-color);
}
.pricing-card ul li {
    padding: 8px 0;
}
.pricing-card .btn {
    width: 80%;
    margin: auto;
}

/* --- Team Members --- */
.team-member img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    border: 4px solid var(--primary-color); /* Highlight team members */
    transition: transform 0.3s ease-in-out;
}
.team-member img:hover {
    transform: scale(1.05);
}

.team-member .card-body {
    text-align: center;
}

.team-member .social-icons a {
    color: var(--muted-text);
    transition: var(--transition-ease);
}

.team-member .social-icons a:hover {
    color: var(--primary-color);
}


/* --- Testimonials --- */
.testimonial-quote {
    max-width: 800px;
    margin: 0 auto;
}
.testimonial-quote blockquote {
    font-style: italic;
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 2rem;
}
.testimonial-quote img {
    border: 3px solid var(--primary-color);
}
.carousel-dark .carousel-control-prev-icon,
.carousel-dark .carousel-control-next-icon {
    filter: invert(1); /* Makes controls visible on dark backgrounds */
}
.carousel-control-prev, .carousel-control-next {
    width: 5%;
}

/* --- Schedule --- */
#schedule .list-group-item {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
    background-color: var(--white);
    border-color: rgba(0,0,0,.05); /* Lighter border */
    transition: var(--transition-ease);
}
#schedule .list-group-item:hover {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}
#schedule .list-group-item:hover .badge {
    background-color: var(--white) !important;
    color: var(--primary-color) !important;
}


/* --- FAQ --- */
.accordion-item {
    border: none;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    background-color: var(--white);
    transition: var(--transition-ease);
}
.accordion-button {
    background-color: var(--white);
    color: var(--text-color);
    font-size: 1.1rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition-ease);
}
.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1); /* Make arrow white when active */
}
.accordion-body {
    background-color: var(--light-bg);
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
    padding: 1.5rem;
}

/* --- Contact Form & Info Boxes --- */
#contact .form-control {
    border-radius: 0.5rem;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    border: 1px solid #ced4da;
    box-shadow: none; /* Remove default focus glow */
}
#contact .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-color-rgb), 0.25);
}

.info-box {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: var(--gap-md);
    transition: var(--transition-ease);
    height: 100%; /* Ensure consistent height */
}

.info-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.info-box i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* --- Google Maps --- */
#map iframe {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}


/* --- Footer --- */
.footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding-top: 60px;
    padding-bottom: 60px;
}

.footer h5 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer ul {
    padding-left: 0;
}

.footer ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-ease);
    padding: 0.25rem 0;
}

.footer ul li a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer .social-icons a {
    color: var(--white);
    margin-right: 15px;
    font-size: 1.8rem;
    transition: var(--transition-ease);
}

.footer .social-icons a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* ===================================== */
/* ==== Responsive Adjustments ====== */
/* ===================================== */
@media (max-width: 991.98px) {
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        text-align: center;
    }
    .hero-section {
        min-height: 80vh;
        padding: 80px 0;
    }
    .hero-section h1 {
        font-size: 3rem;
    }
    .hero-section p {
        font-size: 1.25rem;
    }
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .section-padding {
        padding: 60px 0;
    }
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .hero-section p {
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    .accordion-button {
        font-size: 1rem;
        padding: 1rem 1.25rem;
    }
    .footer .social-icons a {
        font-size: 1.5rem;
        margin-right: 10px;
    }
}

/* --- Partners Section --- */
#partners .grayscale-filter {
    filter: grayscale(100%);
    transition: var(--transition-ease);
}
#partners .grayscale-filter:hover {
    filter: grayscale(0%);
    opacity: 1 !important;
}

/* --- Benefits Section --- */
.benefit-box {
    transition: var(--transition-ease);
}
.benefit-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
}
.benefit-box:hover h4,
.benefit-box:hover p {
    color: var(--white) !important;
}
.benefit-box:hover i {
    color: var(--white) !important;
}

/* --- Blog Section --- */
.blog-post-card img {
    height: 220px; /* Fixed height for image consistency */
    object-fit: cover;
}
.blog-post-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.blog-post-card .card-text {
    flex-grow: 1; /* Allow text to take available space */
}

/* --- Simple Image Gallery Section --- */
.gallery-item-wrapper {
    position: relative;
    cursor: pointer;
    line-height: 0; /* Remove extra space below image */
    transition: transform var(--transition-ease), box-shadow var(--transition-ease);
}

.gallery-item-wrapper:hover {
    transform: translateY(-5px); /* Lift effect */
    box-shadow: var(--shadow-md); /* Stronger shadow on hover */
}

.gallery-image {
    display: block; /* Ensure no extra space below image */
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover; /* Cover the area, cropping if necessary */
    border-radius: var(--border-radius); /* Apply border-radius to the image itself */
    transition: transform var(--transition-ease);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(var(--primary-color-rgb), 0.75); /* Semi-transparent primary color overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0; /* Hidden by default */
    transition: opacity var(--transition-ease);
    border-radius: var(--border-radius);
}

.gallery-item-wrapper:hover .gallery-overlay {
    opacity: 1; /* Show overlay on hover */
}

.gallery-title {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    transform: translateY(10px); /* Start slightly lower */
    transition: transform var(--transition-ease);
}

.gallery-item-wrapper:hover .gallery-title {
    transform: translateY(0); /* Slide up on hover */
}

/* --- Image Carousel Gallery Section --- */
#image-carousel-gallery .carousel-inner {
    max-height: 600px; /* Limit the maximum height of the carousel */
    overflow: hidden; /* Hide anything that overflows */
}

#image-carousel-gallery .carousel-image-fit {
    height: 600px; /* Fixed height for all images */
    object-fit: cover; /* Cover the area, cropping if necessary */
    filter: brightness(0.8); /* Slightly dim images for better text readability */
    transition: filter 0.5s ease;
}

#image-carousel-gallery .carousel-item:hover .carousel-image-fit {
    filter: brightness(1); /* Brighten image on hover */
}

#image-carousel-gallery .carousel-caption {
    background: rgba(0, 0, 0, 0.6); /* Slightly darker overlay for captions */
    padding: 1rem 1.5rem;
    border-radius: 0.5rem 0.5rem 0 0; /* Rounded top corners only */
    max-width: 80%; /* Limit width of caption */
    left: 50%;
    transform: translateX(-50%); /* Center the caption */
    bottom: 0; /* Align caption to the bottom */
}

#image-carousel-gallery .carousel-caption h5 {
    font-weight: bold;
    color: var(--white);
}

#image-carousel-gallery .carousel-caption p {
    color: var(--white-75);
    font-size: 0.95rem;
}

/* Ensure controls are visible and well-placed */
#image-carousel-gallery .carousel-control-prev,
#image-carousel-gallery .carousel-control-next {
    width: 8%; /* Make controls a bit wider for easier clicking */
}

/* --- Countdown Timer --- */
#countdown-timer {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.countdown-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent background */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px; /* Rounded corners */
    padding: 1.5rem 2.5rem;
    min-width: 150px; /* Minimum width to prevent squeezing */
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Soft shadow */
    backdrop-filter: blur(5px); /* Background blur effect (if supported) */
    -webkit-backdrop-filter: blur(5px); /* For Webkit compatibility */
}

.countdown-value {
    display: block;
    font-size: 3.5rem; /* Large size for digits */
    font-weight: bold;
    color: var(--bs-primary); /* Uses Bootstrap's primary color */
    margin-bottom: 0.5rem;
    line-height: 1; /* Remove excess space below digits */
}

.countdown-label {
    display: block;
    font-size: 1.1rem; /* Size for labels (days, hours...) */
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Adjustments for small screens */
@media (max-width: 768px) {
    .countdown-item {
        padding: 1rem 1.5rem;
        min-width: 120px;
    }
    .countdown-value {
        font-size: 2.5rem;
    }
    .countdown-label {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .countdown-item {
        min-width: 100px;
        padding: 0.8rem 1rem;
    }
    .countdown-value {
        font-size: 2rem;
    }
    .countdown-label {
        font-size: 0.8rem;
    }
    #countdown-timer {
        gap: 1rem; /* Less space between items on small screens */
    }
}