/* css/index.css */

/* Hero Section */
.hero-section {
    padding-top: 2rem;
    padding-bottom: 1.5rem;
}
.hero-section .content-container {
    /* No specific styles needed for .content-container here if global is sufficient */
}
.hero-section .hero-section-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem; /* Spacing between text and image columns on mobile */
}
.hero-section .text-content {
    text-align: center;
    margin-top: 0rem;
}
.hero-section .text-content p.subtitle {
    font-size: 1rem; /* MODIFIED: was 1.125rem */
    color: #374151; /* text-gray-700 */
    margin-bottom: 0; /* Ensure bottom margin is zero */
}
.hero-section .text-content h1 {
    font-size: 2.5rem; /* MODIFIED: was 3rem */
    font-weight: 800;
    /* color: #ad5207; from global h1 */
    line-height: 1.1; /* Tighter line-height */
    margin-top: 0; 
    margin-bottom: 0rem;
    padding-top: 0.3rem;
}
.hero-section .text-content p.description {
    color: #4B5563; /* text-gray-600 */
    font-size: 1rem; /* MODIFIED: was 1.125rem */
    margin-bottom: 6rem;
    max-width: 32rem; /* Kept for text block width */
    margin-left: auto; /* Center the text block if narrower than its column */
    margin-right: auto;
}
.hero-section .text-content button.btn-primary {
    margin-bottom: 0rem; 
    font-weight: 700;
}
.hero-section .text-content .rating-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0rem;
}
.hero-section .text-content .stars-wrapper { /* .stars class provides .filled style */
    font-size: 1rem;
    display: flex;
    margin-right: 0.5rem;
}
.hero-section .text-content .stars-wrapper > i + i {
    margin-left: 0.25rem;
}
.hero-section .text-content .rating-text {
    color: #4B5563; /* text-gray-600 */
    font-size: 0.875rem;
}
.hero-section .image-content {
    display: flex;
    justify-content: center; /* Center image within its column */
    margin-top: 0rem;
}
.hero-section .image-content img {
    width: 100%;
    max-width: 36rem; /* Max width of the image itself */
    height: auto;
    border-radius: 0.5rem;
}

/* Statistics Section */
.stats-section {
    padding-top: 2rem;
    padding-bottom: 1.5rem;
}
.stats-section .content-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    text-align: center;
    gap: 1rem;
    flex-direction: row;
    align-content: flex-start;
    justify-content: space-around;
}

.stats-section .stat-item h3 {
    font-size: 2rem; /* MODIFIED: was 2.25rem */
    font-weight: 800;
    color: #ad5207;
    margin: 0;
}

.stats-section .stat-item p {
    color: #374151;
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* What Do We Teach Section */
.what-we-teach-section {
    background-color: #ad5207; /* This is the dark brand color background */
    text-align: center;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    margin-bottom: 3rem; /* Spacing from global.css for section */
    padding-top: 3rem; 
    padding-bottom: 4rem;
}
.what-we-teach-section h2,
.about-us-section-home h2,
.what-makes-us-different-section h2 {
    font-size: 2rem; /* MODIFIED: was 2rem-2.5rem */
}
/* MODIFIED: Increased h2 size for specific sections on mobile */
.what-we-teach-section h2,
.about-us-section-home h2 {
    font-size: 2.5rem;
}
.what-we-teach-section h2 {
    font-weight: 800;
    color: white !important;
    margin-bottom: 1.5rem;
}
.what-we-teach-section p.intro-text {
    color: white !important;
    font-size: 1.125rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}


/* --- IMPROVED TEACH CARD STYLES --- */
.what-we-teach-section .grid-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* This ensures all items, including the last one, are centered */
    gap: 2rem;
}

.what-we-teach-section .teach-card {
    background-color: #FFFFFF; /* Solid white background */
    border-radius: 2rem; /* Increased rounding */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Softer shadow */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1 1 300px;
    max-width: 340px; /* Control max width */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

.what-we-teach-section .teach-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* This new wrapper will hold the image and provide padding */
.what-we-teach-section .teach-card-image-wrapper {
    padding: 1rem; /* Inward padding for the image */
    background-color: #FFFFFF; /* White background for the image area */
    border-radius: 1rem; /* Increased rounding */
    margin: 0rem;
}

.what-we-teach-section .teach-card img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 1rem; /* Rounded corners for the image itself */
}

