/* 🔥 HERO BACKGROUND FIX */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.75)),
                url('https://annturnercook.com/background-kejari.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
    opacity: 0;
    animation: fadeInBg 1.5s ease-in-out forwards;
}

@keyframes fadeInBg {
    to { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

/* 🔥 GALLERY EXTERNAL LINKS */
.gallery-item {
    position: relative;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    cursor: pointer;
    transition: all 0.4s ease;
}

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.error-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ccc;
    text-align: center;
    font-size: 0.9rem;
}

.error-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

/* LOGO HOVER */
.logo img {
    height: 60px !important;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* GALLERY */
.gallery {
    background: #000;
    color: white;
    padding: 100px 0;
}

.gallery .section-title {
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    height: 250px;
}

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(211, 47, 47, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 2rem;
    color: white;
}

.gallery-cta {
    text-align: center;
}

/* HEADER */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo img {
    height: 100px;
}

.navbar ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #d32f2f;
}

/* HERO */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-title span {
    color: #d32f2f;
}

.hero-desc {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.cta-button {
    display: inline-block;
    background: #d32f2f;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.cta-button:hover {
    background: #b71c1c;
    transform: translateY(-2px);
}

/* SECTIONS */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

/* ABOUT */
.about {
    background: #f8f9fa;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: #666;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: #d32f2f;
    margin-bottom: 0.5rem;
}

/* BREADCRUMB */
.breadcrumb {
    background: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #d32f2f;
}

/* GALLERY PAGE */
.gallery-page {
    padding: 80px 0;
    background: #000;
    color: white;
    min-height: 100vh;
}

.page-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    color: white;
}

.page-desc {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: #ccc;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 2px solid #d32f2f;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background: #d32f2f;
}

.gallery-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item-full {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    display: block;
    height: 220px;
}

.gallery-item-full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

/* SERVICES */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card i {
    font-size: 3rem;
    color: #d32f2f;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* FOOTER */
.footer {
    background: #333;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #d32f2f;
}

/* CONTACT HERO */
.contact-hero {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    padding: 120px 0 80px;
    color: white;
    text-align: center;
}

.contact-hero .page-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-hero .page-desc {
    font-size: 1.3rem;
    opacity: 0.9;
}

/* CONTACT INFO */
.contact-info {
    padding: 100px 0;
    background: #f8f9fa;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.contact-card:hover {
    transform: translateY(-10px);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: white;
}

.contact-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #333;
}

.phone-link, .whatsapp-link {
    color: #d32f2f;
    text-decoration: none;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.whatsapp-link {
    color: #25D366 !important;
}

.phone-link:hover, .whatsapp-link:hover {
    color: #b71c1c;
}

/* GOOGLE MAPS */
.contact-map {
    padding: 100px 0;
    background: #fff;
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* FOOTER LEGAL */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #d32f2f;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #ccc;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #d32f2f;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* CONTACT FORM */
.contact-form-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-desc {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
    background: #f8f9fa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d32f2f;
    background: white;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.form-group.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
}

.form-group.checkbox input {
    width: auto;
    margin: 0;
    margin-top: 2px;
}

.submit-btn {
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
    transition: all 0.3s;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(211, 47, 47, 0.4);
}

/* LEGAL PAGES */
.legal-page {
    padding: 80px 0;
    background: #f8f9fa;
    min-height: 100vh;
}

.legal-header {
    text-align: center;
    margin-bottom: 4rem;
}

.page-title {
    font-size: 2.8rem;
    color: #333;
    margin-bottom: 1rem;
}

.page-desc {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-section {
    background: white;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.legal-section h2 {
    color: #d32f2f;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid #d32f2f;
    padding-left: 1rem;
}

.legal-section ul {
    list-style: none;
    padding-left: 0;
}

.legal-section ul li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 2rem;
}

.legal-section ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #d32f2f;
    font-weight: bold;
}

.legal-section.last {
    border-top: 4px solid #d32f2f;
    background: linear-gradient(135deg, #f8f9fa 0%, white 100%);
}

.legal-back {
    text-align: center;
    margin-top: 4rem;
}

/* ============================================
   SUB INSTANSI SECTION - FULL CSS
   ============================================ */

.sub-instansi {
    padding: 100px 0;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    position: relative;
    overflow: hidden;
}

/* BACKGROUND PATTERN */
.sub-instansi::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(211, 47, 47, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(211, 47, 47, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* HEADER */
.sub-instansi-header {
    text-align: center;
    margin-bottom: 4rem;
}

.badge-label {
    display: inline-block;
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    color: white;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.sub-instansi .section-title {
    color: white;
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.section-desc {
    color: #aaa;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* SEARCH & FILTER CONTROLS */
.instansi-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #d32f2f;
    font-size: 1rem;
}

.search-box input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s;
    outline: none;
}

.search-box input::placeholder {
    color: #666;
}

.search-box input:focus {
    border-color: #d32f2f;
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 0 4px rgba(211,47,47,0.1);
}

/* FILTER TABS */
.filter-tabs {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-tab {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.15);
    color: #aaa;
    padding: 8px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}

.filter-tab:hover {
    border-color: #d32f2f;
    color: white;
}

.filter-tab.active {
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    border-color: transparent;
    color: white;
    box-shadow: 0 5px 15px rgba(211,47,47,0.4);
}

/* INSTANSI GRID */
.instansi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* INSTANSI CARD */
.instansi-card {
    background: linear-gradient(145deg, #1e1e1e, #252525);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: cardFadeIn 0.5s ease forwards;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.instansi-card:hover {
    transform: translateY(-12px);
    border-color: rgba(211,47,47,0.4);
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.5),
        0 0 0 1px rgba(211,47,47,0.2),
        inset 0 1px 0 rgba(255,255,255,0.05);
}

/* CARD RIBBON */
.card-ribbon {
    position: absolute;
    top: 15px;
    right: -8px;
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    color: white;
    padding: 4px 15px 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px 0 0 4px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.card-ribbon::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 0;
    border-left: 8px solid #1b5e20;
    border-top: 13px solid transparent;
    border-bottom: 13px solid transparent;
}

/* CARD HEADER */
.card-header {
    padding: 2rem 2rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.card-logo {
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s;
}

.instansi-card:hover .card-logo {
    background: rgba(211,47,47,0.1);
    border-color: rgba(211,47,47,0.3);
}

.card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* CARD BADGES */
.card-badge {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-badge.sumatera {
    background: rgba(255, 152, 0, 0.15);
    color: #ff9800;
    border: 1px solid rgba(255,152,0,0.3);
}

.card-badge.jawa {
    background: rgba(33, 150, 243, 0.15);
    color: #2196f3;
    border: 1px solid rgba(33,150,243,0.3);
}

.card-badge.kalimantan {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
    border: 1px solid rgba(76,175,80,0.3);
}

.card-badge.sulawesi {
    background: rgba(156, 39, 176, 0.15);
    color: #9c27b0;
    border: 1px solid rgba(156,39,176,0.3);
}

.card-badge.papua {
    background: rgba(0, 188, 212, 0.15);
    color: #00bcd4;
    border: 1px solid rgba(0,188,212,0.3);
}

/* CARD BODY */
.card-body {
    padding: 1.5rem 2rem;
}

.card-body h3 {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.card-location {
    color: #888;
    font-size: 0.88rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-location i {
    color: #d32f2f;
}

.card-desc {
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* CARD STATS */
.card-stats {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.mini-stat {
    flex: 1;
    text-align: center;
}

.mini-num {
    display: block;
    color: #d32f2f;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.mini-label {
    display: block;
    color: #666;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CARD FOOTER */
.card-footer {
    padding: 1.2rem 2rem;
    display: flex;
    gap: 0.8rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.2);
}

.visit-btn {
    flex: 1;
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    color: white;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.visit-btn:hover {
    background: linear-gradient(135deg, #b71c1c, #8b0000);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(211,47,47,0.4);
    color: white;
}

.call-btn {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.call-btn:hover {
    background: rgba(37, 211, 102, 0.15);
    border-color: rgba(37,211,102,0.3);
    color: #25d366;
}

/* LOAD MORE */
.load-more-container {
    text-align: center;
    margin-top: 2rem;
}

.load-more-btn {
    background: transparent;
    border: 2px solid rgba(211,47,47,0.5);
    color: #d32f2f;
    padding: 14px 40px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.load-more-btn:hover {
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    border-color: transparent;
    color: white;
    box-shadow: 0 10px 30px rgba(211,47,47,0.4);
    transform: translateY(-2px);
}

/* COUNTER */
.instansi-counter {
    text-align: center;
    margin-top: 1.5rem;
    color: #555;
    font-size: 0.9rem;
}

/* HIDDEN CARD */
.instansi-card.hidden {
    display: none;
}

/* NO RESULT */
.no-result {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #555;
}

.no-result i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #333;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .instansi-grid {
        grid-template-columns: 1fr;
    }

    .sub-instansi .section-title {
        font-size: 2rem;
    }

    .filter-tabs {
        gap: 0.5rem;
    }

    .filter-tab {
        padding: 6px 14px;
        font-size: 0.8rem;
    }

    .card-stats {
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .card-header {
        padding: 1.5rem 1.5rem 1rem;
    }

    .card-body {
        padding: 1.2rem 1.5rem;
    }

    .card-footer {
        padding: 1rem 1.5rem;
    }
}