/* ======================================================= */
/* ====== ELEVATED MADACADEMY-STYLE ABOUT US PAGE ====== */
/* ======================================================= */

/* --- 0. Root Variables & Page Setup --- */
:root {
    --font-primary: 'Poppins', sans-serif;
    --color-bg: #ffffff;
    --color-bg-highlight: #f8f9fa; /* Subtle background for the team section */
    --color-border: #dee2e6;
    --color-text-dark: #212529;
    --color-text-light: #495057;
    --shadow-card: 0 4px 15px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.about-page-container {
    background-color: var(--color-bg);
    font-family: var(--font-primary);
}

/* ======================================================= */
/* ====== NEW HERO STYLE (Based on Shop Page Image) ====== */
/* ======================================================= */

.about-hero.with-bg {
    padding: 80px 0;
    text-align: center;
    position: relative;
    /* Clean gradient background as seen in the reference */
    background: linear-gradient(135deg, #f0f8f5, #ffffff);
}

.about-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-text-dark); /* Changed to dark text */
    margin-bottom: 1rem;
}
.about-hero p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    color: var(--color-text-light); /* Changed to light gray text */
}

/* --- Styling for the Hero Icon (Shop Page Style) --- */
.hero-icon-wrapper {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem auto; /* Center it and add space below */
    background-color: #fff; /* Solid white background */
    border-radius: 50%; /* Make it a circle */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Soft shadow for a floating effect */
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.hero-icon-wrapper i {
    font-size: 1.75rem; /* Adjust icon size as needed */
    color: var(--color-primary); /* Use the main brand color for the icon */
}
/* --- 2. Dynamic Philosophy & Values Section --- */
.philosophy-section {
    padding: 100px 0;
}
.content-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: center;
}

/* ANIMATION STYLES */
/* Initially, hide the elements you want to animate */
.philosophy-text h2,
.philosophy-text p,
.value-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
/* When the .is-visible class is added by JS, animate them in */
#philosophy-section.is-visible .philosophy-text h2,
#philosophy-section.is-visible .philosophy-text p,
#philosophy-section.is-visible .value-card {
    opacity: 1;
    transform: translateY(0);
}
/* Stagger the animations for a grander effect */
#philosophy-section.is-visible .philosophy-text p:nth-of-type(1) { transition-delay: 0.1s; }
#philosophy-section.is-visible .philosophy-text p:nth-of-type(2) { transition-delay: 0.2s; }
#philosophy-section.is-visible .value-card:nth-of-type(1) { transition-delay: 0.3s; }
#philosophy-section.is-visible .value-card:nth-of-type(2) { transition-delay: 0.4s; }
#philosophy-section.is-visible .value-card:nth-of-type(3) { transition-delay: 0.5s; }


.philosophy-text h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 1.5rem;
}
.philosophy-text p {
    color: var(--color-text-light);
    line-height: 1.8;
}
.philosophy-text p:not(:last-child) {
    margin-bottom: 1rem;
}
.core-values {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.value-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
}
.value-card:hover {
    transform: translateY(-5px) !important; /* Override animation transform */
    box-shadow: var(--shadow-card);
}
.value-card i {
    font-size: 1.25rem;
    color: var(--color-primary);
    width: 30px;
    text-align: center;
}
.value-card h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-dark);
}

/* --- 3. THE MINDS BEHIND GETWELLNESS (HIGHLIGHT SECTION) --- */
.team-section {
    padding: 80px 0;
    background-color: var(--color-bg-highlight); /* This makes the section stand out */
}
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-header h2 {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 0.75rem;
}
.section-header p {
    font-size: 1.1rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.team-card {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    text-align: center;
    padding: 30px 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-card-hover);
}
.team-card-image img {
    width: 110px; height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}
.team-card-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 2px;
}
.team-card-body span {
    display: block;
    color: var(--color-primary);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.team-card-body p {
    color: var(--color-text-light);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}
.profile-link {
    font-weight: 500;
    color: var(--color-brand-blue);
    font-size: 0.9rem;
}
.profile-link:hover { text-decoration: underline; }

/* --- 4. Final CTA Section --- */
.final-cta-section {
    padding: 80px 0;
}
.cta-card {
    padding: 50px;
    text-align: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-brand-blue));
    color: #fff;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}
.cta-card h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
}
.cta-card p {
    max-width: 550px;
    margin: 0 auto 30px auto;
    opacity: 0.9;
    font-weight: 400;
}
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}
.btn.btn-light {
    background-color: #fff;
    color: var(--color-primary);
    font-weight: 600;
}
.btn.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    font-weight: 600;
}
.btn.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}


/* --- NEW: OUR JOURNEY / TIMELINE SECTION --- */
.journey-section {
    padding: 80px 0;
    background-color: var(--color-bg); /* Use the standard white background */
}
.timeline-container {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding-left: 30px; /* Space for the line */
}
/* The vertical line */
.timeline-container::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 14px; /* Centered with the dot's 30px width */
    width: 2px;
    height: calc(100% - 20px);
    background-color: var(--color-border);
}
.timeline-item {
    position: relative;
    padding-left: 45px; /* Space from the line to the text */
    margin-bottom: 40px;
}
.timeline-item:last-child {
    margin-bottom: 0;
}
.timeline-dot {
    position: absolute;
    left: 0;
    top: 4px; /* Aligns with the first line of text */
    width: 30px;
    height: 30px;
    background-color: var(--color-bg-highlight);
    border: 2px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* The inner colored dot */
.timeline-dot::after {
    content: '';
    width: 14px;
    height: 14px;
    background-color: var(--color-primary);
    border-radius: 50%;
    transition: transform 0.3s ease;
}
.timeline-item:hover .timeline-dot::after {
    transform: scale(1.2);
}
.timeline-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
}
.timeline-content p {
    color: var(--color-text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}
/* --- Responsive Styles --- */
@media (max-width: 992px) {
    .content-grid, .team-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .about-hero.with-bg, .philosophy-section, .team-section, .final-cta-section { padding: 60px 0; }
    .about-hero h1 { font-size: 2.2rem; }
    .philosophy-text h2, .section-header h2, .cta-card h2 { font-size: 1.8rem; }
    .cta-card { padding: 40px 20px; }
    .cta-buttons { flex-direction: column; gap: 0.75rem; align-items: center; }
}