/*
====================================
FRONT PAGE
Color tokens match header/footer:
  Teal   var(--teal)
  Green  var(--green)
====================================
*/


.front-section-title a {
    color: inherit;
    text-decoration: none;
    transition: .3s;
}

.front-section-title a:hover {
    color: var(--green);
}

.meta-dot {
    margin: 0 6px;
    opacity: .5;
}


/* ============================
   HERO
   Each slide = a rounded image card, then a caption block below it
   (badges, title, excerpt, meta) — not text-over-image. hero-slider
   is a fixed-size card (image height + card height both fixed); the
   title/excerpt reserve a full 2-line box via min-height, so short
   text just leaves blank space instead of the card resizing.
   hero-side (Popular/Recent box) stretches to match hero-slider's
   height via .hero-grid's align-items: stretch.
============================= */

.hero-section {
    padding: 30px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.hero-slider {
    position: relative;
    height: 540px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 16px);
    box-shadow: var(--shadow-card);
}

.hero-slide {
    display: none;
    flex-direction: column;
    height: 100%;
}

.hero-slide.active {
    display: flex;
}

.hero-slide-media {
    position: relative;
    display: block;
    height: 300px;
    flex-shrink: 0;
    background: var(--border);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px 10px 0 0;
}

.hero-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px 10px 0 0;
}

.hero-slide-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 24px 24px;
    overflow: hidden;
}

.hero-slide-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.hero-pill {
    --item-color: var(--green);
    display: inline-flex;
    align-items: center;
    background-color: color-mix(in srgb, var(--item-color) 12%, var(--white));
    color: var(--item-color);
    border: 1.5px solid color-mix(in srgb, var(--item-color) 35%, var(--white));
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    line-height: 1;
}

.hero-title {
    color: var(--charcoal);
    margin: 0 0 10px;
    min-height: calc(36.25px * 1);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-family: var(--font-en-display);
    font-size: 28px;
    font-weight: 400;
    line-height: 36.25px;
    letter-spacing: 0;
}

.hero-title a {
    color: inherit;
    transition: color .2s;
}

.hero-title a:hover {
    color: var(--teal);
}

.hero-excerpt {
    margin: 0 0 14px;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-family: var(--font-en-body);
    font-size: 14px;
    font-weight: 400;
    line-height: 23.1px;
    letter-spacing: 0;
}

.hero-meta {
    margin-top: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: var(--muted);
    font-size: 12px;
}

.hero-meta i {
    margin-right: 5px;
    color: var(--muted);
}

.hero-dots {
    position: absolute;
    left: 24px;
    top: 260px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .4);
    cursor: pointer;
    padding: 0;
    transition: background .2s, transform .2s;
}

.hero-dot.active {
    background: var(--white);
    transform: scale(1.2);
}

/* .hero-side is a sizing modifier only — the card look (background,
   border, radius, shadow, padding) comes from the shared .sidebar-box
   class in sidebar.css (added alongside "hero-side" in the markup), so
   this panel always matches every other sidebar box on the site. */
.hero-side {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    margin-bottom: 0;
}


/* ============================
   LATEST NEWS
============================= */

.latest-news-section {
    padding: 40px 0;
}


.section-more {
    color: var(--green);
    font-size: 14px;
}

.latest-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--white);
    transition: box-shadow .2s, transform .2s;
}

.news-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    transform: translateY(-2px);
}

.news-card-thumb {
    position: relative;
    display: block;
    height: 180px;
    background: var(--border);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px 10px 0 0;

}

.news-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px 10px 0 0;
}

/* No featured image: brand-gradient tint with a placeholder label,
   same deterministic per-post gradient the archive card uses. */
.news-card-thumb.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-card-thumb.gradient-green {
    background: linear-gradient(135deg, var(--green) 0%, var(--teal) 100%);
}

.news-card-thumb.gradient-amber {
    background: linear-gradient(135deg, var(--amber) 0%, var(--coral) 100%);
}

.news-card-thumb.gradient-purple {
    background: linear-gradient(135deg, var(--purple) 0%, var(--sky) 100%);
}

.news-card-thumb-placeholder {
    color: rgba(255, 255, 255, .85);
    font-family: var(--font-en-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
}

.news-card-body {
    padding: 16px;
}

.news-card-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.news-card-cat {
    --item-color: var(--pill-color, var(--green));
    display: inline-flex;
    align-items: center;
    background-color: color-mix(in srgb, var(--item-color) 14%, var(--white));
    color: var(--item-color);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    line-height: 1;
}

.news-card-title {
    font-family: var(--font-en-body);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-title a {
    color: var(--charcoal);
}

.news-card-title a:hover {
    color: var(--teal);
}

.news-card-summary {
    font-family: var(--font-en-body);
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-en-body);
    font-size: 12px;
    color: var(--muted);
}


/* ============================
   GALLERY
============================= */
.gallery-wrapper {
    display: flex;
    gap: 18px;
}

.gallery-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.gallery-center {
    flex: 1.1;
}

.gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 14px;
    background: var(--surface);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: .45s;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-column:not(.gallery-center) .gallery-item {
    height: 205px;
}

.gallery-tall {
    height: 428px;
}

.gallery-tall img {
    height: 100%;
}

/* ============================
   GALLERY RESPONSIVE
============================= */
@media (max-width: 768px) {

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

    .gallery-column {
        display: contents;
    }

    .gallery-center {
        display: contents;
    }

    .gallery-item {
        height: 180px !important;
    }

    .gallery-item img {
        height: 100%;
    }
}

/* ============================
   ABOUT US
============================= */

.about-section {
    padding: 50px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

.about-label {
    display: inline-block;
    color: var(--charcoal);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 20px;
}

.about-mission-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--teal);
    margin: 16px 0 10px;
}

