/* Modern Style for Muawanah */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

:root {
    --primary: #064E3B;
    --primary-light: #059669;
    --secondary: #10B981;
    --accent: #F59E0B;
    --dark: #1F2937;
    --light: #F9FAFB;
    --white: #FFFFFF;
    --gray: #6B7280;
    --border: #E5E7EB;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f3f4f6;
    color: var(--dark);
    line-height: 1.6;
}

/* Header Top Bar */
.top-bar {
    background-color: var(--primary);
    color: var(--white);
    padding: 8px 0;
    font-size: 11px;
    /* Premium smaller font */
    font-weight: 500;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-bar a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.top-bar a:hover {
    opacity: 0.8;
}

.ms-3 {
    margin-left: 1rem !important;
}

@media (max-width: 767px) {
    .top-bar {
        padding: 6px 0;
        font-size: 10px;
        /* Slightly smaller for compact mobile view */
    }

    .top-bar-content {
        flex-direction: row !important;
        justify-content: space-between;
        align-items: center;
    }

    .top-bar-left,
    .top-bar-right {
        gap: 8px;
        /* Balanced tight gap for side-by-side flow */
    }
}

/* Navbar */
/* Navbar */
.navbar-modern {
    background: var(--white);
    padding: 10px 0;
    box-shadow: var(--shadow);
    min-height: 80px;
    display: flex;
    align-items: center;
    width: 100%;
}

.navbar-modern .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1170px;
    margin-right: auto;
    margin-left: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.navbar-logo-modern {
    display: flex;
    align-items: center;
}

.navbar-brand-modern {
    display: flex;
    align-items: center;
    text-decoration: none !important;
}

.navbar-brand-modern img {
    height: 42px;
}

.navbar-brand-text div:first-child {
    font-size: 16px !important;
}

.navbar-brand-text div:last-child {
    font-size: 8px !important;
}

.navbar-menu-modern {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
}

.nav-modern {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    gap: 12px;
    /* Balanced spacing */
}

.nav-modern>li {
    display: block !important;
    position: relative !important;
}

.nav-modern .nav-link {
    font-weight: 600;
    color: var(--dark);
    padding: 10px 8px !important;
    text-transform: uppercase;
    font-size: 12px;
    /* Extremely readable and modern */
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
}

.nav-modern .nav-link:hover {
    color: var(--primary);
    background: transparent !important;
}

/* Beautiful Search Icon Link */
.nav-modern .nav-link-search {
    color: var(--gray);
    font-size: 14px !important;
    padding: 10px 10px !important;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

.nav-modern .nav-link-search:hover {
    color: var(--primary);
    background: transparent !important;
    transform: scale(1.1);
}

/* Premium Login Button */
.btn-login {
    background-color: var(--primary) !important;
    color: var(--white) !important;
    border-radius: 6px !important;
    padding: 8px 18px !important;
    font-weight: 700;
    font-size: 11px !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(6, 78, 59, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    text-decoration: none !important;
    margin-left: 5px;
    /* Added separation from search */
}

.btn-login:hover {
    background-color: var(--primary-light) !important;
    color: var(--white) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(6, 78, 59, 0.3);
}

.btn-login:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(6, 78, 59, 0.2);
}

/* Premium Dropdown Styling */
.nav-modern li.dropdown {
    position: relative !important;
}

.nav-modern .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
    float: none !important;
    min-width: 220px !important;
    display: none; /* Hide by default */
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    background: var(--white) !important;
    padding: 8px 0 !important;
    margin-top: 5px !important;
    border-top: 3px solid var(--primary) !important;
    /* Premium brand accent line at the top */
    z-index: 99999 !important; /* extremely high z-index to stay on top of everything */
    animation: fadeInDropdown 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Ensure dropdowns display properly when opened */
.dropdown.open > .dropdown-menu,
.dropdown.open .dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin-top: 2px !important; /* extremely close to eliminate gap-triggered close bugs */
}

/* Premium Dropdown Hover for Desktop */
@media (min-width: 993px) {
    .nav-modern li.dropdown:hover > .dropdown-menu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        margin-top: 2px !important; /* aligned to prevent spacing gap triggers */
    }
}

/* Nested Submenu Styling */
.nav-modern .dropdown-submenu {
    position: relative !important;
}

.nav-modern .dropdown-submenu > .dropdown-menu {
    top: 0 !important;
    left: 100% !important;
    margin-top: -6px !important;
    margin-left: -1px !important;
    border-radius: 8px !important;
}

.nav-modern .dropdown-submenu:hover > .dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Caret for submenu */
.nav-modern .dropdown-submenu > a::after {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: auto;
    margin-right: 5px;
    vertical-align: middle;
    content: "";
    border-top: 4px solid transparent;
    border-left: 4px solid var(--dark);
    border-bottom: 4px solid transparent;
    float: right;
    margin-top: 4px;
    opacity: 0.5;
}

.nav-modern .dropdown-submenu:hover > a::after {
    border-left-color: var(--primary);
    opacity: 1;
}

