:root {
    /* Define Variables for easy color changes */
    --primary-color: #22A0AF;
    /* Dark Teal/Green */
    --secondary-color: #ffffff;
    /* White */
    --accent-color: #FFC107;
    /* Amber/Gold */
    --transition-speed: 0.3s;
    --purple-color: #80256B;
    /* Added for clarity */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: var(--secondary-color);
    color: var(--primary-color);
}


/* --- Arabesque Pattern Background --- */
:root {
    --primary-color-dot: #22A0AF;
    --accent-color-dot: #ffffff;
    --animation-duration: 5s;
}

@keyframes arabesque-movement {
    from {
        background-position: 40px 40px, 60px 60px;
    }

    to {
        background-position: 0 0, 20px 20px;
    }
}

.arabesque-bg {
    background-color: var(--primary-color-dot);
    background-image: radial-gradient(var(--accent-color-dot) 1px, transparent 0),
        radial-gradient(var(--accent-color) 1px, transparent 0);
    background-size: 40px 40px;
    animation: arabesque-movement var(--animation-duration) linear infinite;

    color: white;
    position: relative;
}

.arabesque-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #05222539;
    z-index: 1;
}

.arabesque-bg>* {
    position: relative;
    z-index: 2;
}



/* --- Hero Slider (Existing Styles) --- */
.hero-section {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

@media (min-width: 751px) {
    .hero-section {
        height: 90vh;
    }

}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* min-height: 400px !important; */
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    pointer-events: none;
}

.slider-item.active-slide {
    opacity: 1;
    position: relative;
    pointer-events: auto;
}

.hero-slide-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    /* gap: 40px; */
    /* padding: 40px 0; */
}

/* Text Content & Animation */
.hero-content {
    flex: 1;
    max-width: 55%;
    text-align: left;
    opacity: 0;
    transform: translateX(-50px);
}

.slider-item.active-slide .hero-content {
    animation: slideInFromLeft 1.2s ease-out forwards;
    animation-delay: 0.2s;
}

.hero-title {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 500;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.4),
        0 0 10px rgba(255, 255, 255, 0.1);
}

.hero-subtitle {
    font-size: 1em;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 400;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
}

.feature-badge {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 10px 25px;
    border-radius: 30px;
    border: 1px solid var(--accent-color);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--secondary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.feature-badge i {
    color: var(--accent-color);
    font-size: 1.1em;
}

.btn-secondary {
    color: #fff;
}

.about-button:hover .btn-secondary {
    color: #000 !important;
}

/* Dome Image Animation */
.hero-image-dome {
    flex: 0 0 45%;
    max-width: 45%;
    height: 480px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: relative;
    opacity: 0;
    transition: opacity 0.5s;
}

.slider-item.active-slide .hero-image-dome {
    opacity: 1;
}

.dome-shape {
    width: 330px;
    height: 400px;
    background-color: var(--primary-color);
    border-radius: 50% 50% 0 0;
    border: 8px solid var(--accent-color);
    position: relative;
    box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    transform: scale(0.5) translateY(100px);
    opacity: 0;
    animation: none;
}

.slider-item.active-slide .dome-shape {
    animation: bounceIn 1.5s ease-out 0.5s forwards;
}

.dome-shape img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dome-platform {
    width: 380px;
    height: 40px;
    background-color: var(--accent-color);
    position: absolute;
    bottom: 90px;
    border-radius: 5px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    transform: translateY(50px);
    opacity: 0;
    animation: none;
}

.slider-item.active-slide .dome-platform {
    animation: slideUp 1.5s ease-out 0.5s forwards;
}

/* --- Slider Dots Navigation --- */
.dots-container {
    position: absolute;
    bottom: 40px;
    width: 100%;
    text-align: center;
    z-index: 100;
}

.slider-dot {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease, transform 0.3s;
    cursor: pointer;
    border: 1px solid var(--accent-color);
}

.slider-dot.active-dot {
    background-color: var(--accent-color);
    transform: scale(1.2);
}

/* --- General Sections (Intersection Observer) --- */
.section {
    padding: 100px 0;
    text-align: center;
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1s ease-out, transform 1s ease-out;
    background-color: var(--secondary-color);
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section h2 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 40px;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 5px;
}

/* --- Keyframes for Animations --- */
@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(100px);
    }

    60% {
        opacity: 1;
        transform: scale(1.1) translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== Media Queries for Responsiveness ==================== */

/* Tablet and Mobile Navigation adjustments */
@media (max-width: 1050px) {

    /* Hide desktop menu, show hamburger icon */
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
        /* Show the hamburger icon */
    }

    .header-container {
        padding: 10px 0;
    }

    .header {
        padding: 1px 20px;
    }
}

