/**
 * DISKUMI (Dinas Koperasi, UKM dan Perindustrian) Theme CSS
 * Primary Color: #015266 (Teal Dark)
 * Secondary Color: #a2b910 (Lime Green)
 * Tema: Koperasi, UKM, dan Perindustrian
 */

/* ==================== GLOBAL IMPROVEMENTS ==================== */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

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

/* Remove gap above slider */
main#content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Slider full width fix */
.js-swiper-main {
    margin-top: 0 !important;
}

/* Smooth transitions for all interactive elements */
a,
button,
.btn,
.card,
img {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== CSS VARIABLES ==================== */
:root {
    /* Primary Colors - DISKUMI Teal */
    --color-primary: #015266 !important;
    --color-secondary: #a2b910 !important;
    --bs-primary: #015266 !important;
    --bs-primary-rgb: 1, 82, 102 !important;

    /* Accent Colors */
    --accent-green: #a2b910 !important;
    --accent-teal-light: #015266 !important;

    /* Navigation */
    --swiper-theme-color: #ffffff !important;

    /* Spacing */
    --section-padding: 80px;
    --card-radius: 16px;
    --input-radius: 10px;
}

/* ==================== TYPOGRAPHY ==================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: #015266;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    color: #015266;
    opacity: 0.85;
    line-height: 1.7;
}

a {
    color: #015266;
    text-decoration: none;
}

a:hover {
    color: #a2b910;
}

/* ==================== BUTTONS ==================== */
.btn {
    font-weight: 600;
    border-radius: 10px;
    padding: 12px 28px;
    border: none;
    box-shadow: 0 2px 8px rgba(1, 82, 102, 0.15);
}

.btn-primary {
    background: #015266 !important;
    border-color: #015266 !important;
    color: #fff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.btn-primary:hover {
    background: #a2b910 !important;
    border-color: #a2b910 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(162, 185, 16, 0.3);
}

.btn-outline-primary {
    border: 2px solid #015266 !important;
    color: #015266 !important;
    background: transparent !important;
}

.btn-outline-primary:hover {
    background-color: #015266 !important;
    color: #fff !important;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #a2b910 !important;
    border-color: #a2b910 !important;
    color: #fff !important;
}

.btn-secondary:hover {
    background: #015266 !important;
    border-color: #015266 !important;
}

/* ==================== CARDS ==================== */
.card {
    border-radius: var(--card-radius);
    border: 1px solid rgba(1, 82, 102, 0.1);
    background: #fff;
    box-shadow: 0 2px 12px rgba(1, 82, 102, 0.08);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(1, 82, 102, 0.15);
    border-color: rgba(162, 185, 16, 0.3);
}

.card-title {
    color: #015266 !important;
}

.card-body {
    padding: 1.5rem;
}

/* ==================== SECTIONS ==================== */
.section-py {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #015266;
    border-radius: 2px;
}

/* White text header variant */
.section-header h2.text-white::after {
    background: #a2b910;
}

.section-header p {
    font-size: 1rem;
    max-width: 650px;
    margin: 0 auto;
    color: #6b7280;
}

/* ==================== BACKGROUNDS ==================== */
.bg-primary {
    background-color: #015266 !important;
}

.bg-secondary {
    background-color: #a2b910 !important;
}

.text-primary {
    color: #015266 !important;
}

.text-secondary {
    color: #a2b910 !important;
}

/* ==================== HEADER TOP ==================== */
header.header-top,
.header-top {
    background: #015266 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    padding: 16px 0 !important;
    border-bottom: 3px solid #a2b910 !important;
    position: relative;
}

header.header-top .container {
    position: relative;
    z-index: 1;
}

header.header-top .row {
    align-items: center;
}

/* Logo Section - Compact */
header.header-top .logo {
    width: 200px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
    display: block;
}

header.header-top .logo:hover {
    transform: scale(1.05);
}

/* Title Section - Compact */
header.header-top .title {
    padding-left: 15px;
}

header.header-top .title h2 {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin: 0 0 4px 0 !important;
    padding: 0;
}

header.header-top .title h1 {
    color: #fff !important;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 4px 0 !important;
    padding: 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

header.header-top .title h3 {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.75rem;
    font-weight: 400;
    margin: 0 !important;
    padding: 0;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 5px;
}

header.header-top .title h3 i {
    color: #a2b910 !important;
    font-size: 0.75rem;
}

/* Right Section - Compact */
header.header-top .kanan {
    text-align: right;
}

header.header-top .kanan h3#date {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.75rem;
    font-weight: 500;
    margin: 0 0 4px 0 !important;
}

header.header-top .kanan h1#jam {
    color: #fff !important;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 10px 0 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* Action Buttons - Compact */
header.header-top .kanan p {
    background: #a2b910 !important;
    color: #fff !important;
    border-radius: 8px;
    margin: 0 !important;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(162, 185, 16, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

header.header-top .kanan p:hover {
    background: #fff !important;
    color: #015266 !important;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

header.header-top .kanan p a {
    color: #fff !important;
    text-decoration: none;
    padding: 0 10px;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

header.header-top .kanan p:hover a {
    color: #015266 !important;
}

header.header-top .kanan p a:last-child {
    border-right: none;
    padding-right: 0;
}

header.header-top .kanan p a:first-child {
    padding-left: 0;
}

header.header-top .kanan p a i {
    font-size: 0.8rem;
}

/* Responsive Header */
@media (max-width: 991px) {
    header.header-top {
        padding: 14px 0 !important;
    }

    header.header-top .logo {
        width: 55px;
    }

    header.header-top .title {
        padding-left: 10px;
    }

    header.header-top .title h1 {
        font-size: 1rem;
    }

    header.header-top .title h2,
    header.header-top .title h3 {
        font-size: 0.65rem;
    }

    header.header-top .kanan {
        text-align: center;
        margin-top: 12px;
    }

    header.header-top .kanan h1#jam {
        font-size: 1.3rem;
    }
}

/* ==================== NAVIGATION ==================== */
#header.navbar {
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1030 !important;
    transition: all 0.3s ease !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    display: flex !important;
}

/* Override ALL hide effects from theme - IMPORTANT */
#header.navbar.navbar-moved-up,
#header.navbar.navbar-faded,
#header.navbar.navbar-invisible,
#header.navbar.navbar-scrolled,
.navbar#header.navbar-moved-up,
.navbar#header.navbar-faded,
.navbar#header.navbar-invisible {
    transform: none !important;
    -webkit-transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
}

/* Navbar scrolled effect - just shadow change */
#header.navbar.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12) !important;
    backdrop-filter: blur(10px) !important;
    background: rgba(255, 255, 255, 0.98) !important;
    position: -webkit-sticky !important;
    position: sticky !important;
}

#header .navbar-nav .nav-link {
    color: #015266 !important;
    font-weight: 600 !important;
}

