:root {
    --primary: #FEEF06;
    --primary-dark: #dcb300;
    --text-dark: #1a1a1a;
    --text-gray: #6b7280;
    --border: #e5e7eb;
    --bg-light: #f9fafb;
    --gap: 80px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: rgb(255, 255, 255);
}

/* NAVBAR */

.navbar {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1.05rem;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--primary-dark) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #555 !important;
    margin-left: 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-dark) !important;
}


/* POP UP */
/* UKURAN */
#authModal .modal-dialog {
    max-width: 380px;
}

#authModal .modal-content {
    padding: 16px !important;
    border-radius: 12px;
}

#authModal .modal-title {
    font-size: 1rem;
}

#authModal .form-label {
    font-size: 0.75rem;
    margin-bottom: 4px;
}

#authModal input.form-control {
    padding: 6px 10px;
    font-size: 0.8rem;
    border-radius: 8px;
}

#authModal button {
    padding: 6px 0;
    font-size: 0.85rem;
    border-radius: 8px;
}

#authModal #switchText {
    font-size: 0.75rem;
}

#authModal #switchText a {
    font-size: 0.75rem;
}


/* HERO */

span {
    color: var(--primary-dark);
}

.hero-section {
    background-image: url('<?= base_url("assets/images/vietnam-4748104_1920.jpg") ?>'); /* Note: Update path in index.php or use inline style there if PHP not parsed here. Using relative path for safety if this is pure CSS */
    background-image: url('../../images/vietnam-4748104_1920.jpg'); /* Relative to css folder */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.icon-service {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #FFF9C4;
    padding: 8px;
    object-fit: contain;
}

.service-img {
    width: 80%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.display-4 {
    font-size: 80px;
}

.service-item:hover {
    background-color: #f8f9fa;
    transition: background-color 0.3s ease;
}

/* ACCORDION CONTENT */
.accordion-body h5 {
    color: #212529;
    font-size: 1rem;
}

.accordion-body p {
    font-size: 0.95rem;
}

.accordion-button {
    font-size: 1.1rem;
    color: #2C2C2C;
}

.accordion-button:not(.collapsed) {
    color: #8D6E63;
    background-color: #FFF9C4;
    box-shadow: none;
}

.accordion-body {
    font-size: 0.95rem;
    color: #555;
}

/* TENTANG */
.about-section {
    background: #ffffff;
}

/* Logo */
.logo-container {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
}

.about-logo {
    max-width: 180px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.12));
}

.founder-section {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.founder-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.founder-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid var(--border);
    object-fit: cover;
}

.founder-info h6 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.founder-title {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.founder-quote {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-gray);
    font-style: italic;
    padding-left: 1rem;
    border-left: 2px solid var(--border);
    margin: 0;
}

/* TYPOGRAPH */
.title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.brand {
    color: var(--primary);
}

.lead-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
}

.section-subtitle {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

/* VISI MISI */
.vm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.vm-item {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

.vm-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.vm-item p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-gray);
}

/* TIMELINE */
.timeline-section {
    margin-bottom: 3rem;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.375rem;
    top: 0.25rem;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--border);
}

.timeline-year {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.timeline-content h6 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-gray);
}

/* CONTAINER UTAMA */
.container.py-5 {
    max-width: 960px;
}

/* JUDUL UTAMA */
h2.text-center {
    font-family: 'Abhaya Libre', serif;
    font-weight: 800;
    font-size: 2.5rem;
    color: var(--primary-dark);
}

/* SUB JUDUL */
h3.fw-semibold {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.75rem;
    color: #1b5e20; /* Keep green or change? Changing to dark yellow equivalent */
    color: #8D6E63;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.25rem;
    margin-bottom: 1rem;
}

/* PARGRAF DESK */
p.text-muted {
    font-size: 1rem;
    color: #555;
}

/* LIST */
.list-group-item {
    border: none;
    padding-left: 0;
    padding-bottom: 0.5rem;
    font-size: 1rem;
    color: #333;
}

/* LIST BULLET */
.list-group-flush li::before {
    content: "✓ ";
    color: var(--primary-dark);
    font-weight: bold;
}

.card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: default;
    position: relative;
    /* Reset from previous CSS */
    background-color: #fff;
    color: inherit;
}

/* IMAGE BACKGROUND */
.card-bg-motor {
    background-image: url('../../images/grabike.jpeg');
    background-size: cover;
    background-position: center;
}

.card-bg-mobil {
    background-image: url('../../images/DAX-Banner-EDM1-GrabHitch.jpg');
    background-size: cover;
    background-position: center;
}

.card-bg-tenant {
    background-image: url('../../images/store.png'); /* Adjusted */
    background-color: #333;
    background-size: cover;
    background-position: center;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
}

.card.stat-card h3,
.card.stat-card p {
    position: relative;
    z-index: 1;
    font-family: 'Poppins', sans-serif;
    color: white;
    margin-bottom: 0;
}

.card.stat-card h3 {
    font-weight: 400;
    font-size: 1.5rem;
}

.card.stat-card p {
    font-size: 1.2rem;
}

.card.stat-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 400px;
}

.mt-8 {
    margin-top: 100px;
}

#pusatBantuan .card {
    transition: .3s ease;
}

#pusatBantuan .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* ITEM CARD CAROUSEL */
.item {
    position: relative;
    border-radius: 15px;
    transition: 0.3s ease;
}

/* CARD SCROLL CAROUSEL - NEWS */
.card-news {
    padding: 20px;
    border-radius: inherit;
    color: white;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.card-news::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.15));
    z-index: 0;
}

.card-news h3,
.card-news p {
    position: relative;
    z-index: 1;
}

.card-news h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
}

.card-news p {
    margin: 0;
    font-size: 14px;
    line-height: 1.3;
}


/* SLIDER CAROUSEL */

.slider {
    width: 100%;
    max-width: 1300px;
    margin: 100px auto 0;
    height: auto;
    padding: 0 20px 30px;
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}

.slider .list {
    display: flex;
    gap: var(--gap, 40px);
    width: max-content;
    animation: scroll 20s linear infinite;
}

.slider:hover .list {
    animation-play-state: paused;
}

/* ITEM */
.slider .item {
    width: 350px;
    height: 210px;
    flex-shrink: 0;
}

/* ANIMASI SEAMLESS LOOP */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-1 * (350px + var(--gap, 40px)) * 4)); /* 4 original items */
    }
}


/* FOOTER */

footer ul li {
    margin-bottom: 6px;
    cursor: pointer;
    transition: 0.2s;
}

footer ul li:hover {
    color: var(--primary-dark);
}

footer {
    margin-top: 100px;
}

/* ========================================
   MEDIA QUERIES - RESPONSIVE DESIGN
   ======================================== */

/* Tablet Landscape & Desktop Kecil (992px - 1199px) */
@media (max-width: 1199px) {
    .slider {
        max-width: 1000px;
    }
    
    .display-4 {
        font-size: 65px;
    }
    
    :root {
        --gap: 60px;
    }
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    /* Navbar - Center Brand on Mobile */
    .navbar > .container,
    .navbar > .container-fluid {
        position: relative;
    }
    
    .navbar-brand {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin: 0 !important;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 70vh;
    }
    
    .display-4 {
        font-size: 50px;
    }
    
    /* Service Image */
    .service-img {
        width: 100%;
        height: 250px;
        margin-bottom: 1.5rem;
    }
    
    /* About Section */
    .title {
        font-size: 1.875rem;
    }
    
    h2.section-title {
        font-size: 2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .slider .item {
        width: 280px;
        height: 180px;
    }
    
    .accordion-body {
        padding: 1rem;
    }
}
