/* About Page Specific Styles */
.about-hero {
    padding: calc(var(--header-height) + var(--spacing-4xl)) 0 var(--spacing-4xl);
    background-color: var(--color-bg-light);
}

.about-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Split Section Layouts */
.split-section {
    padding: var(--spacing-4xl) 0;
}

.split-section.bg-light {
    background-color: var(--color-bg-light);
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-4xl);
    align-items: center;
}

.split-grid.reverse .split-content {
    order: 2;
}

.split-grid.reverse .split-image {
    order: 1;
}

.split-image img {
    width: 100%;
    height: auto; aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.section-tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: rgba(0, 183, 179, 0.1);
    color: var(--color-tiffany-blue);
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.split-title {
    color: var(--color-oxford-blue);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
}

.split-text {
    color: #475569;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

/* Director Profile */
.director-section {
    background-color: var(--color-oxford-blue);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

/* Large quote watermark in background */
.director-section::before {
    content: '\201C';
    position: absolute;
    top: -50px;
    left: -20px;
    font-size: 25rem;
    font-family: Georgia, serif;
    color: rgba(16, 185, 129, 0.1); /* Very subtle malachite/green */
    line-height: 1;
    z-index: 0;
    pointer-events: none;
}

.director-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: var(--spacing-4xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.director-image-wrapper {
    position: relative;
    padding: var(--spacing-md);
    z-index: 2;
}

/* Green Ring behind the image */
.director-image-wrapper::before {
    content: '';
    position: absolute;
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%);
    width: 115%; /* Slightly tighter around the square image */
    height: 115%;
    border: 2px solid var(--color-malachite);
    border-radius: 50%;
    z-index: -1;
    aspect-ratio: 1;
}

.director-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.director-quote {
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
    color: #E2E8F0;
    font-weight: 300;
}

.director-name {
    color: var(--color-tiffany-blue);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.director-title {
    color: var(--color-malachite);
    font-size: 1rem;
    margin-top: 5px;
    font-weight: 500;
}

/* Winding Image Timeline */
.image-timeline-container {
    position: relative;
    width: 100%;
    height: 600px;
    margin: 120px auto 50px auto; /* Increased top margin for floating text */
}

.timeline-point {
    position: absolute;
    transform: translate(-50%, -100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 240px;
    z-index: 2;
    transition: transform 0.3s ease;
}

.timeline-point:hover {
    transform: translate(-50%, -100%) scale(1.05);
    z-index: 10;
}

.point-content {
    text-align: center;
    margin-bottom: 15px;
    width: 100%;
}

.point-content h3 {
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.point-list {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 12px;
    list-style: none;
    padding: 0;
    line-height: 1.5;
    font-weight: 600;
}

.point-list li {
    margin-bottom: 4px;
}

.point-divider-line {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.point-divider-line .line {
    flex: 1;
    height: 1px;
    background: #64748b;
}

.point-divider-line .dot {
    width: 5px;
    height: 5px;
    background: #64748b;
    border-radius: 50%;
    margin: 0 8px;
}

.point-pin-wrapper {
    position: relative;
    width: 70px;
    height: 96px;
    display: flex;
    justify-content: center;
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.2));
}

.pin-year {
    position: absolute;
    top: 0;
    left: 0;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.05rem; /* Reduced to fit neatly inside the circle */
    color: #1e293b;
    z-index: 2;
}

/* Mobile Stacked Variant */
.mobile-timeline-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
}

.timeline-point.mobile {
    position: relative;
    transform: none;
    width: 100%;
    padding: 0 15px;
    margin: 0 auto;
}

.timeline-point.mobile:hover {
    transform: scale(1.02);
}

.mobile-path-connector {
    position: relative;
    overflow: hidden;
    width: 10px;
    height: 70px;
    background: #94a3b8;
    border-radius: 5px;
    margin: -15px 0 15px;
    z-index: 1;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.2);
}

/* Glowing/Shining Path for Mobile Connectors */
.mobile-path-connector::after {
    content: '';
    position: absolute;
    top: -50px;
    left: -2px; 
    right: -2px;
    height: 50px;
    background: linear-gradient(to bottom, rgba(34,197,94,0), #22c55e, rgba(34,197,94,0));
    filter: blur(1px);
    animation: shineMobileDown 2s linear infinite;
}

/* Stagger the mobile connector shines slightly */
.mobile-timeline-container > div:nth-child(2)::after { animation-delay: 0s; }
.mobile-timeline-container > div:nth-child(4)::after { animation-delay: 0.6s; }
.mobile-timeline-container > div:nth-child(6)::after { animation-delay: 1.2s; }

@keyframes shineMobileDown {
    0% { transform: translateY(0); }
    100% { transform: translateY(120px); }
}

/* Strict Responsive Toggles */
@media (max-width: 991px) {
    .image-timeline-container { display: none !important; }
    .mobile-timeline-container { display: flex !important; }
}

@media (min-width: 992px) {
    .image-timeline-container { display: block !important; }
    .mobile-timeline-container { display: none !important; }
}


/* Vision & Mission Block (updated) */
.vmv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-3xl);
}

.vmv-card {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.vmv-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.vmv-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.vmv-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.vmv-card:hover .vmv-image-wrapper img {
    transform: scale(1.05);
}

.vmv-overlay {
    position: absolute;
    top: -30px; /* Overlap the image from the content block */
    left: var(--spacing-2xl);
}

.vmv-icon-box {
    width: 60px;
    height: 60px;
    background: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    border: 3px solid var(--color-white);
}

.vmv-icon {
    width: 28px;
    height: 28px;
    color: var(--color-malachite);
}

.vmv-content {
    position: relative;
    padding: var(--spacing-2xl);
    padding-top: calc(var(--spacing-xl) + 15px); /* adjust for icon overlap */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.vmv-content h3 {
    color: var(--color-oxford-blue);
    font-size: 1.8rem;
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

.vmv-content p {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

.vmv-quote-text {
    position: relative;
    padding-left: 30px;
    font-style: italic;
    font-weight: 500;
    color: #334155;
}

.vmv-quote-text::before {
    content: '\201C';
    position: absolute;
    left: -15px;
    top: -15px;
    font-size: 4rem;
    color: rgba(0, 183, 179, 0.15);
    font-family: Georgia, serif;
    line-height: 1;
}

/* Responsive */
@media (max-width: 992px) {
    .split-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .split-grid.reverse .split-content {
        order: 1;
    }
    
    .split-grid.reverse .split-image {
        order: 2;
    }

    .director-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .director-image-wrapper {
        width: 250px;
        margin: 0 auto;
    }

    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item.right {
        left: 0;
    }
    
    .timeline-item.left::after, .timeline-item.right::after {
        left: 21px;
    }

    .vmv-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .split-title {
        font-size: 2rem;
    }
    
    .split-section {
        padding: 3rem 0;
    }
    
    .timeline-item {
        padding-left: 50px;
        padding-right: 15px;
    }

    .timeline::after {
        left: 20px;
    }

    .timeline-item.left::after, .timeline-item.right::after {
        left: 10px;
    }

    .vmv-quote-text::before {
        left: 0;
        top: -10px;
        font-size: 3rem;
    }

    .vmv-overlay {
        left: 20px;
    }
    
    .director-image-wrapper {
        width: 200px;
    }
    
    .director-quote {
        font-size: 1.25rem;
    }
    
    .director-content {
        position: relative;
        padding: 0 15px;
    }
}

@media (max-width: 576px) {
    .about-hero {
        min-height: 250px;
        padding-top: 120px; /* Fallback for header height */
    }
    
    .split-title {
        font-size: 1.75rem;
    }
    
    .timeline-item {
        padding-left: 40px;
        padding-right: 0;
    }
    
    .timeline::after {
        left: 15px;
    }
    
    .timeline-item.left::after, .timeline-item.right::after {
        left: 5px;
        width: 16px;
        height: 16px;
        top: 17px;
    }
    
    .timeline-content.transparent {
        padding: 0;
    }
    
    .year-box h3 {
        font-size: 1.5rem !important;
    }
    
    .year-box {
        padding: 8px 20px;
        margin-bottom: 15px;
    }
    
    .milestone-list li {
        font-size: 0.95rem;
        padding-left: 22px;
    }
    
    .milestone-list li svg {
        width: 16px;
        height: 16px;
        top: 3px;
    }
    
    .vmv-content {
        padding: 1.5rem;
        padding-top: 50px;
    }
}

/* =============================================
   GenX Group Section — Full-Width Background Image
   ============================================= */
.genx-group-section {
    width: 100%;
    position: relative;
    background: url('../../images/about/about_banner.jpg') center/cover no-repeat;
    padding: 100px 0;
}

.genx-group-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 45%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    z-index: 0;
}

.genx-group-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    min-height: auto;
}

@media (min-width: 992px) {
    .genx-group-inner {
        grid-template-columns: 1fr 1fr;
    }
}

/* Left content pane */
.genx-group-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    background-color: transparent; /* No white background */
}

@media (max-width: 991px) {
    .genx-group-content {
        background-color: rgba(255, 255, 255, 0.85); /* Readability on mobile */
        border-radius: 12px;
        padding: 30px;
    }
}

.genx-group-heading {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--color-oxford-blue);
    margin-bottom: 0;
}

.genx-group-highlight {
    color: var(--color-malachite, #22c55e);
}

.genx-group-divider {
    width: 50px;
    height: 3px;
    background-color: var(--color-malachite, #22c55e);
    margin: 28px 0;
    border-radius: 2px;
}

.genx-group-text {
    color: var(--color-oxford-blue); /* Dark text for contrast against sky */
    font-weight: 500;
    font-size: 1.1rem;
    line-height: 1.75;
    margin-bottom: 1.25rem;
    max-width: 520px;
}

.genx-group-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 14px 28px;
    background-color: var(--color-oxford-blue, #001f37);
    color: #ffffff;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    width: fit-content;
}

.genx-group-btn:hover {
    background-color: var(--color-malachite, #22c55e);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(34,197,94,0.25);
}

/* Right image pane (Hidden in this layout as image is background) */
.genx-group-image {
    display: none;
}

/* Responsive */
@media (max-width: 992px) {
    .genx-group-inner {
        grid-template-columns: 1fr;
    }

    .genx-group-content {
        padding: 60px 32px;
    }

    .genx-group-heading {
        font-size: 2.25rem;
    }

    .genx-group-image {
        min-height: 340px;
        position: relative;
    }

    .genx-group-image img {
        position: relative;
        inset: unset;
        height: 340px;
    }
}

@media (max-width: 576px) {
    .genx-group-content {
        padding: 48px 20px;
    }

    .genx-group-heading {
        font-size: 1.85rem;
    }

    .genx-group-image {
        min-height: 260px;
    }

    .genx-group-image img {
        height: 260px;
    }
}

/* Journey Section Background */
#journey {
    .timeline::after {
        left: 15px;
    }
    
    .timeline-item.left::after, .timeline-item.right::after {
        left: 5px;
        width: 16px;
        height: 16px;
        top: 17px;
    }
    
    .timeline-content.transparent {
        padding: 0;
    }
    
    .year-box h3 {
        font-size: 1.5rem !important;
    }
    
    .year-box {
        padding: 8px 20px;
        margin-bottom: 15px;
    }
    
    .milestone-list li {
        font-size: 0.95rem;
        padding-left: 22px;
    }
    
    .milestone-list li svg {
        width: 16px;
        height: 16px;
        top: 3px;
    }
    
    .vmv-content {
        padding: 1.5rem;
        padding-top: 50px;
    }
}

/* =============================================
   GenX Group Section — Full-Width Background Image
   ============================================= */
.genx-group-section {
    width: 100%;
    position: relative;
    background: url('../../images/about/about_banner.jpg') center/cover no-repeat;
    padding: 100px 0;
}

.genx-group-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 45%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    z-index: 0;
}

.genx-group-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    min-height: auto;
}

@media (min-width: 992px) {
    .genx-group-inner {
        grid-template-columns: 1fr 1fr;
    }
}

/* Left content pane */
.genx-group-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    background-color: transparent; /* No white background */
}

@media (max-width: 991px) {
    .genx-group-content {
        background-color: rgba(255, 255, 255, 0.85); /* Readability on mobile */
        border-radius: 12px;
        padding: 30px;
    }
}

.genx-group-heading {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--color-oxford-blue);
    margin-bottom: 0;
}

