/* ============================================================
   Maruthi School - About Page Specific Styles
   Location: public/user/assets/css/about.css
   ============================================================ */

/* Global Overflow Protection against AOS animations & floating badges */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw;
}

.about-page-wrapper {
    overflow-x: hidden;
    width: 100%;
}

/* Section Spacing & Transitions */
.about-section {
    position: relative;
    overflow: hidden;
}

/* Text & Typography Helpers */
.about-text-lead {
    line-height: 1.7;
}

.about-text-body {
    line-height: 1.6;
}

.about-text-compact {
    line-height: 1.5;
}

.max-w-600 {
    max-width: 600px;
}

.max-w-700 {
    max-width: 700px;
}

/* Hero Badge */
.about-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.95rem;
    background-color: rgba(4, 120, 87, 0.08);
    border: 1px solid rgba(4, 120, 87, 0.2);
    border-radius: 50rem;
    color: #047857;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Motto Gradient Banner */
.motto-banner-card {
    background: linear-gradient(135deg, #047857 0%, #065f46 55%, #0f172a 100%);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    color: #ffffff;
    box-shadow: 0 8px 20px -4px rgba(4, 120, 87, 0.28);
    position: relative;
    overflow: hidden;
}

.motto-banner-card::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.motto-icon-box {
    font-size: 1.35rem;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
}

/* Floating Jubilee Badge */
.jubilee-floating-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    max-width: 240px;
    z-index: 2;
}

.icon-box-44 {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

/* 5-Step Process Flow Cards */
.flow-step-card {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.875rem;
    padding: 1rem 0.75rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
}

.flow-step-card:hover {
    transform: translateY(-3px);
    border-color: #047857;
    box-shadow: 0 8px 16px rgba(4, 120, 87, 0.12);
}

.flow-step-card.highlight {
    border-color: #047857;
    background-color: rgba(4, 120, 87, 0.04);
}

.flow-step-num {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: #047857;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 6px rgba(4, 120, 87, 0.25);
}

.flow-arrow-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #047857;
    font-size: 1.15rem;
    opacity: 0.5;
}

@media (max-width: 991.98px) {
    .flow-arrow-indicator {
        transform: rotate(90deg);
        margin: 0.15rem 0;
    }
}

/* Feature & Approach Cards */
.feature-box-card {
    background-color: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 0.875rem;
    padding: 1.25rem;
    height: 100%;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
}

.feature-box-card:hover {
    transform: translateY(-3px);
    border-color: #047857;
    box-shadow: 0 8px 16px rgba(4, 120, 87, 0.1);
}

.feature-box-card.featured-card {
    border: 2px solid #047857;
    box-shadow: 0 4px 14px rgba(4, 120, 87, 0.08);
}

.icon-circle-badge {
    width: 44px;
    height: 44px;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

.icon-circle-badge.green {
    background-color: rgba(4, 120, 87, 0.1);
    color: #047857;
}

.icon-circle-badge.blue {
    background-color: rgba(14, 116, 144, 0.1);
    color: #0e7490;
}

.icon-circle-badge.purple {
    background-color: rgba(126, 34, 206, 0.1);
    color: #7e22ce;
}

.icon-circle-badge.amber {
    background-color: rgba(217, 119, 6, 0.1);
    color: #d97706;
}

.icon-circle-badge.rose {
    background-color: rgba(225, 29, 72, 0.1);
    color: #e11d48;
}

.icon-circle-badge.indigo {
    background-color: rgba(67, 56, 202, 0.1);
    color: #4338ca;
}

.icon-circle-badge.teal {
    background-color: rgba(13, 148, 136, 0.1);
    color: #0d9488;
}

/* Vision & Mission Cards */
.vmc-icon-blue {
    background-color: rgba(14, 116, 144, 0.1);
    color: #0e7490;
}

.vmc-title-blue {
    color: #0e7490;
}

/* Holistic Development 5 Pillars */
.holistic-card {
    background-color: #ffffff;
    border-radius: 0.875rem;
    padding: 1.25rem;
    height: 100%;
    border-top: 4px solid #047857;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.holistic-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(4, 120, 87, 0.12);
}

.holistic-card.blue {
    border-top-color: #0e7490;
}

.holistic-card.purple {
    border-top-color: #7e22ce;
}

.holistic-card.amber {
    border-top-color: #d97706;
}

.holistic-card.rose {
    border-top-color: #e11d48;
}

/* ============================================================
   Visionary Leadership / Teachers Slider Card (Same as Homepage)
   ============================================================ */
.visionary-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 520px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.visionary-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(4, 120, 87, 0.12);
    border-color: rgba(4, 120, 87, 0.15);
}

.visionary-photo-wrap {
    width: 100%;
    height: 390px;
    position: relative;
    overflow: hidden;
    background-color: #f8fafc;
}

.visionary-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.visionary-card:hover .visionary-photo {
    transform: scale(1.08);
}

/* Float Role Badge */
.visionary-role-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #047857;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 16px;
    border-radius: 30px;
    z-index: 10;
    box-shadow: 0 8px 20px rgba(4, 120, 87, 0.25);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Default Info Panel at the bottom */
.visionary-info-panel {
    padding: 22px 20px;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.4s ease;
}

.visionary-name {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #111111;
    margin-bottom: 4px;
}

.visionary-designation {
    font-size: 0.85rem;
    color: #047857;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0;
}

/* Sliding Bio Overlay */
.visionary-bio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, #090d16 100%);
    padding: 35px 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 20;
    text-align: left;
}

.visionary-card:hover .visionary-bio-overlay {
    opacity: 1;
    transform: translateY(0);
}

.visionary-bio-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 16px;
}

.visionary-bio-highlights {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.visionary-highlight-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 500;
}

.visionary-highlight-item i {
    color: #10b981;
}

.btn-visionary-contact {
    background: #047857 !important;
    color: #ffffff !important;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    padding: 10px 18px;
    text-align: center;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-visionary-contact:hover {
    background: #ffffff !important;
    color: #047857 !important;
}

/* Activity Tags */
.activity-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    background-color: #ffffff;
    border: 1px solid rgba(4, 120, 87, 0.2);
    border-radius: 50rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #0f172a;
    transition: all 0.2s ease;
}

.activity-tag:hover {
    background-color: #047857;
    color: #ffffff;
    border-color: #047857;
    transform: translateY(-2px);
}

.activity-tag:hover i {
    color: #ffffff !important;
}

/* Tamil Quote Box */
.tamil-quote-box {
    background: linear-gradient(135deg, rgba(4, 120, 87, 0.05) 0%, rgba(16, 185, 129, 0.1) 100%);
    border: 1.5px dashed #047857;
    border-radius: 0.875rem;
    padding: 1.25rem 1.5rem;
    text-align: center;
}

.tamil-quote-text {
    line-height: 1.6;
}

/* Legacy Icon */
.legacy-icon-wrap {
    background-color: rgba(217, 119, 6, 0.1);
    color: #d97706;
}

/* Image containment */
.about-thumb-img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    max-height: 380px;
    object-fit: cover;
    border-radius: 0.875rem;
}

.school-lab-img {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: 0.75rem;
}

@media (max-width: 767.98px) {
    .about-thumb-img {
        min-height: 200px;
        max-height: 260px;
    }
    .jubilee-floating-badge {
        position: static;
        margin-top: 1rem;
        max-width: 100%;
    }
}