/* Small Tablet and Mobile adjustments for the Hero Section */
@media (max-width: 850px) {

    .hero-slide-content {
        flex-direction: column;
        padding: 20px 0 60px 0;
    }

    .hero-content {
        animation: none !important;
        opacity: 1;
        transform: translateX(0);
        max-width: 100%;
        text-align: center;
        padding-bottom: 30px;
        order: 2;
    }

    .hero-image-dome {
        flex: 0 0 100%;
        max-width: 100%;
        height: 350px;
        order: 1;
        animation: none !important;
        opacity: 1;
        transform: none;
    }

    .hero-title {
        font-size: 2em;
    }

    .hero-features {
        justify-content: center;
        gap: 10px;
    }

    /* Making the Dome Shape Responsive */
    .dome-shape {
        width: 250px;
        height: 300px;
        transform: scale(1) translateY(0);
        opacity: 1;
        border-width: 5px;
    }

    .slider-item.active-slide .dome-shape,
    .slider-item.active-slide .dome-platform {
        animation: none !important;
        opacity: 1;
        transform: none;
    }

    .dome-platform {
        width: 280px;
        height: 30px;
        bottom: 50px;
    }

    .section {
        padding: 60px 0;
    }

    .section h2 {
        font-size: 2em;
    }
    .dots-container{
        bottom: 10px;
    }
}

/* ==================== About ==================== */



.about-section {
    padding: 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* HEADING */
.about-header {
    margin-bottom: 10px;
    display: flex;
    justify-content: start;
    align-items: center;
    flex-direction: column;
}

.about-header-sub {
    font-size: 1rem;
    font-weight: 500;
    color: #6b6b6b;
    text-transform: uppercase;
    font-family: "Poppins", sans-serif;
}

.about-header-title {
    font-size: 2.5em;
    font-weight: 500;
    color: #000000;
    font-family: "Poppins", sans-serif;
    margin-top: 5px;
}

.about-header-para {
    font-size: 1rem;
    color: #454545;
    width: 100%;
    margin: 15px 0;
    text-align: start;
}

/* CONTENT CONTAINER (Two Columns) */
.about-content-container {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

/* LEFT COLUMN - TEXT */
.about-text-column {
    flex: 1;
    max-width: 50%;
}

.about-key-title {
    font-size: 1.5rem;
    color: #1e1e1e;
    font-weight: 600;
}



/* CUSTOM LIST */
.about-list {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
}

.about-list li {
    font-size: 1rem;
    line-height: 1.6;
    color: #454545;
    margin-bottom: 10px;
    position: relative;
    padding: 10px 0;
    padding-left: 20px;
    background-color: #fce7b8;
    /* --- Necessary for the shine effect --- */
    overflow: hidden;
    /* Clips the pseudo-element */
    transition: background-color 0.3s ease;
    /* Smooth hover transition for background */
}

/* 1. Create the shine element using ::before */
.about-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    /* Start off-screen to the left */
    width: 50%;
    /* Width of the shine band */
    height: 100%;
    background: rgba(255, 255, 255, 0.736);
    /* Semi-transparent white shine */
    /* Create a diagonal shine effect */
    transform: skewX(-30deg);
    transition: transform 0.6s ease-in-out;
    /* Smooth transition for the shine movement */
    z-index: 1;
}

/* 2. Move the shine element on hover */
.about-list li:hover::before {
    transform: skewX(-30deg) translateX(301%);
    /* Move across the element */
}

/* Optional: Subtle background/lift effect on hover */
.about-list li:hover {
    background-color: #fce7b8;
    /* Slightly darker background on hover */
    cursor: pointer;
}

/* .about-list li::before {
            content: '☆';
            color: #007d3a;
            font-size: 1.3em;
            position: absolute;
            left: -5px;
        }

        .about-list li:hover ::before {
            content: '★';
            color: #007d3a;
            font-size: 1.3em;
            position: absolute;
            left: -5px;
        } */

.about-list li strong {
    font-weight: bold;
}

/* BUTTON STYLE */
.about-button a {
    display: inline-block;
    padding: 8px 25px;
    margin-top: 20px;
    text-decoration: none;
    border-radius: 50px;
    color: #000;
    font-weight: 500;
    border: 2px solid #FBC50B;
    position: relative;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1;
    transition: color 0.3s ease;
}

/* Button Hover Effect (Yellow Fill) */
.about-button a::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -100%;
    width: 100%;
    height: 100%;
    background-color: #FBC50B;
    z-index: -1;
    border-radius: 50px;
    transition: bottom 0.4s ease-out;
}

