/* ==========================================================================
   CSS VARIABLES & DESIGN TOKENS
   ========================================================================== */
:root {
    /* Colors - Premium Teal & Navy Palette */
    --primary-main: #0F7987;
    /* Teal/Cyan gelap, warna utama */
    --primary-light: #189FB0;
    --primary-dark: #0A535D;

    --secondary-main: #1E293B;
    /* Slate/Navy Gelap */
    --secondary-light: #334155;

    --accent: #10B981;
    /* Emerald Green untuk sukses/aksen */

    --bg-main: #F8FAFC;
    /* Putih kebiruan terang */
    --bg-surface: #FFFFFF;

    --text-dark: #0F172A;
    --text-muted: #64748B;
    --text-light: #F8FAFC;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Shadows - Soft & Modern */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.25rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--secondary-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   UTILITY CLASSES & BUTTONS
   ========================================================================== */
.text-center {
    text-align: center;
}

.text-xs {
    font-size: 0.75rem;
}

.mt-4 {
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-main);
    color: var(--text-light);
    box-shadow: 0 4px 12px rgba(15, 121, 135, 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 121, 135, 0.35);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

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

.btn-lg {
    padding: 14px 32px;
    font-size: 1.125rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: transparent;
    color: var(--secondary-main);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-icon:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--primary-main);
}

/* ==========================================================================
   TOP BAR & HEADER
   ========================================================================== */
.top-bar {
    background-color: var(--primary-main);
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
}

.top-bar-left i,
.top-bar-right i {
    margin-right: 6px;
    opacity: 0.8;
}

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

.lang-switch {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.header {
    background-color: var(--bg-surface);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-normal);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
    padding: 4px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-main), var(--primary-light));
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--secondary-main);
    line-height: 1.1;
}

.brand-tag {
    font-size: 0.75rem;
    color: var(--primary-main);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-menu {
    margin-left: auto;
    margin-right: 32px;
}

.nav-menu ul {
    display: flex;
    gap: 32px;
}

.nav-menu a {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--secondary-light);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-main);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-main);
    transition: var(--transition-fast);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.has-dropdown {
    position: relative;
}

/* Mega Menu Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background-color: var(--bg-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    display: flex;
    gap: 32px;
    min-width: 400px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    pointer-events: none;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.dropdown-column h4 {
    font-size: 1rem;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
    color: var(--primary-main);
}

.dropdown-column a {
    color: var(--secondary-light);
    font-weight: 500;
    padding: 6px 0;
}

.dropdown-column a::after {
    display: none;
}

.dropdown-column a:hover {
    color: var(--primary-main);
    padding-left: 4px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding-bottom: 60px;
    /* Space for overlay card */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-bg img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05);
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-bg img.active {
    opacity: 1;
    animation: slowZoom 20s ease-out infinite alternate;
}

@keyframes slowZoom {
    0% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Vibrant green to teal gradient, fading to transparent around 60% */
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.95) 0%, rgba(2, 132, 199, 0.8) 25%, rgba(56, 189, 248, 0.4) 50%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.hero-text {
    max-width: 650px;
    color: var(--text-light);
    margin-bottom: 80px;
}

.hero-text h1 {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-text p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Quick Links Glassmorphism */
.quick-links {
    display: flex;
    gap: 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-glass);
    position: absolute;
    bottom: -60px;
    left: 20px;
    right: 20px;
    z-index: 10;
}

.quick-link-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.85);
    transition: var(--transition-normal);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.quick-link-item:hover {
    transform: translateY(-8px);
    background: var(--bg-surface);
    box-shadow: var(--shadow-md);
}

.quick-link-item .icon-box {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    color: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
    transition: var(--transition-normal);
}

.quick-link-item:hover .icon-box {
    background: var(--primary-main);
    transform: scale(1.05);
}

