@import url("https://fonts.googleapis.com/css2?family=Vidaloka&display=swap");
html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 200px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.image-content {
    padding: 100px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    color: #fff;
}

.hero-content h1 {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #fff;
}

.hero-content p {
    font-size: 18px;
    line-height: 1.6;
    color: #fff;
}


/* CARD CONTAINER */

.hero__title {
    position: absolute;
    top: 11%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: clamp(28px, 5vw, 64px);
    text-align: center;
    z-index: 2;
}

html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}


/* ====================== HERO SECTION ====================== */

.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 85vh;
    padding: 160px 20px 100px;
    /* Balanced vertical space */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    overflow: hidden;
    /* Prevents any horizontal overflow */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1250px;
    width: 100%;
    color: #fff;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: clamp(42px, 7vw, 72px);
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
    color: #fff;
}

.hero-content p {
    font-size: clamp(16px, 2.2vw, 19px);
    line-height: 1.65;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    color: #fff;
}


/* ====================== STORY CARDS ====================== */

h2.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Fluid & responsive */
    gap: 30px;
    max-width: 1600px;
    margin: 0 auto;
    justify-content: center;
}

.story-card {
    display: flex;
    flex-direction: column;
    background: #fefbe9;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit;
    transition: 0.3s ease;
    border: 1px solid rgba(26, 26, 26, 0.15);
    /* min-height: 560px; */
    /* More flexible min-height */
    width: 100%;
    /* Important for grid */
}

.story-card:hover {
    border-color: #019b43;
    transform: none;
    box-shadow: none;
}


/* IMAGE - Now fully responsive with aspect ratio */

.story-card__image {
    position: relative;
    width: 100%;
    aspect-ratio: 509 / 400;
    /* Maintains original proportion */
    overflow: hidden;
    flex-shrink: 0;
}

.story-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* transition:
    transform 0.6s ease,
    opacity 0.6s ease; */
}


/* .story-card:hover .story-card__image img {
  transform: scale(1.08);
  opacity: 0;
} */


/* Hover overlay image - now uses background-size properly */


/* .story-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("https://businessasmission.ph/wp-content/uploads/2026/04/Rectangle-19.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 2;
}

.story-card:hover .story-card__image::after {
  opacity: 1;
} */


/* CONTENT */

.story-card__content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
}

.story-card__date {
    font-size: 18px;
    color: #1a1a1a;
    margin-bottom: 20px;
    font-weight: 400;
}

.story-card__title {
    color: #105e31;
    font-family: Montserrat;
    font-weight: 500;
    line-height: 1.25;
    display: unset;
}

.story-card__excerpt {
    min-height: unset;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    color: #1a1a1a;
    font-family: Montserrat;
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 24px;
}

.story-card__readmore {
    font-weight: 800;
    font-family: Montserrat;
    color: #105e31;
    font-size: 18px;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.story-card__readmore::after {
    content: "→";
    transition: transform 0.3s ease;
    font-size: 22px;
    display: inline-block;
    /* important for transform to work */
}

.story-card:hover .story-card__readmore {
    gap: 14px;
}

.story-card:hover .story-card__readmore::after {
    transform: translateX(8px);
}


/* ====================== LEADERS SECTION ====================== */

.leaders-section {
    padding: 100px 20px;
    background-size: cover;
    background-position: center;
    text-align: center;
}

.leaders-title {
    font-size: clamp(32px, 5vw, 42px);
    font-weight: 800;
    color: #1f5f3b;
    margin-bottom: 60px;
    text-transform: uppercase;
    line-height: 1.2;
}


/* .leaders-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1600px;
  margin: 0 auto;
} */


/* ====================== LEADER CARD ====================== */


/* Leader Card - Strict Same Size */

.leader-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    /* min-height: 560px; */
    /* Fixed minimum height for all cards */
    box-sizing: border-box;
    justify-content: flex-start;
    /* Important for consistent spacing */
}


