/* =============================================================
   TUTORMATCH ABOUT PAGE STYLES (about.css)
============================================================= */

.tm-about-page {
    background-color: var(--bg-main, #f8fafc);
    color: var(--text-dark, #0f172a);
    overflow-x: hidden;
}

/* 1. HERO SECTION (UPDATED FOR BACKGROUND VIDEO) */
.tm-about-hero {
    position: relative;
    overflow: hidden;
    z-index: 1;
    padding: 90px 0 60px;
    text-align: center;
}

.tm-hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.tm-hero-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85; /* Video ko saaf dikhane ke liye opacity 0.35 se badha kar 0.75 kar di hai */
    filter: blur(0px); /* Blur Effect hata diya hai taaki video clear rahe */
}

.tm-hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Overlay ka white background halka kar diya hai taaki piche ka video saaf nazar aaye */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.5) 100%);
}

.tm-hero-wrapper {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto;
}

.tm-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #2563eb;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.tm-about-hero h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.tm-gradient-text {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tm-hero-subtitle {
    font-size: 18px;
    color: #1b1f24;
    line-height: 1.6;
    margin-bottom: 36px;
}

.tm-hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.tm-btn-lg {
    padding: 14px 28px !important;
    font-size: 15px !important;
    border-radius: 12px !important;
}

/* 2. STATS SECTION */
.tm-stats-section {
    padding: 20px 0 60px;
}

.tm-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.tm-stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: transform 0.25s ease;
}

.tm-stat-card:hover {
    transform: translateY(-4px);
}

.tm-stat-icon {
    width: 48px;
    height: 48px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 14px;
}

.tm-stat-card h2 {
    font-size: 36px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.tm-stat-card span {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

/* =============================================================
   3. FOUNDER & STORY SECTION (UPGRADED CARD LOOK)
============================================================= */
.tm-founder-section {
    padding: 60px 0;
}

.tm-founder-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.tm-badge-sub {
    color: #2563eb;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}

.tm-founder-story h2 {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 20px;
    color: #0f172a;
}

.tm-founder-story p {
    font-size: 15px;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 16px;
}

/* --- PREMIUM FOUNDER PROFILE CARD --- */
.tm-founder-profile {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center-aligns all children including signature */
    text-align: center;
    
    /* Rich Gradient Background & Subtle Blue Glow */
    background: linear-gradient(145deg, #ffffff 0%, #f0f7ff 100%);
    border: 1px solid #dbeafe;
    padding: 36px 28px;
    border-radius: 24px;
    box-shadow: 0 12px 32px -8px rgba(37, 99, 235, 0.12);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tm-founder-profile:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px -8px rgba(37, 99, 235, 0.18);
}

/* Photo Frame Styling */
.tm-photo-frame {
    position: relative;
    width: 145px;
    height: 145px;
    margin-bottom: 22px;
}

.tm-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #ffffff;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.2);
}

.tm-photo-badge {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Details & Quote */
.tm-founder-details {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tm-founder-details h3 {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 2px;
}

.tm-founder-details .tm-role {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 16px;
}

.tm-quote {
    font-style: italic;
    font-size: 14px;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 90%;
}

/* --- PERFECTLY CENTERED & SCALED SIGNATURE --- */
.tm-signature-box {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 4px;
}

.tm-signature-img {
    width: 220px;          /* Clean prominent width */
    max-width: 85%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;        /* Ensures proper flex center fallbacks */
    opacity: 0.92;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

/* 4. CORE VALUES */
.tm-values-section {
    padding: 80px 0;
}

.tm-section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
}

.tm-section-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.tm-section-header p {
    color: #64748b;
    font-size: 16px;
}

.tm-values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.tm-value-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px 24px;
    transition: all 0.3s ease;
}

.tm-value-card:hover {
    border-color: #2563eb;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.08);
}

.tm-v-icon {
    width: 44px;
    height: 44px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 18px;
}

.tm-value-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.tm-value-card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
}

/* 5. MISSION & VISION */
.tm-mission-vision {
    padding-bottom: 80px;
}

.tm-mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.tm-mv-card {
    position: relative;
    border-radius: 20px;
    padding: 40px;
    overflow: hidden;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

/* MISSION CARD */
.tm-mission-box {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
}

/* VISION CARD (Fixed Gradient & High Contrast Text) */
.tm-vision-box {
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
}

.tm-badge-light {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    letter-spacing: 0.8px;
    display: inline-block;
    backdrop-filter: blur(4px);
}

.tm-mv-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff !important; /* Explicitly white for high contrast */
    margin: 16px 0 12px;
    line-height: 1.3;
}

.tm-mv-card p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 90%;
}

.tm-mv-icon-bg {
    position: absolute;
    right: -20px;
    bottom: -20px;
    font-size: 140px;
    color: #ffffff;
    opacity: 0.08;
    pointer-events: none;
}

/* 6. CTA BANNER */
.tm-cta-section {
    padding-bottom: 90px;
}

.tm-cta-card {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 24px;
    padding: 50px 30px;
    text-align: center;
    color: #ffffff;
}

.tm-cta-card h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
}

.tm-cta-card p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 28px;
}

.tm-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.tm-btn-white {
    background: #ffffff;
    color: #2563eb;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
}

.tm-btn-transparent {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-decoration: none;
}

.tm-btn-transparent:hover,
.tm-btn-transparent:focus,
.tm-btn-transparent:focus-visible,
.tm-btn-transparent:active {
    color: #ffffff;
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .tm-founder-card {
        grid-template-columns: 1fr;
        padding: 32px;
    }
    .tm-mv-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .tm-about-hero h1 {
        font-size: 34px;
    }
    .tm-cta-buttons {
        flex-direction: column;
    }
}
