/* About Page Hero */
.about-hero {
    background: linear-gradient(135deg, rgba(44, 120, 115, 0.95), rgba(35, 94, 90, 0.9)), url('../img/AboutUsBackgroundImage.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    padding: 180px 0 120px;
    /* Increased padding for grander feel */
    text-align: center;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    /* Modern angled bottom edge */
}

.cm-badge-white {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    backdrop-filter: blur(5px);
}

.about-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.about-hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Timeline Component - High End Redesign */
.timeline {
    position: relative;
    padding: 20px 0 50px 0;
    margin-left: 0;
}

/* Vertical Line (Mobile Default - Left) */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 40px;
    width: 2px;
    border-left: 2px dashed rgba(44, 120, 115, 0.3);
    z-index: 1;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 100%;
    padding-left: 80px;
    padding-right: 20px;
}

/* Dot on the timeline */
.timeline-item::after {
    content: '';
    position: absolute;
    left: 31px;
    /* Align with line at 40px - 10px(half dot) + 1px adjustment */
    top: 0;
    width: 20px;
    height: 20px;
    background: #fff;
    border: 5px solid var(--color-primary);
    border-radius: 50%;
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 5px rgba(44, 120, 115, 0.1);
}

.timeline-item:hover::after {
    background: var(--color-primary);
    box-shadow: 0 0 0 8px rgba(44, 120, 115, 0.15);
}

.timeline-content {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Soft, deep shadow */
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    text-align: left;
}

/* Arrow pointer */
.timeline-content::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 25px;
    width: 20px;
    height: 20px;
    background: #ffffff;
    transform: rotate(45deg);
    border-left: 1px solid rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid rgba(0, 0, 0, 0.02);
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(44, 120, 115, 0.12);
}

.timeline-year {
    display: inline-block;
    color: var(--color-primary);
    font-size: 1.25rem;
    /* Refined size for elegance */
    font-weight: 800;
    margin-bottom: 8px;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
}

.timeline-content h4 {
    color: var(--color-primary);
    font-size: 1.2rem;
    /* Explicit size for consistency */
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.timeline-content p {
    color: var(--color-gray-600);
    font-size: 0.95rem;
    /* Slightly smaller for density */
    line-height: 1.6;
    margin-bottom: 0;
}

/* DESKTOP SPLIT LAYOUT */
@media (min-width: 992px) {
    .timeline::before {
        left: 50%;
        margin-left: -1px;
    }

    .timeline-item {
        width: 50%;
    }

    /* ODD ITEMS (LEFT) */
    .timeline-item:nth-child(odd) {
        padding-right: 60px;
        padding-left: 0;
        text-align: right;
    }

    .timeline-item:nth-child(odd) .timeline-content {
        text-align: right;
    }

    .timeline-item:nth-child(odd)::after {
        /* Dot */
        left: auto;
        right: -10px;
    }

    .timeline-item:nth-child(odd) .timeline-content::before {
        /* Arrow */
        left: auto;
        right: -10px;
        border-left: none;
        border-bottom: none;
        border-right: 1px solid rgba(0, 0, 0, 0.02);
        border-top: 1px solid rgba(0, 0, 0, 0.02);
    }

    /* EVEN ITEMS (RIGHT) */
    .timeline-item:nth-child(even) {
        margin-left: 50%;
        padding-left: 60px;
        padding-right: 0;
        text-align: left;
    }

    .timeline-item:nth-child(even)::after {
        /* Dot */
        left: -10px;
    }

    /* Ensure arrow is on left for even items */
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -10px;
        right: auto;
        border-right: none;
        border-top: none;
        border-left: 1px solid rgba(0, 0, 0, 0.02);
        border-bottom: 1px solid rgba(0, 0, 0, 0.02);
    }
}

/* Floating Clean Card */
.about-floating-card {
    margin-top: -60px;
    z-index: 10;
    position: relative;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    border: none;
}

