/* =================================================================
   Homepage-Specific Stylesheet
   ================================================================= */

/* --- General Section & Layout --- */
.section { padding: 4rem 0; overflow-x: hidden; }
.section-title { text-align: center; margin-bottom: 3rem; font-size: clamp(2rem, 5vw, 2.5rem); font-weight: var(--font-weight-bold); color: var(--primary-dark); position: relative; }
.section-title::after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 80px; height: 4px; background-color: var(--secondary-color); border-radius: 2px; }
.button-container-center { display: flex; justify-content: center; margin-top: 2.5rem; }

/* --- Reveal-on-Scroll Animation --- */
.reveal-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

/* --- Hero Slider --- */
.hero-slider { position: relative; width: 100%; height: 65vh; max-height: 550px; min-height: 450px; overflow: hidden; background-color: var(--primary-dark); }
.hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1s ease-in-out; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.hero-slide.active { opacity: 1; }
.hero-slide::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.55); }
.hero-content { position: relative; z-index: 2; color: var(--white-color); text-align: center; max-width: 850px; }
.hero-content h1, .hero-content h2 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: var(--font-weight-bold); text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); color: var(--white-color); margin-bottom: 1rem; }
.hero-content p { font-size: clamp(1rem, 2.5vw, 1.2rem); margin-bottom: 2rem; color: rgba(255, 255, 255, 0.95); max-width: 650px; margin-left: auto; margin-right: auto; }
.slider-nav { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; z-index: 3; }
.slider-dot { width: 12px; height: 12px; background-color: rgba(255, 255, 255, 0.6); border-radius: 50%; cursor: pointer; transition: background-color var(--transition-medium); }
.slider-dot.active { background-color: var(--white-color); }


.feature-card { background: var(--white-color); padding: 2.5rem 2rem; text-align: center; border-radius: var(--border-radius); box-shadow: var(--box-shadow); transition: transform var(--transition-medium), box-shadow var(--transition-medium); }
.feature-card:hover { transform: translateY(-10px); box-shadow: var(--box-shadow-hover); }
.feature-icon { font-size: 3rem; color: var(--secondary-color); margin-bottom: 1.5rem; }
.feature-card h3 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--primary-color); }

/* --- Featured Courses (Cards) --- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; } /* MODIFIED THIS LINE */
.card { display: flex; flex-direction: column; background-color: #fff; border: 1px solid #ddd; border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--box-shadow); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card:hover { transform: translateY(-5px); box-shadow: var(--box-shadow-hover); }
.card-img-top { width: 100%; height: auto; object-fit: cover; }
.card-body { flex-grow: 1; padding: 1.5rem; display: flex; flex-direction: column; }
.card-title { font-size: 1.25rem; margin-bottom: 0.75rem; color: var(--primary-dark); }
.card-text { flex-grow: 1; color: var(--dark-gray); margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; min-height: 65px; }
.price-section { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--light-gray); }
.price-tag { font-weight: bold; white-space: nowrap; }
.sale-price { color: var(--danger-color); margin-right: 0.5rem; }
.original-price { text-decoration: line-through; color: #888; }
.card-footer { padding: 1rem 1.5rem; background-color: #f8f9fa; text-align: right; }
.card-footer .btn { width: 100%; }

/* =================================================================
   FIXED & PROFESSIONAL STUDENT REVIEWS SECTION (FINAL)
   ================================================================= */

#student-reviews-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 0; /* Increased padding for better breathing room */
    position: relative;
    overflow: hidden;
}

#student-reviews-section .section-title {
    margin-bottom: 0.5rem !important;
}

/* --- Trust Badge (Google) --- */
.google-trust-badge {
    background: #fff;
    padding: 8px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border: 1px solid #e1e4e8;
    margin-top: 10px;
    margin-bottom: 2.5rem !important; 
}

