/* ============================================================
   GYANSARATHI - MAIN STYLESHEET (with Reduced Testimonial Section)
   Color Theme: Elegant Purple (#6c5ce7, #8b5cf6, #a855f7)
   ============================================================ */

/* ----- CSS Variables ----- */
:root {
    --primary: #6c5ce7;
    --primary-dark: #5b21b6;
    --primary-light: #a855f7;
    --primary-soft: #f3f0ff;
    --secondary: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border-light: #e2e8f0;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

/* ----- Reset & Base ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--secondary);
    background-color: var(--white);
    line-height: 1.5;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ----- Typography ----- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-sub {
    text-align: center;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem auto;
    font-size: 1.1rem;
}

/* ----- Buttons ----- */
.btn-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
}

.btn-main:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* ----- Hero Section ----- */
.hero-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #faf5ff 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-soft);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 90%;
}

.hero-feature-box {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--secondary);
}

.feature-card i {
    color: var(--primary);
    font-size: 1rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-image {
    max-width: 100%;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.hero-image:hover {
    transform: scale(1.02);
}

/* ----- Impact Section ----- */
.impact-card {
    background: var(--white);
    border-radius: 24px;
    transition: var(--transition);
    border: 1px solid var(--border-light);
    text-align: center;
}

.impact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.impact-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
}

.impact-icon i {
    font-size: 2rem;
    color: var(--primary);
}

.counter {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

/* ----- Stakeholder Tabs Section ----- */
.stakeholders-courses-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.stakeholders-header {
    text-align: center;
    margin-bottom: 3rem;
}

.badge-stakeholders {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-soft);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.stakeholders-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.stakeholders-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.stakeholders-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.tab-btn:hover:not(.active) {
    background: var(--primary-soft);
    color: var(--primary);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Course Cards */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.course-card {
    background: var(--white);
    border-radius: 20px;
    padding: 1.5rem;
    transition: var(--transition);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.course-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.course-badge.free {
    background: #e6f7e6;
    color: #2e7d32;
}

.course-badge.premium {
    background: var(--primary-soft);
    color: var(--primary);
}

.course-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-soft);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.course-icon i {
    font-size: 1.75rem;
    color: var(--primary);
}

.course-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.course-desc {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.course-meta i {
    margin-right: 0.25rem;
    color: var(--primary);
}

.course-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-soft);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
}

.course-btn:hover {
    background: var(--primary);
    color: white;
}

.update-notice {
    background: var(--primary-soft);
    padding: 0.75rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--primary);
}

/* ----- Custom Cards ----- */
.custom-card {
    background: var(--white);
    border-radius: 20px;
    padding: 1.75rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-light);
    height: 100%;
}

.custom-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: var(--primary-soft);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
}

.icon-box i {
    font-size: 1.75rem;
    color: var(--primary);
}

/* ----- Success Stories ----- */
.success-story-card {
    background: var(--white);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.success-story-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem auto;
    border: 3px solid var(--primary-light);
}

.success-quote-text {
    font-style: italic;
    color: var(--text-muted);
    margin: 1rem 0;
    font-size: 0.875rem;
    line-height: 1.6;
}

.success-badge-custom {
    display: inline-block;
    background: var(--primary-soft);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--primary);
}

/* ----- About Section ----- */
.about-box {
    background: var(--white);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.feature-item {
    background: var(--primary-soft);
    padding: 1rem;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-3px);
    background: var(--primary);
}

.feature-item:hover i,
.feature-item:hover h6 {
    color: white;
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.feature-item h6 {
    font-size: 0.875rem;
    margin: 0;
}

.about-highlight {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 1.25rem;
    border-radius: 16px;
    text-align: center;
    font-weight: 600;
}

/* ----- Digital Ecosystem Section ----- */
.ecosystem-section {
    background: linear-gradient(135deg, #faf5ff, #ffffff);
}

.platform-card {
    background: var(--white);
    border-radius: 24px;
    padding: 1.75rem;
    transition: var(--transition);
    border: 1px solid var(--border-light);
    height: 100%;
    position: relative;
}

.platform-card.featured {
    border: 2px solid var(--primary);
    position: relative;
}

.featured-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
}

.platform-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-soft);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.card-icon i {
    font-size: 1.75rem;
    color: var(--primary);
}

.platform-title {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.platform-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.platform-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.platform-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--primary);
}

.platform-btn:hover {
    gap: 0.75rem;
    color: var(--primary-dark);
}

/* ============================================================
   REDUCED TESTIMONIAL SECTION - COMPACT & MODERN
   ============================================================ */

