/* Home Page Styles */

.hero-image-section {
    width: 100%;
    padding: 0;
    margin: 0;
}

/* ==========================================
   HERO VIDEO (PhilBio-Philbio style)
   ========================================== */
.hero-video-section {
    width: 100%;
    padding: 0;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.hero-video-wrapper {
    width: 100%;
    height: 100vh;
    min-height: 640px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.18);
    border: 1.5px solid rgba(16, 185, 129, 0.7);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    padding: 0.5rem 1.8rem;
    border-radius: 2rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}

.hero-title-white {
    color: #fff;
    font-size: clamp(2.2rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 1;
    margin: 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero-title-green {
    color: #10b981;
    font-size: clamp(2.2rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 1;
    margin: 0 0 2.5rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero-description {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

@media (max-width: 600px) {
    .hero-title-white,
    .hero-title-green {
        letter-spacing: -0.01em;
    }

    .hero-title-green {
        margin-bottom: 1.6rem;
    }
}

/* Mission — PhilBio-Philbio style (two-column, italic blue titles, justified copy) */
.mission-section {
    background: #fff;
    padding: 1rem 0 3rem;
}

.mission-container {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.mission-image {
    width: 100%;
}

.mission-image--home-lower {
    margin-top: 4rem;
}

.mission-image img {
    width: 100%;
    min-height: 250px;
    object-fit: cover;
    border-radius: 0.5rem;
    display: block;
    aspect-ratio: 16 / 10;
}

.mission-text-block {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mission-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.mission-title {
    font-weight: 800;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: #4a7c9e;
    font-style: italic;
    margin: 0;
}

.mission-text {
    color: #374151;
    font-size: 1.05rem;
    line-height: 1.7;
}

.mission-text--justify {
    text-align: justify;
    text-justify: inter-word;
    font-size: 0.95rem;
    line-height: 1.95;
    letter-spacing: 0.01em;
    word-spacing: 0.06em;
    hyphens: auto;
}

/* Foundation — PhilBio-Philbio style */
.foundation-section {
    background: #fff;
    padding: 1.5rem 0 3rem;
}

.foundation-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
}

.foundation-left {
    flex: 1 1 350px;
    min-width: 280px;
}

.foundation-heading-label {
    color: #10b981;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 0 0 1rem;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.foundation-subheading {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    margin: 0 0 1.5rem;
    line-height: 1.1;
    color: #111827;
}

.foundation-description {
    font-size: 1.15rem;
    color: #475569;
    margin: 0 0 1rem;
    line-height: 1.7;
}

.foundation-grid {
    flex: 2 1 600px;
    min-width: 280px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.foundation-card {
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 2px 12px #e5e7eb;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}

.foundation-card-image {
    width: 140px;
    height: 140px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.foundation-card-title {
    font-weight: 700;
    font-size: 1.15rem;
    color: #111827;
}

.foundation-card-subtitle {
    color: #475569;
    font-size: 1rem;
}

.featured-post-section {
    background: linear-gradient(135deg, #f0fdf4 0%, #e0f7ee 100%);
    padding: 3rem 0 4rem;
    position: relative;
}

.featured-post-container {
    max-width: 1100px;
    margin: auto;
}

.featured-posts-header {
    text-align: center;
    margin-bottom: 3rem;
}

.featured-posts-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #111827;
    margin: 0 0 0.5rem;
    line-height: 1.2;
}

.featured-posts-title-italic {
    font-style: italic;
    color: #10b981;
}

.featured-posts-subtitle {
    color: #6b7280;
    font-size: 1rem;
    margin: 0;
}

.featured-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.featured-post-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.1);
    transition: all 0.3s ease;
}

.featured-post-card:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.featured-post-image-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
}

.featured-post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.featured-post-card:hover .featured-post-image {
    transform: scale(1.05);
}

.featured-post-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #10b981;
    color: #fff;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.featured-post-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex-grow: 1;
}

.featured-post-label {
    color: #10b981;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0;
}

.featured-post-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #111827;
    margin: 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.featured-post-title a {
    color: inherit;
    text-decoration: none;
}

.featured-post-title:hover a {
    color: #10b981;
}

.featured-post-date {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #6b7280;
    font-size: 0.85rem;
    margin: 0;
}

.featured-post-date i {
    color: #10b981;
}

.featured-post-excerpt {
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
}

.featured-post-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #10b981;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(16, 185, 129, 0.08);
    border-radius: 6px;
    transition: all 0.3s ease;
    width: fit-content;
}

.featured-post-link:hover {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
    transform: translateX(4px);
}

.featured-post-link i {
    transition: transform 0.3s ease;
}

.featured-post-link:hover i {
    transform: translateX(2px);
}

@media (max-width: 768px) {
    .featured-posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .featured-post-image-wrapper {
        height: 180px;
    }

    .featured-post-content {
        padding: 1rem;
    }

    .featured-post-title {
        font-size: 1.1rem;
    }

    .featured-posts-title {
        font-size: 1.8rem;
    }
}

.featured-post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.76), rgba(2, 6, 23, 0));
    padding: 1.15rem 1.4rem;
    z-index: 2;
}

.post-thumbnail-wrapper {
    position: relative;
    overflow: hidden;
}

.post-thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-link-invisible {
    color: inherit;
    text-decoration: none;
}

.facebook-section {
    background: #f8fafc;
    padding: 3rem 0 4.5rem;
}

.facebook-container {
    max-width: 1220px;
}

.facebook-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

.facebook-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 700px;
    padding: 0 1rem;
}