.quick-link-item h3 {
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.quick-link-item p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ==========================================================================
   SECTIONS & LAYOUT
   ========================================================================== */
.excellence-section,
.features-section {
    padding: 120px 0 80px;
}

.section-header {
    margin-bottom: 64px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.subtitle {
    font-size: 1rem;
    color: var(--primary-main);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.description {
    color: var(--text-muted);
    font-size: 1.125rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    position: relative;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 1px solid #f1f5f9;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-lg);
    background: radial-gradient(300px circle at var(--glow-x, 50%) var(--glow-y, 50%), rgba(15, 121, 135, 0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.service-card:hover::before {
    opacity: 1;
}

.card-image {
    height: 200px;
    overflow: hidden;
}

/* Placeholder Colors for Images */
.placeholder-img {
    width: 100%;
    height: 100%;
}

.color-1 {
    background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 99%, #FECFEF 100%);
}

.color-2 {
    background: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
}

.color-3 {
    background: linear-gradient(120deg, #d4fc79 0%, #96e6a1 100%);
}

.features-ph {
    background: linear-gradient(to right, #4facfe 0%, #00f2fe 100%);
    border-radius: var(--radius-lg);
}

.card-content {
    padding: 32px;
    position: relative;
}

.card-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-surface);
    color: var(--primary-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    position: absolute;
    top: -32px;
    right: 32px;
    box-shadow: var(--shadow-md);
    border: 4px solid var(--bg-surface);
}

.service-card h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.read-more {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.read-more:hover {
    gap: 12px;
}

/* Features Section */
.features-section {
    background-color: var(--bg-surface);
}

.features-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.feature-list {
    margin-top: 32px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--secondary-main);
}

.feature-list i {
    color: var(--accent);
    font-size: 1.25rem;
}

.features-image {
    position: relative;
    height: 500px;
}

.image-glass-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 24px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-lg);
}

.floating-badge i {
    font-size: 2.5rem;
    color: #F59E0B;
    /* Gold */
}

.floating-badge h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.floating-badge span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: var(--secondary-main);
    color: var(--text-muted);
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 64px;
}

.brand-col p {
    margin-top: 24px;
    margin-bottom: 24px;
}

.footer-logo .brand-name {
    color: var(--text-light);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.social-links a:hover {
    background: var(--primary-main);
    transform: translateY(-3px);
}

.footer-col h4 {
    color: var(--text-light);
    font-size: 1.25rem;
    margin-bottom: 24px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a:hover {
    color: var(--primary-light);
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-list i {
    margin-top: 6px;
    color: var(--primary-main);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 0.875rem;
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */

/* --- Base state for ALL scroll-animated elements --- */
[data-scroll] {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

/* --- Direction variants (initial state) --- */
[data-scroll="fade-up"] {
    transform: translateY(60px);
}

[data-scroll="fade-down"] {
    transform: translateY(-60px);
}

[data-scroll="fade-left"] {
    transform: translateX(80px);
}

[data-scroll="fade-right"] {
    transform: translateX(-80px);
}

[data-scroll="scale-in"] {
    transform: scale(0.85);
}

[data-scroll="zoom-in"] {
    transform: scale(0.7) translateY(40px);
}

/* --- Visible state (applied by JS IntersectionObserver) --- */
[data-scroll].is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* --- Stagger delays for child items (set by JS) --- */
[data-scroll-delay="1"] {
    transition-delay: 0.1s;
}

[data-scroll-delay="2"] {
    transition-delay: 0.2s;
}

[data-scroll-delay="3"] {
    transition-delay: 0.3s;
}

[data-scroll-delay="4"] {
    transition-delay: 0.4s;
}

[data-scroll-delay="5"] {
    transition-delay: 0.5s;
}

[data-scroll-delay="6"] {
    transition-delay: 0.6s;
}

[data-scroll-delay="7"] {
    transition-delay: 0.7s;
}

[data-scroll-delay="8"] {
    transition-delay: 0.8s;
}

/* --- Hero specific (always visible, uses CSS animation) --- */
.hero .animate-fade-up {
    animation: heroFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero .delay-1 {
    animation-delay: 0.35s;
}

.hero .delay-2 {
    animation-delay: 0.7s;
}

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

/* --- Floating badge pulse --- */
.floating-badge {
    animation: badgePulse 3s ease-in-out infinite alternate;
}

@keyframes badgePulse {
    0% {
        box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    }

    100% {
        box-shadow: 0 10px 30px -3px rgba(15, 121, 135, 0.25);
    }
}

/* --- Feature list items staggered entrance --- */
.feature-list li {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.feature-list.is-visible li {
    opacity: 1;
    transform: translateX(0);
}

.feature-list.is-visible li:nth-child(1) {
    transition-delay: 0.1s;
}

.feature-list.is-visible li:nth-child(2) {
    transition-delay: 0.2s;
}

.feature-list.is-visible li:nth-child(3) {
    transition-delay: 0.3s;
}

.feature-list.is-visible li:nth-child(4) {
    transition-delay: 0.4s;
}

/* --- Counter number animation --- */
@keyframes countPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

/* --- Smooth scroll indicator hint for hero --- */
.scroll-indicator {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: scrollBounce 2s ease-in-out infinite;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-family: var(--font-heading);
    letter-spacing: 2px;
}

.scroll-indicator .mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    position: relative;
}

.scroll-indicator .mouse::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    animation: mouseScroll 1.5s ease-in-out infinite;
}

@keyframes mouseScroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }
}

@keyframes scrollBounce {

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

    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

/* News Section */
.news-section {
    padding: 80px 0;
    background-color: var(--bg-main);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.news-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.news-image {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--primary-main);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.news-content {
    padding: 24px;
}

.news-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.news-card h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: var(--transition-fast);
}

.news-card:hover h4 {
    color: var(--primary-main);
}

.news-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--primary-main);
    border: 2px solid var(--primary-main);
}

.btn-outline-primary:hover {
    background-color: var(--primary-main);
    color: white;
}

/* ==========================================================================
   IGD EMERGENCY BUTTON (Topbar)
   ========================================================================== */
.topbar-igd-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #EF4444;
    color: #fff !important;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.3px;
    text-decoration: none;
    animation: igdPulse 2s ease-in-out infinite;
    white-space: nowrap;
}

.topbar-igd-btn i {
    font-size: 0.9rem;
}

.topbar-igd-btn span {
    opacity: 0.9;
    font-weight: 500;
}

.topbar-igd-btn strong {
    font-weight: 800;
}

.topbar-igd-btn:hover {
    background: #DC2626;
    transform: scale(1.04);
}

@keyframes igdPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
}

/* ==========================================================================
   QUICK ACCESS BAR
   ========================================================================== */
.quick-access-bar {
    background: var(--secondary-main);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: sticky;
    top: 80px;
    z-index: 900;
}

.quick-access-bar::-webkit-scrollbar {
    display: none;
}

.qab-inner {
    display: flex;
    align-items: stretch;
    min-height: 52px;
    gap: 0;
}

.qab-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    color: rgba(255, 255, 255, 0.75);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition-fast);
    text-decoration: none;
    position: relative;
}

.qab-item i {
    font-size: 1rem;
    color: var(--primary-light);
    transition: var(--transition-fast);
}

.qab-item:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.qab-item:hover i {
    color: #fff;
    transform: scale(1.15);
}

.qab-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: var(--transition-fast);
}

.qab-item:hover::after {
    width: 100%;
}

/* ==========================================================================
   STATS COUNTER SECTION
   ========================================================================== */
.stats-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-main) 100%);
    padding: 72px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    position: relative;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    text-align: center;
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item:last-child {
    border-right: none;
}

