:root {
    --primary-blue: #1B5282;
    --primary-blue-dark: #123859;
    --gray-900: #1a202c;
    --gray-800: #2d3748;
    --gray-700: #4a5568;
    --gray-400: #cbd5e0;
    --gray-100: #f7fafc;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    --gradient-overlay: linear-gradient(to right, rgba(27, 82, 130, 0.9), rgba(18, 56, 89, 0.7));
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

@media (max-width: 1200px) {
    html {
        font-size: 15px;
    }
}

@media (max-width: 992px) {
    html {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 13px;
    }
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--gray-800);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-padding {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--gray-100);
}

h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

p {
    margin-bottom: 1rem;
    color: var(--gray-700);
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #2c7bb6, #1B5282);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(27, 82, 130, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(27, 82, 130, 0.6);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

/* Typography & Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

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

.text-white {
    color: var(--white);
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

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

.mt-3 {
    margin-top: 1.5rem;
}

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

.mt-5 {
    margin-top: 3rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--gray-900);
}

.section-subtitle {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Kemitraan Marquee */
.partners-marquee-container {
    padding: 2rem 0;
    background: white;
}

.marquee-wrapper {
    display: flex;
    overflow: hidden;
    width: 100%;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding-right: 4rem;
    /* match the gap */
    width: max-content;
    animation: marquee 30s linear infinite;
    flex-shrink: 0;
}

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

.marquee-content img {
    height: 60px;
    width: auto;
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.3s ease;
    cursor: pointer;
}

.marquee-content img:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

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

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

/* Map Layout */
.map-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 992px) {
    .map-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* 8-person expert grid — 4 columns on desktop */
.team-grid-8 {
    grid-template-columns: repeat(4, 1fr);
}

.team-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14);
}

.team-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-bottom: 3px solid var(--primary-blue);
}

.team-info {
    padding: 1.2rem 1rem;
}

.team-info h3 {
    margin-bottom: 0.2rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.4;
}