/* Ecosystem Circular Layout */
.ecosystem-wrapper {
    position: relative;
    padding: 50px 0;
    max-width: 900px;
    margin: 0 auto;
}

/* The Central Hub */
.ecosystem-hub {
    width: 180px;
    height: 180px;
    background: #ffffff;
    border-radius: 50%;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 50px;
    /* Mobile default */
    box-shadow: 0 0 0 10px rgba(44, 120, 115, 0.05),
        0 0 0 25px rgba(44, 120, 115, 0.02),
        0 15px 35px rgba(0, 0, 0, 0.1);
}

.ecosystem-hub-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.ecosystem-hub h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-gray-800);
    margin: 0;
}

/* Orbit Nodes */
.ecosystem-nodes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    position: relative;
    z-index: 20;
}

.ecosystem-card {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-top: 4px solid var(--color-primary);
    /* Added for brand consistency */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}

.ecosystem-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(44, 120, 115, 0.15);
}

.ecosystem-icon-wrapper {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.ecosystem-icon-wrapper img {
    max-height: 60px;
    object-fit: contain;
}

.ecosystem-card h5 {
    color: var(--color-gray-800);
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.ecosystem-card p {
    font-size: 0.95rem;
    /* Increased slightly */
    color: var(--color-gray-700);
    /* Darkened for readability */
    margin: 0;
    line-height: 1.5;
}

/* DESKTOP CIRCULAR DISPLAY */
@media (min-width: 992px) {
    .ecosystem-wrapper {
        height: 600px;
        /* Fixed height for absolute layout */
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 50px;
    }

    .ecosystem-hub {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
        width: 220px;
        height: 220px;
    }

    /* Connecting Lines (Orbit Ring) */
    .ecosystem-ring {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 450px;
        height: 450px;
        border: 2px dashed rgba(44, 120, 115, 0.2);
        border-radius: 50%;
        z-index: 1;
        animation: spin 60s linear infinite;
    }

    @keyframes spin {
        from {
            transform: translate(-50%, -50%) rotate(0deg);
        }

        to {
            transform: translate(-50%, -50%) rotate(360deg);
        }
    }

    /* Node Positioning */
    .ecosystem-nodes {
        display: block;
        /* Disable grid */
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
    }

    .ecosystem-card {
        position: absolute;
        width: 260px;
        margin: 0;
    }

    /* Top Left */
    .ecosystem-card:nth-child(1) {
        top: 10%;
        left: 5%;
    }

    /* Top Right */
    .ecosystem-card:nth-child(2) {
        top: 10%;
        right: 5%;
    }

    /* Bottom Left */
    .ecosystem-card:nth-child(3) {
        bottom: 10%;
        left: 5%;
    }

    /* Bottom Right */
    .ecosystem-card:nth-child(4) {
        bottom: 10%;
        right: 5%;
    }

    /* Connector Lines to Center */
    .ecosystem-card::after {
        content: '';
        position: absolute;
        width: 60px;
        /* approximate length */
        height: 2px;
        background: linear-gradient(90deg, var(--color-primary), transparent);
        z-index: -1;
        opacity: 0.3;
    }

    /* Specific connector rotations */
    .ecosystem-card:nth-child(1)::after {
        bottom: -20px;
        right: -40px;
        width: 100px;
        transform: rotate(45deg);
    }

    .ecosystem-card:nth-child(2)::after {
        bottom: -20px;
        left: -40px;
        width: 100px;
        transform: rotate(-45deg);
        background: linear-gradient(-90deg, var(--color-primary), transparent);
    }

    .ecosystem-card:nth-child(3)::after {
        top: -20px;
        right: -40px;
        width: 100px;
        transform: rotate(-45deg);
    }

    .ecosystem-card:nth-child(4)::after {
        top: -20px;
        left: -40px;
        width: 100px;
        transform: rotate(45deg);
        background: linear-gradient(-90deg, var(--color-primary), transparent);
    }
}

/* Utilities for About Page */
.border-top-teal {
    border-top: 4px solid var(--color-primary);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}