/* ============================================
   ABOUT CSS — Timeline, Values, Split Sections
   ============================================ */

/* Re-uses page-banner, timeline, value-card from components.css */

.about-image-wrapper {
    width: 100%;
    aspect-ratio: 16/9; /* Standardized aspect ratio */
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--clr-border-light);
    display: flex;
    background: var(--clr-surface-alt);
    position: relative;
}

.about-image-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    z-index: 0;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-16);
    align-items: center;
}

@media (max-width: 768px) {
    .about-split {
        grid-template-columns: 1fr;
        gap: var(--sp-8);
    }
}

.about-split h2 {
    margin-bottom: var(--sp-4);
}

.about-split p {
    margin-bottom: var(--sp-4);
    font-size: 1.05rem;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--sp-8);
}

/* Compliance list */
.compliance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-12);
}

@media (max-width: 768px) {
    .compliance-grid {
        grid-template-columns: 1fr;
        gap: var(--sp-8);
    }
}

.compliance-list li {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    margin-bottom: var(--sp-3);
    font-weight: 500;
}

.compliance-list li ion-icon {
    color: var(--clr-accent);
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Infra stats inline */
.infra-stats {
    display: flex;
    gap: var(--sp-8);
    margin-top: var(--sp-8);
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.infra-stat {
    text-align: center;
    flex: 0 1 auto;
}



.infra-stat-value {
    display: block;
    font-family: var(--ff-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--clr-heading); /* Changed from --clr-navy to be theme-aware */
    line-height: 1;
}

.infra-stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--clr-text-mid);
    margin-top: var(--sp-1);
}

/* Authority Section */
.authority-section {
    max-width: 800px;
    margin-inline: auto;
    text-align: center;
}

.authority-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: var(--sp-6);
    color: var(--clr-heading);
}

.authority-quote {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--clr-text-mid);
    position: relative;
    padding: var(--sp-4);
}

/* --- Tradition of Growth (Timeline) --- */
.timeline-growth {
    position: relative;
    max-width: 900px;
    margin-inline: auto;
    padding: var(--sp-12) 0;
}

/* Gradient Line */
.timeline-growth .timeline-line {
    position: absolute;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg,
            rgba(232, 163, 23, 0) 0%,
            var(--clr-navy) 15%,
            var(--clr-accent) 50%,
            var(--clr-navy) 85%,
            rgba(232, 163, 23, 0) 100%);
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(232, 163, 23, 0.2);
}

.timeline-growth .timeline-item {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: var(--sp-20);
    gap: var(--sp-12);
}

.timeline-growth .timeline-item-left {
    flex-direction: row;
}

.timeline-growth .timeline-item-right {
    flex-direction: row-reverse;
}

/* Spacer for empty side */
.timeline-growth .timeline-empty {
    flex: 1;
}

/* Marker */
.timeline-growth .timeline-marker {
    width: 24px;
    height: 24px;
    background: var(--clr-navy);
    border: 4px solid var(--clr-accent);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.8), 0 0 20px rgba(232, 163, 23, 0.4);
    position: relative;
    flex-shrink: 0;
}

.timeline-growth .timeline-marker-inner {
    display: none;
    /* Removing the inner dot for this style */
}

/* Card Content */
.timeline-growth .timeline-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(232, 163, 23, 0.2);
    padding: var(--sp-10);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    transition: transform var(--tr-base), box-shadow var(--tr-base);
}

.timeline-growth .timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.12);
    border-color: var(--clr-accent);
}

/* Connector Arms */
.timeline-growth .timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: var(--sp-12);
    height: 2px;
    background: linear-gradient(90deg, var(--clr-accent), transparent);
    opacity: 0.5;
}

.timeline-growth .timeline-item-left .timeline-content::before {
    right: calc(var(--sp-12) * -1);
    transform: translateY(-50%);
    background: linear-gradient(to right, transparent, var(--clr-accent));
}

.timeline-growth .timeline-item-right .timeline-content::before {
    left: calc(var(--sp-12) * -1);
    transform: translateY(-50%);
    background: linear-gradient(to left, transparent, var(--clr-accent));
}


/* Year Watermark */
.timeline-year-mark {
    position: absolute;
    top: -15px;
    right: -10px;
    font-size: 6rem;
    font-weight: 900;
    color: rgba(232, 163, 23, 0.08);
    /* Faint accent color */
    line-height: 1;
    user-select: none;
    pointer-events: none;
    font-family: var(--ff-heading);
    z-index: 0;
}

.timeline-growth .timeline-content h3 {
    position: relative;
    z-index: 1;
    color: var(--clr-heading);
    margin-bottom: var(--sp-3);
    font-size: 1.5rem;
}

.timeline-growth .timeline-content p {
    position: relative;
    z-index: 1;
    font-size: 1.05rem;
    color: var(--clr-text);
}

/* Future Node */
.timeline-growth .timeline-item-center {
    flex-direction: column;
    align-items: center;
    /* Enforce horizontal centering */
    text-align: center;
    gap: var(--sp-6);
    /* This might still be overridden by .timeline-growth .timeline-item gap if not !important or higher specificity, but class+class (0-2-0) matches base. Base is also 0-2-0. Order matters. This is lower in file, so it wins! */
    margin-top: var(--sp-12);
    width: 100%;
    /* Ensure full width for centering to work relative to container */
}