.facebook-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    padding: 0;
    line-height: 1.3;
    flex-shrink: 0;
}

.facebook-iframe-wrapper {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    height: 620px;
    flex: 1;
    width: 100%;
    max-width: 520px;
}

.facebook-iframe-wrapper.scrollable {
    overflow-y: auto;
}

.facebook-iframe {
    border: 0;
    display: block;
}

/* ==========================================
   CONSERVATION CALENDAR (PhilBio-Philbio)
   Overrides global h2/h3 from style.css on home page
   ========================================== */

.home-calendar-section h2.home-calendar-title {
    color: #1f2937;
}

.home-calendar-section h3.home-calendar-month {
    color: #059669;
}

.home-calendar-section {
    background: #f9fafb;
    padding: 1.5rem 0 4rem;
}

.home-calendar-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.home-calendar-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.home-calendar-label {
    color: #10b981;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 0.3rem;
    font-size: 0.8rem;
}

.home-calendar-title {
    font-size: clamp(1.35rem, 4vw, 1.6rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.home-calendar-description {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
}

.home-calendar-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

.home-calendar-card,
.home-activity-card {
    background: #fff;
    padding: 1.2rem;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.home-calendar-month-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.home-calendar-month {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.home-calendar-nav {
    display: flex;
    gap: 0.5rem;
}

.home-calendar-nav-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #059669;
    padding: 0;
}

.home-calendar-weekdays,
.home-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
}

.home-calendar-weekdays {
    margin-bottom: 0.5rem;
}

.home-calendar-weekdays div {
    text-align: center;
    font-weight: 600;
    color: #6b7280;
    font-size: 0.75rem;
}

.home-calendar-day {
    text-align: center;
    padding: 0.35rem;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.8rem;
    border-radius: 4px;
    color: #1f2937;
    background: transparent;
    transition: background 0.2s ease, color 0.2s ease;
}

.home-calendar-day:hover {
    background: #f3f4f6;
}

.home-calendar-day.is-selected:hover {
    background: #059669;
    color: #fff;
}

.home-calendar-day.is-today:not(.is-selected):hover {
    background: #1e40af;
    color: #fff;
}

.home-calendar-day.has-activity {
    text-decoration: underline;
    text-decoration-color: #059669;
}

.home-calendar-day.is-today {
    border-radius: 50%;
    background: #1e40af;
    color: #fff;
}

.home-calendar-day.is-selected {
    background: #059669;
    color: #fff;
}

.home-calendar-day.is-selected.has-activity,
.home-calendar-day.is-today.has-activity {
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.85);
}

.home-calendar-note-wrap {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.home-calendar-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #4b5563;
}

.home-calendar-note i {
    color: #059669;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.home-calendar-note p {
    margin: 0;
}

.home-calendar-note strong {
    color: #1f2937;
}

.home-activity-card {
    text-align: center;
}

.home-activity-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.home-activity-icon-wrap {
    width: 2.2rem;
    height: 2.2rem;
    background: #059669;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-activity-icon-wrap i {
    color: #fff;
    font-size: 1.1rem;
}

.home-activity-heading {
    text-align: left;
}

.home-activity-heading h3 {
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.home-activity-heading p {
    color: #9ca3af;
    margin: 0;
    font-size: 0.8rem;
}

.home-activity-content {
    padding: 1.5rem 1rem;
}

.home-activity-content > i {
    font-size: 2rem;
    color: #e5e7eb;
    margin-bottom: 0.5rem;
}

.home-activity-content > p {
    color: #b4bcc5;
    font-size: 0.95rem;
    margin: 0.5rem 0;
}

.home-activity-content > a {
    color: #059669;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.home-activity-content > a:hover {
    text-decoration: underline;
}

.home-activity-list {
    padding: 1rem 0;
    text-align: left;
}

.home-activity-item {
    background: #f0fdf4;
    border-left: 4px solid #059669;
    border-radius: 0.5rem;
    padding: 1rem 1.2rem;
    margin-bottom: 0.75rem;
}

.home-activity-item__title {
    color: #065f46;
    display: block;
    margin-bottom: 0.3rem;
}

.home-activity-item__description {
    color: #4b5563;
    font-size: 0.95rem;
}

.home-activity-empty {
    padding: 3rem 2rem;
    text-align: center;
}

.home-activity-empty i {
    font-size: 3rem;
    color: #e5e7eb;
    margin-bottom: 1rem;
}

.home-activity-empty p {
    color: #b4bcc5;
    font-size: 1.1rem;
    margin: 1rem 0;
}

.home-activity-empty a {
    color: #059669;
    font-weight: 600;
    text-decoration: none;
}

.home-activity-empty a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .home-calendar-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .mission-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .mission-image--home-lower {
        margin-top: 0;
    }

    .foundation-container {
        flex-direction: column;
    }

    .foundation-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-video-wrapper {
        min-height: 560px;
    }

    .foundation-grid,
    .facebook-grid {
        grid-template-columns: 1fr;
    }

    .foundation-card {
        padding: 1.2rem;
    }
}

/* ==========================================
   Endangered Showcase
   ========================================== */
.endangered-showcase-section {
    padding: 3rem 0;
    background: #f8fafc;
}

.endangered-showcase-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: center;
    background: #ffffff;
    border-radius: 1.25rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
    padding: 1.5rem;
}