@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-modern .dropdown-menu>li>a {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: var(--dark) !important;
    padding: 10px 20px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    transition: all 0.2s ease !important;
}

.nav-modern .dropdown-menu>li>a:hover {
    background-color: #ecfdf5 !important;
    /* light emerald/mint background */
    color: var(--primary) !important;
    padding-left: 24px !important;
    /* Elegant slide micro-animation */
}

/* Hover caret rotation for a playful feeling */
.nav-modern .dropdown:hover .fa-chevron-down,
.nav-modern .dropdown.open .fa-chevron-down {
    transform: rotate(180deg);
}

.nav-modern .fa-chevron-down {
    transition: transform 0.2s ease;
}

/* Styles consolidated below under the Infinite News Ticker section */

/* Hero Section Full */
.hero-section-full {
    position: relative;
    background-image: url('../../../asset/hero_bg_muawanah.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 40px 0 80px; /* Reduced top padding to move up */
    margin-bottom: 30px;
}

.hero-bg-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.85);
}

.hero-content-full {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-logo {
    height: 70px; /* Slightly larger logo to anchor the top */
    margin-bottom: 15px;
}

.hero-subtitle-top {
    font-size: 18px; 
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1.5px;
    margin-bottom: 5px; 
    text-transform: uppercase;
    line-height: 1.3;
}

.hero-title {
    font-size: 44px; /* Larger motto */
    font-weight: 800;
    color: var(--dark);
    margin-top: 20px;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 35px;
    line-height: 1.6;
    max-width: 700px; /* Centered max width for better symmetry */
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px; /* More spacing between buttons */
}

.btn-hero-primary {
    background: var(--primary); 
    color: white;
    font-weight: 700;
    padding: 14px 35px; /* Larger padding for better look */
    border-radius: 40px;
    text-transform: uppercase;
    font-size: 15px;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.btn-hero-primary:hover {
    background: var(--primary-light);
    color: white;
}

.btn-hero-secondary {
    background: transparent;
    color: var(--primary); 
    font-weight: 700;
    padding: 14px 35px;
    border-radius: 40px;
    font-size: 15px;
    border: 2px solid var(--primary); 
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.btn-hero-secondary:hover {
    background: rgba(6, 78, 59, 0.05);
    color: var(--primary-light);
    border-color: var(--primary-light);
}

/* Service Icons */
.service-icons-wrapper {
    position: relative;
    z-index: 10;
}

.service-icon-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--white);
    padding: 20px 10px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid var(--border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.service-icon-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.icon-square-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 12px;
    border-radius: 8px;
}

.service-icon-box span {
    font-size: 13px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--dark);
}

/* Featured News Card */
.featured-news-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}

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

.featured-news-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 20px;
    color: white;
}

.featured-news-category {
    background: var(--accent);
    color: var(--dark);
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 10px;
}

.featured-news-title {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
    line-height: 1.3;
    text-decoration: none !important;
    display: block;
}

.featured-news-meta {
    font-size: 12px;
    opacity: 0.8;
}