.stat-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-light);
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-normal);
}

.stat-item:hover .stat-icon {
    background: var(--primary-main);
    color: #fff;
    transform: scale(1.1);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    display: inline-block;
}

.stat-suffix {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-light);
    line-height: 1;
    display: inline-block;
    margin-left: 2px;
}

.stat-number-wrap {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 12px;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 12px;
}

.stat-item.is-counting .stat-number {
    animation: countPulse 0.3s ease;
}

/* ==========================================================================
   FOOTER MAP
   ========================================================================== */
.footer-map {
    margin-top: 16px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   FLOATING BUTTONS (WhatsApp + Scroll Top)
   ========================================================================== */
.floating-buttons {
    position: fixed;
    bottom: 32px;
    right: 40px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.float-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    font-size: 1.35rem;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, width 0.3s ease;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* WhatsApp */
.float-wa {
    background: #25D366;
    color: #fff;
}

.float-wa:hover {
    width: 160px;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

.float-btn-label {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-width 0.3s ease, opacity 0.2s ease;
}

.float-wa:hover .float-btn-label {
    max-width: 120px;
    opacity: 1;
}

/* Scroll Top */
.float-top {
    background: var(--primary-main);
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.25s ease;
}

.float-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.float-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(15, 121, 135, 0.4);
}

/* ==========================================================================
   RESPONSIVE — Mobile Adjustments
   ========================================================================== */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item {
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .stat-item:nth-child(2n) {
        border-right: none;
    }

    .stat-number {
        font-size: 2.25rem;
    }

    .qab-inner {
        padding: 0 8px;
        gap: 0;
    }

    .qab-item {
        padding: 0 14px;
        font-size: 0.78rem;
    }

    .topbar-igd-btn span {
        display: none;
    }

    .topbar-igd-btn {
        padding: 4px 10px;
    }

    .floating-buttons {
        bottom: 24px;
        right: 24px;
    }

    .float-btn {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* ==========================================================================
   JADWAL DOKTER SECTION
   ========================================================================== */
.schedule-section {
    padding: 100px 0 80px;
    background: var(--bg-main);
}

/* Filter Bar */
.schedule-filter {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin-bottom: 48px;
    box-shadow: var(--shadow-md);
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filter-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.filter-group label i {
    margin-right: 6px;
    color: var(--primary-main);
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill {
    padding: 6px 18px;
    border-radius: var(--radius-full);
    border: 1.5px solid #e2e8f0;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.pill:hover {
    border-color: var(--primary-main);
    color: var(--primary-main);
    background: rgba(15, 121, 135, 0.05);
}

.pill.active {
    background: var(--primary-main);
    border-color: var(--primary-main);
    color: #fff;
    box-shadow: 0 4px 12px rgba(15, 121, 135, 0.25);
}

/* Search Input */
.filter-search {
    position: relative;
    max-width: 360px;
}

.filter-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.filter-search input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-dark);
    background: var(--bg-main);
    outline: none;
    transition: var(--transition-fast);
}

.filter-search input:focus {
    border-color: var(--primary-main);
    box-shadow: 0 0 0 3px rgba(15, 121, 135, 0.1);
    background: #fff;
}

/* Doctor Grid */
.doctor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 40px;
}

.doctor-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f1f5f9;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.doctor-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(15, 121, 135, 0.15);
}

.doctor-card.hidden {
    display: none;
}

/* Doctor Avatar */
.doctor-avatar {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: white;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary-main), var(--primary-light));
}

