/* Disable image dragging */
img {
    -webkit-user-drag: none;
    user-select: none;
}

/* =========================
   SECTION 1 - BANNER CAROUSEL
   ========================= */

.home {
    padding-top: 0;
}

.banner-section {
    width: 100%;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.banner-carousel {
    position: relative;
    width: 100%;
}

.carousel-inner {
    position: relative;
    width: 100%;
}

.carousel-slides {
    position: relative;
    width: 100%;
}

.carousel-slide {
    display: none;
}

.carousel-slide.active {
    display: block;
}

.hero-image-container {
    width: 100%;
    position: relative;
    line-height: 0;
    max-height: calc(100dvh - var(--header-height, 0px));
    overflow: hidden;
}

.hero-image-container img {
    width: 100%;
    height: auto;
    display: block;
    max-height: calc(100dvh - var(--header-height, 0px));
    object-fit: cover;        /* full width on desktop, no side gaps */
    object-position: center center;
}

.carousel-ui {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.5);
}

.carousel-arrow--prev { left: 16px; }
.carousel-arrow--next { right: 16px; }

.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    pointer-events: none;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.carousel-dot.active {
    background: #fff;
    border-color: #fff;
}

/* =========================
   SECTION 2 — SOCIAL SECTION
   ========================= */

.social-section {
    padding: 80px 50px;
    background: #f7f8fc;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.social-section-inner {
    display: flex;
    gap: 48px;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0;
}
.social-section-text {
    flex: 0 0 330px;
}
.social-section-text h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 12px;
    line-height: 1.3;
}
.social-section-text p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin: 0 0 24px;
}
.social-section-btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--color-accent);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    transition: background .3s ease, transform .3s ease;
}
.social-section-btn:hover {
    background: #2a6632;
    transform: scale(1.05);
}

/* — Scrolling area — */
.social-section-scroll {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    width: 100%;
}
.social-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: socialScroll 60s linear infinite;
}
.social-section-scroll:hover .social-track {
    animation-play-state: paused;
}
@keyframes socialScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* — Card — */
.social-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 310px;
    padding: 18px;
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    transition: transform .2s ease, box-shadow .2s ease;
    flex-shrink: 0;
}
.social-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.social-card-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
    line-height: 0;
}
.social-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.social-card-badge {
    display: inline-block;
    align-self: flex-start;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: .3px;
    text-transform: uppercase;
}
.social-card-title {
    font-size: 15px;
    color: var(--color-text);
    line-height: 1.4;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 900px) {
    .social-section-inner {
        flex-direction: column;
        text-align: center;
    }
    .social-section-text {
        flex: none;
    }
    .social-card-badge {
        align-self: center;
    }
}

@media (max-width: 600px) {
    .social-section {
        padding: 50px 20px;
    }
    .social-section-text h2 {
        font-size: 22px;
    }
    .social-card {
        width: 260px;
        padding: 14px;
    }
}

/* =========================
   SECTION 3 - JOIN US
   ========================= */

.join-section {
    padding: 80px 8%;
    background: #ffffff;
}

.join-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* HEADER */
.join-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.join-header h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.join-header p {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* BUTTON */
.join-btn {
    display: inline-block;
    padding: 12px 25px;
    background: #187e5c;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.3s;
}

.join-btn:hover {
    background: #2a9255;
}

/* CARDS GRID */
.join-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* CARD */
.join-card {
    background: #f8f9fb;
    padding: 25px;
    border-radius: 12px;
    text-align: left;
    transition: 0.1s;
}

.join-card:hover {
    transform: translateY(-5px);
}

/* CARD TITLE */
.join-card h5 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    font-size: 16px;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    color: #333;
}

/* ICON INSIDE TITLE */
.join-card img {
    width: 51px;
    height: 51px;
}

/* =========================
   SECTION 3 - EVENTS
   ========================= */

.events-section {
    padding: 80px 0;
    background: #faf0f4;
    width: 100%;
    overflow: hidden;
}

/* HEADER */
.events-header {
    text-align: center;
    max-width: 800px;
    margin: 10px auto 40px auto;
}

.events-header h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.events-header p {
    font-size: 18px;
    color: #555;
    margin-bottom: 20px;
}

.events-btn {
    display: inline-block;
    padding: 12px 20px;
    background: #187e5c;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
}

/* ROW WRAPPER */
.events-row {
    width: 100%;
    overflow: hidden;
}

/* TRACK */
.events-track {
    display: flex;
    gap: 15px;
    width: max-content;
}