.endangered-showcase-media {
    position: relative;
    min-height: 300px;
}

.endangered-showcase-media-main img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 1rem;
}

.endangered-showcase-media-overlay {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    width: 42%;
    border-radius: 0.8rem;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(2, 6, 23, 0.25);
}

.endangered-showcase-media-overlay img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.endangered-showcase-media-strip {
    position: absolute;
    right: 1rem;
    top: 1rem;
    width: 38%;
    border-radius: 0.8rem;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(2, 6, 23, 0.18);
}

.endangered-showcase-media-strip img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
}

.endangered-showcase-content {
    padding: 0.5rem 0.25rem;
}

.endangered-showcase-label {
    font-size: 0.78rem;
    letter-spacing: 2px;
    font-weight: 700;
    color: #059669;
    margin: 0 0 0.8rem;
}

.endangered-showcase-title {
    font-size: clamp(1.6rem, 3vw, 2.15rem);
    line-height: 1.2;
    margin: 0 0 0.9rem;
    color: #111827;
}

.endangered-showcase-text {
    color: #4b5563;
    line-height: 1.8;
    margin: 0;
}

.endangered-showcase-link {
    display: inline-flex;
    margin-top: 1.1rem;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1.2px;
    color: #0f766e;
    text-decoration: none;
}

/* ==========================================
   Annual Reports
   ========================================== */
.annual-reports-section {
    background: #ffffff;
    padding: 2.5rem 0;
}

.posts-header {
    margin-bottom: 1rem;
}

.posts-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.posts-title-wrapper--reverse {
    flex-direction: row;
}

.posts-title {
    margin: 0;
    font-size: clamp(1.5rem, 2.8vw, 2.2rem);
    color: #111827;
}

.posts-title-italic {
    color: #059669;
    font-style: italic;
}