.marker-future {
    width: 60px !important;
    height: 60px !important;
    font-size: 2rem;
    color: var(--clr-white-fixed);
    background: var(--clr-accent) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid white !important;
    box-shadow: 0 10px 30px rgba(232, 163, 23, 0.4) !important;
}

.content-future {
    background: var(--clr-surface) !important; /* Changed from --clr-white to mask the line appropriately in both modes */
    /* Changed from transparent to mask the line */
    box-shadow: none !important;
    border: none !important;
    padding: var(--sp-4) !important;
    /* Added padding to clear text from edges if needed */
    backdrop-filter: none !important;
    position: relative;
    z-index: 5;
    /* Ensure it sits on top of the line */
    max-width: 400px;
    /* Limit width for better reading */
    margin-inline: auto;
    /* Center it */
}

.content-future::before {
    display: none;
}

.content-future h3 {
    font-size: 1.75rem !important;
    margin-bottom: var(--sp-2) !important;
}

[data-theme="dark"] .timeline-growth .timeline-content {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .timeline-growth .timeline-marker {
    box-shadow: 0 0 0 6px rgba(15, 23, 42, 0.8), 0 0 20px rgba(232, 163, 23, 0.2);
}

[data-theme="dark"] .timeline-year-mark {
    color: rgba(255, 255, 255, 0.03);
}


/* Responsive */
@media (max-width: 768px) {
    .timeline-growth {
        padding-inline-start: 0;
    }

    .timeline-growth .timeline-line {
        inset-inline-start: 22px;
        transform: none;
    }

    .timeline-growth .timeline-item,
    .timeline-growth .timeline-item-right {
        flex-direction: column;
        /* Stack vertically */
        align-items: flex-start;
        gap: var(--sp-6);
        padding-inline-start: 60px;
        /* Make space for line */
    }

    .timeline-growth .timeline-marker {
        position: absolute;
        left: 12px;
        top: 0;
        transform: none;
    }

    .timeline-growth .timeline-empty {
        display: none;
    }

    .timeline-growth .timeline-content {
        width: 100%;
        text-align: left;
    }

    .timeline-year-mark {
        font-size: 4rem;
        top: 0;
        right: 10px;
    }

    .timeline-growth .timeline-content::before {
        display: none;
        /* Hide connector arms on mobile */
    }

    /* Future Node Mobile */
    .timeline-item-center {
        padding-inline-start: 0;
        align-items: center;
    }

    .timeline-item-center .timeline-marker {
        position: relative;
        left: auto;
        top: auto;
    }
}

/* Operational Pillars */
.pillar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--sp-8);
}

.pillar-card {
    padding: var(--sp-8);
    background: var(--clr-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--clr-border-light);
    transition: all var(--tr-base);
}

.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--clr-accent);
}

.pillar-icon-box {
    width: 60px;
    height: 60px;
    background: var(--clr-surface);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--sp-6);
    border: 1px solid var(--clr-border-light);
}

.pillar-icon {
    font-size: 1.75rem;
    color: var(--clr-accent);
}

.pillar-card h3 {
    margin-bottom: var(--sp-4);
    color: var(--clr-heading); /* Changed from --clr-navy to be theme-aware */
}

/* Leadership Authority */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--sp-10);
    margin-top: var(--sp-12);
}

.leader-card {
    text-align: center;
    padding: var(--sp-8);
    background: var(--clr-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--clr-border-light);
    transition: all var(--tr-base);
}

.leader-card:hover {
    background: var(--clr-white);
    box-shadow: var(--shadow-md);
    border-color: var(--clr-accent);
}

.leader-avatar-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--sp-6);
    position: relative;
    background: var(--clr-surface-alt);
    border-radius: 50%;
}

.leader-avatar-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    border-radius: 50%;
    z-index: 0;
}

.leader-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--clr-navy), var(--clr-navy-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--clr-accent);
    box-shadow: var(--shadow-md);
    border: 3px solid var(--clr-white);
    transition: transform var(--tr-base);
    overflow: hidden;
    /* Added to contain img */
}

.leader-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1; /* Sit above shimmer */
}

.leader-card:hover .leader-avatar {
    transform: scale(1.1);
}

.leader-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: var(--sp-1);
    color: var(--clr-heading);
}

.leader-role {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--clr-accent);
    font-weight: 700;
}

/* Global Hubs (Aligned with Contact) */
.hubs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--sp-8);
}

.hub-card {
    padding: var(--sp-8);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--tr-base);
}

.hub-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--clr-accent);
}

.hub-icon {
    font-size: 2rem;
    color: var(--clr-accent);
    margin-bottom: var(--sp-4);
}

.hub-card h4 {
    color: var(--clr-white-fixed);
    margin-bottom: var(--sp-2);
}

.hub-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {

    .pillar-grid,
    .leadership-grid,
    .hubs-grid {
        grid-template-columns: 1fr;
    }
}