/* About Page Specific Styles */

/* Hero Slider - Full Width & Elegant Short Height */
#about-hero-slider {
    position: relative;
    width: 100%;
    height: 450px;
    /* Elegant shorter height for desktop */
    overflow: hidden;
    background-color: #050a18;
}

.hero-slider-image {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.hero-slider-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    /* High-end cover for shorter height section */
    object-position: center 20%;
    /* Carefully positioned to keep main subject visible */
}

.about-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(10, 25, 47, 0.85) 0%, rgba(10, 25, 47, 0.45) 45%, rgba(10, 25, 47, 0) 100%);
    z-index: 2;
    pointer-events: none;
}

.about-hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 3;
}

.hero-overlay-text {
    max-width: 650px;
    padding: 0 5%;
    color: white;
    text-align: left;
}

.hero-overlay-text h1 {
    font-size: 3.2rem;
    margin-bottom: 12px;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-overlay-text p {
    font-size: 1.25rem;
    margin-bottom: 25px;
    font-weight: 400;
    line-height: 1.5;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.hero-overlay-text .accent-color {
    color: var(--accent-color);
}

/* Animations */
.slide-in-left {
    opacity: 0;
    transform: translateX(-60px);
    animation: slideInLeft 1s var(--easing-premium) forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Adjustments for Hero */
@media (max-width: 1200px) {
    #about-hero-slider {
        height: 400px;
    }

    .hero-overlay-text h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 1024px) {
    #about-hero-slider {
        height: 350px;
    }

    .hero-overlay-text h1 {
        font-size: 2.22rem;
    }

    .hero-overlay-text p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    #about-hero-slider {
        height: 300px;
    }

    .about-hero .hero-overlay {
        background: rgba(10, 25, 47, 0.65);
    }

    .hero-overlay-text {
        text-align: center;
        max-width: 100%;
        padding: 20px;
    }

    .hero-overlay-text h1 {
        font-size: 1.8rem;
    }

    .hero-overlay-text p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
}

/* Classic Who We Are Section - Timeless Academy Style */
.classic-who-we-are {
    padding: 100px 0;
    background: #ffffff;
    overflow: hidden;
}

.classic-split {
    display: flex;
    align-items: center;
    gap: 80px;
}

.classic-image-side {
    flex: 1;
}

.classic-image-frame {
    width: 100%;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.classic-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

.classic-text-side {
    flex: 1;
}

.classic-heading-box {
    margin-bottom: 30px;
}

.academic-serif {
    font-family: 'Playfair Display', serif;
    /* Classic Serif Font */
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.classic-gold-divider {
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    margin-bottom: 25px;
}

.classic-body-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.academic-signature {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--accent-color);
    font-style: italic;
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Responsiveness */
@media (max-width: 1024px) {
    .classic-split {
        gap: 50px;
    }

    .academic-serif {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    .classic-split {
        flex-direction: column;
        gap: 40px;
    }

    .classic-image-side,
    .classic-text-side {
        width: 100%;
    }

    .classic-who-we-are {
        padding: 60px 0;
    }

    .academic-serif {
        font-size: 2.22rem;
    }
}

/* Vision & Mission Card Section */
.vision-mission-bg {
    background: linear-gradient(rgba(248, 249, 250, 0.95), rgba(248, 249, 250, 0.95)), url('assets/islamic-logo.webp') no-repeat center center/contain;
}

.vision-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.vision-card,
.mission-card {
    background: white;
    padding: 50px 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    transition: transform 0.4s var(--easing-premium), box-shadow 0.4s var(--easing-premium);
    height: 100%;
    border-top: 4px solid var(--accent-color);
}

.vision-card:hover,
.mission-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.icon-circle {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 25px;
}

.mission-list {
    list-style: none;
    padding: 0;
}

.mission-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.mission-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Our Foundation Section */
.foundation-section {
    padding: 100px 0;
    background: #ffffff;
}

.foundation-header {
    max-width: 800px;
    margin: 0 auto 60px;
}

.gold-accent-center {
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 20px auto;
    border-radius: 2px;
}

.foundation-intro {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.foundation-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.foundation-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.4s var(--easing-premium);
    text-align: center;
}

.foundation-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(10, 31, 68, 0.1);
    border-color: rgba(212, 175, 55, 0.2);
}

.pillar-icon {
    font-size: 3rem;
    margin-bottom: 25px;
    display: block;
}

.foundation-card h3 {
    font-size: 1.35rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.foundation-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin: 0;
}

/* Responsiveness */
@media (max-width: 1024px) {
    .foundation-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .foundation-grid {
        grid-template-columns: 1fr;
    }

    .foundation-section {
        padding: 60px 0;
    }
}

/* Principal Section */
.principal-section {
    background-color: var(--bg-light);
}

.principal-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Equal 50/50 split */
    gap: 60px;
    align-items: center;
    /* Vertical centering */
}

.principal-quote {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--primary-color);
    margin: 30px 0;
    padding-left: 20px;
    border-left: 4px solid var(--accent-color);
    line-height: 1.6;
}

