/* ==========================================
   ABOUT PAGE CUSTOM STYLING (Vaidyaraj)
   ========================================== */

:root {
    --brand-dark-green: #335c30;
    --brand-light-green: #b6cba5;
    --brand-bg: #fdfdfd;
    --brand-accent: #bfa35f;
}

body.is-about-page {
    background-color: var(--brand-bg);
}

/* Fail-safe for loader if app.js doesn't trigger */
.loader {
    display: none !important;
}

/* Base Utility Overrides */
.text-center {
    text-align: center;
}

.container-medium {
    max-width: 1000px;
    margin: 0 auto;
}

/* Sections */
.founder-section,
.mission-section,
.pharmacy-section,
.whats-new-section {
    padding: 8em 0;
    position: relative;
    overflow: hidden;
}

.founder-section {
    background: linear-gradient(135deg, #f8faf8 0%, #eef3e9 100%);
}

.whats-new-section {
    background-color: #e8efe4;
    /* Matching Light Sage */
}

/* Typography */
.founder-label {
    font-family: 'Gayathri', sans-serif;
    font-size: 1.5rem;
    color: var(--brand-accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5em;
}

.founder-heading {
    font-family: 'Volkga DEMO', 'Ringoven', serif;
    font-size: clamp(3rem, 5vw, 5rem);
    color: var(--brand-dark-green);
    line-height: 1.1;
    margin-bottom: 0.5em;
}

.founder-heading span {
    color: var(--brand-light-green);
    font-style: italic;
}

p.malayalam-text {
    font-family: 'Gayathri', sans-serif;
    font-size: 1.25rem;
    color: var(--brand-accent);
    margin-bottom: 0.5em;
    font-weight: 700;
}

/* Glass Cards */
.semantic-glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 3rem;
    border-radius: 2rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.semantic-glass-card:hover {
    transform: translateY(-5px);
}

.semantic-glass-card p {
    font-family: 'Gayathri', sans-serif;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #4a6b4a;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.semantic-glass-card p:last-child {
    margin-bottom: 0;
}

/* Stage Hero customizations */
@media screen and (max-width: 991px) {
    .about-hero-stage {
        padding-bottom: 3rem !important;
    }
}

.about-hero-stage {
    min-height: 70vh;
    padding-top: 15rem;
    padding-bottom: 10rem;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, #fdfdfd 0%, #f7f9f4 100%);
    overflow: hidden;
}

/* Ensure the wrapper doesn't break stage-deco */
.about-hero-stage .container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.about-hero-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-hero-stage .hero-heading span.light-green-span {
    font-style: italic;
    color: var(--brand-light-green);
    /* Adds elegant pop */
}

/* About Layout - Split Sections */
.founder-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4em;
    align-items: flex-start;
}

.founder-grid>.reveal-on-scroll:first-child {
    grid-column: 1 / -1;
    /* Make the heading span full width */
}

.sticky-col {
    position: sticky;
    top: 8rem;
}

/* Founder Portrait */
.founder-portrait {
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15);
    margin-bottom: 2rem;
    position: relative;
    border: 8px solid #fff;
}

.founder-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s ease;
}

.founder-portrait:hover .founder-img {
    transform: scale(1.05);
}

.founder-titles {
    text-align: center;
    margin-bottom: 3rem;
}

.founder-name {
    font-family: 'Gayathri', sans-serif;
    font-size: 1.8rem;
    color: var(--brand-dark-green);
    font-weight: 700;
}

/* Leadership List */
.leadership-list {
    background: rgba(182, 203, 165, 0.1);
    padding: 2.5rem;
    border-radius: 1.5rem;
    border-left: 4px solid var(--brand-dark-green);
}

.leadership-heading {
    font-family: 'Volkga DEMO', serif;
    font-size: 2rem;
    color: var(--brand-dark-green);
    margin-bottom: 1.5rem;
}

.leadership-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.leadership-list ul li {
    font-family: 'Gayathri', sans-serif;
    font-size: 1.2rem;
    color: #4a6b4a;
    margin-bottom: 0.8rem;
    padding-left: 2rem;
    position: relative;
}

.leadership-list ul li::before {
    content: "❖";
    position: absolute;
    left: 0;
    color: var(--brand-accent);
    font-size: 1.2rem;
}

/* Mission & Vision Section */
.mission-header {
    margin-bottom: 4rem;
}

.mission-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card-title {
    font-family: 'Volkga DEMO', serif;
    font-size: 2.5rem;
    color: var(--brand-dark-green);
    margin-bottom: 1rem;
}

/* Pharmacy Section */
.pharmacy-content {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    padding: 4rem;
    border-radius: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    margin-top: 3rem;
}