.trust-text { text-align: left; line-height: 1.2; margin-left: 12px; }
.trust-text .stars { color: #ff9c00; font-size: 0.9rem; letter-spacing: 1px; }
.trust-text .rating-val { font-weight: 800; color: var(--primary-dark); font-size: 0.9rem; }
.trust-text .review-count { color: #6c757d; font-size: 0.8rem; font-weight: 600; }

/* --- Slider Layout --- */
.reviews-slider {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    min-height: 300px; /* Slightly taller to accommodate long names */
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(30px);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.review-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* --- The Review Card --- */
.review-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    text-align: left;
    height: 100%;
}

/* Quote Icon */
.review-card::before {
    content: '"';
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 5rem;
    color: var(--secondary-color);
    opacity: 0.1;
    font-family: serif;
    line-height: 1;
    pointer-events: none;
}

/* --- Header Layout (Avatar + Info) --- */
.review-header {
    display: flex;
    align-items: center; /* Critical for vertical alignment */
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 1rem;
}

/* Avatar - Fixed Size */
.review-avatar {
    width: 70px; 
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    flex-shrink: 0; /* Prevents image from squishing */
}

/* Text Container */
.review-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

/* Name: Handles "Hifza (hissi jadoon)" perfectly */
.review-name {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: var(--primary-dark) !important;
    margin: 0 0 4px 0 !important;
    line-height: 1.3; /* Better spacing for multi-line names */
}

.review-course-tag {
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    display: block;
}

.review-rating {
    font-size: 0.8rem;
    color: #ff9c00;
    letter-spacing: 2px;
}

/* Comment Typography */
.review-comment {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4a5568;
    font-style: italic;
    margin: 0;
    font-weight: 400;
}

/* --- Navigation Dots --- */
#slider-nav-reviews {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2.5rem;
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #dce0e6;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: var(--secondary-color);
    transform: scale(1.3);
}

/* --- Button Styling --- */
.reviews-footer {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    width: 100%;
}

.btn-google-reviews {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ff9900 0%, #ff5e00 100%);
    color: white !important;
    box-shadow: 0 8px 20px rgba(255, 153, 0, 0.35);
}

.btn-google-reviews:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 153, 0, 0.5);
    background: linear-gradient(135deg, #e68a00 0%, #e64a00 100%);
    color: white !important;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .review-card { padding: 1.5rem; }
    .review-header { flex-direction: row; gap: 1rem; align-items: center; } 
    .review-avatar { width: 55px; height: 55px; }
    .review-name { font-size: 1.05rem !important; }
    .review-comment { font-size: 1rem; }
}

/* --- Premium "Explore All Reviews" Button (Course Details Style) --- */
.reviews-footer {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    width: 100%;
}

.btn-google-reviews {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    border-radius: 50px; /* Modern Pill Shape from Course Details */
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    /* Premium Accent Gradient used in Course Details */
    background: linear-gradient(135deg, #ff9900 0%, #ff5e00 100%);
    color: white !important;
    box-shadow: 0 8px 20px rgba(255, 153, 0, 0.35);
}

.btn-google-reviews i {
    margin-right: 10px;
    font-size: 20px;
    color: white;
}

/* Hover Effects matching Course Details */
.btn-google-reviews:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 153, 0, 0.5);
    background: linear-gradient(135deg, #e68a00 0%, #e64a00 100%);
}

/* --- Automated Diagonal Shimmer Transition --- */
.btn-google-reviews .shimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.4) 50%, 
        rgba(255,255,255,0) 100%
    );
    transform: skewX(-20deg) translateX(-150%);
    animation: shimmerMove 3s infinite; /* Automatic transition every 3 seconds */
}

@keyframes shimmerMove {
    0% { transform: skewX(-20deg) translateX(-150%); }
    20% { transform: skewX(-20deg) translateX(150%); } /* Quick flash */
    100% { transform: skewX(-20deg) translateX(150%); } /* Pause */
}


/* --- Stats Section --- */
.stats-section { background-color: var(--light-gray); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.stat-item { background: var(--white-color); border-radius: var(--border-radius); padding: 2rem; display: flex; align-items: center; gap: 1.5rem; box-shadow: var(--box-shadow); border-left: 5px solid var(--secondary-color); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.stat-item:hover { transform: translateY(-8px); box-shadow: var(--box-shadow-hover); }
.stat-icon { font-size: 2.8rem; color: var(--secondary-color); }
.stat-info h3 { font-size: 2.8rem; font-weight: var(--font-weight-bold); color: var(--primary-dark); margin: 0 0 0.25rem 0; line-height: 1.1; }
.stat-info p { font-size: 1rem; color: var(--dark-gray); margin: 0; }





/* =================================================================
   FIXED CTA SECTION STYLES (Overrides home.css conflicts)
   ================================================================= */

/* 1. Force the Dark Background to fix "White on White" issue */
.section.cta-section {
    background: linear-gradient(135deg, #2a2144 0%, #001f3f 100%) !important; /* Deep Luxury Blue/Purple */
    background-color: #2a2144 !important; /* Fallback */
    position: relative;
    padding: 6rem 1rem !important; /* More vertical space for a "Big Brand" feel */
    overflow: hidden;
    color: #ffffff !important; /* Force text white */
    box-shadow: 0 -10px 30px rgba(0,0,0,0.1); /* Subtle shadow at top */
    margin-top: 2rem;
}

/* 2. Pattern Overlay for Texture (Makes it look expensive) */
.cta-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(242, 140, 56, 0.08) 0%, transparent 25%);
    z-index: 1;
    pointer-events: none;
}

/* 3. Content Stacking */
.cta-content {
    position: relative;
    z-index: 2; /* Sits above overlay */
    max-width: 900px !important;
    margin: 0 auto;
    text-align: center;
}

/* 4. The Badge */
.cta-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #f28c38 !important; /* Orange text */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(5px);
}