.genx-group-highlight {
    color: var(--color-malachite, #22c55e);
}

.genx-group-divider {
    width: 50px;
    height: 3px;
    background-color: var(--color-malachite, #22c55e);
    margin: 28px 0;
    border-radius: 2px;
}

.genx-group-text {
    color: var(--color-oxford-blue); /* Dark text for contrast against sky */
    font-weight: 500;
    font-size: 1.1rem;
    line-height: 1.75;
    margin-bottom: 1.25rem;
    max-width: 520px;
}

.genx-group-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 14px 28px;
    background-color: var(--color-oxford-blue, #001f37);
    color: #ffffff;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    width: fit-content;
}

.genx-group-btn:hover {
    background-color: var(--color-malachite, #22c55e);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(34,197,94,0.25);
}

/* Right image pane (Hidden in this layout as image is background) */
.genx-group-image {
    display: none;
}

/* Responsive */
@media (max-width: 992px) {
    .genx-group-inner {
        grid-template-columns: 1fr;
    }

    .genx-group-content {
        padding: 60px 32px;
    }

    .genx-group-heading {
        font-size: 2.25rem;
    }

    .genx-group-image {
        min-height: 340px;
        position: relative;
    }

    .genx-group-image img {
        position: relative;
        inset: unset;
        height: 340px;
    }
}

@media (max-width: 576px) {
    .genx-group-content {
        padding: 48px 20px;
    }

    .genx-group-heading {
        font-size: 1.85rem;
    }

    .genx-group-image {
        min-height: 260px;
    }

    .genx-group-image img {
        height: 260px;
    }
}

/* Journey Section Background */
#journey {
    position: relative;
    background-color: #ffffff; /* Keep base background clean */
    overflow: hidden;
}

#journey::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('../../images/about/sketched-map-bg.jpg') center/cover no-repeat;
    opacity: 0.35; /* Faint opacity between 0.3 and 0.4 */
    z-index: 0;
    pointer-events: none; /* Let clicks pass through */
}

#journey .container {
    position: relative;
    z-index: 1; /* Keep content above background */
}

