/* About Page Styles - Responsive */

* {
    margin: 0;
    box-sizing: border-box;
}

.about-page {
    background-color: var(--color-background-light);
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(15px, 4vw, 40px);
    width: 100%;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(15px, 4vw, 40px);
    width: 100%;
}

/* Hero Section */
.heros-section {
    background-color: var(--color-bg-light);
    padding: clamp(30px, 5vw, 80px) 0;
}

.heros-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin: 0 0 clamp(10px, 2vw, 25px) 0;
    color: var(--color-text-dark);
    line-height: 1.3;
    animation: fadeIn 0.6s ease-out;
    padding: 0 10px;
}

.heros-subtitle {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    text-align: center;
    margin: 0 auto clamp(20px, 4vw, 40px) auto;
    color: var(--color-text-medium);
    line-height: 1.6;
    max-width: min(900px, 95%);
    animation: fadeIn 0.6s ease-out 0.1s backwards;
    padding: 0 15px;
}

.heros-image-wrapper {
    width: 100%;
    max-width: min(1100px, 95%);
    margin: 0 auto clamp(20px, 4vw, 40px) auto;
    border-radius: clamp(8px, 2vw, 16px);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.6s ease-out 0.2s backwards;
}

.heros-image {
    width: 100%;
    display: flex;
    justify-content: center;
    aspect-ratio: 16 / 9;
}

.heros-context {
    font-size: clamp(0.95rem, 1.8vw, 1.2rem);
    text-align: center;
    margin: 0 auto;
    color: var(--color-text-dark);
    line-height: 1.5;
    max-width: min(950px, 95%);
    font-weight: 500;
    animation: fadeIn 0.6s ease-out 0.3s backwards;
    padding: 0 15px;
}

/* Timeline Section */
.timeline-section {
    padding: clamp(40px, 6vw, 80px) 0;
    background: #fafaf5;
}

.section-title {
    text-align: center;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    margin-bottom: clamp(30px, 5vw, 60px);
    font-weight: 700;
    padding: 0 15px;
}

/* Timeline Wrapper */
.timeline {
    position: relative;
    width: 100%;
}

/* Horizontal Line */
.timeline-line {
    position: absolute;
    top: 12px;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1;
}

/* Top Row */
.timeline-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(10px, 2vw, 25px);
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Step */
.timeline-step {
    text-align: center;
    width: 100%;
}

/* Dot */
.timeline-dot {
    display: inline-block;
    width: clamp(10px, 1.5vw, 14px);
    height: clamp(10px, 1.5vw, 14px);
    background: #111;
    border-radius: 50%;
    margin-bottom: clamp(10px, 2vw, 20px);
}

/* Uniform Yellow Cards */
.timeline-card {
    background: #ffef75;
    border-radius: clamp(8px, 1.5vw, 12px);
    padding: clamp(15px, 2.5vw, 25px);
    font-size: clamp(0.8rem, 1.1vw, 0.95rem);
    line-height: 1.5;
    min-height: min(160px, fit-content);
    display: block;
    text-align: left;
    word-break: normal;
    width: 100%;
}

.timeline-final-card {
    background: #f5f5f0;
    max-width: min(800px, 95%);
    margin: 0 auto;
    text-align: center;
}

/* OASIS heading */
.timeline-title {
    margin-bottom: clamp(8px, 1.5vw, 15px);
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 700;
}

/* Final Step */
.timeline-final {
    margin-top: clamp(40px, 8vw, 80px);
    text-align: center;
    position: relative;
    width: 100%;
}

/* vertical connector */
.timeline-final::before {
    content: '';
    position: absolute;
    top: clamp(-30px, -6vw, -50px);
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: clamp(30px, 6vw, 50px);
    background: rgba(0, 0, 0, 0.25);
}

/* Final Card */
.timeline-final-card {
    background: #f5f5f0;
    max-width: min(800px, 95%);
    margin: 0 auto;
    padding: clamp(20px, 3vw, 30px);
}

.timeline-final-card h3 {
    margin-bottom: clamp(8px, 1.5vw, 12px);
    font-size: clamp(1.1rem, 2vw, 1.5rem);
}

/* Board Section */
.board-section {
    padding: clamp(40px, 6vw, 80px) 0;
    background-color: var(--color-background-light);
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(15px, 2vw, 30px);
    margin-bottom: clamp(20px, 3vw, 40px);
}

.board-member {
    background: var(--color-background-card);
    border: 2px solid var(--color-border-light);
    border-radius: clamp(8px, 1.5vw, 12px);
    padding: clamp(15px, 2vw, 25px);
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-out;
    width: 100%;
}