.pharmacy-content p {
    font-family: 'Gayathri', sans-serif;
    font-size: 1.25rem;
    line-height: 1.8;
    color: #4a6b4a;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.pharmacy-more-text {
    display: none;
    margin-top: 1.5rem;
}

.btn-wrap {
    text-align: center;
    margin-top: 2rem;
}

.read-more-btn {
    background: transparent;
    border: 2px solid var(--brand-dark-green);
    color: var(--brand-dark-green);
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    font-family: 'Gayathri', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background: var(--brand-dark-green);
    color: #fff;
    box-shadow: 0 10px 20px rgba(51, 92, 48, 0.2);
}

.pharmacy-deco {
    position: absolute;
    bottom: -5%;
    right: -5%;
    width: 30vw;
    opacity: 0.1;
    z-index: -1;
    pointer-events: none;
    transform: rotate(-15deg);
}

/* Whats New / Research Series */
.whats-new-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6rem;
    align-items: center;
}

.whats-new-img-wrap {
    position: relative;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15);
}

.whats-new-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 1s ease;
}

.whats-new-img-wrap:hover .whats-new-img {
    transform: scale(1.05);
}

.img-badge {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: 'Gayathri', sans-serif;
    font-weight: 700;
    color: var(--brand-dark-green);
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.content-col p {
    font-family: 'Gayathri', sans-serif;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #4a6b4a;
    margin-bottom: 1.5rem;
}

/* Responsiveness */
@media (max-width: 991px) {

    .mission-cards,
    .whats-new-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .founder-grid {
        grid-template-columns: 1fr;
        /* Force 1 column strictly stack vertical layout */
        gap: 2rem;
    }

    .founder-grid .reveal-on-scroll {
        grid-column: 1 / -1 !important;
        /* Force children into singular column space */
    }
}

.sticky-col {
    position: relative;
    top: 0;
}

.pharmacy-content {
    padding: 2rem;
}

/* Philosophy Section Responsive */
.philosophy-block {
    grid-column: span 6;
    border-radius: 2em;
    padding: 4em;
    display: flex;
    flex-direction: column;
    gap: 2em;
    position: relative;
}

#vision-block {
    background-color: var(--white);
    border: 1px solid var(--bg-light);
    z-index: 2;
    box-shadow: 0 20px 40px rgba(51, 92, 48, 0.03);
}

#mission-block {
    background-color: var(--dark-green);
    color: var(--white);
    z-index: 1;
    margin-top: 6em;
    box-shadow: 0 30px 60px rgba(51, 92, 48, 0.15);
}

.philosophy-block h2 {
    font-size: 5em;
    line-height: 0.8;
    margin: 0;
    font-family: 'Volkga DEMO', 'Ringoven', sans-serif;
}

.philosophy-block p {
    font-size: 1.875em;
    line-height: 1.1;
    margin: 0;
    max-width: 28ch;
    font-family: 'Founders Grotesk Condensed', sans-serif;
}

#vision-block h2,
#vision-block p {
    color: var(--dark-green);
}

#mission-block h2,
#mission-block p {
    color: var(--white);
}

/* Philosophy Mobile Responsiveness */
@media (max-width: 991px) {
    .vision-mission-section {
        padding-top: 4em !important;
        padding-bottom: 4em !important;
    }

    .philosophy-block {
        grid-column: span 12;
        padding: 2.5em;
        /* shrink padding on mobile */
    }

    #mission-block {
        margin-top: 0;
        /* stack cleanly on mobile */
    }

    .philosophy-block h2 {
        font-size: 3.5em;
        /* smaller text for moble */
    }

    .philosophy-block p {
        font-size: 1.5em;
        /* shrink paragraph */
        max-width: 100%;
    }

    #vision-block img {
        width: 3em !important;
    }

    #mission-block img {
        width: 4.5em !important;
        top: -2em !important;
        right: -1em !important;
    }
}

/* Testimonial Section Mobile Responsiveness */
@media (max-width: 991px) {
    .testimonial-section {
        padding: 4em 0 !important;
        height: auto !important;
        min-height: auto !important;
    }

    .testimonial-container .grid-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 2em !important;
    }

    .testimonial-big-heading {
        font-size: 3.5em !important;
        line-height: 1.1 !important;
    }

    .testimonial-heading {
        font-size: 2.5em !important;
    }

    .testimonial-slider-item {
        padding: 1.5em !important;
    }

    .big-title-wrapper {
        text-align: center;
        width: 100%;
    }

    .testimonial-signature {
        transform: scale(0.6);
        margin: 0 auto;
        transform-origin: center;
        display: flex;
        justify-content: center;
        margin-bottom: -1em;
    }

    .testimonial-slider-inner {
        padding-inline: 1em !important;
    }
}