/* 5. Typography Fixes */
.cta-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem) !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    line-height: 1.2 !important;
    margin-bottom: 1.5rem !important;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.highlight-text {
    color: #f28c38 !important; /* Your Brand Orange */
    position: relative;
    display: inline-block;
}

.cta-text {
    font-size: 1.25rem !important;
    color: rgba(255, 255, 255, 0.95) !important; /* Almost opaque white */
    line-height: 1.8 !important;
    margin-bottom: 2.5rem !important;
    font-weight: 400;
}

.cta-text strong {
    color: #ffffff;
    font-weight: 600;
    border-bottom: 1px solid rgba(242, 140, 56, 0.5); /* Subtle underline for key terms */
}

/* 6. Button Styling (High Conversion) */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

/* Primary Button (Orange/Solid) */
.btn-cta-primary {
    background: linear-gradient(135deg, #f28c38 0%, #e64a00 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 16px 36px !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    box-shadow: 0 10px 25px rgba(242, 140, 56, 0.4) !important;
    transition: all 0.3s ease !important;
}

.btn-cta-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(242, 140, 56, 0.6) !important;
}

/* Outline Button (White Border) */
.btn-cta-outline {
    background: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
    padding: 16px 36px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    transition: all 0.3s ease !important;
}

.btn-cta-outline:hover {
    background: #ffffff !important;
    color: #2a2144 !important; /* Turns dark purple on hover */
    border-color: #ffffff !important;
}

/* 7. Trust Signals (Microtext) */
.cta-trust-signals {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cta-trust-signals i {
    color: #f28c38; /* Orange checkmarks */
    margin-right: 5px;
}

.cta-trust-signals .divider {
    opacity: 0.3;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .section.cta-section { padding: 4rem 1.5rem !important; }
    
    .cta-buttons { 
        flex-direction: column; 
        width: 100%; 
        gap: 15px; 
    }
    
    .btn-cta-primary, .btn-cta-outline { 
        width: 100%; 
        text-align: center; 
    }

    /* --- THE FIX: Left Align Together, But Centered on Screen --- */
    .cta-trust-signals { 
        flex-direction: column !important;      /* Stack them vertically */
        align-items: flex-start !important;     /* Align text to the LEFT */
        gap: 10px; 
        
        /* This magic combo keeps the list in the center of the screen, 
           but the text inside is left-aligned to each other */
        display: inline-flex !important;        
        width: fit-content !important;
        margin: 0 auto !important;              
    }

    .cta-trust-signals .divider { 
        display: none !important;               /* Remove the vertical pipes | */
    }
    
    .cta-trust-signals span {
        font-size: 1rem;                        /* Slightly larger for mobile readability */
        display: flex;
        align-items: center;
    }
}

/* --- Location Section (Redesigned) --- */
.location-section .row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem; /* Increased gap for better spacing */
}

.location-section .col {
    flex: 1;
    min-width: 300px; /* Ensures columns don't get too squished */
}

.location-section .location-details h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.location-section .location-details p {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-bottom: 1.2rem;
}

.location-section .location-details p i {
    margin-top: 0.3rem;
    color: var(--secondary-color);
    font-size: 1.2rem;
    width: 20px; /* Ensures consistent icon alignment */
    text-align: center;
}

.location-section .location-details a {
    color: var(--dark-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.location-section .location-details a:hover {
    color: var(--secondary-dark);
}

.location-section .office-hours {
    background: var(--white-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-top: 2rem;
    border-left: 4px solid var(--secondary-color);
}

.location-section .office-hours strong {
    display: block;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--primary-dark);
}

.location-section .office-hours span {
    display: block;
    line-height: 1.6;
}

.location-section .map-container-large {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow-hover);
    height: 450px; /* Increased height */
    width: 100%;
}

.location-section iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- High-Authority 3-Column Grid for PSTA --- */
section.why-choose-us .why-choose-us-grid {
    display: grid !important;
    /* Strict 3-column row for a balanced, premium look on Desktop */
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2.5rem; /* Increased gap for better readability */
    margin-top: 3rem;
}

/* Tablet: Stacks vertically or stays 2x1 for better UX */
@media (max-width: 991px) {
    section.why-choose-us .why-choose-us-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
        gap: 1.5rem;
    }
}

/* Mobile: Single Column */
@media (max-width: 600px) {
    section.why-choose-us .why-choose-us-grid {
        grid-template-columns: 1fr !important;
    }
}


/* --- Responsive Media Queries --- */
@media (max-width: 767.98px) {
    .section { padding: 3rem 0; }
    .hero-slider { height: 60vh; min-height: 400px; }
    .stat-item { flex-direction: column; text-align: center; gap: 1rem; border-left: none; border-top: 4px solid var(--secondary-color); }
    .review-header { flex-direction: column; align-items: flex-start; }
    .review-rating { margin-left: 0; margin-top: 0.5rem; }
}