/* =====================================================
   REFINED ABOUT US PAGE — about.css
   ===================================================== */

:root {
    --primary: #4c3398;
    --primary-soft: rgba(76, 51, 152, 0.05);
    --secondary: #2d3436;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --white: #ffffff;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --radius-none: 0;
    --transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

body {
    background-color: #f9f9f9 !important;
}

.form-tag {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 3px;
    margin-bottom: 15px;
    display: block;
}

/* ── Stats Section ── */

/* ── Stats Section ── */
.about-stats-section {
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.about-stat-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    /* Default border */
    border-radius: var(--radius-none);
    padding: 45px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03), 0 5px 15px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    /* Horizontal line effect */
    height: 4px;
    background: var(--primary);
    transition: var(--transition);
    z-index: 1;
}

.about-stat-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(76, 51, 152, 0.12), 0 15px 30px rgba(0, 0, 0, 0.05);
    border-color: var(--primary);
}

.about-stat-card:hover::after {
    width: 100%;
    /* Reveal horizontal line at bottom */
}

/* Unique Colors for Stat Cards */
.col-lg-3:nth-child(1) .about-stat-card::after {
    background: #4c3398;
}

/* Purple */
.col-lg-3:nth-child(2) .about-stat-card::after {
    background: #f39c12;
}

/* Gold */
.col-lg-3:nth-child(3) .about-stat-card::after {
    background: #2ecc71;
}

/* Emerald */
.col-lg-3:nth-child(4) .about-stat-card::after {
    background: #e74c3c;
}

/* Crimson */

.about-stat-card:hover .stat-icon {
    color: inherit;
}

/* Keep icon color or let it be themed? */

.about-stat-card>div {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
}

.stat-icon {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 20px;
    transition: var(--transition);
}

.stat-number {
    font-family: var(--serif);
    font-size: 3rem;
    color: var(--text-main);
    margin-bottom: 10px;
    transition: var(--transition);
}

.about-stat-card p {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.75rem;
    transition: var(--transition);
}

/* ── Content Sections ── */
.about-check-icon {
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
}

/* ── Value Cards with Reveal ── */
.about-value-card {
    background: #fff;
    padding: 50px 40px;
    border: 1px solid #f0f0f0;
    border-radius: var(--radius-none);
    position: relative;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03), 0 5px 15px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}

.about-value-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    /* Horizontal line effect */
    height: 4px;
    background: var(--primary);
    transition: var(--transition);
    z-index: 1;
}

.about-value-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(76, 51, 152, 0.12), 0 15px 30px rgba(0, 0, 0, 0.05);
    border-color: var(--primary);
}

.about-value-card:hover::after {
    width: 100%;
}

/* Unique Colors for Value Cards */
.col-md-4:nth-child(1) .about-value-card::after {
    background: #4c3398;
}

.col-md-4:nth-child(2) .about-value-card::after {
    background: #3498db;
}

/* Blue */
.col-md-4:nth-child(3) .about-value-card::after {
    background: #1abc9c;
}

/* Teal */

.about-value-card>div {
    position: relative;
    z-index: 2;
}

.value-icon-wrap {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 30px;
    transition: var(--transition);
}

/* Text visibility on hover fixed - removed color: #fff */
.about-value-card:hover .value-icon-wrap {
    color: var(--primary);
}

.about-hero-section h1,
.about-hero-title,
.about-stats-section h2,
.about-value-card h5,
.heritage-years,
.stat-number,
.serif-font {
    font-weight: 700 !important;
}

.about-value-card h5 {
    font-family: var(--serif);
    font-size: 1.6rem;
    margin-bottom: 20px;
    transition: var(--transition);
}

.about-value-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    transition: var(--transition);
}

/* ── Heritage Section ── */
.heritage-img-wrapper {
    position: relative;
    padding-bottom: 40px;
}

.heritage-img-main {
    border: 8px solid var(--primary);
    box-shadow: var(--shadow-md);
}

.heritage-badge {
    position: absolute;
    bottom: 0;
    right: -20px;
    background: var(--primary);
    color: #fff;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.heritage-years {
    display: block;
    font-family: var(--serif);
    font-size: 3rem;
    line-height: 1;
}

.heritage-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ── CTA section ── */
.about-cta-section {
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 60px 0;
}

.about-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(76, 51, 152, 0.9);
}

.about-cta-content {
    position: relative;
    z-index: 2;
}

/* ── Responsive adjustments ── */
@media (max-width: 991px) {
    .about-stats-section {
        margin-top: -60px;
    }
}

/* ── Liquid Glass CTA Button ── */
.about-cta-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: var(--white) !important;
    padding: 18px 45px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15),
        inset 0 0 15px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    z-index: 5;
}

.about-cta-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -150%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transform: rotate(45deg);
    transition: 0.8s;
    z-index: 1;
}

.about-cta-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
}

.about-cta-btn:hover::before {
    left: 100%;
}

.about-cta-btn i {
    transition: transform 0.3s ease;
    z-index: 2;
}

.about-cta-btn span {
    z-index: 2;
}

.about-cta-btn:hover i {
    transform: translateX(5px);
}

/* ── Specific Font Overrides for Theme Consistency ── */
.about-hero-section p,
.about-stats-section p,
.about-value-card p,
.about-cta-section p,
.heritage-label {
    font-family: var(--sans) !important;
}

.stat-number,
.about-value-card h5,
.heritage-years {
    font-family: var(--serif) !important;
}

/* -- Heritage Section Labels -- */
.heritage-step-label {
    display: block;
    transition: var(--transition);
}

@media (max-width: 576px) {
    .heritage-step-label {
        font-size: 10px !important;
    }
}

@media (max-width: 991px) {
    .about-stat-card {
        padding: 30px 15px;
    }
    .stat-icon {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }
    .stat-number {
        font-size: 2.0rem;
        margin-bottom: 8px;
    }
    .about-stat-card p {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }
}

@media (max-width: 576px) {
    .about-stat-card {
        padding: 20px 10px;
    }
    .stat-icon {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    .stat-number {
        font-size: 1.6rem;
        margin-bottom: 5px;
    }
    .about-stat-card p {
        font-size: 0.6rem;
        letter-spacing: 0.5px;
    }
}

/* Remove dark overlay from hero on about us page */
.standard-page-hero.about-hero::before {
    background: none !important;
}

/* Sticky Heritage Image Wrapper */
.heritage-img-wrapper {
    position: -webkit-sticky;
    position: sticky;
    top: 120px;
    z-index: 5;
}

/* Responsive Timeline layout */
.heritage-timeline {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    width: 100%;
}

.heritage-timeline .timeline-step {
    flex: 1;
    text-align: left;
    position: relative;
}

@media (min-width: 768px) {
    .heritage-timeline {
        gap: 0 !important;
    }

    .heritage-timeline .timeline-step {
        padding: 0 1.5rem;
    }

    .heritage-timeline .timeline-step:first-child {
        padding-left: 0;
    }

    .heritage-timeline .timeline-step:last-child {
        padding-right: 0;
    }

    .heritage-timeline .timeline-step:not(:last-child) {
        border-right: 1px solid #ddd;
    }
}

@media (max-width: 767.98px) {
    .heritage-timeline {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem 1.5rem !important;
    }

    .heritage-timeline .timeline-step {
        flex: none;
    }
}