/* =========================================
   About Page Specific Styles
   ========================================= */

.about-hero {
    padding: 120px 0 60px;
    text-align: center;
    background: radial-gradient(circle at top right, rgba(232, 67, 147, 0.05), transparent 40%);
}

.about-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

@media (max-width: 992px) {
    .about-hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .about-hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .about-hero h1 {
        font-size: 2rem;
    }

    .about-hero {
        padding: 100px 0 40px;
    }

}

.about-hero h1 span {
    color: var(--brand-purple);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* Who We Are & Challenge Sections */
.who-we-are-grid,
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.who-we-are-image img,
.challenge-image-side img,
.mv-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
    width: 85%;
    /* Reduced size */
    max-width: 500px;
    /* Optional cap */
    display: block;
    margin: 0 auto;
    /* Center alignment */
}

.who-we-are-image img:hover,
.challenge-image-side img:hover {
    transform: scale(1.02);
}

/* Challenge List */
.challenge-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.challenge-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: var(--bg-secondary);
    padding: 16px 24px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.challenge-item:hover {
    background-color: #fff;
    box-shadow: var(--shadow-md);
    transform: translateX(10px);
}

.challenge-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(123, 44, 191, 0.1);
    color: var(--brand-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Approach & Different Grid */
.approach-grid,
.different-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

body.dark-mode .glass-card {
    background: rgba(42, 42, 42, 0.8);
    border-color: rgba(255, 255, 255, 0.05);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.approach-card i {
    font-size: 2.5rem;
    color: var(--brand-orange);
    margin-bottom: 20px;
}

.approach-card h3,
.different-content h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.approach-card p,
.different-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Mission & Vision */
.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.mv-content h2 {
    margin-bottom: 1.5rem;
}

.highlight-box {
    background-color: var(--bg-secondary);
    padding: 30px;
    border-radius: 20px;
    border-left: 4px solid var(--brand-pink);
    margin-top: 30px;
}

/* Different Grid Specifics */
.different-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* CTA Banner */
.cta-banner {
    text-align: center;
    position: relative;
    z-index: 2;
    /* Ensure stacking order */
    padding-top: 60px;
    /* Force spacing */
}

.cta-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 40px;
    background: var(--primary-gradient);
}

/* =========================================
   Gallery Section Styles (Restored)
   ========================================= */

.gallery-section {
    text-align: center;
    overflow: hidden;
}

.gallery-container {
    position: relative;
    max-width: 900px;
    margin: 40px auto 60px;
    /* Added bottom margin */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16/9;
}

.gallery-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.gallery-slide {
    min-width: 100%;
    position: relative;
    height: 100%;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: left;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-container:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(5px);
    border-radius: 50%;
    transition: background 0.3s;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.gallery-btn.prev {
    left: 20px;
}

.gallery-btn.next {
    right: 20px;
}

.gallery-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 968px) {

    .who-we-are-grid,
    .split-layout,
    .mv-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 10px;
        /* Prevent content touching edges */
    }

    .challenge-image-side,
    .mv-image {
        order: -1;
        /* Image first on mobile */
        margin: 0 -10px;
        /* Pull image slightly to edges if desired, or keep constrained */
    }

    .who-we-are-image img,
    .challenge-image-side img,
    .mv-image img {
        width: 100%;
        height: auto;
        border-radius: 16px;
        /* Slightly smaller radius for mobile */
    }

    .section-padding {
        padding: 60px 20px;
        /* Global section padding for about page */
    }
}

@media (max-width: 768px) {
    .about-hero h1 {
        font-size: 2.5rem;
    }

    .gallery-caption {
        transform: translateY(0);
        font-size: 1rem;
        padding: 15px;
    }

    .gallery-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .approach-grid,
    .different-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 32px !important;
        margin-bottom: 50px;
        /* Added spacing to prevent overlap */
    }

    .glass-card {
        margin-bottom: 0;
        /* Gap handles it */
    }

    /* Fix Why VidyaNex Cards alignment */
    .different-card {
        align-items: center;
        text-align: center;
    }

    /* Fix Life at VidyaNex Gallery alignment & size */
    .gallery-container {
        aspect-ratio: 4/3;
        width: 100%;
        margin: 20px auto 40px;
    }

    /* Fix CTA Card (Join Community & Closing) alignment */
    .cta-card {
        padding: 40px 20px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .cta-banner {
        padding-top: 40px;
        margin-bottom: 50px;
        /* Prevent collision with next section */
    }
}