.about-button a::after {
    content: '→';
    margin-left: 10px;
    font-size: 1.2em;
}

.about-button a:hover::before {
    bottom: 0;
    color: #000;
}

/* RIGHT COLUMN - IMAGES */
.about-image-column {
    flex: 1;
    max-width: 50%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    position: relative;
}

.about-image-box-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-top: 30px;
}

.about-image-box-right {
    width: 50%;
    height: 480px;
    border-radius: 180px 180px 0 0;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.about-image-box-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease-in-out;
}

/* IMAGE HOVER EFFECT: Zoom */
.about-image-box-right:hover img {
    transform: scale(1.05);
}

/* Logo Image (Top Left) */
.about-logo-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background-color: #FBC50B;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
}

.about-logo-circle img {
    width: 120px;
    height: auto;
}

/* Book Image (Bottom Left) */
.about-book-image {
    width: 230px;
    height: 270px;
    border-radius: 0 0 120px 120px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.about-book-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease-in-out;
}

/* IMAGE HOVER EFFECT: Zoom */
.about-book-image:hover img {
    transform: scale(1.05);
}


/* Tablet and smaller desktops (max-width: 1024px) */
@media (max-width: 1024px) {
    .about-section {
        padding: 40px 20px;
    }

    .about-header-title {
        font-size: 2.5em;
    }

    .about-image-box-right {
        height: 380px;
        border-radius: 140px 140px 0 0;
    }
}

/* Mobile Layout (max-width: 768px) */
@media (max-width: 768px) {
    .about-header-title {
        font-size: 2em;
    }

    .about-content-container {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .about-text-column {
        max-width: 100%;
        order: 2;
    }

    .about-image-column {
        max-width: 100%;
        width: 100%;
        justify-content: space-around;
        gap: 10px;
        order: 1;
    }

    .about-image-box-left {
        padding-top: 10px;
        gap: 10px;
    }

    .about-logo-circle {
        width: 140px;
        height: 140px;
    }

    .about-logo-circle img {
        width: 90px;
    }

    .about-book-image {
        width: 160px;
        height: 200px;
        border-radius: 0 0 80px 80px;
    }

    .about-image-box-right {
        width: 50%;
        height: 340px;
        border-radius: 130px 130px 0 0;
    }

    .about-button a {
        margin-top: 20px;
    }
}



.sleek-highlights-section {
    background-image: url(images/color-bg.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding: 60px 20px;
    text-align: center;
    overflow: hidden;
}

/* --- Title Styling --- */
.sleek-highlights-title {
    color: var(--secondary-color);
    font-size: 2.5em;
    font-weight: 500;
    margin-bottom: 30px;
    /* margin-top: -30px; */
}

.sleek-highlight-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.sleek-highlight-item {
    flex-basis: 200px;
    text-align: center;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 20px;
}

.sleek-highlight-item::after {
    content: '';
    position: absolute;
    left: 20%;
    right: 20%;
    bottom: 0;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
    transition: all var(--transition-speed) ease;
}

.sleek-highlight-item:hover::after {
    left: 10%;
    right: 10%;
    background-color: var(--secondary-color);
}

.sleek-highlight-number {
    display: block;
    font-size: 3em;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 5px;
    line-height: 1.1;
    /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);  */
}

.sleek-highlight-number.plus::after {
    content: '+';
    font-size: 0.7em;
    color: var(--accent-color);
    text-shadow: none;
}

.sleek-highlight-label {
    font-size: 1.1em;
    font-weight: 500;
    color: var(--secondary-color);
    /* text-transform: uppercase; */
    letter-spacing: 0.5px;
}

/* --- Media Query for Mobile --- */
@media (max-width: 768px) {
    .sleek-highlight-container {
        gap: 30px;
    }

    .sleek-highlight-item {
        flex-basis: 45%;
        margin-bottom: 30px;
    }

    .sleek-highlight-number {
        font-size: 3em;
    }
}




/* =========== Service ================== */


.service-section {
    padding: 40px;
    width: 100%;
    margin: 0 auto;
    background-color: #ffffff;
}

/* --- HEADER AREA --- */
.service-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
}