.board-member img {
    width: clamp(60px, 8vw, 100px);
    height: clamp(60px, 8vw, 100px);
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto clamp(8px, 1.5vw, 15px) auto;
    display: block;
    border: 3px solid var(--color-border-light);
    transition: all 0.3s ease;
}

.board-member h3 {
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    margin: 0 0 clamp(4px, 0.8vw, 8px) 0;
    color: var(--color-text-dark);
    font-weight: 600;
}

.board-member p {
    font-size: clamp(0.75rem, 1vw, 0.9rem);
    margin: 0;
    color: var(--color-text-medium);
    line-height: 1.4;
}

/* =========================
   TEAM SECTION
========================= */

.team-section {
    padding: clamp(40px, 6vw, 80px) 0;
    background: var(--color-background-light);
}

/* Responsive grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(20px, 3vw, 40px);
    max-width: 1200px;
    margin: 0 auto;
}

/* Center if only one member */
.team-grid:has(.team-member:only-child) {
    grid-template-columns: minmax(300px, 420px);
    justify-content: center;
}

/* =========================
   TEAM CARD
========================= */

.team-member {
    background: var(--color-background-card);
    border: 1px solid var(--color-border-light);
    border-radius: 12px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* Profile image */
.team-member img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--color-border-light);
    margin: 0 auto 25px auto;
}

/* =========================
   CONTENT STRUCTURE
========================= */

.team-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: center;
}

/* Name */
.team-member h3 {
    font-size: 1.3rem;
    margin-bottom: 6px;
    color: var(--color-text-dark);
}

/* Role */
.team-role {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-text-medium);
}

/* Bio */
.team-bio {
    flex: 1;
    display: flex;
    flex-direction: column;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-dark);
    text-align: justify;
}

/* =========================
   GHOST BUTTON FIX
========================= */

/* Push button to bottom */
.team-bio .kg-button-card {
    margin-top: auto;
    padding: 20px;
}

/* Override Ghost accent button ONLY inside team */
.team-section .kg-btn-accent {
    background: #000 !important;
    color: #fff !important;
    border-radius: 999px !important;
    padding: 12px 30px !important;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

/* Hover */
.team-section .kg-btn-accent:hover {
    background: #111 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* Mission Section */
.mission-section {
    padding: clamp(40px, 6vw, 80px) 0;
    background-color: #f9faf2;
    position: relative;
}

.mission-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fd635a, transparent);
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(15px, 2.5vw, 30px);
    margin-top: clamp(30px, 5vw, 50px);
}

