/* =========================================================
   STYLE - Fakultas Pertanian UNTIKA
   Design: Fresh Green Agriculture Theme
   Font: Playfair Display (heading) + Inter (body)
   Warna: Hijau #1a5c3a + Hijau Muda #2d8a5e + Emas #d4a745
========================================================= */

/* =========================================================
   VARIABEL WARNA
========================================================= */
:root {
    --primary: #1a5c3a;
    --primary-light: #2d8a5e;
    --primary-dark: #0f3d26;
    --primary-darker: #0a2818;
    --secondary: #d4a745;
    --secondary-light: #f0d080;
    --accent: #7cb342;
    --accent-light: #aed581;
    --bg-light: #f1f8e9;
    --bg-soft: #f7faf5;
    --text-dark: #1a1a1a;
    --text-gray: #666666;
    --white: #ffffff;
    --border: #dcedc8;
    --border-light: #e8f5e9;
}

/* =========================================================
   RESET & BASE
========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.6;
    font-size: 15px;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.2px;
    font-weight: 700;
}

.container {
    width: min(1200px, 94%);
    margin: auto;
}

/* =========================================================
   HEADER - Top Bar
========================================================= */
.top-bar {
    background: var(--primary-dark);
    color: #c8e6c9;
    font-size: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.top-bar-menu {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.top-bar-menu a {
    color: #c8e6c9;
    font-size: 12px;
    font-weight: 500;
    transition: 0.2s;
}

.top-bar-menu a:hover {
    color: #ffffff;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.top-bar-right a {
    color: #c8e6c9;
    font-size: 12px;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.top-bar-right a:hover {
    color: #ffffff;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 14px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.lang-switch span {
    cursor: pointer;
    font-weight: 600;
}

.lang-switch .active {
    color: #ffffff;
}

/* =========================================================
   HEADER - Main
========================================================= */
header.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
}

.navbar {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.brand img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.brand-text strong {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    color: var(--primary);
    font-weight: 700;
    line-height: 1.2;
}

.brand-text span {
    display: block;
    font-size: 11px;
    color: var(--text-gray);
    letter-spacing: 0.3px;
}

/* =========================================================
   NAVIGASI UTAMA
========================================================= */
nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
}

nav ul li {
    position: relative;
}

nav a {
    display: block;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    transition: 0.2s;
    color: var(--text-dark);
    letter-spacing: 0.3px;
}

nav a:hover {
    color: var(--primary);
    background: var(--bg-light);
}

.menu-toggle {
    display: none;
    border: 0;
    background: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--primary);
}

/* =========================================================
   HERO SLIDER
========================================================= */
.hero-slider {
    position: relative;
    height: 560px;
    overflow: hidden;
    background: var(--primary-dark);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.9s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 40, 24, 0.10) 0%,
        rgba(10, 40, 24, 0.40) 60%,
        rgba(10, 40, 24, 0.65) 100%
    );
    pointer-events: none;
}

/* =========================================================
   HERO - Badge Identitas
========================================================= */
.hero-badge {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.96);
    padding: 10px 26px;
    border-radius: 4px;
    text-align: center;
    z-index: 5;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.20);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.hero-badge small {
    display: block;
    font-size: 10px;
    letter-spacing: 2.5px;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 2px;
}

.hero-badge strong {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* =========================================================
   HERO - Panah Navigasi
========================================================= */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    outline: none;
}

.hero-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 20px rgba(26, 92, 58, 0.4);
}

.hero-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.hero-arrow.prev {
    left: 24px;
}

.hero-arrow.next {
    right: 24px;
}

/* =========================================================
   HERO - Dots Indikator
========================================================= */
.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50px;
}

.hero-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: block;
}

.hero-dots span:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: scale(1.15);
}

.hero-dots span.active {
    background: #ffffff;
    width: 32px;
    border-radius: 6px;
    border-color: #ffffff;
}

/* =========================================================
   HERO - Caption (untuk home.php versi lengkap)
========================================================= */
.hero-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 40px 35px;
    background: linear-gradient(to top, rgba(10, 40, 24, 0.85) 0%, rgba(10, 40, 24, 0.45) 60%, transparent 100%);
    color: #ffffff;
    z-index: 5;
    animation: fadeInUp 0.6s ease;
}

.hero-caption-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: min(1200px, 94%);
}

.hero-caption-label {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(212, 167, 69, 0.9);
    color: #0f3d26;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 3px;
    margin-bottom: 10px;
}