/* Timeline Staggered Animations */
/* Desktop staggered pop-in */
.image-timeline-container.in-view .timeline-point {
    animation: popInTimeline 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.image-timeline-container.in-view .timeline-point:nth-of-type(1) { animation-delay: 0.2s; }
.image-timeline-container.in-view .timeline-point:nth-of-type(2) { animation-delay: 0.6s; }
.image-timeline-container.in-view .timeline-point:nth-of-type(3) { animation-delay: 1.0s; }
.image-timeline-container.in-view .timeline-point:nth-of-type(4) { animation-delay: 1.4s; }
.image-timeline-container.in-view .timeline-point:nth-of-type(5) { animation-delay: 1.8s; }
.image-timeline-container.in-view .timeline-point:nth-of-type(6) { animation-delay: 2.2s; }

@keyframes popInTimeline {
    0% {
        opacity: 0;
        transform: translate(-50%, -100%) scale(0.5);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -100%) scale(1);
    }
}

/* Mobile staggered fade-up */
.mobile-timeline-container.in-view .timeline-point.mobile {
    animation: fadeUpMobile 0.6s ease-out both;
}
/* Mobile has path connectors interleaved, so the timeline points are at odd indices (1, 3, 5, 7, 9, 11) */
.mobile-timeline-container.in-view .timeline-point.mobile:nth-of-type(1) { animation-delay: 0.2s; }
.mobile-timeline-container.in-view .timeline-point.mobile:nth-of-type(3) { animation-delay: 0.6s; }
.mobile-timeline-container.in-view .timeline-point.mobile:nth-of-type(5) { animation-delay: 1.0s; }
.mobile-timeline-container.in-view .timeline-point.mobile:nth-of-type(7) { animation-delay: 1.4s; }
.mobile-timeline-container.in-view .timeline-point.mobile:nth-of-type(9) { animation-delay: 1.8s; }
.mobile-timeline-container.in-view .timeline-point.mobile:nth-of-type(11) { animation-delay: 2.2s; }

@keyframes fadeUpMobile {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glowing/Shining Path Animation */
.shining-path {
    stroke-dasharray: 400 3000;
    /* Start with the dash shifted backwards so it enters from the left */
    stroke-dashoffset: 400; 
    animation: shineMove 4s linear infinite;
    /* Add a slight delay so it starts after points pop in */
    animation-delay: 1s; 
}

@keyframes shineMove {
    0% {
        stroke-dashoffset: 400; /* Off-screen left */
    }
    100% {
        stroke-dashoffset: -3000; /* Off-screen right */
    }
}

.mobile-timeline-container > div:nth-child(8)::after { animation-delay: 1.8s; }
.mobile-timeline-container > div:nth-child(10)::after { animation-delay: 2.4s; }