.mission-card {
    background: #fbe86b;
    border: 2px solid #ebe9de;
    border-radius: clamp(10px, 1.8vw, 16px);
    padding: clamp(20px, 3vw, 30px);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.card-icon {
    width: clamp(40px, 6vw, 60px);
    height: clamp(40px, 6vw, 60px);
    background: #1c1c1c;
    border-radius: clamp(8px, 1.2vw, 12px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: clamp(15px, 2.5vw, 25px);
    color: #fafafa;
    font-size: clamp(1rem, 1.5vw, 1.5rem);
}

.mission-card h3 {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    margin: 0 0 clamp(10px, 1.8vw, 20px) 0;
    color: #1c1c1c;
    font-weight: 700;
}

.mission-card p {
    line-height: 1.6;
    color: #1c1c1c;
    margin: 0;
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    opacity: 0.85;
}

.mission-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mission-card li {
    margin-bottom: clamp(8px, 1.5vw, 15px);
    line-height: 1.6;
    color: #1c1c1c;
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    display: flex;
    gap: clamp(8px, 1.2vw, 12px);
    align-items: flex-start;
    opacity: 0.85;
}

.mission-card li:last-child {
    margin-bottom: 0;
}

.value-icon {
    color: #1c1c1c;
    font-size: clamp(0.5rem, 0.8vw, 0.7rem);
    flex-shrink: 0;
    margin-top: 4px;
}

.mission-card li strong {
    color: #1c1c1c;
    display: block;
    margin-bottom: 3px;
    font-weight: 600;
    opacity: 1;
}

/* CTA Section */
.cta-section {
    padding: clamp(40px, 6vw, 80px) 0;
    background-color: var(--color-primary);
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    color: var(--color-text-light);
    margin: 0 0 clamp(8px, 1.5vw, 15px) 0;
    font-weight: 700;
    padding: 0 15px;
}

.cta-content p {
    font-size: clamp(0.9rem, 1.4vw, 1.1rem);
    color: var(--color-text-light);
    margin: 0 auto clamp(20px, 3vw, 30px) auto;
    max-width: min(750px, 95%);
    line-height: 1.5;
    opacity: 0.9;
    padding: 0 15px;
}

.cta-button {
    display: inline-block;
    padding: clamp(10px, 1.8vw, 14px) clamp(20px, 3vw, 35px);
    background: var(--color-background-dark);
    color: var(--color-text-light);
    text-decoration: none;
    border-radius: clamp(5px, 0.8vw, 8px);
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    font-weight: 700;
    border: 2px solid var(--color-border-light);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cta-button:hover {
    background: var(--color-secondary);
    color: var(--color-text-dark);
    border-color: var(--color-secondary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(251, 232, 107, 0.3);
}

/* ====================== */
/* RESPONSIVE BREAKPOINTS */
/* ====================== */

/* Large Tablet & Small Desktop */
@media (max-width: 1200px) {
    .board-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .mission-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mission-card:nth-child(3) {
        grid-column: 1 / -1;
        max-width: min(800px, 100%);
        margin: 0 auto;
    }
}

/* Tablet */
@media (max-width: 992px) {
    .timeline-row {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(20px, 3vw, 30px);
    }

    .timeline-line {
        display: none;
    }

    .team-grid {
        gap: clamp(15px, 2.5vw, 25px);
    }

    .mission-card {
        padding: clamp(18px, 2.5vw, 25px);
    }
}

/* Large Mobile */
@media (max-width: 768px) {
    .timeline-row {
        grid-template-columns: 1fr;
        gap: clamp(25px, 4vw, 35px);
    }

    .timeline-step {
        text-align: left;
    }

    .timeline-dot {
        float: left;
        margin-right: clamp(12px, 2vw, 18px);
        margin-bottom: 0;
        margin-top: 5px;
    }

    .timeline-card {
        min-height: auto;
        margin-top: clamp(8px, 1.5vw, 12px);
    }

    .board-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(10px, 2vw, 15px);
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: clamp(20px, 3vw, 30px);
    }

    .mission-grid {
        grid-template-columns: 1fr;
    }

    .mission-card:nth-child(3) {
        grid-column: auto;
        max-width: 100%;
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    .board-grid {
        grid-template-columns: 1fr;
        gap: clamp(8px, 1.5vw, 12px);
    }

    .board-member {
        display: flex;
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: clamp(12px, 2vw, 18px);
    }

    .board-member img {
        width: clamp(50px, 10vw, 70px);
        height: clamp(50px, 10vw, 70px);
        margin: 0;
        flex-shrink: 0;
    }

    .board-content {
        flex: 1;
    }

    .timeline-final::before {
        top: clamp(-25px, -5vw, -35px);
        height: clamp(25px, 5vw, 35px);
    }

    .team-link,
    .cta-button {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/* Extra Small Mobile */
@media (max-width: 400px) {

    .container,
    .container-wide {
        padding: 0 clamp(10px, 3vw, 15px);
    }

    .team-member {
        padding: clamp(15px, 3vw, 20px);
    }

    .mission-card {
        padding: clamp(15px, 3vw, 20px);
    }

    .board-member {
        padding: clamp(12px, 2vw, 16px);
    }
}

/* Desktop Adjustments */
@media (min-width: 1200px) {
    .heros-image-wrapper:hover {
        transform: translateY(-5px);
        transition: transform 0.3s ease;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

    .board-member:hover {
        transform: translateY(-5px);
        border-color: var(--color-primary);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }

    .team-member:hover {
        transform: translateY(-5px);
        border-color: var(--color-primary);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }

    .mission-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }
}

/* Landscape Mode for Mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .heros-section {
        padding: 20px 0;
    }

    .timeline-section,
    .board-section,
    .team-section,
    .mission-section,
    .cta-section {
        padding: 30px 0;
    }

    .timeline-row {
        gap: 15px;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .team-member {
        flex-direction: row;
        gap: 20px;
        align-items: center;
    }

    .team-member img {
        width: 80px;
        height: 80px;
        margin: 0;
    }

    .team-content {
        text-align: left;
    }
}

/* High-resolution screens */
@media (min-resolution: 192dpi) {

    .timeline-line,
    .timeline-final::before {
        height: 1px;
    }
}

/* Print Styles */
@media print {
    .about-page {
        background: white;
    }

    .team-link,
    .cta-button {
        display: none;
    }

    .mission-section::before {
        display: none;
    }
}