* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

body {
    background: #f5f5f5;
}

/* ================= HEADER ================= */
.header {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
    padding: 20px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    width: 46px;
}

.logo span {
    font-size: 13px;
    font-weight: 600;
    color: #000;
    line-height: 1.3;
}

/* ================= NAV ================= */
.nav {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav a {
    background: #2f8f77;
    color: #fff;
    padding: 10px 22px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: .2s;
    white-space: nowrap;
}

.nav a:hover {
    background: #247a65;
}

/* Home */
.nav .home {
    background: #f5a623;
    padding: 10px 14px;
}

/* Outline */
.nav .outline {
    background: #fff;
    color: #2f8f77;
    border: 2px solid #2f8f77;
}

/* Icon only */
.nav .icon {
    background: none;
    padding: 0;
    color: #333;
}

/* ===== SUB MENU ICON CENTER FIX ===== */
.nav .has-sub {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav .has-sub i {
    font-size: 12px;
    line-height: 1;
    position: relative;
    top: 1px;
    transition: .3s;
}

.nav .has-sub:hover i {
    transform: rotate(180deg);
}

/* ================= HERO ================= */
.hero {
    margin: 20px auto;
    max-width: 95%;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .25);
}

.hero img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    display: block;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            rgba(0, 0, 0, .75) 0%,
            rgba(0, 0, 0, .35) 55%,
            rgba(0, 0, 0, .1) 100%);
}

/* ================= HERO CONTENT ================= */
.hero-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 60px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 850px;
}

.hero-content h1 {
    line-height: 1.2;
    margin-bottom: 18px;
}

.hero-content p {
    font-size: 15px;
    line-height: 1.7;
    opacity: .9;
    max-width: 720px;
}

.hero-content .btn {
    margin-top: 28px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2f8f77;
    color: #fff;
    padding: 12px 26px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    width: max-content;
}

.hero-content .btn:hover {
    background: #247a65;
}

/* ================= FLOATING AVATAR ================= */
.floating {
    position: absolute;
    right: 30px;
    bottom: 30px;
    z-index: 3;
}

.hero-btn-pill {
    position: absolute;
    right: 80px;
    bottom: 40px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: #2f8f77;
    color: #ffffff;
    padding: 10px 30px 10px 30px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}



/* hover effect */
.hero-btn-pill:hover {
    background: #247a65;
    transform: translateY(-2px);
}

.hero-btn-pill:hover .icon {
    background: rgba(255, 255, 255, 0.25);
}


/* ================= ICON IMAGE ================= */
.icon img {
    width: 24px;
    height: 24px;
}

/* ================= RESPONSIVE ================= */
@media(max-width:768px) {
    .hero img {
        height: 420px
    }

    .hero-content {
        padding: 30px;
    }

    .hero-content h1 {
        font-size: 30px;
    }
}

/* ================= ASSET SECTION ================= */
.asset-section {
    max-width: 95%;
    margin: 20px auto;
    padding: 0px 30px 0px 30px;
}

.asset-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.asset-card {

    transition: .3s;
}

.asset-card:hover {
    transform: translateY(-6px);
}

/* ===== INI KUNCI UTAMANYA ===== */
.asset-card img {
    width: 100%;
    height: auto;
    /* JANGAN fixed height */
    object-fit: unset;
    /* BIARKAN NATURAL */
    display: block;
}

/* ================= BERITA TERKINI ================= */
.news-section {
    max-width: 95%;
    margin: 20px auto;
    background: #fff;
    border-radius: 20px;
    padding: 60px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .12);
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.news-header h2 {
    font-size: clamp(14px, 2.2vw, 18px);
    font-weight: 800;
    line-height: 1.3;
}

.news-header h2 span {
    color: #2f8f77;
}

/* layout */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(16px, 2.5vw, 30px);
}
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}


/* ===== LEFT BIG CARD ===== */
.news-main {
    background: #3f8f7a;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.news-main img {
    width: 100%;
    height: auto;
    display: block;
}

.news-main-content {
    padding: 22px;
    color: #fff;
}

.news-main-content .tag {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
    opacity: .85;
}

.news-main-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 10px 0 12px;
    line-height: 1.4;
}

.news-main-content .date {
    font-size: 12px;
    opacity: .85;
}

.news-main-footer {
    padding: 18px 22px 24px;
    text-align-last: right;
}

.news-main-footer a {
    background: #fff;
    color: #3f8f7a;
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-size: clamp(13px, 1.1vw, 16px);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: clamp(4px, 0.6vw, 6px);
    white-space: nowrap;
}

/* ===== RIGHT LIST ===== */
.news-tabs {
    font-size: clamp(14px, 1.1vw, 18px);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(18px, 4vw, 32px);
    margin-bottom: 18px;
}

.news-tabs .active {
    color: #2f8f77;
    font-weight: 700;
    position: relative;
}

.news-tabs .active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: #f5a623;
}

.news-list {
    border-top: 1px solid #eee;
    padding-left: 20px;
    padding-right: 20px;
}

.news-item {
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}

.news-item h4 {
    font-size: clamp(13px, 1.6vw, 16px);
    font-weight: 700;
    line-height: 2;
    margin-bottom: 6px;
}