/* Management group photo gallery */
.management-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.mgmt-photo {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
    aspect-ratio: 4 / 3;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mgmt-photo:hover {
    transform: scale(1.02);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.mgmt-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-info p {
    color: var(--primary-blue);
    font-weight: 500;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled,
.header-solid {
    padding: 0.5rem 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

/* Dark blue header for secondary pages (Tentang Kami, Layanan, Portofolio) */
.header-dark {
    background: var(--gradient-primary) !important;
    box-shadow: none !important;
}

/* When header-dark is scrolled, keep blue background (don't turn white) */
.header-dark.scrolled {
    background: var(--primary-blue-dark) !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3) !important;
    padding: 0.5rem 0;
}

.header-dark .nav-link {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.header-dark .nav-link.active,
.header-dark .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

.header-dark .mobile-toggle {
    color: #ffffff !important;
}

.header-dark.scrolled .nav-link {
    color: #ffffff !important;
}

.header-dark.scrolled .nav-link.active,
.header-dark.scrolled .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

.header.scrolled .nav-link {
    color: var(--gray-700) !important;
}

/* Ensure the contact button stays white even when scrolled */
.header .nav-link.btn-contact {
    color: #ffffff !important;
    background-color: var(--primary-blue) !important;
    border: none !important;
    padding: 0.8rem 1.5rem !important;
    border-radius: 50px !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

.header-dark .nav-link.btn-contact {
    background-color: var(--primary-blue) !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
}

.header-dark .nav-link.btn-contact:hover {
    background-color: #ffffff !important;
    color: var(--primary-blue) !important;
}

.header.scrolled .nav-link.active,
.header.scrolled .nav-link:hover {
    color: var(--primary-blue) !important;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: height 0.3s ease;
}

.header.scrolled .navbar {
    height: 60px;
}

.logo img {
    height: 45px;
    transition: height 0.3s ease;
}

.header.scrolled .logo img {
    height: 35px;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--white) !important;
    position: relative;
    padding: 0.5rem 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-blue);
    transition: width 0.3s ease;
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
}

.btn-contact {
    background: var(--primary-blue);
    color: #ffffff !important;
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    text-shadow: none;
}

.btn-contact::after {
    display: none;
}

.btn-contact:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-2px);
    color: #ffffff !important;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-blue);
    cursor: pointer;
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url('https://images.unsplash.com/photo-1541888086925-0c13d4b6797a?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 800px;
    margin-top: 80px;
}

.hero-title {
    color: var(--white);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
}

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

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--gray-100);
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

/* Stats */
.stats {
    background-color: var(--white);
    padding: 3rem 0;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 10;
    margin-top: -50px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.stat-number::after {
    content: '+';
    color: #f6ad55;
}

.stat-label {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* About & Services */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 span {
    color: var(--primary-blue);
}

.about-features {
    margin-top: 2rem;
}

.about-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

.about-features i {
    color: var(--primary-blue);
    font-size: 1.25rem;
}

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

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
    text-align: center;
}

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

.service-icon {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 5rem 0 2rem;
}

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

.footer-logo {
    height: 50px;
    background: var(--white);
    padding: 0.5rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
}

.footer-contact h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-tagline {
    font-size: 1.15rem;
    font-weight: 700;
    font-style: italic;
    background: linear-gradient(135deg, #f6d365, #fda085);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    line-height: 1.6;
    border-left: 3px solid #f6d365;
    padding-left: 1rem;
}

.footer-contact ul li {
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
}

.footer-contact i {
    color: var(--primary-blue);
    margin-top: 4px;
}

/* WhatsApp */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.floating-wa:hover {
    transform: scale(1.1);
    color: white;
}

/* Image Modal / Lightbox */
.image-modal {
    visibility: hidden;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.image-modal.show {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.image-modal .modal-content {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: transform 0.3s ease;
    object-fit: contain;
}

.image-modal.show .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #f1f1f1;
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 2001;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary-blue);
    text-decoration: none;
    cursor: pointer;
}

/* Mobile Menu */
@media (max-width: 768px) {
    .navbar {
        padding: 0;
    }

    .nav-list {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        transition: left 0.3s ease;
        z-index: 1001;
        /* Ensure it stays above everything */
    }

    .nav-list .nav-link {
        color: var(--gray-800) !important;
        text-shadow: none;
        font-size: 1.5rem;
        margin: 1rem 0;
    }

    .nav-list.active {
        left: 0;
    }

    .mobile-toggle {
        display: block;
        position: relative;
        z-index: 1002;
        color: var(--white);
        /* Ensure toggle is always on top */
    }

    .header.scrolled .mobile-toggle {
        color: var(--primary-blue);
    }

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

    .hero-cta {
        flex-direction: column;
    }
}

/* Carousel Base */
.hero-carousel-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.carousel-container {
    display: flex;
    width: 300%;
    /* Important: 100% per slide * 3 slides */
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    width: 100%;
    /* Important: 100% of the viewport */
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

/* Slide Content Animation */
.carousel-slide .hero-content {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
    transition-delay: 0.3s;
    /* delay after slide transitions */
}

.carousel-slide.active .hero-content {
    opacity: 1;
    transform: translateY(0);
}

/* Nav Buttons & Dots */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 10;
    pointer-events: none;
}

.carousel-btn {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.carousel-btn:hover {
    background: var(--primary-blue);
    transform: scale(1.1);
}

.carousel-dots {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #f6ad55;
    width: 24px;
    border-radius: 6px;
}

@media (max-width: 768px) {
    .carousel-nav {
        display: none;
    }

    .carousel-dots {
        bottom: 30px;
    }
}

/* Page Headers (Tentang Kami, Layanan, Portofolio) */
.page-header {
    background: var(--gradient-primary) !important;
    padding: 0 !important;
    padding-top: 80px !important;
    /* Tepat setinggi navbar */
    color: white !important;
    text-align: center !important;
    position: relative !important;
    margin-top: 0 !important;
}

.page-header .container {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.page-header h1 {
    color: white !important;
    margin: 0 0 1rem 0 !important;
    position: relative !important;
    z-index: 2 !important;
    font-size: clamp(2rem, 4vw, 3rem) !important;
    font-weight: 700 !important;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.content-section {
    padding: 4rem 0;
}

/* Specific Layouts relocated from internal styles */
.vision-mission {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.vision-mission .card {
    background: var(--white);
    padding: 3rem 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    height: 100%;
}

.vision-mission .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.vision-mission .card i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(27, 82, 130, 0.08);
    border-radius: 50%;
}

.vision-mission .card h3 {
    font-size: 1.8rem;
    color: var(--gray-900);
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.vision-mission .card p {
    font-size: 1.05rem;
    color: var(--gray-700);
    line-height: 1.7;
}

.vision-mission .card ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1.2rem;
}

.vision-mission .card ul li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 1rem;
    color: var(--gray-700);
    font-size: 1.05rem;
    line-height: 1.6;
}

.vision-mission .card ul li::before {
    content: '\f058';
    /* solid check circle */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--primary-blue);
    font-size: 1.1rem;
}

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

/* Global Contact Button Override - ensure white text always */
.btn-contact,
a.btn-contact,
.nav-link.btn-contact,
.header .btn-contact,
.header.scrolled .btn-contact {
    color: #ffffff !important;
    background: var(--primary-blue) !important;
    text-shadow: none !important;
}

.header.scrolled .btn-contact:hover,
.nav-list .btn-contact:hover {
    background: var(--primary-blue-dark) !important;
    border-color: var(--primary-blue-dark) !important;
}

@media (max-width: 768px) {
    .vision-mission {
        grid-template-columns: 1fr;
    }

    .page-header {
        padding: 120px 0 60px;
    }

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

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

/* Location Grid & Cards */
.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3.5rem;
}

.location-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.location-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(27, 82, 130, 0.15);
}

.location-img-wrap {
    background: linear-gradient(135deg, #f8fafc, #edf2f7);
    padding: 2.5rem;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Subtle pattern for the map area */
.location-img-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(var(--gray-400) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.2;
    z-index: 1;
}

.location-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 2;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.15));
}

.location-card:hover .location-img-wrap img {
    transform: scale(1.08);
}

.location-info {
    padding: 1.8rem 1.5rem 2.2rem;
    text-align: center;
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    position: relative;
}

.location-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: var(--primary-blue);
    border-radius: 0 0 4px 4px;
}

.location-icon {
    font-size: 1.25rem;
    color: var(--primary-blue);
    background: #e8f0fe;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-top: -42px;
    /* Pull icon up into the image area */
    position: relative;
    z-index: 3;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    border: 4px solid var(--white);
}

.location-info h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
    letter-spacing: -0.01em;
}

