/* =========================================================
   RESET & DASAR
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #ffffff;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transition: all 0.3s ease;
}

.header .container {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
    position: relative;
}

@supports ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
    .header {
        background: rgba(255, 255, 255, 0.18);
        border-bottom: 1px solid rgba(255, 255, 255, 0.25);
        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    }
}


/* LOGO */

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.logo-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.logo-name {
    color: #172033;
    font-size: 17px;
    font-weight: 700;
}

.logo-tagline {
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
}


/* NAVBAR */

.navbar {
    display: flex;
    align-items: center;
    min-width: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-menu a {
    display: inline-block;
    position: relative;
    font-size: 15px;
    font-weight: 600;
    color: var(--header-text-color, #333333);
    text-shadow: var(--header-text-shadow, 0 1px 2px rgba(255, 255, 255, 0.9));
    transition: color 0.35s ease-in-out, text-shadow 0.35s ease-in-out;
}

.nav-menu a:hover {
    color: var(--header-text-color, #1677ff);
}

.nav-menu a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -4px;
    left: 0;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.32s ease, opacity 0.2s ease;
}

.nav-menu a:hover::after,
.nav-menu a:focus-visible::after {
    opacity: 1;
    transform: scaleX(1);
}

.logo-name,
.logo-tagline {
    color: var(--header-text-color, #172033);
    text-shadow: var(--header-text-shadow, 0 1px 2px rgba(255, 255, 255, 0.9));
    transition: color 0.35s ease-in-out, text-shadow 0.35s ease-in-out;
}


/* MOBILE MENU BUTTON */

.menu-toggle {
    display: none;
    border: none;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
}

@media (min-width: 769px) and (max-width: 1100px) {
    .header .container {
        gap: 14px;
    }

    .logo-name {
        font-size: 14px;
    }

    .logo-tagline {
        font-size: 10.5px;
    }

    .nav-menu {
        gap: 10px;
    }

    .nav-menu a {
        font-size: 13px;
    }
}


/* =========================================================
   HERO
========================================================= */

.hero {
    min-height: 650px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(
            135deg,
            #f4f9ff 0%,
            #ffffff 100%
        );
    padding: 80px 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 30px;
    background: #e8f2ff;
    color: #1677ff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 52px;
    line-height: 1.15;
    margin-bottom: 22px;
    color: #172033;
}

.hero h1 span {
    display: block;
    color: #1677ff;
}

.hero p {
    font-size: 17px;
    color: #666666;
    margin-bottom: 30px;
    max-width: 580px;
}


/* HERO BUTTON */

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 25px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: 0.3s ease;
}

.btn-primary {
    background: #1677ff;
    color: #ffffff;
}

.btn-primary:hover {
    background: #0d5dcc;
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1px solid #1677ff;
    color: #1677ff;
    background: #ffffff;
}

.btn-secondary:hover {
    background: #1677ff;
    color: #ffffff;
}


/* HERO IMAGE */

.hero-image {
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    max-width: 520px;
    height: 450px;
    object-fit: cover;
    border-radius: 20px;
}


/* =========================================================
   SECTION UMUM
========================================================= */

section {
    padding: 90px 0;
}

.section-heading {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 50px;
}

.section-subtitle {
    display: inline-block;
    color: #1677ff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.section-heading h2 {
    font-size: 36px;
    line-height: 1.2;
    color: #172033;
    margin-bottom: 15px;
}

.section-heading p {
    color: #666666;
}


/* =========================================================
   SAMBUTAN
========================================================= */

.sambutan {
    background: #ffffff;
}

.sambutan-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.sambutan-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 18px;
}

.sambutan-text p {
    color: #666666;
    margin-bottom: 15px;
}


/* =========================================================
   TENTANG
========================================================= */

.tentang {
    background: #f7faff;
}

.tentang-content {
    max-width: 850px;
    margin: auto;
}

.tentang-content p {
    color: #666666;
    margin-bottom: 18px;
    font-size: 16px;
}


/* =========================================================
   VISI & MISI
========================================================= */

.visi-misi {
    background: #ffffff;
}

.visi-misi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.visi-box,
.misi-box {
    padding: 35px;
    border-radius: 18px;
    background: #f7faff;
    border: 1px solid #e6eef8;
}

.visi-box h3,
.misi-box h3 {
    font-size: 25px;
    color: #1677ff;
    margin-bottom: 15px;
}

.visi-box p,
.misi-box li {
    color: #666666;
}

.misi-box ul {
    list-style: disc;
    padding-left: 20px;
}

.misi-box li {
    margin-bottom: 10px;
}


/* =========================================================
   PENGURUS
========================================================= */

.pengurus {
    background: #f7faff;
}

.pengurus-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.pengurus-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e9eef5;
    transition: 0.3s ease;
}