.what-we-teach-section .teach-card-content {
    padding: 0 1.5rem 1.5rem; /* Adjusted padding */
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.what-we-teach-section .teach-card h3 {
    color: #ad5207;
    font-weight: 700;
    font-size: 1.5rem; /* Increased size */
    margin-top: 0;
    margin-bottom: 0rem; /* Reduced padding */
}

.what-we-teach-section .teach-card p {
    color: #374151;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.what-we-teach-section button.view-more-button {
    margin-top: 3rem;
    background-color: white;
    color: #ad5207;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    transition-property: background-color, transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
    border: none;
    cursor: pointer;
}
.what-we-teach-section button.view-more-button:hover {
    background-color: #F3F4F6;
    transform: scale(1.05);
}
/* --- END OF IMPROVED STYLES --- */


/* About Us Section on Home Page */
.about-us-section-home {
    padding-top: 2rem;
    padding-bottom: 2rem;
}
.about-us-section-home .content-container {
}
.about-us-section-home .about-us-section-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}
.about-us-section-home .text-content {
    text-align: center;
}
.about-us-section-home .text-content h2 {
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1.5rem;
}
.about-us-section-home .text-content p.description {
    color: #4B5563; /* text-gray-600 */
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}
.about-us-section-home .text-content button.btn-primary {
    /* MODIFIED: Increased button size and adjusted margin */
    padding: 1rem 2.5rem;
    margin-bottom: 0rem;
}
.about-us-section-home .text-content .rating-container {
    display: flex;
    align-items: center;
    justify-content: center;
    /* MODIFIED: Removed top margin */
    margin-top: 0rem;
}
.about-us-section-home .text-content .stars-wrapper {
    /* MODIFIED: Adjusted font size */
    font-size: 1rem;
    display: flex;
    margin-right: 0.5rem;
}
.about-us-section-home .text-content .stars-wrapper > i + i { margin-left: 0.25rem; }
.about-us-section-home .text-content .rating-text {
    color: #4B5563; /* text-gray-600 */
    font-size: 0.875rem;
}
.about-us-section-home .image-testimonial-section {
    display: flex;
    justify-content: center;
}
.about-us-section-home .image-testimonial-section img.main-image {
    width: 100%;
    max-width: 36rem;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 0.5rem;
}

/* What Makes Us Different Section */
.what-makes-us-different-section {
    padding-top: 4rem;
    padding-bottom: 2rem;
}
.what-makes-us-different-section .content-container {
    text-align: center;
}
.what-makes-us-different-section h2 {
    font-weight: 800;
    margin-bottom: 1.5rem;
}
.what-makes-us-different-section p.intro-text {
    color: #4B5563; /* text-gray-600 */
    font-size: 1rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}

.what-makes-us-different-section .grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.what-makes-us-different-section .feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.what-makes-us-different-section .feature-card svg {
    width: 6rem;
    height: 6rem;
    margin-bottom: 1rem;
    stroke: #ad5207;
}
.what-makes-us-different-section .feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

/* CSS Sprites - Common Styles */
.sprite-icon {
    background-image: url('../assets/images/css_sprites.webp');
    background-repeat: no-repeat;
}

/* Feature Icons in "What makes us different" section */
.feature-icon {
    width: 96px;
    height: 96px;
    /* FIXED: Changed the bottom margin to reduce the gap */
    margin-bottom: 0rem;
    background-size: 288px 288px;
}

/* Positions for each feature icon (re-scaled for 96px size) */
.icon-one-to-one { background-position: -96px -192px; }
.icon-schedule { background-position: 0 -192px; }
.icon-experienced-teacher { background-position: -192px -96px; }
.icon-guaranteed-results { background-position: -96px 0; }
.icon-personalized-lessons { background-position: 0 -96px; }
.icon-child-friendly { background-position: 0 0; }