.principal-text {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.principal-signature {
    display: flex;
    flex-direction: column;
}

.principal-signature strong {
    font-size: 1.2rem;
    color: var(--text-color);
}

.principal-signature span {
    color: var(--accent-color);
    font-weight: 600;
}

/* Advanced Stats Section - Premium Redesign */
.advanced-stats-section {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
}

.stats-header {
    max-width: 700px;
    margin: 0 auto 60px;
}

.stats-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-top: 15px;
}

.stats-grid-premium {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-card-premium {
    background: white;
    padding: 40px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.4s var(--easing-premium);
    border: 1px solid rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.stat-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(10, 31, 68, 0.1);
    border-color: rgba(212, 175, 55, 0.2);
}

.stat-number {
    font-size: 3.8rem;
    font-weight: 800;
    color: var(--primary-color);
    font-family: var(--font-heading);
    display: inline-block;
    line-height: 1;
}

.stat-suffix {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-left: 2px;
}

.stat-line {
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 15px auto;
    border-radius: 2px;
    transition: width 0.4s var(--easing-premium);
}

.stat-card-premium:hover .stat-line {
    width: 60px;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

/* Post-count Pulse Animation */
@keyframes goldPulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(212, 175, 55, 0));
    }

    50% {
        transform: scale(1.08);
        filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.5));
    }

    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(212, 175, 55, 0));
    }
}

.stat-pulse {
    animation: goldPulse 0.8s var(--easing-premium);
}

/* Responsiveness */
@media (max-width: 1024px) {
    .stats-grid-premium {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-number {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .stats-grid-premium {
        grid-template-columns: 1fr;
    }

    .advanced-stats-section {
        padding: 80px 0;
    }

    .stat-card-premium {
        padding: 35px 20px;
    }
}

/* Premium CTA Section - Full Width Background */
.about-cta-premium {
    position: relative;
    padding: 120px 0;
    margin-top: 40px;
    background: url('assets/admission_back_image.webp') no-repeat center center/cover;
    color: white;
    overflow: hidden;
}

.cta-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 31, 68, 0.75);
    /* Dark Royal Blue Overlay */
    z-index: 1;
}

.cta-content-box {
    position: relative;
    z-index: 2;
    max-width: 850px;
    margin: 0 auto;
}

.cta-main-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-gold-line {
    width: 70px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 0 auto 30px;
}

.cta-inspiring-text {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 45px;
    opacity: 0.95;
}

.btn-classic-gold {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 18px 45px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-classic-gold:hover {
    background-color: #c5a02c;
    /* Slightly darker gold */
    transform: scale(1.05);
    color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Responsiveness */
@media (max-width: 768px) {
    .about-cta-premium {
        padding: 80px 0;
    }

    .cta-main-title {
        font-size: 2.2rem;
    }

    .cta-inspiring-text {
        font-size: 1.1rem;
    }

    .btn-classic-gold {
        padding: 15px 35px;
        font-size: 0.9rem;
    }
}

/* Responsive */
@media (max-width: 1024px) {

    .vision-mission-grid,
    .principal-flex {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .about-hero h1 {
        font-size: 2.8rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .cta-btns {
        flex-direction: column;
    }
}