/* ===========================================
   ABOUT.CSS  —  Dashmesh Khalsa College
   Extends global.css (do not redefine root
   tokens that already live in global.css)
=========================================== */

/* ── SECTION-BADGE (local override for icon support) ── */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    background: #eaf1ff;
    padding: 9px 18px;
    border-radius: var(--radius-badge);
    margin-bottom: 22px;
    letter-spacing: .3px;
}

.section-badge svg {
    flex-shrink: 0;
}

/* ── SECTION TITLE (center variant) ── */
.section-title {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 60px;
}

.section-title .global-h2 { margin-bottom: 16px; }
.section-title .global-p  { max-width: 580px; margin: 0 auto; }


/* ===========================================
   ABOUT COLLEGE SECTION
=========================================== */
.about-college-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-college-image {
    position: relative;
}

.about-college-image img {
    border-radius: 28px;
    height: 600px;
    width: 100%;
    object-fit: cover;
    box-shadow: 0 30px 80px rgba(10, 61, 145, .14);
}

/* decorative corner accent */
.about-college-image::before {
    content: '';
    position: absolute;
    inset: -14px -14px auto auto;
    width: 120px;
    height: 120px;
    border-radius: 20px;
    background: linear-gradient(135deg, #0a3d91 0%, #12c7ea 100%);
    z-index: -1;
    opacity: .35;
}

.about-college-content .global-h2 {
    margin-bottom: 18px;
    color: #111;
}

.about-college-content .global-p {
    margin-bottom: 16px;
}

/* STATS ROW */
.about-stats-row {
    display: flex;
    gap: 30px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.about-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-num {
    font-size: 40px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: #888;
    font-weight: 600;
    margin-top: 4px;
}


/* ===========================================
   VISION / MISSION SECTION
=========================================== */
.vision-bg {
    background: #f3f7fc;
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.vision-card {
    background: #fff;
    border-radius: 24px;
    padding: 44px 40px;
    box-shadow: 0 8px 32px rgba(10, 61, 145, .06);
    border-top: 4px solid var(--primary);
    transition: transform .35s ease, box-shadow .35s ease;
    position: relative;
    overflow: hidden;
}

.vision-card::after {
    content: '';
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0a3d91, #12c7ea);
    opacity: .04;
}

.vision-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(10, 61, 145, .12);
}

.vision-icon {
    font-size: 36px;
    margin-bottom: 18px;
    display: block;
}

.vision-card h3 {
    font-size: 24px;
    font-weight: 800;
    color: #111;
    margin-bottom: 16px;
}

.vision-card p,
.vision-card li {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
}

.vision-translate {
    margin-top: 8px;
    font-size: 14px !important;
    color: #aaa !important;
}

.vision-card ul {
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vision-card li::marker {
    color: var(--primary);
}


/* ===========================================
   MESSAGE SECTIONS (President / Secretary / Principal)
=========================================== */
.message-section {
    background: #fff;
}

.message-section--alt {
    background: #f3f7fc;
}

.message-grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 80px;
    align-items: center;
}

.message-grid--reverse {
    grid-template-columns: 1fr 420px;
}

/* Photo */
.message-image {
    position: relative;
    flex-shrink: 0;
}

.message-image img {
    border-radius: 28px;
    height: 560px;
    width: 100%;
    object-fit: cover;
    object-position: top center;
    box-shadow: 0 30px 70px rgba(10, 61, 145, .12);
}

.message-image-badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: linear-gradient(135deg, #0a3d91, #12c7ea);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 50px;
    letter-spacing: .5px;
    text-transform: uppercase;
}

/* Quote mark */
.message-quote-mark {
    font-size: 100px;
    line-height: .6;
    font-family: Georgia, serif;
    color: #eaf1ff;
    margin-bottom: 10px;
    display: block;
}

.message-content .global-h2 {
    margin-bottom: 10px;
    color: #111;
}

.message-content .global-p {
    margin-bottom: 14px;
}

/* Author */
.message-author {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid #eee;
}

.message-author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0a3d91, #12c7ea);
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.message-author h4 {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin-bottom: 4px;
}

.message-author span {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
}


/* ===========================================
   CTA SECTION
=========================================== */
.cta-bg {
    background: #f3f7fc;
}

.about-cta-box {
    background: linear-gradient(135deg, #082b73 0%, #0a3d91 50%, #0d6efd 100%);
    border-radius: 40px;
    padding: 90px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(18,199,234,.25) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    pointer-events: none;
}

.about-cta-box .global-h2 {
    color: #fff;
    margin-bottom: 16px;
}

.about-cta-box .global-p {
    color: rgba(255,255,255,.75);
    max-width: 560px;
    margin: 0 auto 36px;
}

.about-cta-box .hero-btns {
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-cta-outline {
    border: 2px solid rgba(255,255,255,.7);
    color: #fff;
    background: transparent;
    padding: 16px 32px;
    border-radius: var(--radius-btn);
    font-weight: 700;
    font-size: 17px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: .35s;
}

.btn-cta-outline:hover {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
    transform: translateY(-5px);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
}


/* ===========================================
   SCROLL-REVEAL ANIMATION
=========================================== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ===========================================
   RESPONSIVE — TABLET (≤ 992px)
=========================================== */
@media (max-width: 992px) {

    .about-college-grid,
    .message-grid,
    .message-grid--reverse {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    /* On reverse grids, put image after text on mobile */
    .message-grid--reverse .message-image {
        order: -1;
    }

    .about-college-image img {
        height: 420px;
    }

    .message-image img {
        height: 420px;
    }

    .vision-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .about-cta-box {
        padding: 60px 48px;
    }
}


/* ===========================================
   RESPONSIVE — MOBILE (≤ 767px)
=========================================== */
@media (max-width: 767px) {

    .section-title {
        margin-bottom: 40px;
    }

    /* College section */
    .about-college-image::before {
        display: none;
    }

    .about-college-image img {
        height: 280px;
        border-radius: 20px;
    }

    .about-stats-row {
        gap: 20px;
        margin-top: 28px;
    }

    .stat-num { font-size: 32px; }

    /* Vision */
    .vision-grid {
        grid-template-columns: 1fr;
    }

    .vision-card {
        padding: 30px 24px;
    }

    .vision-card h3 {
        font-size: 22px;
    }

    .vision-icon {
        font-size: 28px;
    }

    /* Message */
    .message-grid,
    .message-grid--reverse {
        gap: 32px;
    }

    /* On mobile, always show image first */
    .message-grid--reverse .message-image {
        order: -1;
    }

    .message-image img {
        height: 320px;
        border-radius: 20px;
    }

    .message-image-badge {
        bottom: 16px;
        left: 16px;
        font-size: 12px;
        padding: 6px 16px;
    }

    .message-quote-mark {
        font-size: 70px;
    }

    .message-author {
        gap: 14px;
        margin-top: 24px;
        padding-top: 20px;
    }

    .message-author h4 {
        font-size: 17px;
    }

    .message-author-avatar {
        width: 46px;
        height: 46px;
        font-size: 14px;
    }

    /* CTA */
    .about-cta-box {
        padding: 50px 24px;
        border-radius: 24px;
    }

    .about-cta-box .hero-btns {
        flex-direction: column;
        align-items: center;
    }

    .btn-cta-outline {
        font-size: 15px;
        padding: 14px 28px;
    }
}


/* ===========================================
   RESPONSIVE — SMALL MOBILE (≤ 480px)
=========================================== */
@media (max-width: 480px) {

    .about-college-image img {
        height: 240px;
    }

    .message-image img {
        height: 270px;
    }

    .vision-card {
        padding: 24px 20px;
    }

    .about-stats-row {
        gap: 16px;
    }

    .stat-num { font-size: 28px; }
    .stat-label { font-size: 12px; }
}