.service-header-text {
    max-width: 70%;
}

.section-tag {
    font-size: 0.9em;
    font-weight: 500;
    background-color: #555c8f22;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
    width: fit-content;
    padding: 6px 20px;
    border-radius: 30px;
    color: var(--purple-color);
}

.service-main-heading {
    font-size: 2.8em;
    font-weight: 500;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.2;
}

.service-description {
    font-size: 1em;
    color: #6c757d;
    max-width: 90%;
}

/* ALL SERVICES BUTTON (Updated to service-all-btn as used in the HTML) */
.service-all-btn a {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    text-decoration: none;
    color: #fff;
    background-color: #555c8f;
    /* Blue Button */
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.service-all-btn a:hover {
    background-color: #434975;
}

.service-all-btn a::after {
    content: '→';
    margin-left: 10px;
    font-size: 1.2em;
}


/* --- SERVICE CARDS CONTAINER --- */
.service-card-container {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

/* --- INDIVIDUAL CARD --- */
.service-card {
    flex: 1;
    min-height: 450px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background-color: #212529;
    /* Fallback dark color */
    transition: transform 0.3s ease;
    cursor: pointer;
    /* Added for better UX with hover */
}

.service-card:hover {
    transform: translateY(-5px);
}

/* Card Image */
.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Dark Blue Overlay (for contrast) */
.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(16, 16, 26, 0.5) 40%, rgba(2, 3, 31, 0.1) 100%);
    z-index: 2;
}

/* Card Content (Icon, Title, and Description) */
.service-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px;
    color: #fff;
    z-index: 3;
    /* Styles for hover animation setup */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    transition: padding 0.3s ease;
}

/* Icon Placeholder */
.service-icon {
    font-size: 2em;
    display: inline-block;
}

.service-card-title {
    font-size: 1.25em;
    font-weight: 600;
    /* Animation: Title position change */
    transform: translateY(0);
    transition: transform 1.3s ease;
    margin-bottom: 0;
}

/* New CSS for the hidden description paragraph */
.service-card-description {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.85);
    /* Initially hidden and positioned below */
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    margin-top: 10px;
    transform: translateY(20px);
    transition: opacity 1.3s ease, transform 1.3s ease, max-height 1.3s ease;
    width: 100%;
    overflow: hidden;
}

/* Hover Effects */
.service-card:hover .service-card-title {
    /* Move title up slightly */
    transform: translateY(-10px);
}

.service-card:hover .service-card-description {
    /* Make description visible, move it up, and give it height */
    opacity: 1;
    visibility: visible;
    max-height: 100px;
    transform: translateY(0);
}


/* ------------------------------------------------ */
/* RESPONSIVENESS */
/* ------------------------------------------------ */

/* Tablet Layout */
@media (max-width: 992px) {
    .service-header-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .service-header-text {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .service-all-btn {
        width: 100%;
    }

    .service-all-btn a {
        justify-content: center;
    }

    .service-card-container {
        flex-wrap: wrap;
        /* Wrap cards to next row */
    }

    .service-card {
        flex: 1 1 calc(50% - 10px);
        /* Two cards per row */
        min-height: 350px;
    }

    .service-card:hover .service-card-title {
        transform: translateY(-5px);
        /* Less movement on smaller screens */
    }
}

/* Mobile Layout */
@media (max-width: 576px) {
    .service-section {
        padding: 40px 20px;
    }

    .service-main-heading {
        font-size: 2em;
    }

    .service-card-container {
        flex-direction: column;
        /* Stack cards vertically */
    }

    .service-card {
        flex: 1 1 100%;
        /* Full width for cards */
        min-height: 300px;
    }

    .service-description {
        max-width: 100%;
    }
}






/* =========Offer Section========== */


.offer-section {
    position: relative;
    text-align: center;
    background-color: #254636;
    padding: 80px 0 200px;
    overflow: hidden;
    width: 100%;
}

/* Background Image and Opacity */
.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Path provided by the user */
    background-image: url(images/back-img.png);
    background-size: cover;
    background-position: center;
    /* opacity: 0.1;  */
    z-index: 0;
    pointer-events: none;
}