/* IUJP Certification Card */
.iujp-card {
    background: linear-gradient(135deg, var(--white), #f8fafc);
    border: 2px solid var(--primary-blue);
    border-radius: 16px;
    padding: 3rem 2rem;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.iujp-card::before {
    content: '\f0a3';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 150px;
    color: var(--primary-blue);
    opacity: 0.05;
    z-index: 0;
}

.iujp-card-content {
    position: relative;
    z-index: 1;
}

.iujp-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.iujp-title {
    font-size: 1.5rem;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.iujp-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-blue);
    letter-spacing: 2px;
    margin: 1.5rem 0;
    background: #e8f0fe;
    padding: 1rem;
    border-radius: 8px;
    display: inline-block;
    word-break: break-all;
}

@media (max-width: 480px) {
    .iujp-number {
        font-size: 1.2rem;
        padding: 0.75rem;
        letter-spacing: 1px;
    }
    .iujp-title {
        font-size: 1.25rem;
    }
    .iujp-card {
        padding: 2rem 1rem;
    }
}

.iujp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #48bb78;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Visi & Misi Layout */
.visi-misi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .visi-misi-grid {
        grid-template-columns: 1fr;
    }
}

.visi-misi-card {
    background: var(--white);
    padding: 3rem 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border-top: 5px solid var(--primary-blue);
    text-align: left;
    height: 100%;
}

.visi-misi-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1rem;
    background: #e8f0fe;
    border-radius: 12px;
}

.visi-misi-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.visi-misi-card p,
.visi-misi-list li {
    font-size: 1.1rem;
    color: var(--gray-700);
    line-height: 1.7;
}

.visi-misi-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.visi-misi-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.visi-misi-list li i {
    color: var(--primary-blue);
    margin-top: 5px;
}

/* Intro section */
.layanan-intro {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3.5rem;
}

.layanan-intro h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.layanan-intro p {
    font-size: 1.05rem;
    color: var(--gray-700);
}

/* Category badge */
.service-category-badge {
    display: inline-block;
    background: var(--primary-blue);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

/* Services category grid — 3 cols desktop, 2 tablet, 1 mobile */
.services-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

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

@media (max-width: 600px) {
    .services-cat-grid {
        grid-template-columns: 1fr;
    }
}

/* Service card enhanced */
.svc-card {
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(27, 82, 130, 0.08);
    padding: 2rem 1.75rem 1.75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border-top: 4px solid var(--primary-blue);
}

.svc-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(27, 82, 130, 0.18);
}

.svc-icon-wrap {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-blue), #2c7bb6);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.svc-icon-wrap i {
    font-size: 1.5rem;
    color: #fff;
}

.svc-card h3 {
    font-size: 1.1rem;
    color: var(--gray-900);
    margin-bottom: 0.85rem;
}

