/* About Page Variables for Light & Dark Mode */
:root, [data-theme="light"], .light-mode {
    --about-banner-grad: radial-gradient(circle at 50% 0%, #1e3a8a 0%, #1e293b 55%, #0f172a 100%);
    --about-banner-border: rgba(255, 255, 255, 0.15);
    --about-badge-bg: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
    --about-subtitle-color: #e2e8f0;
    
    --about-card-bg: #ffffff;
    --about-card-border: #e0e0e0;
    --about-text-main: #333333;
    --about-title-color: #2c3e50;
    --about-subtitle-text: #444444;
    --about-accent: #007bff;
    --about-accent-hover: #0056b3;
    --about-brand: #d63031;
    --about-timeline-bg: #f8f9fa;
    --about-timeline-border: #dee2e6;
    --about-contact-bg: #f8f9fa;
    --about-contact-border: #eeeeee;
    --about-footer-text: #555555;
}

/* Manual Dark Mode Classes Support */
[data-theme="dark"], .dark-mode, body.dark, .dark {
    --about-banner-grad: radial-gradient(circle at 50% 0%, #1e293b 0%, #0f172a 55%, #020617 100%);
    --about-banner-border: rgba(255, 255, 255, 0.1);
    --about-badge-bg: linear-gradient(90deg, #d97706 0%, #b45309 100%);
    --about-subtitle-color: #cbd5e1;
    
    --about-card-bg: #1e293b;
    --about-card-border: #334155;
    --about-text-main: #cbd5e1;
    --about-title-color: #f1f5f9;
    --about-subtitle-text: #e2e8f0;
    --about-accent: #38bdf8;
    --about-accent-hover: #60a5fa;
    --about-brand: #fb7185;
    --about-timeline-bg: #0f172a;
    --about-timeline-border: #334155;
    --about-contact-bg: #0f172a;
    --about-contact-border: #334155;
    --about-footer-text: #94a3b8;
}

/* Automatic System Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]):not(.light-mode) {
        --about-banner-grad: radial-gradient(circle at 50% 0%, #1e293b 0%, #0f172a 55%, #020617 100%);
        --about-banner-border: rgba(255, 255, 255, 0.1);
        --about-badge-bg: linear-gradient(90deg, #d97706 0%, #b45309 100%);
        --about-subtitle-color: #cbd5e1;
        
        --about-card-bg: #1e293b;
        --about-card-border: #334155;
        --about-text-main: #cbd5e1;
        --about-title-color: #f1f5f9;
        --about-subtitle-text: #e2e8f0;
        --about-accent: #38bdf8;
        --about-accent-hover: #60a5fa;
        --about-brand: #fb7185;
        --about-timeline-bg: #0f172a;
        --about-timeline-border: #334155;
        --about-contact-bg: #0f172a;
        --about-contact-border: #334155;
        --about-footer-text: #94a3b8;
    }
}

/* Banner Main Container */
.about-banner {
    width: 100%;
    max-width: 1200px;
    min-height: 280px;
    background: var(--about-banner-grad);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    text-align: center;
    border: 1px solid var(--about-banner-border);
    padding: 25px 15px;
    box-sizing: border-box;
}

/* Background Decorative Icons */
.about-bg-icon {
    position: absolute;
    font-weight: bold;
}
.about-bg-icon-1 { top: 5%; left: 8%; font-size: clamp(60px, 10vw, 120px); color: rgba(255,255,255,0.06); transform: rotate(-10deg); }
.about-bg-icon-2 { bottom: 5%; right: 8%; font-size: clamp(60px, 10vw, 120px); color: rgba(255,255,255,0.06); transform: rotate(10deg); }
.about-bg-icon-3 { top: 30%; left: 2%; font-size: clamp(50px, 8vw, 90px); color: rgba(255,255,255,0.04); }
.about-bg-icon-4 { bottom: 10%; left: 12%; font-size: clamp(40px, 7vw, 70px); color: rgba(255,255,255,0.05); }
.about-bg-icon-5 { top: 15%; right: 8%; font-size: clamp(40px, 6vw, 65px); color: rgba(255,255,255,0.04); transform: rotate(15deg); }

/* Section Badge */
.about-badge {
    background: var(--about-badge-bg);
    color: #fff;
    padding: 4px 22px;
    border-radius: 20px;
    font-size: clamp(13px, 1.8vw, 16px);
    margin-bottom: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.4);
    z-index: 2;
}

/* Main Title & Subtitle */
.about-title {
    font-size: clamp(32px, 5.5vw, 65px);
    margin: 0 0 6px 0;
    text-shadow: 0 6px 12px rgba(0,0,0,0.4);
    font-weight: 900;
    letter-spacing: 1.5px;
    line-height: 1.2;
    z-index: 2;
}

.about-subtitle {
    font-size: clamp(14px, 2vw, 24px);
    margin: 0;
    font-weight: 500;
    color: var(--about-subtitle-color);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    line-height: 1.4;
    z-index: 2;
}

.about-highlight {
    color: #fde047;
    font-weight: 700;
}

/* About Page Body Styles */
.mag-about-wrapper {
    line-height: 1.8;
    color: var(--about-text-main);
    max-width: 100%;
    margin: 0 auto;
}

.mag-card {
    background: var(--about-card-bg);
    border: 1px solid var(--about-card-border);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 30px;
    margin-bottom: 30px;
    overflow: hidden;
    color: var(--about-text-main);
}

.mag-header-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    align-items: center;
}

.mag-intro-text {
    flex: 1;
}

.mag-title {
    font-size: 24px;
    color: var(--about-title-color);
    border-bottom: 2px solid var(--about-accent);
    display: inline-block;
    padding-bottom: 8px;
    margin-bottom: 20px;
    margin-top: 0;
}

.mag-subtitle {
    font-size: 20px;
    color: var(--about-subtitle-text);
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: bold;
}

.mag-text-justify {
    text-align: justify;
    margin-bottom: 15px;
}

.mag-brand {
    color: var(--about-brand);
    font-weight: bold;
    font-style: italic;
}

/* Timeline Styles */
.mag-timeline {
    position: relative;
    border-left: 3px solid var(--about-accent);
    margin-left: 10px;
    padding-left: 30px;
    margin-top: 20px;
}

.mag-timeline-item {
    margin-bottom: 25px;
    position: relative;
}

.mag-timeline-item::before {
    content: '';
    position: absolute;
    left: -39px;
    top: 6px;
    width: 14px;
    height: 14px;
    background: var(--about-accent);
    border-radius: 50%;
    border: 3px solid var(--about-card-bg);
    box-shadow: 0 0 0 1px var(--about-accent);
}

.mag-year {
    font-weight: bold;
    color: var(--about-accent);
    font-size: 18px;
    display: block;
    margin-bottom: 5px;
}

.mag-event {
    background: var(--about-timeline-bg);
    padding: 12px 15px;
    border-radius: 6px;
    border-left: 3px solid var(--about-timeline-border);
    color: var(--about-text-main);
}

/* Contact Grid */
.mag-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.mag-contact-box {
    background: var(--about-contact-bg);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--about-contact-border);
    color: var(--about-text-main);
}

.mag-contact-label {
    display: block;
    font-weight: bold;
    color: var(--about-accent);
    margin-bottom: 5px;
}

.mag-footer-note {
    text-align: center;
    margin-top: 25px;
    font-style: italic;
    color: var(--about-footer-text);
}

/* Utility Classes */
.mobile-break { display: none; }
.desktop-separator { display: inline; }

/* Mobile Responsive */
@media (max-width: 700px) {
    .about-banner {
        min-height: 240px !important;
        padding: 20px 10px !important;
        border-radius: 10px !important;
    }
    .mobile-break { display: block; }
    .desktop-separator { display: none; }

    .mag-header-flex {
        flex-direction: column;
        text-align: center;
    }
    .mag-card {
        padding: 20px;
    }
    .mag-timeline {
        margin-left: 5px;
        padding-left: 20px;
    }
    .mag-timeline-item::before {
        left: -29px;
    }
}