/* Image - Fixed size */

.leader-card__image {
    width: 220px;
    height: 220px;
    margin: 0 auto 24px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    /* Never shrink */
}



/* ====================== LEADER CARD BUTTON ====================== */

.leader-card__btn {
    background: #019b43;
    color: #fff !important;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    padding: 25px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    flex-direction: column;
    gap: 10px;
    justify-self: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}


/* Hover State */

.leader-card__btn:hover {
    background: #05e364;
}


/* White Wave Effect (Left to Right) */

.leader-card__btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 120%;
    height: 100%;
    background: linear-gradient( 90deg, rgba(5, 227, 100, 0) 0%, rgba(5, 227, 100, 0.2) 100%);
    transition: all 0.5s ease;
    transform: skewX(-20deg);
    z-index: 0;
}

.leader-card__btn:hover::before {
    left: 100%;
}


/* ====================== IMAGE + CONTENT SECTION ====================== */

section.image-content {
    padding-top: 0px!important;
    background-color: #fff !important;
}

.image-content__wrapper {
    display: flex;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: flex-start;
}

.image-content__text {
    flex: 1;
    max-width: 700px;
    margin: auto;
}

section.image-content .image-content__text img {
    display: none;
}

.image-content__text h2 {
    color: #105e31;
    font-size: 50px;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 50px !important;
}

.image-content__text p {
    color: #000;
    font-family: Montserrat;
    font-size: 18px;
    line-height: 1.7;
}

.image-content__media {
    flex: 1;
    max-width: 580px;
}

.image-content__media img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

@media (max-width: 1199px) {
    section.image-content .image-content__text img {
        display: block;
        margin: 0 auto 30px;
    }
    .image-content__media img {
        display: none;
    }
}


/* LEADER-SECTION */

.leaders-section {
    padding: 100px 20px;
    background-size: cover;
    background-position: center;
    text-align: center;
}

.leaders-title {
    font-size: 42px;
    font-weight: 800;
    color: #1f5f3b;
    margin-bottom: 50px;
    text-transform: uppercase;
}

.leaders-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.leader-card {
    width: calc(33.333% - 20px);
}

.leader-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.leader-card__image {
    width: 244px;
    height: 244px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
}

.leader-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leader-card__name {
    font-family: Montserrat;
    color: #1a1a1a;
    text-align: center;
    font-weight: 600;
}

.leader-card__desc {
    color: #1a1a1a;
    text-align: center;
}

.mission-section {
    background: #019b43;
    padding: 100px;
}

.mission-container {
    max-width: 1200px;
    margin: 0 auto;
}


/* ================= TITLE ================= */

.mission-title {
    color: #fff;
    text-align: center;
    font-family: Montserrat;
    font-size: 40px;
    font-weight: 900;
    line-height: 52px;
    text-transform: uppercase;
    margin: 0 auto 50px;
    max-width: 1071px;
}


/* ================= GRID ================= */

.mission-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 0.6fr;
    gap: 80px;
    align-items: start;
    /* Better alignment */
}


/* ================= LEFT TEXT ================= */

.mission-left {
    max-width: 640px;
    margin: auto;
}

.mission-left p {
    color: #fff;
    font-family: Montserrat;
    font-size: 18px;
    font-weight: 400;
    font-style: normal;
    line-height: 30.6px;
    letter-spacing: 0.9px;
    margin-bottom: 30px;
}


/* ================= RIGHT QUOTE ================= */

.mission-right {
    text-align: center;
    max-width: 328px;
    /* Narrower than before */
    margin: 0 auto;
}

.mission-right blockquote {
    color: #fff;
    font-family: "Vidaloka", serif;
    font-size: 48px;
    /* Slightly smaller for better fit */
    font-weight: 400;
    line-height: 62px;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-style: normal;
}