/* Trusted by Section */
.trusted-by-section {
    padding-top: 4rem;
    padding-bottom: 2rem;
}
.trusted-by-section .content-container {
}
.trusted-header-grid {
    display: flex;
    flex-direction: column; 
    align-items: center;
    text-align: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-right: 0;
}
.trusted-header-grid .header-text h2 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
}
.rating-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.rating-summary .rating-value {
    font-size: 2.75rem;
    font-weight: 800;
    color: #ad5207;
    line-height: 1;
}
.rating-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}
.rating-summary .rating-count-text {
    color: #4B5563;
    font-size: 1rem;
    line-height: 1.4;
}
.rating-summary .stars-wrapper {
    font-size: 1.125rem;
    display: flex;
    color: #FFD700;
}
.rating-summary .stars-wrapper > i + i {
    margin-left: 0.125rem;
}

.trusted-by-section .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2rem;
}
.trusted-by-section .testimonial-item {
    background-color: #fffaf2;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.trusted-by-section .testimonial-item .stars-rating {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    display: flex;
}
.trusted-by-section .testimonial-item .stars-rating > i + i { margin-left: 0.25rem; }
.trusted-by-section .testimonial-item p.quote {
    color: #374151;
    font-size: 1rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}
.trusted-by-section .testimonial-item .author-info {
    display: flex;
    align-items: center;
    margin-top: auto;
}
.trusted-by-section .testimonial-item .author-info img {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    margin-right: 0.75rem;
    object-fit: cover;
}
.trusted-by-section .testimonial-item .author-info .name {
    font-weight: 600;
    color: #1F2937;
    /* ADD THIS LINE */
    margin: 0;
}
.trusted-by-section .testimonial-item .author-info .details {
    font-size: 0.8rem;
    color: #4B5563;
    /* ADD THIS LINE */
    margin-top: 0.2rem;
}

/* Contact Us Section on Home Page */
.contact-us-section-home {
    padding-top: 2rem;
    padding-bottom: 2rem;
}
.contact-us-section-home .content-container {
}
.contact-us-section-home .contact-us-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 3rem;
}
.contact-us-section-home .contact-info {
    text-align: center;
}
.contact-us-section-home .contact-info h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}
.contact-us-section-home .contact-info p.intro {
    color: #4B5563;
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}
.contact-us-section-home .contact-info .details-group {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap; 
}
.contact-us-section-home .contact-info .details-group > div + div {
    margin-top: 0;
}
.contact-us-section-home .contact-info .details-group p.label {
    font-weight: 600;
    color: #374151;
}
.contact-us-section-home .contact-info .details-group p.value {
    color: #4B5563;
}
.contact-us-section-home .contact-form-container {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}
/* Profile Icons in "Testimonials" section */
.profile-icon {
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    margin-right: 0.75rem;
    background-size: 120px 120px;
}

/* Positions for each profile icon */
.icon-hijab { background-position: -40px -40px; }
.icon-muslim-man { background-position: -80px 0; }

/* International Telephone Input Customization */
.contact-form-container .iti {
    width: 100% !important;
    display: block !important;
}

.contact-form-container .iti__flag-container {
    background-color: #f9fafb;
    border: 1px solid #d1d5db;
    border-right: none;
    border-radius: 0.375rem 0 0 0.375rem;
}

.contact-form-container .iti__selected-flag {
    background-color: #f9fafb;
    border: none;
    padding: 0 8px;
    height: 100%;
    display: flex;
    align-items: center;
}

.contact-form-container .iti__selected-flag:hover {
    background-color: #f3f4f6;
}

.contact-form-container .iti__country-list {
    background-color: white;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
}