/* Testimonial Section Container - Reduced Padding */
.testimonial-section {
    padding: 2.5rem 0 !important;
}

/* Testimonial Card - Smaller & Compact */
.testimonial-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    max-width: 280px;
    margin: 0 auto;
}

/* Smaller Image */
.testimonial-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 0.75rem auto;
    border: 2px solid var(--primary-light);
}

/* Smaller Name */
.testimonial-card h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

/* Smaller Role Text */
.testimonial-card .small.text-muted {
    font-size: 0.7rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* Smaller Rating Stars */
.testimonial-card .rating {
    margin-bottom: 0.5rem;
}

.testimonial-card .rating i {
    font-size: 0.7rem;
    color: #fbbf24;
}

/* Smaller Quote Text */
.testimonial-card p {
    font-size: 0.75rem;
    line-height: 1.4;
    margin-top: 0.5rem;
    margin-bottom: 0;
    color: var(--text-muted);
    font-style: italic;
}

/* Reduced Swiper Container Height */
.testimonialSwiper {
    padding: 0.5rem 0 2rem 0 !important;
}

/* Smaller Swiper Navigation Buttons */
.testimonialSwiper .swiper-button-prev,
.testimonialSwiper .swiper-button-next {
    width: 30px;
    height: 30px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.testimonialSwiper .swiper-button-prev::after,
.testimonialSwiper .swiper-button-next::after {
    font-size: 0.75rem;
}

/* Smaller Pagination Dots */
.testimonialSwiper .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
}

.testimonialSwiper .swiper-pagination-bullet-active {
    width: 8px;
    background: var(--primary);
}

/* For background gradient section containing testimonial */
.bg-light-gradient {
    background: linear-gradient(135deg, #faf5ff 0%, #ffffff 100%);
    padding: 2rem 0 !important;
}

/* Adjust section title inside testimonial area */
.bg-light-gradient .section-title {
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
}

.bg-light-gradient .section-title .subtitle {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.bg-light-gradient .section-title .title {
    font-size: 1.5rem;
}

.bg-light-gradient .section-title p {
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* ----- Sector Cards ----- */
.sector-card {
    background: var(--white);
    border-radius: 20px;
    padding: 1.5rem;
    transition: var(--transition);
    border: 1px solid var(--border-light);
    text-align: center;
}

.sector-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.sector-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 16px;
    margin: 0 auto 1rem auto;
}

.job-role-item {
    display: inline-block;
    background: var(--primary-soft);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.7rem;
    margin: 0.25rem;
    color: var(--primary);
}

/* ----- Newsletter Form ----- */
.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 1px solid var(--border-light);
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.newsletter-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

/* ----- Partner Slider ----- */
.partner-slider-section {
    background: var(--bg-light);
}

.partnerSwiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.partnerSwiper img {
    max-height: 60px;
    width: auto;
    opacity: 0.7;
    transition: var(--transition);
}

.partnerSwiper img:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* ----- CTA Section ----- */
.gradient-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.cta-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* ----- Swiper Customization ----- */
.swiper-button-prev,
.swiper-button-next {
    color: var(--primary);
    background: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 1rem;
}

.swiper-pagination-bullet-active {
    background: var(--primary);
}

/* ----- Responsive Design ----- */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-desc {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
        text-align: center;
    }
    
    .hero-badge {
        margin: 0 auto 1rem auto;
    }
    
    .hero-feature-box {
        justify-content: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .stakeholders-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 100%;
        justify-content: center;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .about-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form button {
        width: 100%;
        justify-content: center;
    }

    /* Testimonial responsive adjustments */
    .testimonial-card {
        max-width: 260px;
        padding: 0.875rem 1rem;
    }

    .testimonial-img {
        width: 48px;
        height: 48px;
    }

    .testimonial-card h5 {
        font-size: 0.9rem;
    }

    .testimonial-card p {
        font-size: 0.7rem;
    }

    .bg-light-gradient {
        padding: 1.5rem 0 !important;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .counter {
        font-size: 1.75rem;
    }
    
    .impact-icon {
        width: 50px;
        height: 50px;
    }
    
    .impact-icon i {
        font-size: 1.5rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .platform-card {
        padding: 1.25rem;
    }

    /* Testimonial mobile adjustments */
    .testimonial-card {
        max-width: 240px;
    }

    .bg-light-gradient .section-title .title {
        font-size: 1.25rem;
    }
}

/* ----- Utility Classes ----- */
.text-primary {
    color: var(--primary) !important;
}

.bg-primary-soft {
    background-color: var(--primary-soft);
}

.shadow-hover {
    transition: var(--transition);
}

.shadow-hover:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}