/* CARD */
.event-card {
    width: 350px;
    height: 220px;
    flex-shrink: 0;
    margin-top: 20px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.event-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* TOP ROW → LEFT */
.top-track {
    animation: scrollLeft 150s linear infinite;
}

/* BOTTOM ROW → RIGHT */
.bottom-track {
    animation: scrollRight 150s linear infinite;
}

/* KEYFRAMES (SEAMLESS) */
@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scrollRight {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* =========================
   SECTION 4 - NEWS
   ========================= */

.news-section {
    padding: 80px 8%;
    background: #ffffff;
}

/* HEADER */
.news-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.news-header h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.news-header p {
    font-size: 18px;
    color: #555;
    margin-bottom: 20px;
}

.news-search-wrapper {
    width: 100%;
    margin: 0 auto 20px auto;
    height: 100px;
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 1px;
    overflow: hidden;
    background: #fff;
}

.news-search-form {
    width: 100%;
    display: flex;
    align-items: center;
}

.news-search-wrapper input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    outline: none;
    font-size: 32px;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.news-search-btn {
    background: #187e5c;
    color: white;
    margin-right: 21px;
    padding: 12px 18px;
    text-decoration: none;
    border: 1px solid #187e5c;
    display: flex;
    align-items: center;
    justify-content: center;

    transition: 0.2s;
    font-size: 18px;
}

.news-search-btn:hover {
    opacity: 0.85;
}

.news-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.news-purpose-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.purpose-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.purpose-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.purpose-card p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.purpose-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* =========================
   RESPONSIVE OVERFLOW & SAFETY
   ========================= */

/* =========================
   RESPONSIVE OVERFLOW & SAFETY
   ========================= */

.join-section {
    max-width: 100%;
    overflow: hidden;
}

.join-cards {
    max-width: 100%;
}

.join-card img {
    max-width: 50px;
    height: auto;
}

.events-section {
    max-width: 100%;
}

.news-section {
    max-width: 100%;
    overflow: hidden;
}

.news-purpose-cards {
    max-width: 100%;
}

.news-search-wrapper {
    max-width: 100%;
    height: auto;
    min-height: 60px;
}

.news-search-form {
    max-width: 100%;
}

.news-search-wrapper input {
    font-size: clamp(14px, 4vw, 32px);
    max-width: 100%;
}

/* Tablet  */
@media (max-width: 768px) {
    .hero-image-container img {
        object-fit: contain;
        background: #000;
    }
}

/* Large mobile 
@media (max-width: 480px) {
    .hero-image-container {
        height: 70vw;
    }
} */

/* Small mobile
@media (max-width: 380px) {
    .hero-image-container {
        height: 80vw;
    }
}  */

/* Landscape mobile — keep it viewport-fitted, not vw-based 
@media (orientation: landscape) and (max-height: 500px) {
    .hero-image-container {
        height: calc(100vh - var(--header-height, 0px));
    }
}  */

/* Arrows & dots on small screens */
@media (max-width: 600px) {
    .carousel-arrow {
        width: 32px;
        height: 32px;
        font-size: 16px;
        top: 22%;
    }

    .carousel-dot {
        width: 9px;
        height: 9px;
    }

    .banner-section #mascot-engine-float {
        bottom: 10px;
    }

    .carousel-ui {
        z-index: 102;
    }

    .banner-section #mascot-engine-bubble {
        bottom: 100px;
    }

    .join-section {
        padding: 50px 5%;
    }

    .join-header h2 {
        font-size: 26px;
    }

    .join-header p {
        font-size: 16px;
    }

    .join-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .join-card {
        padding: 18px;
    }

    .join-card h5 {
        font-size: 14px;
        flex-direction: column;
        text-align: center;
    }

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

    .events-header h2 {
        font-size: 26px;
    }

    .events-header p {
        font-size: 16px;
        padding: 0 5%;
    }

    .event-card {
        width: 260px;
        height: 170px;
    }

    .news-section {
        padding: 50px 5%;
    }

    .news-header h2 {
        font-size: 26px;
    }

    .news-header p {
        font-size: 16px;
    }

    .news-search-wrapper input {
        font-size: 16px;
        padding: 10px;
    }

    .news-search-btn {
        font-size: 14px;
        padding: 10px 12px;
        margin-right: 10px;
    }

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

    .news-purpose-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 400px) {
    .join-cards {
        grid-template-columns: 1fr;
    }

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

    .event-card {
        width: 200px;
        height: 140px;
    }
}