.news-item .date {
    font-size: 11px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-more {
    margin-top: 20px;
    text-align-last: right;
}

.news-more a {
    background: #2f8f77;
    color: #fff;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-size: clamp(13px, 1.1vw, 16px);
    display: inline-flex;
    align-items: center;
    gap: clamp(4px, 0.6vw, 6px);
    white-space: nowrap;
}

/* ================= RESPONSIVE ================= */
@media(max-width:992px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* ================= VISI MISI ================= */
.visimisi-section {

    margin: 20px auto;
    background: #3f8f7a;
    box-shadow: 0 15px 30px rgba(0, 0, 0, .18);
    padding: 60px 40px;
}

.visimisi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 50% : 50% */
    position: relative;
}

.visimisi-grid::after {
    content: '';
    position: absolute;
    top: 10%;
    bottom: 10%;
    left: 50%;
    width: 2px;
    background: rgba(255, 255, 255, .6);
}

.visi,
.misi {
    color: #fff;
    text-align: center;
    padding: 0 40px;
}

.visi h3,
.misi h3 {
    font-size: clamp(16px, 2.4vw, 20px);
    font-weight: 800;
    margin-bottom: clamp(14px, 2vw, 20px);
    letter-spacing: 0.5px;
}

.visi p {
    font-size: clamp(14px, 1.6vw, 16px);
    line-height: 1.8;
}

.misi ul {
    list-style: none;
    font-size: 14px;
    line-height: 1.8;
}

.misi li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 14px;
}

.misi li::before {
    content: "–";
    position: absolute;
    left: 0;
}

/* ================= RESPONSIVE ================= */
@media(max-width:768px) {
    .visimisi-grid {
        grid-template-columns: 1fr;
    }

    .visimisi-grid::after {
        display: none;
    }

    .visi,
    .misi {
        padding: 20px 10px;
    }

    .misi {
        margin-top: 30px;
    }
}

/* ================= GALERI & APLIKASI ================= */
.section-dua-kolom {
    max-width: 95%;
    margin: 20px auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.card-box {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
}

/* HEADER */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 800;
}

.card-header h3 span {
    color: #3f8f7a;
}

.btn-link {
    border: 2px solid #3f8f7a;
    color: #3f8f7a;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

/* ================= GALERI FOTO ================= */
.galeri-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
}

.galeri-main img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 12px;
}

.galeri-main h4 {
    font-size: 14px;
    font-weight: 700;
    margin: 10px 0 4px;
}

.galeri-main small {
    font-size: 12px;
    color: #777;
}

.btn-foto {
    margin-top: 12px;
    display: inline-flex;
    gap: 6px;
    align-items: center;
    background: #3f8f7a;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
}

.galeri-list {
    display: grid;
    gap: 14px;
}

.galeri-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
}

.galeri-item h5 {
    font-size: 12px;
    font-weight: 600;
    margin: 6px 0 2px;
}

.galeri-item small {
    font-size: 11px;
    color: #777;
}

/* ================= RESPONSIVE ================= */
@media(max-width:900px) {
    .section-dua-kolom {
        grid-template-columns: 1fr;
    }

    .galeri-grid {
        grid-template-columns: 1fr;
    }
}

/* ================= APLIKASI LOGO GRID ================= */
.aplikasi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.aplikasi-item {
    background: #f5f7f8;
    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

/* ITEM FULL (TTE) */
.aplikasi-item.full {
    grid-column: 1 / span 2;
}

/* LOGO */
.aplikasi-item img {
    max-width: 100%;
    object-fit: contain;
}

/* ================= BANNER HARI PAHLAWAN ================= */
.banner-pahlawan {
    width: 100%;
    margin: 20px auto;
    border-radius: 18px;
    overflow: hidden;
    /* penting agar radius rapi */
    padding: 0px 20px 0px 20px;
}

.banner-pahlawan img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* FULL KELIHATAN, TIDAK TERPOTONG */
    display: block;
}



/* ================= Agenda ================= */
.agenda-section {
    padding: 40px 20px;
}

.agenda-wrapper {
    /* max-width:1300px; */
    margin: auto;
    display: grid;
    grid-template-columns: 1.1fr 1.6fr 1.1fr;
    gap: 20px;
}

.agenda-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .12);
    padding: 20px;
}

/* ===== CALENDAR ===== */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 10px;
}

.calendar-header button {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.calendar-table th {
    background: #2f8f77;
    color: #fff;
    padding: 8px 0;
    font-size: 12px;
}

.calendar-table th.sun {
    color: #ffd1d1;
}

.calendar-table td {
    padding: 10px 0;
    font-size: 13px;
}

.calendar-table td.sun {
    color: red;
}

.calendar-table .today,
.calendar-table .selected {
    background: #f5c46b;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    margin: auto;
    /* line-height:32px; */
}

/* ===== AGENDA ===== */
.agenda-list h3 span {
    color: #2f8f77;
}

.subtitle {
    font-size: 13px;
    color: #777;
    margin-bottom: 10px;
}

.agenda-item {
    display: flex;
    gap: 15px;
    padding: 14px;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    margin-top: 15px;
}

.agenda-item.active {
    background: #2f8f77;
    color: #fff;
}

.agenda-date {
    text-align: center;
    min-width: 55px;
}

.agenda-date strong {
    font-size: 22px;
}

.agenda-btn {
    display: inline-block;
    margin-top: 18px;
    background: #2f8f77;
    color: #fff;
    padding: 10px 22px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 14px;
}

/* ===== ORGANISASI ===== */
.organisasi-card img {
    width: 100%;
    border-radius: 14px;
    margin-top: 15px;
}

/* RESPONSIVE */
@media(max-width:992px) {
    .agenda-wrapper {
        grid-template-columns: 1fr;
    }
}

/* ===== Foter ===== */

.footer-top {
    background-color: #d9a128;
    color: #ffffff;
    padding: 40px 20px;
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    font-size: clamp(14px, 1.2vw, 18px);
}


.footer-item i {
    font-size: 16px;
}

.footer-right {
    font-size: clamp(14px, 1.2vw, 18px);
    text-align: right;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-right {
        text-align: left;
    }
}