.svc-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.svc-card ul li {
    position: relative;
    padding-left: 1.3rem;
    font-size: 0.9rem;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.svc-card ul li::before {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.6rem;
    color: var(--primary-blue);
    position: absolute;
    left: 0;
    top: 0.35rem;
}

/* Why choose us banner */
.why-us-section {
    background: linear-gradient(135deg, #0d3d6e 0%, #1B5282 50%, #2c7bb6 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.why-us-section::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
}

.why-us-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -40px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
}

.why-us-inner {
    position: relative;
    z-index: 2;
    text-align: center;
}

.why-us-inner h2 {
    color: #fff;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    margin-bottom: 0.75rem;
}

.why-us-inner>p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto 3rem;
}

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

.why-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 1.75rem 1.25rem;
    backdrop-filter: blur(6px);
    transition: background 0.3s ease, transform 0.3s ease;
}

.why-item:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-5px);
}

.why-item i {
    font-size: 1.75rem;
    color: #f6ad55;
    margin-bottom: 1rem;
    display: block;
}

.why-item p {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.4;
}

/* CTA */
.cta-section {
    background: var(--gray-100);
    padding: 5rem 0;
    text-align: center;
}

.cta-section h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.cta-section p {
    color: var(--gray-700);
    max-width: 540px;
    margin: 0 auto 2rem;
}

/* =============================================
   LOGO MITRA BERJALAN (MARQUEE MITRA 30)
   ============================================= */
.mitra-marquee-section {
    padding: 3rem 0 4rem;
    background: linear-gradient(135deg, #f0f6ff 0%, #e8f0fb 100%);
    border-top: 3px solid rgba(27, 82, 130, 0.12);
    border-bottom: 3px solid rgba(27, 82, 130, 0.12);
}

.mitra-marquee-section .container {
    text-align: center;
    margin-bottom: 2rem;
}

.mitra-marquee-section h2 {
    font-size: 2rem;
    color: var(--gray-900);
    margin-bottom: 0.4rem;
}

.mitra-marquee-section h2 span {
    color: var(--primary-blue);
}

.mitra-marquee-section p {
    color: var(--gray-700);
    font-size: 1rem;
}

.mitra-marquee-wrapper {
    display: flex;
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.mitra-marquee-track {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding-right: 2.5rem;
    width: max-content;
    animation: mitraScroll 55s linear infinite;
    flex-shrink: 0;
}

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

.mitra-marquee-track img {
    height: 90px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: grayscale(80%) opacity(0.72);
    transition: all 0.35s ease;
    cursor: pointer;
    border-radius: 8px;
    background: white;
    padding: 8px 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.mitra-marquee-track img:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 24px rgba(27, 82, 130, 0.22);
}

@keyframes mitraScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =============================================
   SLIDER DOKUMENTASI LAPANGAN
   ============================================= */
.dokumentasi-section {
    padding: 5rem 0;
    background: var(--white);
}

.dokumentasi-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.dokumentasi-section .section-header h2 {
    margin-bottom: 1rem;
}

.dokumentasi-section .section-header h2 span {
    color: var(--primary-blue);
}

.dokumentasi-section .section-header p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.05rem;
    color: var(--gray-700);
    line-height: 1.8;
}

.doc-slider-outer {
    position: relative;
}

.doc-slider-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.doc-slider-track {
    display: flex;
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: grab;
    user-select: none;
}

.doc-slider-track:active {
    cursor: grabbing;
}

.doc-slide {
    min-width: 33.333%;
    padding: 0 0.6rem;
    flex-shrink: 0;
    box-sizing: border-box;
}

.doc-slide img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.doc-slide img:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.doc-slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.2rem;
}

.doc-slider-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--primary-blue);
    background: transparent;
    color: var(--primary-blue);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.doc-slider-btn:hover {
    background: var(--primary-blue);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(27, 82, 130, 0.35);
}

.doc-slider-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.doc-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-400);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.doc-dot.active {
    background: var(--primary-blue);
    width: 30px;
    border-radius: 5px;
}

@media (max-width: 900px) {
    .doc-slide {
        min-width: 50%;
    }
}

@media (max-width: 600px) {
    .doc-slide {
        min-width: 85%;
    }

    .doc-slide img {
        height: 210px;
    }

    .mitra-marquee-track img {
        height: 70px;
        padding: 6px 10px;
    }
}

@media (max-width: 400px) {
    .doc-slide {
        min-width: 100%;
    }
}