.hero-caption h3 {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    color: #ffffff;
    margin: 0 0 6px;
    font-weight: 700;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero-caption p {
    font-size: 14px;
    color: #c8e6c9;
    margin: 0;
    max-width: 640px;
    line-height: 1.6;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   ABOUT SECTION
========================================================= */
.about-section {
    background: var(--primary);
    color: white;
    padding: 60px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: white;
}

.about-text p {
    font-size: 14px;
    line-height: 1.9;
    color: #c8e6c9;
    margin-bottom: 25px;
}

.btn-about {
    display: inline-block;
    padding: 12px 28px;
    background: var(--secondary);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 13px;
    border-radius: 4px;
    transition: 0.3s;
}

.btn-about:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
}

.about-image {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.about-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

/* =========================================================
   SECTION HEADING
========================================================= */
.section-heading {
    text-align: center;
    margin-bottom: 40px;
}

.section-heading h2 {
    font-size: 30px;
    color: var(--text-dark);
    display: inline-block;
    position: relative;
    padding-bottom: 12px;
    font-weight: 700;
}

.section-heading h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
}

/* =========================================================
   NEWS GRID
========================================================= */
.news-section {
    padding: 70px 0 50px;
    background: #ffffff;
}

.news-section.alt-bg {
    background: var(--bg-light);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.news-card {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(26, 92, 58, 0.12);
    border-color: var(--primary);
}

.news-image {
    height: 150px;
    overflow: hidden;
    background: var(--bg-light);
    flex-shrink: 0;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-card:hover .news-image img {
    transform: scale(1.06);
}

.news-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-body h4 {
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 10px;
    flex: 1;
}

.news-body .meta {
    font-size: 11px;
    color: var(--text-gray);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-body .read-more {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.news-footer {
    text-align: right;
    padding: 10px 0;
}

.news-footer a {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 2px;
}

/* =========================================================
   PUBLIKASI SECTION
========================================================= */
.publikasi-section {
    position: relative;
    padding: 70px 0;
    background-image: linear-gradient(rgba(241, 248, 233, 0.92), rgba(241, 248, 233, 0.92)),
        url('../images/bg-building.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.publikasi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.publikasi-card {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.publikasi-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(26, 92, 58, 0.15);
}

.publikasi-image {
    height: 220px;
    overflow: hidden;
    background: var(--primary-dark);
}

.publikasi-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.publikasi-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.publikasi-body h4 {
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 10px;
}

.publikasi-body .meta {
    font-size: 11px;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.publikasi-body p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 15px;
}

.publikasi-body .read-more {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    align-self: flex-start;
}

/* =========================================================
   PENGUMUMAN & UNDUHAN
========================================================= */
.info-section {
    padding: 60px 0;
    background: #ffffff;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.info-col h3 {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.info-list li {
    padding: 12px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 13px;
}

.info-list li a {
    color: var(--text-dark);
    font-weight: 600;
    display: block;
    line-height: 1.5;
    transition: 0.2s;
}

.info-list li a:hover {
    color: var(--primary);
}

.info-list .info-date {
    font-size: 11px;
    color: var(--text-gray);
    font-style: italic;
    margin-top: 4px;
    display: block;
}

.info-more {
    text-align: right;
    margin-top: 15px;
}

.info-more a {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 2px;
}

/* =========================================================
   SDGs SECTION
========================================================= */
.sdgs-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.sdgs-header {
    text-align: center;
    margin-bottom: 30px;
}

.sdgs-header h2 {
    font-size: 26px;
    color: var(--text-dark);
    font-weight: 700;
}

.sdgs-header h2 span {
    color: var(--primary);
}

.sdgs-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.sdgs-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
}

.sdg-tile {
    aspect-ratio: 1;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: white;
    font-size: 18px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: transform 0.2s;
    overflow: hidden;
    background: #e5e7eb;
}

.sdg-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sdg-tile:hover {
    transform: scale(1.08);
    z-index: 10;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    border-radius: 6px;
}

.sdg-tile small {
    display: block;
    font-size: 7px;
    font-weight: 600;
    text-align: center;
    margin-top: 2px;
    line-height: 1.1;
}

.sdgs-video {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.sdgs-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.sdgs-video .play-btn {
    position: absolute;
    width: 70px;
    height: 48px;
    background: #dc2626;
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.5);
}

.sdgs-video .play-btn:hover {
    transform: scale(1.1);
    background: #b91c1c;
    box-shadow: 0 12px 32px rgba(220, 38, 38, 0.7);
}

/* =========================================================
   PERATURAN SECTION
========================================================= */
.peraturan-section {
    padding: 60px 0;
    background: #ffffff;
}

.peraturan-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.peraturan-card {
    background: white;
    border-radius: 4px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.peraturan-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.peraturan-header {
    padding: 16px;
    background: linear-gradient(135deg, #f1f8e9, #dcedc8);
    border-bottom: 3px solid var(--primary);
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.peraturan-header::before {
    content: "🌾";
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 22px;
    opacity: 0.3;
}

.peraturan-header h4 {
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
}

.peraturan-badge {
    position: absolute;
    top: 6px;
    right: 8px;
    background: var(--secondary);
    color: var(--primary-dark);
    padding: 2px 8px;
    font-size: 9px;
    font-weight: 800;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.peraturan-body {
    padding: 12px 16px;
    background: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================================
   TAUTAN SECTION
========================================================= */
.tautan-section {
    padding: 60px 0 80px;
    background: #ffffff;
}

.tautan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.tautan-card {
    background: #f9f9f9;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 28px 20px;
    text-align: center;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.tautan-card:hover {
    background: white;
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(26, 92, 58, 0.12);
}

.tautan-icon {
    font-size: 32px;
    color: var(--primary);
    line-height: 1;
}

.tautan-card span {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    font-family: 'Playfair Display', serif;
}

/* =========================================================
   FOOTER
========================================================= */
footer {
    background: var(--primary-darker);
    color: #a5d6a7;
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 35px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.footer-brand img {
    height: 60px;
    width: auto;
}

.footer-brand h3 {
    font-size: 16px;
    color: white;
    margin: 0;
}

.footer-brand span {
    display: block;
    font-size: 12px;
    color: #a5d6a7;
}

.footer-text {
    font-size: 13px;
    line-height: 1.8;
    color: #81c784;
    margin-bottom: 15px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a5d6a7;
    transition: 0.3s;
    font-size: 15px;
}

.footer-social a:hover {
    background: var(--secondary);
    color: var(--primary-dark);
}

footer h4 {
    color: white;
    font-size: 15px;
    font-family: 'Playfair Display', serif;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 13px;
    color: #81c784;
    transition: 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-cert {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.footer-cert img {
    height: 40px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.copyright {
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    color: #66bb6a;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .publikasi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .peraturan-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .sdgs-layout {
        grid-template-columns: 1fr;
    }
    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .top-bar-menu {
        display: none;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 82px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        align-items: stretch;
        padding: 15px 5%;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    }

    nav ul.active {
        display: flex;
    }

    nav a {
        width: 100%;
        padding: 14px 16px;
        border-bottom: 1px solid var(--border-light);
    }

    .menu-toggle {
        display: block;
    }

    /* Hero Slider Responsive */
    .hero-slider {
        height: 420px;
    }

    .hero-arrow {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .hero-arrow.prev {
        left: 14px;
    }

    .hero-arrow.next {
        right: 14px;
    }

    .hero-dots {
        bottom: 20px;
        padding: 6px 12px;
        gap: 8px;
    }

    .hero-badge {
        top: 30px;
        padding: 8px 20px;
    }

    .hero-badge strong {
        font-size: 15px;
    }

    .hero-badge small {
        font-size: 9px;
    }

    .hero-caption {
        padding: 20px 24px 22px;
    }

    .hero-caption h3 {
        font-size: 18px;
    }

    .hero-caption p {
        font-size: 12px;
    }
}

@media (max-width: 640px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    .publikasi-grid {
        grid-template-columns: 1fr;
    }
    .peraturan-grid {
        grid-template-columns: 1fr;
    }
    .tautan-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }

    /* Hero Slider Mobile */
    .hero-slider {
        height: 340px;
    }

    .hero-arrow {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .hero-arrow.prev {
        left: 10px;
    }

    .hero-arrow.next {
        right: 10px;
    }

    .hero-dots {
        bottom: 14px;
        padding: 5px 10px;
        gap: 6px;
    }

    .hero-dots span {
        width: 8px;
        height: 8px;
    }

    .hero-dots span.active {
        width: 22px;
    }

    .hero-badge {
        top: 20px;
        padding: 8px 18px;
    }

    .hero-badge strong {
        font-size: 13px;
    }

    .hero-badge small {
        font-size: 8px;
        letter-spacing: 1.5px;
    }

    .hero-caption {
        padding: 16px 18px 18px;
    }

    .hero-caption h3 {
        font-size: 15px;
    }

    .hero-caption p {
        display: none;
    }

    .section-heading h2 {
        font-size: 22px;
    }
    .about-text h2 {
        font-size: 24px;
    }
    .sdgs-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .top-bar-right a {
        font-size: 11px;
    }
    .brand img {
        width: 44px;
        height: 44px;
    }
    .brand-text strong {
        font-size: 13px;
    }
    .brand-text span {
        font-size: 9px;
    }
}

@media (max-width: 400px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .sdgs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}