.posts-archive-link {
    color: #0f766e;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.annual-reports-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.annual-report-card {
    border-radius: 1rem;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18);
}

.annual-report-image-wrapper {
    position: relative;
    min-height: 260px;
}

.annual-report-bg-image {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    display: block;
}

.annual-report-info-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1rem;
    color: #fff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.05) 0%, rgba(2, 6, 23, 0.92) 85%);
}

.annual-report-card-title {
    margin: 0 0 0.4rem;
    font-size: 1.1rem;
    line-height: 1.3;
    color: #fff;
}

.annual-report-date,
.annual-report-description {
    margin: 0 0 0.55rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.annual-report-btn {
    display: inline-block;
    margin-top: 0.35rem;
    background: #10b981;
    color: #ffffff;
    text-decoration: none;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 700;
}

/* ==========================================
   Recent Activities Cards
   ========================================== */
.posts--activities {
    padding: 2.5rem 0 2.75rem;
    background: #f8fafc;
}

.posts__container--overlay-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.post--overlay {
    margin: 0;
}

.post__image-wrapper {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    min-height: 280px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.15);
}

.post__bg-image {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    display: block;
}

.post__info-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1rem;
    color: #fff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.08) 0%, rgba(2, 6, 23, 0.93) 85%);
}

.post__card-title,
.post__card-title a {
    color: #fff;
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.35;
    text-decoration: none;
}

.post__author-simple,
.post__date,
.post__description {
    margin: 0.45rem 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.9rem;
}

.post__read-btn {
    display: inline-block;
    margin-top: 0.35rem;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    font-size: 0.82rem;
    font-weight: 700;
}

/* ==========================================
   Team Section
   ========================================== */
.home-team-section {
    background: #ffffff;
    padding: 4rem 0 5rem;
}

.home-team-heading {
    margin: 0 0 3.5rem;
    text-align: center;
    color: #0f766e;
    letter-spacing: 0.15em;
    font-size: 2.8rem;
    font-weight: 900;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 1.5rem;
}

.home-team-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, #0f766e 0%, #14b8a6 100%);
    border-radius: 10px;
}

.home-team-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.home-team-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1.25rem;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.home-team-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.home-team-photo-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1rem;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-team-name {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
    letter-spacing: 0.02em;
}

.home-team-action {
    margin-top: 1rem;
    text-align: center;
}

.home-team-btn {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    background: #0f766e;
    border-radius: 999px;
    padding: 0.55rem 1.1rem;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* ==========================================
   Floating Chat Panel
   ========================================== */
.home-scroll-chat-wrap {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 80;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.home-scroll-chat-wrap.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.home-scroll-chat-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: none;
    background: #059669;
    color: #fff;
    box-shadow: 0 10px 24px rgba(5, 150, 105, 0.35);
    cursor: pointer;
    position: relative;
}

.home-scroll-chat-icon {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 1.3rem;
}

.home-scroll-chat-icon--close {
    opacity: 0;
}

.home-scroll-chat-wrap.is-open .home-scroll-chat-icon--chat {
    opacity: 0;
}

.home-scroll-chat-wrap.is-open .home-scroll-chat-icon--close {
    opacity: 1;
}

.home-scroll-chat-panel {
    width: min(92vw, 340px);
    margin-bottom: 0.6rem;
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #d1d5db;
    box-shadow: 0 20px 40px rgba(2, 6, 23, 0.22);
    overflow: hidden;
    display: none;
}

.home-scroll-chat-wrap.is-open .home-scroll-chat-panel {
    display: block;
}

.home-scroll-chat-view {
    display: none;
}

.home-scroll-chat-view--welcome {
    display: block;
}

.home-scroll-chat-wrap.is-form .home-scroll-chat-view {
    display: none;
}

.home-scroll-chat-wrap.is-form .home-scroll-chat-view--form {
    display: block;
}

.home-scroll-chat-wrap.is-live .home-scroll-chat-view {
    display: none;
}

.home-scroll-chat-wrap.is-live .home-scroll-chat-view--live {
    display: block;
}

.home-scroll-chat-panel-top {
    padding: 1rem;
}

.home-scroll-chat-panel-top h4 {
    margin: 0;
    color: #111827;
}

.home-scroll-chat-panel-top p {
    margin: 0.4rem 0 0;
    color: #4b5563;
    font-size: 0.92rem;
}

.home-scroll-chat-panel-btn,
.home-scroll-chat-send,
.home-scroll-chat-live-send-text {
    cursor: pointer;
}

.home-scroll-chat-panel-btn {
    margin: 0 1rem 1rem;
    width: calc(100% - 2rem);
    border: none;
    border-radius: 0.7rem;
    padding: 0.7rem 0.9rem;
    background: #0f766e;
    color: #fff;
    font-weight: 700;
}

.home-scroll-chat-form-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid #e5e7eb;
}

