/* --- 1. GLOBAL & RESET --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; overflow-x: hidden; }

/* --- 2. HERO SLIDER (THE BANNER) --- */
.hero-slider {
    position: relative;
    height: 90vh; /* Increased to 90vh to reduce cropping/zooming */
    width: 100%;
    overflow: hidden;
    background: #000;
}

.slides-container {
    height: 100%;
    width: 100%;
    position: relative;
}

.slide {
    display: none; /* Hidden by default */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    
    /* Image Control */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(0,0,0,0.5);
    background-blend-mode: darken;
    padding: 40px;
}

.slide.active {
    display: flex; /* Only show active slide */
}

.slide h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.slide p { font-size: 1.5rem; }

/* --- 3. SLIDER BUTTONS --- */
.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    padding: 20px;
    cursor: pointer;
    z-index: 100;
    font-size: 2rem;
    border-radius: 5px;
    transition: background 0.3s;
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

.prev-btn:hover, .next-btn:hover {
    background: rgba(255,255,255,0.4);
}

/* --- 4. SECTIONS & CONTENT --- */
.about-container, .why-us-grid, .testimonial-grid {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.about-container.show, .why-us-grid.show, .testimonial-grid.show {
    opacity: 1;
    transform: translateY(0);
}

/* --- 5. GALLERY --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 0 5%;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: 0.3s;
}

/* --- 6. MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .hero-slider { height: 60vh; }
    .slide h1 { font-size: 2rem; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
}

/* --- MOBILE RESPONSIVE FIX FOR ABOUT SECTION --- */
@media (max-width: 768px) {
    .about-section {
        flex-direction: column !important; /* Forces the stack */
        padding: 40px 5%;                  /* Reduces padding for small screens */
        gap: 20px;                         /* Makes the gap smaller */
    }

    .about-image, .about-text {
        flex: none;                        /* Removes the flex distribution */
        width: 100%;                       /* Forces full width */
    }
}
/* --- 2. WHY CHOOSE US (GRID) --- */
.why-us-section { padding: 80px 5%; background: #f9f9f9; }
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.grid-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-top: 4px solid #6a1b9a;
}

/* Ensure the parent section allows the container to flow */
.about-section { 
    padding: 80px 5%; 
    background: #fff; 
}

/* The actual container holding the image and text */
.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

/* Mobile Responsive Rules */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column; /* This stacks the image on top of the text */
        gap: 20px;
    }

    .about-image, .about-text {
        width: 100%; /* Forces both to use full width */
    }
}
/* --- 3. CTA BANNER --- */
.cta-banner {
    background: #6a1b9a;
    color: white;
    padding: 60px 5%;
    text-align: center;
    border-radius: 20px;
    margin: 40px 5%;
}
.btn-cta {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 30px;
    background: white;
    color: #6a1b9a;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
}

/* --- 4. GALLERY GRID --- */
.gallery-section { padding: 80px 5%; }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}
.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

/* --- 5. NEWS, EVENTS & BLOG --- */
.news-blog-section {
    padding: 80px 5%;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    background: #fff;
}
.blog-card {
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 10px;
    transition: 0.3s;
}
.blog-card:hover { border-color: #6a1b9a; }

/* --- WHY CHOOSE US SECTION --- */
.why-us-section { 
    padding: 80px 5%; 
    background-color: #f9f9f9; 
}

.section-title { 
    text-align: center; 
    font-size: 2.5rem; 
    margin-bottom: 50px; 
    color: #6a1b9a; 
}

.why-us-grid {
    display: grid;
    /* This tells the grid to have exactly 3 equal columns */
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    margin-top: 40px;
}

/* Add this to handle mobile devices */
@media (max-width: 900px) {
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for tablets */
    }
}

@media (max-width: 600px) {
    .why-us-grid {
        grid-template-columns: 1fr; /* 1 column for phones */
    }
}

.grid-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid #6a1b9a; /* Brand purple accent */
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(106, 27, 154, 0.15);
    background: #fdfaff; /* Very subtle purple hover tint */
}

.grid-item h3 {
    color: #6a1b9a;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.grid-item p {
    color: #555;
    line-height: 1.6;
}

/* --- 1. NAVBAR FIX --- */
nav a {
    font-size: 1.1rem;      /* Makes text larger */
    font-weight: bold;      /* Makes text bold */
    color: #6a1b9a;         /* Consistent brand color */
    text-decoration: none;
    margin-left: 20px;
}

/* --- 2. ABOUT US SECTION --- */
.about-section {
    padding: 80px 5%;
    background-color: #ffffff;
}

.section-title {
    text-align: center;
    color: #6a1b9a;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
}

.about-image {
    flex: 0 0 350px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
}

/* We remove .about-text because you said to remove the text */
/* If you ever add text back, use these styles */

/* --- TESTIMONIALS GRID SECTION --- */
.testimonials {
    padding: 80px 5%;
    background-color: #f9f9f9;
}

.testimonial-grid {
    display: grid;
    /* This automatically puts 3 cards in a row on large screens, 
       then drops to 1 card on mobile */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.t-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-top: 5px solid #6a1b9a; /* Brand purple accent */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.t-card p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 25px;
    font-style: italic;
}

.t-card h3 {
    font-size: 0.95rem;
    color: #6a1b9a;
    font-weight: 700;
    text-align: right;
    margin: 0;
}

/* --- GALLERY GRID SECTION --- */

.gallery-section {
    padding: 80px 5%;
    background-color: #ffffff;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.gallery-item {
    background: #f4f4f4;
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Keeps images uniform size */
}

.gallery-item h3 {
    padding: 15px;
    font-size: 1rem;
    color: #6a1b9a;
    text-align: center;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-cta { text-align: center; }

.btn-primary {
    background: #6a1b9a;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}



/* This targets devices with screens up to 768px wide */
@media (max-width: 768px) {
    /* Make images and containers fit the screen */
    img, .hero-section, .about-section {
        max-width: 100%;
        height: auto;
    }

    /* Stack elements vertically instead of side-by-side */
    .about-section {
        display: flex;
        flex-direction: column;
    }

    /* Hide the long nav bar and show a 'Hamburger' menu button */
    .nav-links {
        display: none; /* We will show this only when the menu is clicked */
    }
}

/* This resets everything to be responsive */
* {
    box-sizing: border-box;
    max-width: 100%;
}

@media (max-width: 768px) {
    /* Make the Navigation Bar flexible */
    nav {
        flex-direction: column; /* Stack the logo and links */
        padding: 10px;
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap; /* Allows links to wrap to a new line if needed */
        justify-content: center;
        gap: 10px; /* Reduces space between links */
        font-size: 14px; /* Shrinks text slightly for mobile */
    }

    /* Make images responsive */
    img {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    /* Target the container holding the image and text */
    .about-section {
        flex-direction: column; /* This moves the image above the text */
        text-align: center;     /* Centers your text for a cleaner look */
    }

    /* Ensure the image doesn't overflow */
    .about-section img {
        width: 100%;
        margin-bottom: 20px; /* Adds space between the image and the text */
    }
}