/* List News Items */
.list-news-item {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.list-news-icon {
    width: 50px;
    height: 50px;
    background: rgba(6, 78, 59, 0.1); /* light primary */
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 15px;
    flex-shrink: 0;
}

.list-news-content {
    flex: 1;
}

.list-news-category {
    font-size: 10px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.list-news-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: 4px;
    text-decoration: none !important;
    display: block;
}

.list-news-meta {
    font-size: 11px;
    color: var(--gray);
}

/* Adjustments for mobile view */
@media (max-width: 767px) {
    .hero-title {
        font-size: 28px;
    }
    .hero-subtitle {
        font-size: 14px;
    }
    .hero-section-full {
        padding: 50px 15px 80px;
    }
    .hero-logo {
        height: 60px;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
}

/* News Cards */
.section-title {
    font-weight: 700;
    font-size: 24px;
    color: var(--primary);
    margin: 30px 0 20px;
    border-left: 5px solid var(--primary);
    padding-left: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-news {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.card-news:hover {
    transform: translateY(-5px);
}

/* Infinite News Ticker */
.breaking-news-modern {
    background: #f0fdf4;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.ticker-wrapper-modern {
    display: flex;
    align-items: center;
    width: 100%;
}

.breaking-news-modern .label {
    background: var(--primary);
    color: var(--white);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    margin-right: 15px;
    flex-shrink: 0;
    z-index: 2;
}

.ticker-content-modern {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.ticker-scroll-modern {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: ticker-marquee 30s linear infinite;
    padding-left: 10px;
}

.ticker-scroll-modern:hover {
    animation-play-state: paused;
}

.ticker-item-modern {
    display: inline-flex;
    align-items: center;
    margin-right: 40px;
    font-size: 13px;
    font-weight: 500;
}

.ticker-item-modern i {
    font-size: 6px;
    color: var(--primary-light);
    margin-right: 10px;
}

.ticker-item-modern a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.ticker-item-modern a:hover {
    color: var(--primary);
}

@keyframes ticker-marquee {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

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

.card-body-news {
    padding: 20px;
}

.card-category {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 8px;
    display: inline-block;
}

.card-title-news {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.card-meta {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 10px;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: var(--white);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}

.widget-title {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
}

.search-bar-modern {
    display: flex;
    gap: 10px;
}

.search-bar-modern input {
    border-radius: 10px;
    border: 1px solid var(--border);
    padding: 10px 15px;
    flex: 1;
}

.search-bar-modern button {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0 20px;
    font-weight: 600;
}

/* Sekilas Info Box */
.info-box-modern {
    background: var(--primary);
    color: white;
    border-radius: 16px;
    padding: 25px;
}

.info-box-modern .quote {
    font-style: italic;
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.info-box-modern .contact {
    font-weight: 700;
    font-size: 20px;
}

/* Footer */
footer.modern-footer {
    background: #f8fafc;
    padding: 60px 0 20px;
    border-top: 1px solid var(--border);
    margin-top: 50px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 20px;
}

.footer-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
    padding: 0;
}

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

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

/* Mobile Nav */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    justify-content: space-around;
    padding: 10px 0;
}

.navbar-mobile {
    background: var(--white);
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1001;
    width: 100%;
}

.navbar-mobile .container-fluid {
    width: 100%;
}

#navbar-mobile-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 999;
}

.nav-mobile-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.nav-mobile-list li {
    width: 100%;
    text-align: center;
}

.nav-mobile-list li a {
    padding: 16px 20px !important;
    display: block;
    color: var(--dark);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: all 0.2s ease;
}

.nav-mobile-list li a:hover,
.nav-mobile-list li a:focus {
    background: rgba(6, 78, 59, 0.04);
    color: var(--primary);
}

/* Align and format dropdown toggles in mobile list */
.nav-mobile-list .dropdown {
    width: 100%;
}

.nav-mobile-list .dropdown-menu {
    position: static !important;
    float: none !important;
    width: 100% !important;
    background: rgba(6, 78, 59, 0.03) !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    animation: none !important;
}

.nav-mobile-list .dropdown-menu li {
    text-align: center;
}

.nav-mobile-list .dropdown-menu li a {
    padding: 12px 20px !important;
    font-size: 13px;
    color: var(--gray) !important;
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.nav-mobile-list .dropdown-menu li a:hover {
    background: rgba(6, 78, 59, 0.06) !important;
    color: var(--primary) !important;
    padding-left: 20px !important;
    /* Center-aligned, no sliding indents */
}

/* Premium Login Button for Mobile */
.btn-login-mobile {
    padding: 16px 20px !important;
    display: block !important;
    background: var(--primary) !important;
    color: white !important;
    text-align: center !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    transition: background 0.2s ease !important;
    border-bottom: none !important;
}

.btn-login-mobile:hover {
    background: var(--primary-light) !important;
}

@media (max-width: 992px) {
    .navbar-modern {
        display: none !important;
    }

    .navbar-collapse {
        display: none !important;
    }

    .navbar-collapse.in {
        display: block !important;
    }

    .mobile-bottom-nav {
        display: none !important;
    }

    .hero-slider .item img {
        height: 250px !important;
    }

    .hero-content h2 {
        font-size: 20px !important;
    }

    .hero-content {
        padding: 30px !important;
    }

    .modern-footer [class^="col-"] {
        margin-bottom: 40px;
        text-align: center !important;
        float: none !important;
        width: 100% !important;
        display: block !important;
    }

    .modern-footer [class^="col-"] * {
        text-align: center !important;
        float: none !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .modern-footer [class^="col-"] div {
        justify-content: center !important;
        text-align: center !important;
        display: flex !important;
        gap: 15px;
    }

    .footer-title {
        text-align: center !important;
        display: block !important;
        width: 100% !important;
    }

    .footer-title::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .modern-footer ul {
        padding-left: 0 !important;
        list-style: none !important;
        text-align: center !important;
        width: 100% !important;
    }

    .modern-footer ul li {
        text-align: center !important;
        display: block !important;
    }
}

/* Horizontal Scroll for Nav on Medium Screens (993px - 1400px) */
@media (min-width: 993px) and (max-width: 1400px) {
    .nav-modern {
        overflow-x: auto;
        white-space: nowrap;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
    }

    .nav-modern::-webkit-scrollbar {
        height: 2px;
    }

    .nav-modern::-webkit-scrollbar-thumb {
        background: var(--border);
    }
}

/* Custom Utilities */
.rounded-2xl {
    border-radius: 16px;
}

.shadow-modern {
    box-shadow: var(--shadow);
}

.bg-primary {
    background-color: var(--primary) !important;
}

.text-primary {
    color: var(--primary) !important;
}

.carousel-dot-modern {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-dot-modern.active {
    background: var(--primary);
    width: 18px;
    /* Elegant wide active pill */
    border-radius: 4px;
}