.home-scroll-chat-back {
    border: none;
    background: transparent;
    color: #374151;
    font-size: 1.15rem;
}

.home-scroll-chat-form-title {
    font-weight: 700;
    color: #111827;
}

.home-scroll-chat-form-card {
    padding: 0.9rem;
}

.home-scroll-chat-brand-row {
    display: flex;
    justify-content: center;
    margin-bottom: 0.65rem;
}

.home-scroll-chat-brand-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.home-scroll-chat-form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.home-scroll-chat-form input,
.home-scroll-chat-live-input-row textarea {
    border: 1px solid #d1d5db;
    border-radius: 0.6rem;
    padding: 0.55rem 0.7rem;
    font: inherit;
}

.home-scroll-chat-newsletter-label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    color: #4b5563;
}

.home-scroll-chat-send,
.home-scroll-chat-live-send-text {
    border: none;
    border-radius: 0.6rem;
    background: #059669;
    color: #fff;
    padding: 0.55rem 0.75rem;
    font-weight: 700;
}

.home-scroll-chat-live-body {
    max-height: 270px;
    overflow: auto;
    padding: 0.75rem;
    background: #f9fafb;
}

.home-scroll-chat-message-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.home-scroll-chat-bubble {
    max-width: 84%;
    padding: 0.55rem 0.75rem;
    border-radius: 0.7rem;
    font-size: 0.9rem;
    line-height: 1.45;
}

.home-scroll-chat-bubble--bot {
    align-self: flex-start;
    background: #e5e7eb;
    color: #111827;
}

.home-scroll-chat-bubble--user {
    align-self: flex-end;
    background: #0f766e;
    color: #fff;
}

.home-scroll-chat-bubble--error {
    background: #fee2e2;
    color: #991b1b;
}

.home-scroll-chat-live-input-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    padding: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

.home-scroll-chat-live-input-row textarea {
    resize: none;
    min-height: 40px;
    max-height: 138px;
}

.home-scroll-chat-receipt {
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: -0.25rem;
}

.home-scroll-chat-receipt-check {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #10b981;
}

/* Responsive additions */
@media (max-width: 1100px) {
    .annual-reports-grid,
    .posts__container--overlay-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-team-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .endangered-showcase-card {
        grid-template-columns: 1fr;
    }

    .endangered-showcase-media {
        min-height: 250px;
    }
}

@media (max-width: 700px) {
    .annual-reports-grid,
    .posts__container--overlay-cards,
    .home-team-grid {
        grid-template-columns: 1fr;
    }
}

/* Extra-small screens (mobile phones < 480px) */
@media (max-width: 479px) {
    .home-hero-content {
        padding-top: 3rem;
        padding-bottom: 1.5rem;
    }

    .home-hero-content h1 {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }

    .home-hero-content p {
        font-size: clamp(0.85rem, 3vw, 1rem);
    }

    .mission-section {
        gap: 1.5rem;
    }

    .mission-item-card {
        padding: 1rem;
    }

    .foundation-grid {
        gap: 1rem;
    }

    .foundation-card {
        padding: 1rem;
    }

    .foundation-card-image {
        width: 100px;
        height: 100px;
    }

    .endangered-showcase-media {
        min-height: 200px;
    }

    .featured-post-image {
        aspect-ratio: 16 / 9;
        height: auto;
    }

    .home-calendar-section {
        padding: 1.5rem 0.75rem;
    }

    .home-calendar-header {
        padding: 0 0.75rem;
    }

    .home-calendar-grid {
        gap: 1rem;
    }

    .home-team-grid {
        gap: 1rem;
    }
}