.mission-verse {
    color: #fff;
    font-family: "Vidaloka", serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.3;
    text-transform: uppercase;
    display: block;
    margin-top: 14.38px;
}

@media (min-width: 1200px) {
    section.story-cards {
        padding-left: 30px;
        padding-right: 30px;
    }
}


/* ================= TABLET (≤1199px) ================= */

@media (max-width: 1199px) {
    /* SECTION SPACING */
    .hero-section,
    .image-content,
    .leaders-section,
    .mission-section {
        padding: 70px 30px;
    }
    /* HERO */
    .hero-section {
        min-height: 70vh;
        background-position: center top;
    }
    /* STORY CARDS → 1 COLUMN */
    .cards-grid {
        grid-template-columns: 2fr;
    }
    /* IMAGE CONTENT STACK */
    .image-content__wrapper {
        flex-direction: column;
    }
    /* LEADERS → 1 COLUMN */
    .leaders-grid {
        flex-direction: column;
        align-items: center;
    }
    .leader-card {
        width: 100%;
        max-width: 400px;
    }
    /* MISSION → 1 COLUMN */
    .mission-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    .leaders-grid {
        flex-direction: row;
        justify-content: center;
    }
    .leader-card {
        flex: 1 1 calc(50% - 15px);
        /* ~2 columns */
        max-width: calc(50% - 15px);
    }
    .image-content__wrapper {
        flex-direction: column;
        gap: 35px;
        align-items: center;
        text-align: center;
    }
    /* Force the exact visual order */
    .image-content__text {
        order: 1;
        width: 100%;
        max-width: 100%;
    }
    .image-content__media {
        order: 2;
        /* Image appears between h2 and p */
        width: 100%;
        max-width: 580px;
        margin: 0 auto;
    }
    .image-content__text p {
        order: 3;
        /* Paragraph comes last */
        margin-top: 10px;
    }
    .image-content__text h2 {
        margin-bottom: 30px !important;
    }
    .hero-section,
    .leaders-section,
    .mission-section {
        padding: 70px 30px;
    }
    .cards-grid {
        gap: 25px;
    }
    .mission-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    .leader-card {
        max-width: 420px;
        margin: 0 auto;
    }
    .image-content__wrapper {
        display: flex;
        flex-direction: column-reverse;
    }
    .mission-left, .mission-right {
        max-width: 100%;
    }
}


/* ================= MOBILE (≤767px) ================= */

@media (max-width: 767px) {
    /* SECTION SPACING */
    .hero-section,
    .leaders-section,
    .mission-section {
        padding: 50px 20px;
    }
    /* HERO TEXT SCALE */
    .hero-content h1 {
        font-size: 28px;
    }
    .hero-content p {
        font-size: 14px;
    }
    /* STORY IMAGE HEIGHT */
    /* .story-card__image img {
        height: 200px;
    } */
    /* LEADER IMAGE SCALE */
    .leader-card__image {
        width: 180px;
        height: 180px;
    }
    /* MISSION TEXT SCALE */
    .mission-right blockquote {
        font-size: 22px;
    }
    .cards-grid {
        grid-template-columns: 1fr;
        /* or repeat(1, 1fr) */
        gap: 20px;
    }
    .image-content__text h2 {
        font-size: 38px;
    }
    .image-content__media img {
        max-width: 100%;
    }
    .hero-section,
    .leaders-section,
    .mission-section {
        padding: 50px 20px;
    }
    .hero-section {
        min-height: 70vh;
        padding-top: 100px;
        padding-bottom: 80px;
    }
    .story-card__image {
        aspect-ratio: 16 / 9;
        /* Slightly wider on mobile for better look */
    }
    .leader-card__image {
        width: 180px;
        height: 180px;
    }
    .mission-right blockquote {
        font-size: 28px;
        line-height: 1.35;
    }
    .leaders-grid {
        display: grid;
        grid-template-columns: auto;
    }
    .leader-card {
        max-width: 100%;
    }
}