#header .navbar-nav .nav-link:hover,
#header .navbar-nav .nav-link.active {
    color: #a2b910 !important;
    background: rgba(162, 185, 16, 0.08) !important;
}

/* ==================== LAYANAN SECTION (JATIM STYLE) ==================== */
.section-py {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #015266;
    margin-bottom: 0.75rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #015266;
    max-width: 700px;
    margin: 0 auto;
}

/* Jatim-Style Service Cards */
.jatim-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 180px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.jatim-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(1, 82, 102, 0.2);
}

.jatim-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.jatim-card-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #015266;
    margin: 0;
    flex: 1;
    line-height: 1.3;
}

.jatim-card-icon {
    width: 44px;
    height: 44px;
    background: rgba(162, 185, 16, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.jatim-card-icon .iconify {
    color: #a2b910 !important;
    font-size: 22px;
}

.jatim-card p {
    color: #015266;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0;
}

.jatim-wave-pattern {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 50px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' opacity='.15' fill='%23a2b910'/%3E%3Cpath d='M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z' opacity='.25' fill='%23015266'/%3E%3C/svg%3E");
    background-size: cover;
    opacity: 0.3;
}

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

@media (min-width: 768px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .service-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .service-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==================== CREATIVE LAYANAN CARDS ==================== */
.layanan-card-creative {
    display: block;
    height: 100%;
}

.layanan-card-inner {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    overflow: hidden;
}

.layanan-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #a2b910;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.layanan-card-creative:hover .layanan-card-inner {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(162, 185, 16, 0.3);
}

.layanan-card-creative:hover .layanan-card-inner::before {
    transform: scaleX(1);
}

.layanan-number {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    color: rgba(1, 82, 102, 0.08);
    line-height: 1;
}

.layanan-icon-box {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #015266 0%, #027a96 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    transition: all 0.3s ease;
}

.layanan-icon-box .iconify {
    color: #fff !important;
}

.layanan-card-creative:hover .layanan-icon-box {
    background: linear-gradient(135deg, #a2b910 0%, #8fa50e 100%);
    transform: scale(1.05);
}

.layanan-card-title {
    color: #015266;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.layanan-card-desc {
    color: #6b7280;
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.layanan-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #015266;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.layanan-link svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.layanan-card-creative:hover .layanan-link {
    color: #a2b910;
}

.layanan-card-creative:hover .layanan-link svg {
    transform: translateX(4px);
}

/* ==================== NEWS CARDS ==================== */
.news-card-modern {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(1, 82, 102, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.news-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(1, 82, 102, 0.15);
}

.news-card-modern .badge {
    background: #015266;
    color: #fff;
}

.news-card-modern .read-more {
    color: #a2b910;
    font-weight: 600;
}

/* ==================== FOOTER ==================== */
.modern-footer {
    background: #015266;
    color: #fff;
    padding: 60px 0 0;
    margin-top: 80px;
    position: relative;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #a2b910;
}

.modern-footer .container {
    position: relative;
    z-index: 1;
}

.footer-widget {
    margin-bottom: 40px;
}

.footer-logo {
    max-width: 90px;
    height: auto;
    background: #fff;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.footer-logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(162, 185, 16, 0.4);
}

.footer-title {
    color: #fff !important;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #a2b910;
    display: inline-block;
}

.footer-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-links span {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #a2b910;
}

/* Footer Contact */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-contact li svg {
    color: #a2b910;
    fill: #a2b910;
    width: 16px;
    height: 16px;
    min-width: 16px;
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-contact li span,
.footer-contact li a {
    flex: 1;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-contact a:hover {
    color: #a2b910;
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(162, 185, 16, 0.15);
    border: 2px solid #a2b910;
    border-radius: 8px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #a2b910 !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link svg {
    width: 18px;
    height: 18px;
    fill: #a2b910;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #a2b910;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(162, 185, 16, 0.3);
}

.social-link:hover svg {
    fill: #fff;
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 50px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom .row {
    align-items: center;
}

.copyright-text,
.powered-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
}

.powered-text a {
    color: #a2b910;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.powered-text a:hover {
    color: #fff;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .modern-footer {
        padding: 40px 0 0;
        margin-top: 60px;
    }

    .footer-widget {
        margin-bottom: 30px;
    }

    .footer-title {
        font-size: 1rem;
    }

    .footer-bottom {
        text-align: center;
        padding: 15px 0;
    }

    .footer-bottom .row>div {
        margin-bottom: 8px;
    }

    .footer-social {
        justify-content: flex-start;
    }
}

/* ==================== HANDLE MISSING IMAGES ==================== */
img {
    max-width: 100%;
    height: auto;
}

/* News Card Images - ensure minimum height and proper background */
.news-card-modern img,
.card img {
    background: linear-gradient(135deg, rgba(1, 82, 102, 0.05) 0%, rgba(1, 82, 102, 0.08) 100%);
    min-height: 200px;
    object-fit: cover;
}

/* ==================== SEKTOR CARDS ==================== */
.sektor-card {
    display: block;
    background: #fff;
    border: 2px solid rgba(1, 82, 102, 0.1);
    border-radius: 12px;
    padding: 20px 15px;
    transition: all 0.3s ease;
}

.sektor-card:hover {
    border-color: #a2b910;
    background: #f8fafc;
    transform: translateY(-3px);
}

.sektor-icon {
    width: 60px;
    height: 60px;
    background: rgba(162, 185, 16, 0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sektor-icon .iconify {
    color: #a2b910 !important;
}

.sektor-card h6 {
    color: #015266;
    font-weight: 600;
    margin-top: 12px;
}

/* ==================== PRANALA WEB ==================== */
.pranala-card {
    display: flex;
    align-items: center;
    background: #015266;
    border-radius: 16px;
    padding: 20px;
    gap: 16px;
    transition: all 0.3s ease;
}

.pranala-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(1, 82, 102, 0.4);
}

.pranala-icon {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 12px;
    padding: 10px;
}

.pranala-content h5 {
    color: #fff;
    font-weight: 600;
    margin: 0;
}

.pranala-arrow {
    color: #a2b910;
    font-size: 1.5rem;
}

/* ==================== QUICK LINKS ==================== */
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

@media (min-width: 768px) {
    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .quick-links-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.quick-link-box {
    background: #fff;
    border-radius: 12px;
    padding: 30px 24px;
    text-align: center;
    border: 2px solid rgba(1, 82, 102, 0.1);
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
}

.quick-link-box:hover {
    border-color: #015266;
    background: #f8fafc;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(1, 82, 102, 0.15);
}

.quick-link-box .icon {
    color: #015266;
    margin-bottom: 16px;
}

.quick-link-box .icon .iconify {
    color: #015266 !important;
}

.quick-link-box h4 {
    color: #015266;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.quick-link-box p {
    color: #015266;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* NEWS CARDS IMPROVEMENTS */
.news-card-modern {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(1, 82, 102, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(1, 82, 102, 0.15);
    border-color: #015266;
}

.news-card-modern img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card-modern .card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-modern .badge {
    background: #015266;
    color: #fff;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    display: inline-block;
    margin-bottom: 12px;
    width: fit-content;
}

.news-card-modern h5 {
    color: #015266;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-card-modern .meta {
    color: #015266;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.news-card-modern .meta i {
    margin-right: 6px;
}

.news-card-modern .excerpt {
    color: #015266;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

.news-card-modern .read-more {
    color: #a2b910;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s ease;
}

.news-card-modern .read-more:hover {
    gap: 10px;
    color: #015266;
}

/* MODERN CARD IMPROVEMENTS */
.modern-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(1, 82, 102, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(1, 82, 102, 0.15);
    border-color: #015266;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .section-header h2 {
        font-size: 2rem;
    }

    header.header-top .logo {
        width: 200px !important;
    }

    .quick-links-grid {
        grid-template-columns: 1fr;
    }

    .service-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ==================== BUTTON STYLES ==================== */
.btn-soft-primary {
    background: rgba(1, 82, 102, 0.1) !important;
    color: #015266 !important;
    border: 1px solid rgba(1, 82, 102, 0.2) !important;
    transition: all 0.3s ease !important;
}

.btn-soft-primary:hover {
    background: #015266 !important;
    color: #fff !important;
    border-color: #015266 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(1, 82, 102, 0.3) !important;
}

.btn-soft-primary.btn-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-soft-primary.rounded-circle {
    border-radius: 50% !important;
}

.btn-sm.btn-icon {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
}

/* ==================== BACA JUGA SECTION (EYE-CATCHING) ==================== */
.card:has(h5:contains("Baca Juga")),
.card:has(h4:contains("Baca Juga")),
.baca-juga-card {
    background: linear-gradient(135deg, rgba(1, 82, 102, 0.03) 0%, rgba(162, 185, 16, 0.03) 100%) !important;
    border: 2px solid rgba(1, 82, 102, 0.1) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

.card h5:first-child,
.card h4:first-child {
    background: #015266 !important;
    color: #fff !important;
    padding: 16px 20px !important;
    margin: -1.25rem -1.25rem 20px !important;
    border-bottom: 3px solid #a2b910 !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.card h5 i,
.card h4 i {
    color: #a2b910 !important;
    font-size: 1.3rem !important;
}

/* Article Items in Baca Juga */
.card .row.mb-3,
.card .d-flex.mb-3 {
    background: #fff !important;
    padding: 12px !important;
    border-radius: 8px !important;
    border-left: 3px solid #015266 !important;
    transition: all 0.3s ease !important;
}

.card .row.mb-3:hover,
.card .d-flex.mb-3:hover {
    border-left-color: #a2b910 !important;
    box-shadow: 0 4px 12px rgba(1, 82, 102, 0.1) !important;
    transform: translateX(5px) !important;
}

/* Images in Baca Juga */
.card img {
    border-radius: 6px !important;
    border: 2px solid rgba(1, 82, 102, 0.1) !important;
    transition: all 0.3s ease !important;
}

.card img:hover {
    border-color: #a2b910 !important;
    transform: scale(1.05) !important;
}

/* Article Title */
.card a h6,
.card a p {
    color: #015266 !important;
    font-weight: 600 !important;
    transition: color 0.3s ease !important;
}

.card a:hover h6,
.card a:hover p {
    color: #a2b910 !important;
}

/* Date/Meta Info */
.card .text-muted,
.card small {
    color: rgba(1, 82, 102, 0.6) !important;
    font-size: 0.85rem !important;
}

/* Bootstrap Icons Color */
.text-primary {
    color: #015266 !important;
}

.bi.text-primary {
    color: #015266 !important;
}


/* ==================== BACA JUGA SECTION - FIXED ==================== */
/* Fix Image Size */
.card .col-4 img,
.card .col-md-4 img,
.baca-juga-card img {
    max-width: 100% !important;
    height: 120px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    border: 2px solid rgba(1, 82, 102, 0.1) !important;
}

/* Better Card Styling for Articles */
.card .row.mb-3 {
    background: #fff !important;
    padding: 12px !important;
    border-radius: 8px !important;
    border-left: 3px solid #015266 !important;
    transition: all 0.3s ease !important;
    align-items: center !important;
}

.card .row.mb-3:hover {
    border-left-color: #a2b910 !important;
    box-shadow: 0 2px 8px rgba(1, 82, 102, 0.1) !important;
    transform: translateX(3px) !important;
}

/* Fix Icons - Don't Hide Them! */
.bi {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.bi-newspaper,
.bi-share,
.bi-facebook,
.bi-twitter,
.bi-whatsapp,
.bi-envelope {
    font-family: 'bootstrap-icons' !important;
}

/* Fix Share Buttons */
.btn-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
}

.btn-icon i,
.btn-icon svg {
    display: inline-block !important;
    visibility: visible !important;
}

/* ==================== FIX IMAGE SIZE - LEBIH KECIL ==================== */
.card .col-4 img,
.card .col-md-4 img,
.konten-post .col-4 img {
    max-width: 80px !important;
    width: 80px !important;
    height: 80px !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    border: 2px solid rgba(1, 82, 102, 0.15) !important;
}

/* Ensure image container doesn't grow */
.card .col-4,
.card .col-md-4 {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: 100px !important;
}

/* ==================== FIX BOOTSTRAP ICONS - FORCE DISPLAY ==================== */
/* Load Bootstrap Icons Font */
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.0/font/bootstrap-icons.css');

/* Force icons to show */
i.bi,
span.bi,
.bi::before {
    font-family: 'bootstrap-icons' !important;
    font-style: normal !important;
    font-weight: normal !important;
    font-variant: normal !important;
    text-transform: none !important;
    line-height: 1 !important;
    vertical-align: -0.125em !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Specific icon fixes */
.bi-newspaper::before {
    content: "\f4f7" !important;
}

.bi-share::before {
    content: "\f52d" !important;
}

.bi-facebook::before {
    content: "\f344" !important;
}

.bi-twitter::before {
    content: "\f5ef" !important;
}

.bi-whatsapp::before {
    content: "\f618" !important;
}

.bi-envelope::before {
    content: "\f32f" !important;
}

.bi-calendar::before {
    content: "\f1ed" !important;
}

.bi-eye::before {
    content: "\f341" !important;
}

/* Fix button icons container */
.btn-icon.rounded-circle {
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
}

.btn-icon i {
    margin: 0 !important;
    padding: 0 !important;
}

/* Fix untuk text-primary color */
.text-primary,
i.text-primary,
.bi.text-primary {
    color: #015266 !important;
}

/* Avatar/Circle fix */
.rounded-circle {
    border-radius: 50% !important;
}

/* Ensure Bagikan buttons visible */
.btn-soft-primary.btn-icon.rounded-circle {
    background: rgba(1, 82, 102, 0.1) !important;
    border: 1px solid rgba(1, 82, 102, 0.2) !important;
    color: #015266 !important;
}

.btn-soft-primary.btn-icon.rounded-circle:hover {
    background: #015266 !important;
    color: #fff !important;
}

/* ==================== ENHANCED SECTION BACKGROUNDS ==================== */
/* Section with gradient background needs relative z-index */
section[style*="background: linear-gradient"] .container,
section[style*="background: #015266"] .container {
    position: relative;
    z-index: 10;
}

/* White text for green/teal backgrounds */
section[style*="background: linear-gradient(135deg, #a2b910"] .section-header h2,
section[style*="background: linear-gradient(135deg, #a2b910"] .section-header p,
section[style*="background: linear-gradient(135deg, #a2b910"] .modern-card h3,
section[style*="background: linear-gradient(135deg, #a2b910"] .modern-card p {
    color: #fff !important;
}

section[style*="background: #015266"] .section-header h2,
section[style*="background: #015266"] .section-header p {
    color: #fff !important;
}

/* Modern card adjustments for green background */
section[style*="background: linear-gradient(135deg, #a2b910"] .modern-card {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

section[style*="background: linear-gradient(135deg, #a2b910"] .modern-card h3 {
    color: #015266 !important;
}

section[style*="background: linear-gradient(135deg, #a2b910"] .modern-card p {
    color: rgba(1, 82, 102, 0.7) !important;
}

/* Pranala cards on teal background */
section[style*="background: #015266"] .pranala-card {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px) !important;
}

section[style*="background: #015266"] .pranala-card:hover {
    background: rgba(162, 185, 16, 0.2) !important;
    border-color: #a2b910 !important;
}

section[style*="background: #015266"] .pranala-card h5 {
    color: #fff !important;
}

section[style*="background: #015266"] .pranala-card svg {
    color: #a2b910 !important;
}


/* ==================== HOMEPAGE IMPROVEMENTS ==================== */
/* Enhanced News Card */
.news-card-modern {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid rgba(1, 82, 102, 0.08) !important;
    transition: all 0.3s ease !important;
}

.news-card-modern:hover {
    box-shadow: 0 8px 24px rgba(1, 82, 102, 0.12) !important;
    border-color: #a2b910 !important;
    transform: translateY(-4px) !important;
}

/* Standardize Prestasi/Penghargaan Images */
.modern-card img {
    max-height: 150px !important;
    width: 100% !important;
    object-fit: contain !important;
    padding: 10px !important;
}

/* Standardize Pranala/Tautan Icons */
.pranala-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 60px !important;
    height: 60px !important;
    flex-shrink: 0 !important;
}

.pranala-icon img {
    max-width: 50px !important;
    max-height: 50px !important;
    object-fit: contain !important;
}

/* Better spacing for pranala card */
.pranala-card {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 16px !important;
}

.pranala-content {
    flex: 1 !important;
}

.pranala-arrow {
    flex-shrink: 0 !important;
}


/* ==================== IMAGE FALLBACK STYLING ==================== */
.image-fallback {
    background: #f3f4f6 !important;
    border: 2px dashed #d1d5db !important;
    opacity: 0.8 !important;
}

/* Smooth transition when fallback applied */
img {
    transition: opacity 0.3s ease, border 0.3s ease !important;
}

/* Prevent layout shift when image fails */
img[src^="data:image/svg+xml"] {
    display: block !important;
    width: 100% !important;
    height: auto !important;
}
/* ==================== SIMPLE ORG CARD - CLEAN HORIZONTAL ==================== */
.modern-org-card {
    display: block;
    background: #fff;
    border-left: 4px solid #015266;
    border-radius: 8px;
    padding: 24px 28px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(1, 82, 102, 0.08);
    height: 100%;
    position: relative;
}

.modern-org-card:hover {
    border-left-color: #a2b910;
    box-shadow: 0 8px 20px rgba(1, 82, 102, 0.15);
    transform: translateX(5px);
}

/* Hide icon - tidak perlu */
.org-card-icon {
    display: none;
}

.org-card-content {
    width: 100%;
}

.org-card-content h5 {
    color: #015266;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.modern-org-card:hover .org-card-content h5 {
    color: #a2b910;
}

.org-leader {
    color: #015266;
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.75;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.org-leader svg {
    fill: #a2b910;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Hide arrow - tidak perlu */
.org-card-arrow {
    display: none;
}

/* Badge indicator */
.modern-org-card::after {
    content: '→';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #015266;
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0;
    transition: all 0.3s ease;
}

.modern-org-card:hover::after {
    opacity: 0.3;
    right: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .modern-org-card {
        padding: 20px 24px;
    }

    .org-card-content h5 {
        font-size: 1.05rem;
    }

    .org-leader {
        font-size: 0.85rem;
    }
}