.av2 {
    background: linear-gradient(135deg, #7C3AED, #A78BFA);
}

.av3 {
    background: linear-gradient(135deg, #059669, #34D399);
}

.av4 {
    background: linear-gradient(135deg, #DB2777, #F472B6);
}

.av5 {
    background: linear-gradient(135deg, #D97706, #FCD34D);
}

.av6 {
    background: linear-gradient(135deg, #1D4ED8, #60A5FA);
}

.doctor-status {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.doctor-status.available {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.doctor-status.off {
    background: rgba(148, 163, 184, 0.12);
    color: var(--text-muted);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

/* Doctor Info */
.doctor-info h4 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--secondary-main);
    line-height: 1.3;
}

.doctor-poli {
    font-size: 0.82rem;
    color: var(--primary-main);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
}

.doctor-schedule {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sched-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--bg-main);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
}

.sched-item .day {
    font-weight: 600;
    color: var(--secondary-main);
}

.sched-item .time {
    color: var(--text-muted);
    font-weight: 500;
}

/* Book Button */
.btn-book {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    border: 1.5px solid var(--primary-main);
    color: var(--primary-main);
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
    margin-top: auto;
    text-decoration: none;
}

.btn-book:hover {
    background: var(--primary-main);
    color: #fff;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(15, 121, 135, 0.25);
}

/* No Result */
.no-result {
    text-align: center;
    padding: 64px 0;
    color: var(--text-muted);
}

.no-result i {
    font-size: 2.5rem;
    margin-bottom: 16px;
    opacity: 0.4;
    display: block;
}

.no-result p {
    font-size: 1rem;
}

/* ==========================================================================
   INFO KAMAR SECTION
   ========================================================================== */
.room-section {
    padding: 100px 0 80px;
    background: var(--bg-surface);
}

.room-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.room-card {
    background: var(--bg-main);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid #f1f5f9;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(15, 121, 135, 0.15);
}

.room-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.room-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: white;
    flex-shrink: 0;
}

.room-icon.vip {
    background: linear-gradient(135deg, #F59E0B, #FCD34D);
}

.room-icon.kelas1 {
    background: linear-gradient(135deg, #3B82F6, #93C5FD);
}

.room-icon.kelas2 {
    background: linear-gradient(135deg, #8B5CF6, #C4B5FD);
}

.room-icon.kelas3 {
    background: linear-gradient(135deg, #10B981, #6EE7B7);
}

.room-icon.icu {
    background: linear-gradient(135deg, #EF4444, #FCA5A5);
}

.room-icon.nicu {
    background: linear-gradient(135deg, #EC4899, #F9A8D4);
}

.room-header h4 {
    font-size: 1.05rem;
    margin-bottom: 4px;
    color: var(--secondary-main);
}

.room-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Availability Progress Bar */
.room-availability {
    margin-bottom: 16px;
}

.avail-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 10px;
}

.avail-fill {
    height: 100%;
    width: 0;
    background: var(--color, #10B981);
    border-radius: 999px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.avail-fill.animated {
    width: var(--fill, 0%);
}

.avail-numbers {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.avail-free {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary-main);
}

.avail-free small {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 4px;
}

.avail-total {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Room Status Badge */
.room-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.status-available {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-limited {
    background: rgba(245, 158, 11, 0.1);
    color: #D97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-full {
    background: rgba(239, 68, 68, 0.1);
    color: #DC2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Room Note */
.room-note {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(15, 121, 135, 0.05);
    border: 1px solid rgba(15, 121, 135, 0.15);
    border-radius: var(--radius-md);
    padding: 20px 28px;
    margin-top: 8px;
}

.room-note>i {
    font-size: 1.5rem;
    color: var(--primary-main);
    flex-shrink: 0;
}

.room-note p {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.room-note p strong {
    color: var(--secondary-main);
}

/* Responsive */
@media (max-width: 1024px) {
    .doctor-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .room-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .doctor-grid {
        grid-template-columns: 1fr;
    }

    .room-grid {
        grid-template-columns: 1fr;
    }

    .room-note {
        flex-direction: column;
        text-align: center;
    }

    .schedule-filter {
        padding: 20px;
    }
}


/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.faq-section {
    padding: 100px 0;
    background: var(--bg-surface);
}

.faq-inner {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 80px;
    align-items: start;
}

.faq-left {
    position: sticky;
    top: 160px;
}

.faq-left .title {
    font-size: 2.25rem;
    margin-bottom: 16px;
}

.faq-left .description {
    font-size: 1rem;
}

/* FAQ List */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    background: var(--bg-main);
}

.faq-item.active {
    border-color: var(--primary-main);
    box-shadow: 0 4px 16px rgba(15, 121, 135, 0.1);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--secondary-main);
    transition: color var(--transition-fast);
}

.faq-item.active .faq-question {
    color: var(--primary-main);
}

.faq-icon {
    flex-shrink: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), color var(--transition-fast);
}

.faq-item.active .faq-icon {
    transform: rotate(-180deg);
    color: var(--primary-main);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.3s ease;
    padding: 0 24px;
}

.faq-item.active .faq-answer {
    max-height: 400px;
    padding: 0 24px 20px;
}

.faq-answer p {
    font-size: 0.92rem;
    line-height: 1.75;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .faq-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .faq-left {
        position: static;
    }
}

/* ==========================================================================
   GALLERY SECTION
   ========================================================================== */
.gallery-section {
    padding: 100px 0 80px;
    background: var(--bg-main);
}

.gallery-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 48px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-normal);
}

.gallery-item.hidden {
    display: none;
}

.gallery-item:hover {
    transform: translateY(-4px);
}

.gallery-img {
    position: relative;
    height: 220px;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-placeholder-icon {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.25);
    z-index: 1;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 2;
    backdrop-filter: blur(4px);
}

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

.gallery-overlay i {
    font-size: 1.5rem;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.gallery-overlay span {
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
}

.gallery-caption {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    margin-top: 10px;
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-img {
        height: 200px;
    }
}

/* ==========================================================================
   MITRA / PARTNER SECTION
   ========================================================================== */
.mitra-section {
    padding: 100px 0 80px;
    background: var(--bg-surface);
}

.mitra-label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mitra-label i {
    color: var(--primary-main);
}

.mitra-kategori {
    margin-bottom: 56px;
}


/* ── Marquee Auto Scroll ── */
.marquee-wrapper {
    overflow: hidden;
    position: relative;
    /* Fade edges */
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: marqueeScroll 28s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.mitra-logo-item {
    flex-shrink: 0;
}

.mitra-logo-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 160px;
    height: 90px;
    border-radius: var(--radius-md);
    border: 1.5px solid transparent;
    padding: 16px;
    cursor: default;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    background: var(--bg-main);
    box-shadow: var(--shadow-sm);
}

.mitra-logo-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.mitra-logo-box i {
    font-size: 1.5rem;
}

.mitra-logo-box span {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
}

/* Warna per mitra */
.mitra-logo-box.bpjs {
    color: #1B7D3B;
    border-color: rgba(27, 125, 59, 0.2);
}

.mitra-logo-box.bpjstk {
    color: #1B5BB5;
    border-color: rgba(27, 91, 181, 0.2);
}

.mitra-logo-box.jiwasraya {
    color: #C0392B;
    border-color: rgba(192, 57, 43, 0.2);
}

.mitra-logo-box.taspen {
    color: #2E4A8F;
    border-color: rgba(46, 74, 143, 0.2);
}

.mitra-logo-box.askes {
    color: #0F7987;
    border-color: rgba(15, 121, 135, 0.2);
}

.mitra-logo-box.prudential {
    color: #C0392B;
    border-color: rgba(192, 57, 43, 0.2);
}

.mitra-logo-box.allianz {
    color: #003781;
    border-color: rgba(0, 55, 129, 0.2);
}

.mitra-logo-box.admedika {
    color: #E67E22;
    border-color: rgba(230, 126, 34, 0.2);
}

/* ── Grid Instansi ── */
.mitra-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.mitra-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 12px;
    background: var(--bg-main);
    border-radius: var(--radius-md);
    border: 1.5px solid #f1f5f9;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    cursor: default;
    text-align: center;
}

.mitra-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(15, 121, 135, 0.2);
}

.mitra-grid-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
}

.gov1 {
    background: linear-gradient(135deg, #0F7987, #189FB0);
}

.gov2 {
    background: linear-gradient(135deg, #10B981, #34D399);
}

.gov3 {
    background: linear-gradient(135deg, #7C3AED, #A78BFA);
}

.gov4 {
    background: linear-gradient(135deg, #2563EB, #60A5FA);
}

.gov5 {
    background: linear-gradient(135deg, #EF4444, #FCA5A5);
}

.gov6 {
    background: linear-gradient(135deg, #F59E0B, #FCD34D);
}

.mitra-grid-item span {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--secondary-light);
    line-height: 1.2;
}

@media (max-width: 900px) {
    .mitra-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 560px) {
    .mitra-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mitra-logo-box {
        width: 130px;
        height: 80px;
    }
}

/* ==========================================================================
   ALUR PELAYANAN SECTION
   ========================================================================== */
.alur-section {
    padding: 100px 0;
    background: var(--bg-surface);
    position: relative;
}

.alur-tabs-container {
    max-width: 700px;
    margin: 0 auto 50px;
}

.alur-tabs {
    display: flex;
    justify-content: center;
    background: var(--bg-main);
    padding: 8px;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    border: 1.5px solid #e2e8f0;
}

.alur-tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 14px 24px;
    border-radius: 40px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.alur-tab-btn i {
    font-size: 1.1rem;
    transition: transform var(--transition-fast);
}

.alur-tab-btn:hover {
    color: var(--primary-main);
}

.alur-tab-btn.active {
    background: var(--primary-main);
    color: #fff;
    box-shadow: 0 4px 14px rgba(15, 121, 135, 0.3);
}

.alur-tab-btn.active i {
    transform: scale(1.1);
}

.alur-content-pane {
    display: none;
}

.alur-content-pane.active {
    display: block;
    animation: alurFadeInUp 0.5s ease forwards;
}

@keyframes alurFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Timeline Layout */
.alur-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 40px;
}

/* Timeline connector line */
.alur-timeline::before {
    content: '';
    position: absolute;
    top: 96px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: #e2e8f0;
    z-index: 1;
}

.alur-step-card {
    flex: 1;
    position: relative;
    z-index: 2;
    padding: 0 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.alur-step-badge {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary-main);
    background: rgba(15, 121, 135, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.alur-step-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 3px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--secondary-light);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.alur-step-card:hover .alur-step-icon-wrap {
    border-color: var(--primary-main);
    color: #fff;
    background: var(--primary-main);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(15, 121, 135, 0.25);
}

.alur-step-card h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-light);
    margin-bottom: 10px;
}

.alur-step-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 240px;
}

/* Responsive timeline */
@media (max-width: 900px) {
    .alur-timeline {
        flex-direction: column;
        gap: 30px;
    }

    .alur-timeline::before {
        display: none;
    }

    .alur-step-card {
        flex-direction: row;
        text-align: left;
        padding: 20px;
        background: var(--bg-main);
        border-radius: var(--radius-md);
        border: 1.5px solid #e2e8f0;
        align-items: flex-start;
        gap: 20px;
        box-shadow: var(--shadow-sm);
    }

    .alur-step-card:hover {
        border-color: var(--primary-main);
        transform: translateY(-3px);
    }

    .alur-step-icon-wrap {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .alur-step-info {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .alur-step-badge {
        margin-bottom: 8px;
    }

    .alur-step-card p {
        max-width: 100%;
    }
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */
[data-scroll] {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-scroll="fade-up"] {
    transform: translateY(40px);
}

[data-scroll="fade-down"] {
    transform: translateY(-40px);
}

[data-scroll="fade-left"] {
    transform: translateX(40px);
}

[data-scroll="fade-right"] {
    transform: translateX(-40px);
}

[data-scroll="zoom-in"] {
    transform: scale(0.9);
}

/* Visibility State */
[data-scroll].is-visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Delay modifiers */
[data-scroll-delay="1"] {
    transition-delay: 0.1s;
}

[data-scroll-delay="2"] {
    transition-delay: 0.2s;
}

[data-scroll-delay="3"] {
    transition-delay: 0.3s;
}

[data-scroll-delay="4"] {
    transition-delay: 0.4s;
}

[data-scroll-delay="5"] {
    transition-delay: 0.5s;
}

/* Turn off delay for mobile to prevent weird popping */
@media (max-width: 768px) {
    [data-scroll-delay] {
        transition-delay: 0s !important;
    }
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVENESS FIXES
   ========================================================================== */

/* Hamburger menu button styling */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.45rem;
    color: var(--secondary-main);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition-fast);
    outline: none;
}

.menu-toggle:hover {
    background: rgba(15, 121, 135, 0.08);
    color: var(--primary-main);
}

/* Dark backdrop overlay for drawer */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Hide the primary "Daftar Online" button in the standard header actions on mobile */
    .header-actions .btn-primary {
        display: none;
    }

    /* Turn .nav-menu into a slide-out menu drawer */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -320px;
        width: 300px;
        height: 100vh;
        background-color: var(--bg-surface);
        box-shadow: -10px 0 30px rgba(15, 23, 42, 0.15);
        z-index: 1000;
        padding: 90px 24px 40px;
        overflow-y: auto;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 8px;
    }

    .nav-menu ul li {
        width: 100%;
    }

    .nav-menu a {
        font-size: 1.05rem;
        padding: 12px 16px;
        border-radius: 8px;
        color: var(--secondary-main);
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        background: rgba(15, 121, 135, 0.08);
        color: var(--primary-main);
    }

    .nav-menu a::after {
        display: none !important;
        /* Disable underline effect on mobile */
    }

    /* Turn mega menu dropdown into nested accordion */
    .dropdown-menu {
        position: static;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        box-shadow: none;
        padding: 0 0 10px 16px;
        min-width: 100%;
        display: none;
        /* Controlled dynamically by JavaScript */
        flex-direction: column;
        gap: 8px;
        margin-top: 4px;
        background: transparent;
        border-left: 1.5px dashed rgba(15, 121, 135, 0.2);
    }

    .has-dropdown.active .dropdown-menu {
        display: flex;
    }

    .dropdown-column {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .dropdown-column h4 {
        font-size: 0.9rem;
        margin-top: 10px;
        margin-bottom: 4px;
        color: var(--primary-main);
        border-bottom: none;
        padding-bottom: 0;
    }

    .dropdown-column a {
        font-size: 0.9rem !important;
        padding: 6px 12px !important;
        width: 100%;
    }

    .has-dropdown a i {
        transition: transform var(--transition-fast);
    }

    .has-dropdown.active>a i {
        transform: rotate(-180deg);
    }

    /* Quick Access Bar */
    .quick-links {
        position: relative;
        bottom: 0;
        margin-top: 40px;
        left: 0;
        right: 0;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .top-bar-left {
        display: none !important;
    }

    .top-bar-inner {
        justify-content: center;
    }

    .hero-text h1 {
        font-size: 2.75rem;
    }

    .hero-text p {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

    .quick-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Grid Collapses for Tablet */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .alur-tabs {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .logo {
        flex-wrap: wrap;
        max-width: 70%;
    }

    .logo img {
        height: 38px !important;
        margin-right: 6px !important;
    }

    .logo-text {
        display: flex;
        flex-direction: column;
    }

    .brand-name {
        font-size: 0.95rem;
        white-space: normal;
    }

    .brand-tag {
        font-size: 0.65rem;
    }

    .hero-text h1 {
        font-size: 2.15rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .quick-links {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 20px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .section-header .title {
        font-size: 1.75rem;
    }

    /* Grid Collapses for Mobile */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .features-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .alur-step-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .alur-step-card .alur-step-icon-wrap {
        margin-bottom: 12px;
    }
}

/* MODAL STYLES */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border: 1px solid #e2e8f0;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    animation: fadeUp 0.3s ease-out;
}

.close {
    color: #94a3b8;
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.close:hover,
.close:focus {
    color: #ef4444;
    text-decoration: none;
}

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