.pengurus-card:hover {
    transform: translateY(-5px);
}

.pengurus-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.pengurus-info {
    padding: 20px;
    text-align: center;
}

.pengurus-info h3 {
    font-size: 18px;
    color: #172033;
    margin-bottom: 5px;
}

.pengurus-info span {
    color: #1677ff;
    font-size: 14px;
}


/* =========================================================
   KEGIATAN
========================================================= */

.kegiatan {
    background: #ffffff;
}

.kegiatan-slider {
    display: grid;
    width: 100vw;
    height: clamp(560px, 70vh, 760px);
    margin-left: calc(50% - 50vw);
    grid-template-columns: minmax(0, 49fr) minmax(0, 51fr);
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    background: #f5f7fa;
}

.kegiatan-visual {
    position: relative;
    min-width: 0;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    background: #e7eef7;
}

.kegiatan-feature-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    transition: opacity 0.25s ease, transform 0.5s ease;
}

.kegiatan-feature-image.is-changing {
    opacity: 0.18;
    transform: scale(1.02);
}

.kegiatan-counter {
    position: absolute;
    right: 18px;
    bottom: 18px;
    padding: 8px 11px;
    background: rgba(23, 32, 51, 0.76);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.kegiatan-carousel {
    z-index: 2;
    display: flex;
    width: calc(100% + clamp(110px, 9vw, 176px));
    height: 100%;
    min-width: 0;
    margin-left: clamp(-176px, -9vw, -110px);
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.kegiatan-viewport {
    flex: 0 0 clamp(340px, 42vh, 450px);
    height: clamp(340px, 42vh, 450px);
    min-width: 0;
    overflow: hidden;
    overflow-y: hidden;
    scrollbar-width: none;
}

.kegiatan-viewport::-webkit-scrollbar {
    display: none;
}

.kegiatan-track {
    position: relative;
    display: flex;
    width: max-content;
    height: 100%;
    gap: clamp(14px, 1.2vw, 24px);
    transition: transform 0.42s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.kegiatan-card {
    flex: 0 0 clamp(250px, 19vw, 365px);
    height: 100%;
    min-height: 0;
    overflow: hidden;
    border: 1px solid #e4eaf2;
    border-radius: 8px;
    background: #ffffff;
    color: #172033;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.kegiatan-card.is-active {
    transform: translateY(-4px);
    border-color: #1677ff;
    background: #164fc6;
    color: #ffffff;
}

.kegiatan-card-heading {
    height: 100%;
    margin: 0;
}

.kegiatan-select {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(26px, 3vw, 40px);
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.kegiatan-select:focus-visible,
.kegiatan-control:focus-visible {
    outline: 3px solid #e3b651;
    outline-offset: 3px;
}

.kegiatan-category {
    color: #1677ff;
    font-size: 12px;
    font-weight: 700;
}

.kegiatan-card.is-active .kegiatan-category {
    color: #ffffff;
}

.kegiatan-card-title {
    display: block;
    margin-top: 18px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.kegiatan-card-title::after {
    display: block;
    width: 36px;
    height: 3px;
    margin-top: 18px;
    background: currentColor;
    content: "";
}

.kegiatan-description {
    display: block;
    margin-top: 18px;
    color: #596579;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
}

.kegiatan-card.is-active .kegiatan-description {
    color: rgba(255, 255, 255, 0.9);
}

.kegiatan-arrow {
    align-self: flex-end;
    margin-top: auto;
    font-size: 25px;
    line-height: 1;
}

.kegiatan-controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
    padding-right: clamp(24px, 12vw, 230px);
}

.kegiatan-control {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #172033;
    font-size: 22px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.kegiatan-control:hover {
    border-color: #1677ff;
    background: #1677ff;
    color: #ffffff;
}


/* =========================================================
   GALERI
========================================================= */

.galeri {
    background: #f7faff;
}

.galeri-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.galeri-item {
    overflow: hidden;
    border-radius: 14px;
}

.galeri-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: 0.4s ease;
}

.galeri-item:hover img {
    transform: scale(1.05);
}


/* =========================================================
   BERITA
========================================================= */

.berita {
    background: #ffffff;
}

.berita-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.berita-card {
    border: 1px solid #e9eef5;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
}

.berita-card > img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.berita-content {
    padding: 22px;
}

.berita-content span {
    color: #1677ff;
    font-size: 13px;
    font-weight: 700;
}

.berita-content h3 {
    font-size: 20px;
    margin: 8px 0;
    color: #172033;
}

.berita-content p {
    color: #666666;
    font-size: 14px;
    margin-bottom: 15px;
}

.berita-content a {
    color: #1677ff;
    font-size: 14px;
    font-weight: 700;
}


/* =========================================================
   KONTAK
========================================================= */

.kontak {
    background: #f7faff;
}

.kontak-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.kontak-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #e9eef5;
}

.kontak-item h3 {
    color: #1677ff;
    margin-bottom: 10px;
}

.kontak-item p {
    color: #666666;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    background: #172033;
    color: #ffffff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    padding-bottom: 40px;
}

.footer h3 {
    margin-bottom: 15px;
}

.footer-about p {
    color: #b9c1ce;
    max-width: 500px;
}

.footer-menu ul li {
    margin-bottom: 8px;
}

.footer-menu a {
    color: #b9c1ce;
    transition: 0.3s ease;
}

.footer-menu a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #303b4d;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #9da7b5;
    font-size: 14px;
}


/* =========================================================
   RESPONSIVE TABLET
========================================================= */

@media (max-width: 992px) {

    .header .container {
        gap: 22px;
    }

    .logo-name {
        font-size: 15px;
    }

    .nav-menu {
        gap: 12px;
    }

    .nav-menu a {
        font-size: 14px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-container,
    .sambutan-content {
        gap: 35px;
    }

    .pengurus-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .berita-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .kegiatan-slider {
        width: 100%;
        height: auto;
        min-height: 0;
        margin-left: 0;
        grid-template-columns: 1fr;
        gap: 18px;
        overflow: visible;
    }

    .kegiatan-visual {
        height: min(58vw, 360px);
        min-height: 260px;
    }

    .kegiatan-feature-image {
        height: 100%;
        min-height: 0;
    }

    .kegiatan-carousel {
        width: 100%;
        height: auto;
        margin-left: 0;
        overflow: visible;
    }

    .kegiatan-viewport {
        flex: none;
        height: 320px;
    }

    .kegiatan-track {
        height: 100%;
    }

    .kegiatan-card {
        flex-basis: clamp(250px, 40vw, 320px);
    }

    .kegiatan-select {
        padding: 28px 24px 22px;
    }

    .kegiatan-controls {
        padding-right: 0;
    }

}


/* =========================================================
   RESPONSIVE HP
========================================================= */

@media (max-width: 768px) {

    .header .container {
        min-height: 70px;
        position: relative;
        justify-content: space-between;
        gap: 12px;
    }

    .logo-name {
        max-width: 100%;
        white-space: normal;
        line-height: 1.25;
        font-size: 13px;
    }

    .logo-copy {
        max-width: 180px;
        white-space: normal;
    }

    .logo-tagline {
        font-size: 10px;
    }

    .logo img {
        width: 42px;
        height: 42px;
    }

    .menu-toggle {
        display: block;
        background: rgba(22, 119, 255, 0.08);
        color: #1f2937;
        border: 1px solid rgba(22, 119, 255, 0.15);
        border-radius: 10px;
        width: 42px;
        height: 42px;
        line-height: 1;
        font-size: 24px;
        padding: 0;
        transition: all 0.3s ease;
    }

    .navbar {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        left: 0;
        background: rgba(255, 255, 255, 0.92);
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 14px;
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
        padding: 10px 14px;
    }

    .navbar.active {
        display: block;
    }

    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 4px 0;
    }

    .nav-menu a {
        display: block;
        width: 100%;
        padding: 10px 8px;
        border-radius: 8px;
    }

    .nav-menu a:hover {
        background: rgba(22, 119, 255, 0.06);
    }

    .hero {
        padding: 60px 0;
    }

    .hero-container,
    .sambutan-content,
    .visi-misi-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        text-align: center;
        margin: auto;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image img {
        height: 350px;
    }

    section {
        padding: 70px 0;
    }

    .section-heading h2 {
        font-size: 30px;
    }

    .pengurus-grid,
    .galeri-grid,
    .berita-grid,
    .kontak-grid {
        grid-template-columns: 1fr;
    }

    .kegiatan-visual {
        height: 68vw;
        min-height: 230px;
    }

    .kegiatan-viewport {
        height: 300px;
    }

    .kegiatan-card {
        flex-basis: min(78vw, 290px);
    }

    .kegiatan-select {
        padding: 24px 22px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   HP KECIL
========================================================= */

@media (max-width: 480px) {

    .container {
        width: 92%;
    }

    .kegiatan-visual {
        height: 60vw;
        min-height: 200px;
    }

    .kegiatan-viewport {
        height: 290px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 15px;
    }

    .hero-image img {
        height: 280px;
    }

    .btn {
        width: 100%;
    }

}