.about-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--muted);
    margin: 0 0 20px;
}

.about-btn {
    display: inline-block;
    background: var(--teal);
    color: var(--white);
    font-size: 14px;
    padding: 10px 24px;
    border-radius: 30px;
}

.about-btn:hover {
    filter: brightness(1.1);
    color: var(--white);
}


/* ============================
   NEWSLETTER
============================= */

.newsletter-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding: 26px 32px;
    background: var(--green-light);
    border: 1px solid var(--green);
    border-radius: 16px;
}

.newsletter-content {
    flex: 1;
}

.newsletter-heading {
    margin: 0 0 8px;
    font-size: 30px;
    font-weight: 700;
    color: var(--charcoal);
    line-height: 1.2;
}

.newsletter-description {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.newsletter-form {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.newsletter-response {
    margin-top: 16px;
    font-size: 14px;
}

.newsletter-response.is-success {
    color: var(--green);
}

.newsletter-response.is-error {
    color: var(--coral);
}

.newsletter-input{
    border-radius: 30px !important;
}

@media (max-width: 991px) {

    .newsletter-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .newsletter-form {
        width: 100%;
    }

    .newsletter-input {
        flex: 1;
        width: 100%;
    }

    .nctf-newsletter-form,
    .btn-primary {
        margin-bottom: 20px !important;
    }

}

@media (max-width: 576px) {

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-input,
    .btn-primary {
        width: 100%;
    }

}


/* ============================
   RESPONSIVE — TABLET (≤900px)
============================= */

@media (max-width: 900px) {

    .hero-grid,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        gap: 20px;
    }

    .hero-slider {
        height: 420px;
    }

    .hero-slide-media {
        height: 200px;
    }

    .hero-dots {
        top: 160px;
    }

    .hero-side {
        height: auto;
        max-height: 360px;
    }

    .hero-title {
        font-size: 21px;
    }

    .hero-side .sidebar-tab {
        padding: 8px 16px;

    }

    .front-section-title {
        font-size: 26px;
    }

    .newsletter-heading {
        font-size: 24px;
    }

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

    .news-card-thumb {
        height: 160px;
    }

}

/* ============================
   RESPONSIVE — SMALL TABLET (≤768px)
============================= */

@media (max-width: 768px) {

    .hero-slide-body {
        padding: 16px 18px 20px;
    }

    .hero-dots {
        left: 18px;
    }

    .hero-side .side-list-item {
        gap: 10px;
    }

}

/* ============================
   RESPONSIVE — MOBILE (≤600px)
============================= */

@media (max-width: 600px) {

    .latest-news-grid {
        grid-template-columns: 1fr;
    }

    .hero-section,
    .latest-news-section {
        padding: 20px 0;
    }

    .front-section-title {
        font-size: 22px;
        gap: 8px;
    }

    .front-section-accent {
        height: 22px;
    }

    .hero-slider {
        height: 360px;
    }

    .hero-slide-media {
        height: 160px;
    }

    .hero-dots {
        top: 120px;
        left: 14px;
    }

    .hero-slide-body {
        padding: 14px 14px 18px;
    }

    .hero-title {
        font-size: 18px;
    }

    .hero-excerpt {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }

    .hero-meta {
        gap: 12px;
    }

    .hero-pill {
        font-size: 10px;
        padding: 3px 10px;
    }

    .hero-side .sidebar-tabs {
        gap: 6px;
    }

    .hero-side .sidebar-tab {
        padding: 7px 14px;

    }

    .hero-side .side-list-thumb {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }

    .about-section {
        padding: 30px 0;
    }

    .about-text {
        font-size: 13px;
    }

    .newsletter-heading {
        font-size: 20px;
    }

    .newsletter-description {
        font-size: 13px;
    }

    .newsletter-inner {
        padding: 20px;
    }

}

/* ============================
   RESPONSIVE — SMALL PHONE (≤400px)
============================= */

@media (max-width: 400px) {

    .front-section-title {
        font-size: 19px;
    }

    .hero-slider {
        height: 330px;
    }

    .hero-slide-media {
        height: 140px;
    }

    .hero-dots {
        top: 100px;
    }

    .hero-side .sidebar-tabs {
        flex-wrap: wrap;
    }

    .news-card-thumb {
        height: 140px;
    }

    .newsletter-heading {
        font-size: 18px;
    }

}