.offer-section .content {
    position: relative;
    z-index: 1;
}

.what-we-offer {
    color: #00ff00;
    /* Dark Green color for header tag */
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.offer-section h2 {
    font-size: 40px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 50px;
    line-height: 1.2;
}

/* Service Cards Container */
.services-container {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.info-service-card {
    /* CORRECTED: White background as per image */
    background-color: #fff;
    color: #333;
    padding: 30px;
    border-radius: 8px;
    text-align: left;
    max-width: 360px;
    min-height: 250px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
}

.icon-box {
    background-color: #fce7b8;
    /* Light yellow background */
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    float: right;
    margin-left: 15px;
    /* Mimics the slight glow/ring around the icon */
    box-shadow: 0 0 0 5px rgba(252, 231, 184, 0.4);
}

.info-service-card .icon {
    font-size: 28px;
    color: #c7903f;
    /* Gold/Brown icon color */
    display: block;
}

.info-service-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
    color: #333;
}

.info-service-card p {
    font-size: 14px;
    color: #666;
    /* Grey text for light background */
    margin-bottom: 25px;
    line-height: 1.6;
    clear: both;
}

.read-more {
    color: #c7903f;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
}

.read-more .arrow {
    margin-left: 8px;
    font-size: 18px;
    line-height: 1;
}


/* --- 2. Stats Section (Green Bottom Section) --- */
.stats-section {
    background-color: #1e7d4d;
    /* Full width green background */
    padding-top: 100px;
    padding-bottom: 80px;
    color: #fff;
    width: 90%;
    position: relative;
    z-index: 2;
    margin: -100px auto 40px;
    border-radius: 20px;

}

.stats-section .stats-content-wrapper {
    /* Content is centered and max-width is applied, creating the desired side space/margin */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.stats-section .flex-container {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

/* Left Content (Text and Student Count) */
.left-content {
    flex: 1;
    max-width: 50%;
}

.left-content h2 {
    font-size: 2.3rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 20px;
}

.left-content .description {
    font-size: 15px;
    color: #c8e6d6;
    margin-bottom: 50px;
    max-width: 80%;
    line-height: 1.6;
}

.active-students {
    display: flex;
    align-items: center;
    gap: 20px;
}

.students-icon-circle {
    background-color: #c7903f;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.1);
}

.students-icon-circle .icon {
    font-size: 35px;
    color: #fff;
}

.students-count .number {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}

.students-count .label {
    font-size: 18px;
    font-weight: 400;
    color: #c8e6d6;
}

/* Right Content (Ratings and Pass Out Boxes) */
.right-content {
    flex: 1;
    max-width: 50%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    /* Custom box-shadow to mimic the curved yellow glow on the side */
    box-shadow: -15px 15px 0 0 #fce7b8, -15px 15px 0 50px rgba(252, 231, 184, 0.3);
    z-index: 10;
}

/* Rating Box */
.rating-box {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.rating-box-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 120px;
}

.rating-box-left .stars {
    font-size: 15px;
    color: #c7903f;
    line-height: 1;
    margin-bottom: 5px;
}

.rating-box-left .rating-number {
    font-size: 56px;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

.rating-text {
    color: #333;
    flex-grow: 1;
    padding-top: 10px;
}

.rating-text h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.rating-text p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* Pass Out Box */
.pass-out-box {
    background-color: #28a745;
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.count-box {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    padding-right: 20px;
    border-right: 2px solid #5cb874;
    min-width: 120px;
    text-align: center;
}

.pass-out-text {
    flex-grow: 1;
}

.pass-out-text h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.pass-out-text p {
    font-size: 13px;
    color: #c8e6d6;
    line-height: 1.5;
}

/* Media Query for Basic Responsiveness */
@media (max-width: 992px) {
    .offer-section {
        padding-bottom: 120px;
    }

    .stats-section {
        margin-top: -80px;
        padding-top: 80px;
    }

    .services-container,
    .stats-section .flex-container {
        flex-direction: column;
        gap: 25px;
    }

    .info-service-card {
        max-width: 100%;
    }

    .left-content,
    .right-content {
        max-width: 100%;
        text-align: center;
    }

    .left-content .description {
        max-width: 100%;
    }

    .active-students {
        justify-content: center;
    }

    .right-content {
        /* Remove complex shadow for clean mobile view */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .rating-box {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: left;
    }

    .pass-out-box {
        flex-direction: column;
    }

    .background-overlay {
        background-image: url(images/back-img-phone.png);
        background-size: cover;
    }
}












/* ==================== Footer Media Queries (Responsiveness) ==================== */

@media (max-width: 992px) {
    .footer-container {
        justify-content: space-around;
        gap: 40px;
    }

    .footer-column {
        flex: 1 1 calc(50% - 30px);
        max-width: calc(50% - 15px);
    }

    .footer-bottom-container {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 600px) {
    .main-footer {
        padding-top: 40px;
    }

    .footer-container {
        flex-direction: column;
        gap: 40px;
        padding: 0 20px 30px;
    }

    .footer-column {
        min-width: 100%;
        max-width: 100%;
    }

    .footer-bottom-container {
        padding: 30px 20px;
    }
}


/* =========================================
   Service Card Buttons (Read More / Enroll Now)
   ========================================= */

.service-card-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    visibility: hidden;
    height: 0;
    width: 100%;
    /* Initially collapse height */
}

/* Show buttons on hover */
.service-card:hover .service-card-buttons {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    height: auto;
    /* Expand height */
}

.btn-read-more,
.btn-enroll-now {
    padding: 8px 16px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    flex: 1;
    /* Make buttons equal width */
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.btn-read-more {
    background-color: transparent;
    border: 1px solid #fff;
    color: #fff;
}

.btn-read-more:hover {
    background-color: #fff;
    color: #212529;
    /* Dark color for text on hover */
}

.btn-enroll-now {
    background-color: var(--primary-color);
    /* Amber/Gold */
    color: #ffffff;
}

.btn-enroll-now:hover {
    background-color: #e0a800;
    /* Darker Gold */
    border-color: #e0a800;
    transform: translateY(-2px);
}


/* =========================================
   Ramadan Course Popup Styles
   ========================================= */

.popup-overlay {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000111;
    /* High z-index to sit on top of everything */
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.popup-content {
    background-color: #fff;
    border-radius: 10px;
    width: 90%;
    max-width: 980px;
    max-height: 90vh;
    /* Limit height */
    overflow-y: auto;
    /* Scroll if content is too tall */
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: slideUpPopup 0.4s ease;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
    background-color: #ffffff71;
    border-radius: 20px;
    padding: 0 10px;
}

.close-popup:hover {
    color: var(--primary-color);
}

.popup-body {
    display: flex;
    flex-wrap: wrap;
    /* responsive wrap */
}

/* Left Side - Image */
.popup-left {
    flex: 1;
    min-width: 300px;
    position: relative;
    overflow: hidden;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.popup-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Right Side - Content */
.popup-right {
    flex: 1.2;
    padding: 30px;
    min-width: 300px;
    color: #333;
}

.popup-right h3 {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
}

.popup-subtitle {
    font-size: 1em;
    color: #666;
    margin-bottom: 10px;
    font-style: italic;
}

/* Age Groups */
.age-groups h4 {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #333;
}

.age-boxes {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.age-boxes span {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-size: 0.9em;
    font-weight: 600;
    color: #555;
    flex: 1;
}

/* Course Highlights */
.course-highlights {
    margin-bottom: 10px;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
}

.course-highlights h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 1.1em;
}

.course-highlights ul {
    list-style-type: none;
    padding-left: 0;
    columns: 2;
    /* Two columns for list items */
}

.course-highlights ul li {
    margin-bottom: 5px;
    padding-left: 20px;
    position: relative;
    font-size: 0.95em;
}

.course-highlights ul li::before {
    content: "✓";
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Details & CTA */
.course-details {
    margin-bottom: 25px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.course-details p {
    font-size: 1em;
    margin-bottom: 5px;
}

.popup-cta-btn {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    transition: background-color 0.3s;
}



/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUpPopup {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile Responsiveness for Popup */
@media (max-width: 768px) {
    .popup-body {
        flex-direction: column;
    }

    .popup-left {
        height: 200px;
        /* Limit image height on mobile */
        border-top-right-radius: 10px;
        /* Fix radius for stacked layout */
        border-bottom-left-radius: 0;
    }

    .popup-right {
        padding: 20px;
    }

    .course-highlights ul {
        columns: 1;
        /* Single column list on small screens */
    }
}