.contact-form-container .iti__country-list .iti__country {
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.contact-form-container .iti__country-list .iti__country:hover {
    background-color: #f3f4f6;
}

.contact-form-container .iti__country-list .iti__country.iti__highlight {
    background-color: #c2c2c2;
    color: white;
}

.contact-form-container .iti__country-name {
    font-size: 0.875rem;
    color: #374151;
}

.contact-form-container .iti__dial-code {
    font-size: 0.875rem;
    color: #6b7280;
}

.contact-form-container .iti__selected-dial-code {
    font-size: 0.875rem;
    color: #374151;
    margin-left: 4px;
}

.contact-form-container .iti input[type="tel"] {
    border-radius: 0 0.375rem 0.375rem 0;
    border-left: none;
    padding-left: 12px;
}

.contact-form-container .iti input[type="tel"]:focus {
    outline: none;
    ring: 2px;
    ring-color: #ad5207;
    ring-opacity: 0.5;
    border-color: #ad5207;
}

.contact-form-container .form-group {
    position: relative;
    z-index: 1;
}

.contact-form-container .form-group:has(.iti) {
    z-index: 10;
}


/* ====== RESPONSIVE STYLES ====== */

@media (min-width: 768px) {
    /* --- FLUID TYPOGRAPHY & SIZING --- */
    .hero-section .text-content h1 {
        font-size: clamp(2.5rem, 1.5rem + 2.5vw, 3.75rem);
    }
    
    .what-we-teach-section h2,
    .about-us-section-home h2,
    .what-makes-us-different-section h2,
    .trusted-header-grid .header-text h2 {
        font-size: clamp(2rem, 1.75rem + 0.8vw, 2.25rem);
    }

    .stats-section .stat-item h3 {
        font-size: clamp(2.25rem, 1.8rem + 1.5vw, 2.75rem);
    }

    .rating-summary .rating-value {
        font-size: clamp(3.5rem, 2.5rem + 3vw, 4.5rem);
    }

    /* --- LAYOUT ADJUSTMENTS --- */
    .hero-section .hero-section-grid,
    .about-us-section-home .about-us-section-grid {
        flex-direction: row;
        align-items: center;
    }
    .hero-section .text-content,
    .about-us-section-home .text-content {
        text-align: left;
        width: 50%;
    }
    .hero-section .image-content,
    .about-us-section-home .image-testimonial-section {
        width: 50%;
        display: flex;
        justify-content: flex-end;
    }
    .hero-section .image-content {
        margin-top: 5rem;
    }
    .hero-section .text-content p.description,
    .about-us-section-home .text-content p.description {
        margin-left: 0;
        margin-right: 0;
    }
    .hero-section .text-content button.btn-primary,
    .about-us-section-home .text-content button.btn-primary {
        margin-bottom: 0;
    }
    .about-us-section-home .text-content button.btn-primary {
        padding: 0.75rem 2rem;
    }
    .hero-section .text-content .rating-container,
    .about-us-section-home .text-content .rating-container {
        justify-content: flex-start;
    }

    .stats-section .content-container {
        flex-wrap: nowrap;
    }

    .what-makes-us-different-section .grid-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    /* FIXED: Restoring correct sprite icon sizes for desktop */
    .feature-icon {
        width: 192px;
        height: 192px;
        margin-bottom: 0rem;
        background-size: 576px 576px;
    }

    .icon-one-to-one { background-position: -192px -384px; }
    .icon-schedule { background-position: 0 -384px; }
    .icon-experienced-teacher { background-position: -384px -192px; }
    .icon-guaranteed-results { background-position: -192px 0; }
    .icon-personalized-lessons { background-position: 0 -192px; }
    .icon-child-friendly { background-position: 0 0; }

    .what-makes-us-different-section .feature-card h3 {
        font-size: 1.1rem;
    }

    .what-we-teach-section .teach-card-content {
        padding: 0 2.5rem 2.5rem;
    }
    
    .what-we-teach-section .teach-card h3 {
        font-size: 1.4rem;
    }
    
    .what-we-teach-section .teach-card p {
        font-size: 1.05rem;
    }
    
    .trusted-header-grid {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        padding-right: 2rem;
    }
    .trusted-by-section .testimonials-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-us-section-home .contact-info .details-group {
        gap: 4rem;
        margin-top: 2rem;
    }
}

@media (min-width: 1024px) {
    .contact-us-section-home .contact-us-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .contact-us-section-home .contact-info {
        text-align: left;
    }
    .contact-us-section-home .contact-info p.intro {
        margin-left: 0;
    }

    .contact-us-section-home .contact-info .details-group {
        justify-content: flex-start;
    }

    .what-we-teach-section .grid-container {
        gap: 2.5rem;
    }
    
    .what-we-teach-section .teach-card {
        flex: 1 1 320px;
    }
}