/* ==================== */
/* 1. Global Variables */
/* ==================== */
:root {
    --black: #2D2D2D;
    --red: #D22B2B;
    --blue: #1A2B5F;
    --yellow: #FFC72C;
    --white: #FFFFFF;
    --off-white: #F8F8F8;
    --gray: #6B6B6B;
    --bold-blue: #0F1F4B;
    --orange: #FFA500;
    --green: #28A745;
    --primary-font: 'Arial', sans-serif;
}

/* ==================== */
/* 2. Base Styles */
/* ==================== */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    background: var(--off-white);
    color: var(--black);
    /*padding-bottom: 70px;*/
}

section {
    padding: 4rem 2rem;
}

/* ==================== */
/* 3. Header & Navigation */
/* ==================== */

.header {
    background: var(--white);
    padding: 1rem 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    border-bottom: 3px solid var(--yellow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.logo {
    height: 50px;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.1));
}

/* ============================= */
/* Active Menu Highlight (Yellow) */
/* ============================= */
.nav {
    margin-left: auto;
    margin-right: 2rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav a {
    color: var(--black);
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
    padding: 0.5rem 1rem;
}

.nav a.active,
.nav a:focus,
.nav a:visited.active {
    background-color: var(--yellow);
    color: var(--black);
    /* biar kontras dengan kuning */
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover tetap rapi */
.nav a:hover {
    background-color: var(--yellow);
    color: var(--black);
}

.nav-link.active {
    background-color: var(--yellow);
    color: var(--dark-blue);
    /* atau sesuaikan */
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ==================== */
/* 4. Home Section */
/* ==================== */

#home {
    display: flex;
    flex-direction: column;
    min-height: auto !important;
    gap: 1rem;
    padding: 6rem 0 2rem;
    background: var(--off-white);
    color: var(--black);
}

/* Promotions Slider */
.promotions-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin: 0.5rem 0 1rem;
    border-radius: 12px;
    height: 500px;
}

.slides-container {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
    /* Use container height */
}

.slide {
    min-width: 100%;
    position: relative;
    height: 100%;
}

.slide-content {
    position: relative;
    height: 100%;
}

.slide-image {
    height: 100%;
    width: 100%;
}

.slide-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 30%, transparent);
    color: white;
    padding: 2rem;
    text-align: left;
}

.slide h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--yellow);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slide p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 600px;
    line-height: 1.5;
}

.slide-button {
    background: var(--yellow);
    color: var(--black);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.slide-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: 0.3s ease;
}

.slider-dot.active {
    background: var(--yellow);
    transform: scale(1.2);
}

.slider-arrow {
    background: rgba(0, 0, 0, 0.3) !important;
    font-size: 1.2rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    color: white !important;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 1rem !important;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background: rgba(0, 0, 0, 0.5) !important;
}

.slider-arrow.prev {
    left: 20px;
}

.slider-arrow.next {
    right: 20px;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    margin: auto;
}

.thumbnail-wrapper {
    transition: transform 0.3s ease;
}

/* Penyesuaian Responsif untuk Mobile */
@media (max-width: 768px) {
    .promotions-slider {
        height: 350px;
        /* Sedikit lebih pendek di mobile */
    }

    .slide-text {
        padding: 1.5rem 1rem;
        text-align: center;
    }

    .slide h2 {
        font-size: 1.8rem;
    }

    .slide p {
        font-size: 1rem;
    }
}

/*===========*/
/* Tracking */
/*==========*/
.action-section {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    order: 3;
    width: 90%;
    margin: -1rem auto 0;
    padding: 1rem;
}

.tracking-box {
    background: var(--white);
    padding: 8px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    border: 2px solid var(--blue);
    transition: 0.3s ease;
    max-width: 500px;
    width: 100%;
}

.tracking-input {
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 50px;
    width: 100%;
    outline: none;
}

.tracking-button {
    background: linear-gradient(145deg, var(--red) 0%, #B22222 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.tracking-button:hover {
    background: linear-gradient(145deg, #B22222 0%, var(--red) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(210, 43, 43, 0.3);
}


.rates-button {
    background: linear-gradient(45deg, var(--yellow), #FFD700);
    color: var(--black);
    border: none;
    padding: 12px 40px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.rates-form {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    max-width: 700px;
}

.rates-inputs-group {
    display: flex;
    gap: 1rem;
    flex-grow: 1;
}

.form-field-wrapper {
    flex-grow: 1;
    /* Biarkan setiap input mengambil ruang yang sama */
}

.country-select,
.datalist-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
}

/* Menyesuaikan tombol agar lebih terpisah dari input */
#calculateRatesBtn {
    padding: 0.75rem 1.5rem !important;
    /* Overwrite inline style for consistency */
}

.rates-form.visible {
    display: flex;
    animation: slideDown 0.3s ease;
}

.rates-container {
    position: relative;
}

.country-select-wrapper {
    position: relative;
    flex-grow: 0;
    flex-shrink: 1;
}

.country-select-wrapper::after {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    pointer-events: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tracking-preview {
    display: none;
    max-width: 800px;
    margin: 2rem auto;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.3s ease;
    order: 4;
}

.tracking-preview.visible {
    display: block;
    /* Show when visible */
    animation: slideDown 0.3s ease forwards;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    margin: 1.5rem 0;
    position: relative;
}

.status-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.status-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--off-white);
    margin-bottom: 8px;
}

.status-line {
    position: absolute;
    top: 15px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: var(--off-white);
}

.progress-line {
    height: 100%;
    background: var(--yellow);
    transition: 0.5s ease;
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Advanced Tracking Button */
.advanced-tracking-btn {
    background: transparent;
    color: var(--blue);
    border: none;
    padding: 0.5rem 1rem;
    margin-top: 1rem;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: 0.3s ease;
}

.advanced-tracking-btn:hover {
    color: var(--red);
}

.advanced-tracking-btn i {
    transition: transform 0.3s ease;
}

/* Detailed Status (Hidden by Default) */
.detailed-status {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    margin-top: 0;
    background: rgba(26, 43, 95, 0.05);
    border-radius: 8px;
}

.detailed-status.active {
    max-height: 500px;
    /* Adjust based on content */
    margin-top: 1rem;
    padding: 1rem;
}

/* Status Timeline */
.status-timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 15px;
}

/* Styling for the scrollbar */
.status-timeline::-webkit-scrollbar {
    width: 8px;
}

.status-timeline::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.status-timeline::-webkit-scrollbar-thumb {
    background-color: var(--blue);
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}

.status-timeline li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.status-timeline li:last-child {
    border-bottom: none;
}

.status-timeline i {
    font-size: 0.6rem;
    margin-top: 0.4rem;
}

/* CSS Tambahan untuk konten yang dibuat oleh JS */
.status-timeline strong {
    display: block;
    font-size: 16px;
    color: var(--bold-blue);
}

.status-timeline p {
    font-size: 14px;
    color: var(--gray);
    margin: 0;
}

.close-tracking-results {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--gray);
    z-index: 1;
}

.close-tracking-results:hover {
    color: var(--red);
}

/* ==================== */
/* Shipping Rates Comparison */
/* ==================== */
.rates-results {
    display: none;
    position: absolute;
    top: 130%;
    /* posisi vertikal di bawah tombol Lacak & Tarif */
    left: -125%;
    /* posisikan di tengah horizontal */
    transform: translateX(-50%, -20%);
    z-index: 10;
    margin-top: 10px;
    width: 650px;
    max-width: 1000px;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: all 0.35s ease;
    pointer-events: none;
    box-sizing: border-box;
    text-align: center;
}

.rates-results.visible {
    display: block;
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: all;
}

.rates-route {
    color: var(--blue);
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.services-comparison {
    display: grid;
    gap: 1rem;
    width: 100%;
    justify-content: center;
    align-items: stretch;
    box-sizing: border-box;
}

.service-rate-card {
    flex: 0 0 calc(31% - 1.5rem);
    min-width: 200px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 1rem;
    transition: 0.3s ease;
}

.service-rate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.service-rate-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.rate-service-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.service-tag {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: bold;
    margin-left: auto;
}

.air-tag {
    background: var(--yellow);
    color: var(--black);
}

.land-tag {
    background: var(--blue);
    color: white;
}

.sea-tag {
    background: var(--red);
    color: white;
}

.rate-details {
    margin: 1.5rem 0;
}

.service-rate-header h4 {
    font-size: 1rem;
}

.rate-details p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
    color: var(--gray);
    font-size: 0.85rem;
}

.rate-details i {
    width: 20px;
    color: var(--blue);
}

.select-rate-btn {
    width: 100%;
    background: var(--blue);
    color: white;
    border: none;
    padding: 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
    font-size: 0.9rem;
}

.select-rate-btn:hover {
    background: var(--red);
}
#ratesChevron {
    transition: transform 0.3s ease;
    margin-left: 5px;
}

.rates-button.active #ratesChevron {
    transform: rotate(180deg);
}

.close-rates-results {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--gray);
}

.close-rates-results:hover {
    color: var(--red);
}

@media (max-width: 600px) {
    .rates-container {
        position: relative;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .rates-results {
        top: 130%;
        left: 50%;
        transform: translateX(-50%);
        width: 80%;
        /* sekitar lebar area tombol Lacak & Tarif */
        max-width: 800px;
        padding: 1.5rem;
        border-radius: 12px;
    }

    .rates-form {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .country-select-wrapper,
    .datalist-wrapper {
        width: 100%;
    }

    .tracking-button {
        width: 100%;
    }
}

@media (max-width: 1024px) {
    .rates-container {
        position: relative;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .rates-results {
        top: 130%;
        left: 50%;
        transform: translateX(-50%);
        width: 80%;
        /* sekitar lebar area tombol Lacak & Tarif */
        max-width: 800px;
        padding: 1.5rem;
        border-radius: 12px;
    }

    .rates-form {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .country-select-wrapper,
    .datalist-wrapper {
        width: 100%;
    }

    .tracking-button {
        width: 100%;
    }
}

/* ============================= */
/* RESPONSIVE: Rate Results View */
/* ============================= */
.rate-results-content {
    max-width: 100%;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 3 kolom untuk layar besar */
@media (min-width: 1025px) {
    .services-comparison {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 2 kolom untuk layar menengah (tablet landscape) */
@media (max-width: 1024px) and (min-width: 601px) {
    .services-comparison {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 1 kolom penuh untuk layar kecil (smartphone) */
@media (max-width: 600px) {
    .services-comparison {
        grid-template-columns: 1fr;
    }

    .rate-results-content {
        padding: 0.5rem;
    }

    .service-rate-card {
        width: 100%;
        margin: 0 auto;
        border-radius: 10px;
    }
}

/* ==================== */
/* 5. Products Section */
/* ==================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 1rem;
    padding: 0 1rem;

}

.service-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover .service-logo {
    transform: scale(1.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 60px;
    height: 60px;
    background: var(--yellow);
    border-radius: 50%;
    opacity: 0.1;
}

.service-icon-container {
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
    padding: 10px;
    background: var(--white);
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.service-content {
    text-align: center;
    margin-top: 1.5rem;
}

.service-content h3 {
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.service-content p {
    font-size: 0.85rem;
    line-height: 1.4;
    max-width: 240px;
}

.service-card::before {
    width: 50px;
    height: 50px;
    top: -15px;
    right: -15px;
}

.service-card:hover .service-icon-container {
    transform: rotate(8deg) scale(1.05);
}

.service-card h3 {
    font-size: 1.5rem;
    margin: 1rem 0;
    padding-bottom: 0.5rem;
    position: relative;
}

.service-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--yellow);
}

.service-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray);
    max-width: 280px;
    margin: 0 auto;
}

.service-card li:last-child {
    border-bottom: none;
}

.service-card li i {
    color: var(--yellow);
    font-size: 1.2rem;
    width: 30px;
    text-align: center;
}

.services-header h2,
.company-content h2 {
    font-size: 2rem;
}

#products {
    background: var(--white);
    color: var(--black);
    padding: 3rem 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.06);
    text-align: center;
    display: block;
}

#products .service-card {
    background: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

#products .service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

#products .services-header h2 {
    text-shadow: none;
    font-size: 1.75rem !important;
    color: var(--blue);
    margin-bottom: 0.75rem;
}

#products .services-header p {
    color: var(--gray);
    font-size: 0.9rem !important;
    max-width: 500px;
    margin: 0 auto;
}

#products .service-card h3 {
    color: var(--red);
}

#products .service-card p {
    color: var(--gray);
}

#products .service-icon-container {
    background: linear-gradient(135deg, var(--white) 0%, var(--off-white) 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#products .service-icon-container i {
    background: linear-gradient(45deg, var(--blue), var(--red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#products::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: var(--yellow);
    opacity: 0.1;
    border-radius: 50%;
    filter: blur(40px);
    z-index: 1;
}

.custom-service-cta {
    text-align: center;
    padding: 1.5rem 1rem;
    margin: 0 auto;
    max-width: 800px;
    position: relative;
}

.custom-service-tagline {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
    animation: float 3s ease-in-out infinite;
}

.custom-service-tagline span {
    display: inline-block;
    animation: float 3s ease-in-out infinite 0.5s;
}

.custom-service-heading {
    font-size: 1.3rem;
    color: var(--blue);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.highlight {
    color: var(--red);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--yellow);
    opacity: 0.4;
    z-index: -1;
    border-radius: 3px;
}

.custom-service-desc {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 800px;
    margin-bottom: 1rem;
    text-align: center;
}

.custom-service-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--blue);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(26, 43, 95, 0.2);
    overflow: hidden;
    position: relative;
    font-size: 0.9rem;
}

.custom-service-button i {
    transition: transform 0.3s ease;
}

.custom-service-button:hover {
    background: var(--red);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(210, 43, 43, 0.3);
}

.custom-service-button:hover i {
    transform: translateX(3px);
}

/* Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .custom-service-heading {
        font-size: 1.5rem;
    }

    .custom-service-desc {
        font-size: 1rem;
    }
}

.wave-separator {
    width: 100%;
    margin: 2rem 0 0;
    transform: rotate(180deg);
    display: flex;
    justify-content: center;
}

.wave-separator svg {
    width: 100%;
    min-width: 1200px;
    height: 40px;
}


/* ==================== */
/* 6. Why Choose Us Section */
/* ==================== */

#why-us {
    background: var(--white);
    padding: 4rem 1rem;
    text-align: center;
}

.why-us-container {
    max-width: 1200px;
    margin: 0 auto;
}

#why-us h2 {
    font-size: 1.75rem;
    color: var(--blue);
    margin-bottom: 3rem;
}

.simple-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 0 1rem;
}

.grid-item {
    padding: 2rem;
    background: var(--off-white);
    border-radius: 12px;
    transition: 0.2s ease;
}

.grid-item i {
    font-size: 2.5rem;
    color: var(--red);
    margin-bottom: 1.5rem;
}

.grid-item h3 {
    color: var(--blue);
    margin: 0.5rem 0;
    font-size: 1.2rem;
}

.grid-item p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

#why-us::after {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 10px;
    opacity: 0.8;
}

#why-us .highlight-card {
    background: var(--off-white);
}

#why-us .highlight-card h3 {
    color: var(--red);
}

#why-us .highlight-icon {
    color: var(--red);
}

.highlight-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.highlight-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.highlight-card::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 60px;
    height: 60px;
    background: var(--yellow);
    border-radius: 50%;
    opacity: 0.1;
}

.highlight-icon {
    font-size: 2.5rem;
    color: var(--blue);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.highlight-card:hover .highlight-icon {
    transform: scale(1.1);
    color: var(--red);
}

.highlight-card h3 {
    font-size: 1.5rem;
    color: var(--blue);
    margin-bottom: 1rem;
}

.highlight-card p {
    font-size: 1rem;
    color: var(--gray);
    line-height: 1.6;
}

/* ==================== */
/* 7. About Us */
/* ==================== */
#company {
    background: var(--off-white);
    padding: 4rem 1rem;
    color: var(--black);
    position: relative;
    overflow: hidden;
}

#company::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(40px);
}

#company .highlight-card {
    background: var(--white);
}

#company .highlight-card h3 {
    color: var(--blue);
}

#company .highlight-icon {
    color: var(--blue);
}

.company-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.company-content h2 {
    color: var(--blue);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.company-text p {
    color: var(--gray);
    line-height: 1.8;
    font-size: 1.1rem;
}

.company-text h2 {
    color: var(--orange);
}

.staff-photo {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.staff-photo:hover {
    transform: translateY(-5px);
}

.company-content p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/*.company-photo {*/
/*    border-radius: 12px;*/
    /* Memberikan sudut yang lebih lembut pada gambar */
    /* Membuat efek glowing menggunakan box-shadow */
/*    box-shadow:*/
/*        0 0 15px rgba(37, 99, 235, 0.7),*/
        /* Blue-600 soft inner glow */
/*        0 0 30px rgba(37, 99, 235, 0.5),*/
        /* Wider glow */
/*        0 0 50px rgba(37, 99, 235, 0.3);*/
    /* Widest faint glow */
/*    transition: box-shadow 0.3s ease-in-out;*/
/*}*/

/* ==================== */
/* 8. Karcia Care Section */
/* ==================== */

.karcia-berbagi {
    padding: 4rem 0;
    background: var(--off-white);
}

.photo-album-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.main-album {
    height: 400px;
    display: block;
}
/* 
.side-albums {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 1.5rem;
} */

.side-album {
    height: 210px;
    /* Adjust for gap */
    min-height: 210px;
    display: block;
}

.thumbnail-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 4px 12 px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.album-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 60%, transparent);
    color: white;
    z-index: 1;
}

.album-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.album-location {
    font-size: 0.9rem;
    opacity: 0.9;
}

.album-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 43, 95, 0.9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 1.1rem;
    z-index: 2;
}

.thumbnail-wrapper:hover .album-overlay {
    opacity: 1;
}

.thumbnail-wrapper:hover {
    transform: translateY(-5px);
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease-in-out;
}

.berbagi-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.thumbnail-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
}

.photo-grid a {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.8rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.care-description {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.care-text {
    text-align: center;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.care-text h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
}


.care-text a {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--yellow);
    color: red;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

/* ==================== */
/* 9. Contact us Section */
/* ==================== */
#contact {
    background: var(--off-white);
    padding: 2.5rem 0;
    margin-bottom: 150px;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: calc(100vh - 200px);
    /* Adjust based on your header height */
    min-height: 500px;
    max-height: 650px;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    color: var(--blue);
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    height: 100%;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

.contact-section {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.location-section {
    flex: 1;
    min-height: auto;
    overflow: hidden;
}

.office-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.office-branch {
    padding: 0.75rem;
    font-size: 0.85rem;
    line-height: 1.35;
    text-align: left;
}

.branch-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.branch-tag {
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

.kantor_utama {
    background: var(--red);
    color: white;
}

.kantor_cabang {
    background: var(--blue);
    color: white;
}

.pekanbaru {
    background: var(--yellow);
    color: var(--black);
}

.office-branch h4 {
    margin: 0;
    font-size: 0.9rem;
}

.compact-address {
    margin: 0.25rem 0;
    font-size: 0.85rem;
    color: #555;
    line-height: 1.4;
    text-align: left;
}

.map-link {
    display: inline-block;
    margin-top: 0.25rem;
    color: var(--red);
    font-size: 0.75rem;
    text-decoration: none;
}

.map-link i {
    margin-right: 0.2rem;
    font-size: 0.85rem;
}

.detail-title {
    color: var(--blue);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid var(--yellow);
}

.combined-contacts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 0.8rem;
}

.compact-contact {
    font-size: 0.85rem;
    margin: 0.2rem 0;
    color: #555;
    line-height: 1.4;
    text-align: left;
}

.map-container {
    height: 100%;
    min-height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.phone-link {
    color: var(--blue);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.phone-link:hover {
    color: var(--red);
    text-decoration: underline;
}

.email-link {
    color: var(--blue);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.email-link:hover {
    color: var(--red);
    text-decoration: underline;
}

a.phone-link,
a.email-link {
    display: inline-block;
}

.phone-link,
.email-link {
    color: var(--blue);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.phone-link:hover,
.email-link:hover {
    color: var(--red);
    text-decoration: underline;
}

.phone-link i {
    color: #25D366;
    /* WhatsApp brand color */
    font-size: 1.1em;
}

.email-link i {
    font-size: 0.95em;
}

@media (max-width: 992px) {
    .contact-container {
        height: auto;
        max-height: none;
        padding-bottom: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .map-container {
        height: 400px;
    }

    .combined-contacts {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

@media (max-width: 768px) {
    .contact-container {
        padding: 0 1rem 1.5rem;
    }

    .office-grid {
        grid-template-columns: 1fr;
    }
}

/*=======================*/
/* 10. Partners Section */
/* ======================= */
.partners-section {
    background: var(--white);
    padding: 48px 24px;
    text-align: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.partners-carousel {
    position: relative;
    margin: 2rem auto;
    max-width: 900px;
    overflow: hidden;
}

.partner-logos {
    display: flex;
    justify-content: center;
    gap: 2rem;
    transition: transform 0.5s ease;
}

.logo-item {
    flex: 0 0 calc(33.333% - 2rem);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    min-height: 100px;
}

.logo-item img {
    max-height: 60px;
    max-width: 180px;
    width: auto;
    transition: all 0.3s ease;
}

.logo-item:hover img {
    opacity: 1;
    transform: scale(1.1);
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.1);
    border: none;
    color: var(--blue);
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--blue);
    color: white;
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

@media (max-width: 768px) {
    .logo-item {
        flex: 0 0 calc(50% - 1rem);
    }

    .carousel-prev,
    .carousel-next {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
}

/* Footer Styles */
.site-footer {
    background: var(--blue);
    color: white;
    padding-top: 3rem;
    position: relative;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-col {
    margin-bottom: 2rem;
}

.footer-logo {
    height: 50px;
    width: auto;
    max-width: 100%;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
    object-fit: contain;
}

.footer-about {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.footer-title {
    color: var(--yellow);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--yellow);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.footer-contact li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--yellow);
    margin-top: 3px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--yellow);
    color: var(--blue);
    transform: translateY(-3px);
}

.app-download p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.app-store-btn img {
    height: 40px;
    transition: transform 0.3s ease;
    object-fit: contain;
    float: none;
    display: block;
}

.app-store-btn:hover img {
    transform: scale(1.05);
}

.copyright-bar {
    background: var(--bold-blue);
    padding: 1rem 0;
    margin-top: 2rem;
}

.copyright-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright-bar p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    margin: 0;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--yellow);
}

/* CSS kustom untuk menyembunyikan scrollbar tapi tetap bisa di-scroll */
/* untuk tampilan slider di bagian Produk & Layanan Kami */
/* Menyembunyikan scrollbar */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.card {
    flex: 0 0 auto;
    width: 250px;
    scroll-snap-align: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    cursor: pointer;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card:hover .card-image {
    transform: rotateZ(-5deg);
}

.card-image {
    transition: transform 0.3s ease-in-out;
    max-height: 180px;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

    .copyright-container {
        flex-direction: column;
        text-align: center;
    }

    .legal-links {
        margin-top: 0.5rem;
    }

    .app-download {
        text-align: center;
        /* Center on mobile if desired */
    }

    .app-store-btn {
        float: none;
        /* Remove float on mobile */
        display: block;
        /* Make it full width on mobile */
        margin: 0 auto;
        /* Center it */
    }
}


/* ==================== */
/* 10. Media Queries */
/* ==================== */

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .map-container {
        height: 400px;
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav {
        gap: 1rem;
        font-size: 14px;

    }

    .action-section {
        flex-direction: column;
        width: 90%;
        margin: 0 auto;
    }

    .tracking-box {
        width: 100%;
    }

    .rates-button {
        width: 100%;
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .company-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .staff-photo {
        max-width: 500px;
        margin: 0 auto;
    }


    .service-icon-container {
        width: 120px;
        height: 120px;
    }

    .service-card {
        margin-bottom: 1.5rem;
    }

    .services-header {
        text-align: center;
        /* Center text horizontally */
        margin-bottom: 5rem !important;
        display: flex;
        /* Use flexbox for vertical centering */
        flex-direction: column;
        /* Stack children vertically */
        justify-content: center;
        /* Center vertically */
        align-items: center;
        /* Center horizontally */
        height: 100%;
        /* Ensure it takes full height of its container */
        max-width: 1200px;
        margin: 0 auto 3rem;
        padding: 0 2rem;

    }

    .services-header h2 {
        font-size: 1.5rem !important;
        color: var(--blue);
        margin-bottom: 0.5rem !important;
        position: relative;
        display: inline-block;
    }

    .services-header h2::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 4px;
        background: var(--yellow);
        border-radius: 2px;
    }

    .service-card h3 {
        font-size: 1.3rem;
    }

    .services-header p {
        color: var(--gray);
        font-size: 0.95rem !important;
        max-width: 800px;
        margin: 1rem auto 0;
        line-height: 1.6;
    }


    .slide-content {
        flex-direction: column;
        text-align: center;
    }

    .slide-text {
        text-align: center;
    }

    .slide h2 {
        font-size: 2rem;
    }


    .company-content h2 {
        font-size: 2rem;
    }

    .company-content p {
        font-size: 1rem;
    }

    .split-section {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        order: 2;
        /* Moves grid below text */
    }

    .simple-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .grid-item {
        padding: 1.5rem;
    }

    .main-photo {
        order: -1;
        /* Keep main photo first in mobile view */
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .map-container {
        height: 300px;
    }

    .address-card,
    .contact-details,
    .app-download {
        padding: 1.2rem;
    }

    .app-download {
        text-align: left;
        /* Change from default center alignment */
        clear: both;
        /* Ensure it clears any floats */
    }

    .app-store-btn {
        display: inline-block;
        float: left;
        margin-right: 10px;
    }

    .detail-item {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 0.8rem;
    }

    #contact {
        padding: 1rem 0;
    }

    .contact-container {
        padding: 0 1rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .map-container {
        height: 300px;
        order: -1;
    }

    .section-title {
        margin-bottom: 0.75rem;
    }

    .berbagi-container {
        grid-template-columns: 1fr;
    }

    .photo-grid {
        grid-template-columns: 1fr;
    }

    .album-title {
        font-size: 0.85rem;
    }

    .album-location {
        font-size: 0.75rem;
    }

    .main-photo {
        height: 250px;
    }

    .photo-album-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .main-album {
        height: 400px;
    }

    .side-album {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .simple-grid {
        grid-template-columns: 1fr;
    }

    #why-us h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .company-text h2 {
        font-size: 1.8rem;
    }

    .company-text p {
        font-size: 1rem;
    }

    .care-gallery {
        grid-template-columns: 1fr;
        /* Single column on smallest screens */
    }

    .main-photo {
        height: 180px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .contact-container {
        padding: 0 1rem;
    }
}

@media (max-width: 1024px) {
    .care-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    .care-gallery {
        grid-template-columns: 1fr;
    }

    .main-photo {
        grid-column: span 2;
        aspect-ratio: 2/1;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .map-container {
        height: 400px;
        border-radius: 0;
        margin-top: 3rem;
    }

    .contact-info-wrapper {
        padding: 0 2rem;
    }
}

@media (min-width: 768px) {

    .app-download {
        margin-top: 0;
    }
}

/* ==================== */
/* 11. Company          */
/* ==================== */
/* css untuk slider bagian company */
.slider-container-company {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.slider-company {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.slide-company {
    flex-shrink: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .slide-company {
        flex-direction: row;
        text-align: left;
    }
}

/* css untuk slider bagian company */
.slide-image-company {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 1rem;
    transition: transform 0.3s ease-in-out;
    max-width: 500px;
}

.slide-image-company:hover {
    transform: scale(1.02);
}

.slide-text-company {
    padding-right: 2rem;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    cursor: pointer;
    padding: 1rem;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.arrow:hover {
    background-color: rgba(255, 255, 255, 1);
}

.arrow-left {
    left: 1rem;
}

.arrow-right {
    right: 1rem;
}

.dot-container-company {
    display: flex;
    justify-content: center;
    padding-top: 1rem;
}

.dot {
    height: 12px;
    width: 12px;
    background-color: #cbd5e1;
    border-radius: 50%;
    margin: 0 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #2563eb;
}

/* Responsive */
@media (max-width: 768px) {
    .slide-text-company {
        padding: 0;
        margin-top: 1.5rem;
    }
}

/* ==================== */
/* 12. Karcia Berbagi   */
/* ==================== */
/* untuk bagian Karcia Berbagi */
.karcia-berbagi {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 4rem 1rem;
    background-color: #f7f7f7;
    margin-bottom: 0;
}

.berbagi-container {
    display: grid;
    grid-template: 1fr;
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
}

.photo-album-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.photo-album-grid .main-album,
.photo-album-grid .side-albums {
    position: relative;
}

.photo-album-grid .main-album .thumbnail-wrapper,
.photo-album-grid .side-album .thumbnail-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.photo-album-grid .main-album .thumbnail-wrapper:hover,
.photo-album-grid .side-album .thumbnail-wrapper:hover {
    transform: translateY(-5px);
}

.photo-album-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease-in-out;
}

.album-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    color: white;
    padding: 20px;
    text-align: left;
}

.album-title {
    font-weight: bold;
    font-size: 1.25rem;
}

.album-location {
    font-size: 0.9rem;
    opacity: 0.8;
}

.album-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.photo-album-grid .thumbnail-wrapper:hover .album-overlay {
    opacity: 1;
}
/* 
.side-albums {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
} */

.care-text {
    text-align: center;
}

.care-text h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.care-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
}

/* Modal styles */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-backdrop.show {
    opacity: 1;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.modal-close-btn,
.modal-nav-btn {
    position: absolute;
    background: none;
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    z-index: 1001;
    text-shadow: 0 0 5px black;
    transition: transform 0.2s;
}

.modal-close-btn {
    top: 20px;
    right: 20px;
}

.modal-nav-btn {
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    opacity: 0.7;
}

.modal-nav-btn:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn-karcia-berbagi {
    left: 20px;
}

.next-btn-karcia-berbagi {
    right: 20px;
}

/* Slider animation */
@keyframes slide {
    0% {
        transform: translateY(0);
    }

    33% {
        transform: translateY(-100%);
    }

    66% {
        transform: translateY(-200%);
    }

    100% {
        transform: translateY(0);
    }
}

.side-albums {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 440px;
    /* Adjust as needed */
    position: relative;
}

.side-album-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* animation: slide 15s infinite ease-in-out; */
    transition: transform 0.8s ease-in-out;
}

/* Responsive design */
@media (min-width: 768px) {
    .berbagi-container {
        grid-template-columns: 1.2fr 1fr;
        /* Dua kolom utama */
        align-items: flex-start;
        padding: 0 1rem;
    }

    .photo-album-grid {
        grid-template-columns: 1.2fr 1fr;
        /* Main Album dan Side Albums */
        gap: 1.5rem;
        /* Gap 1.5rem untuk desktop */
    }

    .main-album {
        height: 500px;
        grid-row: span 1;
        /* Hanya ambil 1 baris */
    }

    .main-album {
        height: 440px;
        /* Sinkronkan tinggi Main Album dengan 2 Side Albums + gap */
    }

    .side-albums {
        /* Biarkan properti utama (height: 440px, overflow: hidden) dari non-media query berlaku. */
        display: flex;
        flex-direction: column;
        height: 440px;
        overflow: hidden;
    }

    .care-text {
        text-align: left;
        padding: 0;
    }

    .care-text h2 {
        font-size: 2.5rem;
    }
}

/* ==================== */
/* 13. Google Map       */
/* ==================== */
/* CSS untuk Bagian Google Map */
.map-container {
    width: 100%;
    height: 600px;
    /* Adjust the height as needed */
}

#map {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.info-window-content {
    font-family: 'Inter', sans-serif;
    padding: 0.5rem;
}

.info-window-content strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

/* ==================== */
/* 14. Font Selector       */
/* ==================== */
/* Styling untuk menu Font Selector yang lengket di bawah */
.font-selector-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    /* Pastikan menu berada di atas konten lain */
}

/* Tambahkan CSS kustom lain yang mungkin ada di style.css Anda di sini */
.footer-col {
    /* Example: Ensure the columns behave well on small screens */
    width: 100%;
    margin-bottom: 1.5rem;
}

/* ===== Responsive Navigation ===== */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--blue);
}

@media (max-width: 900px) {
    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .nav {
        display: none;
        flex-direction: column;
        background: var(--white);
        position: absolute;
        top: 70px;
        right: 0;
        width: 220px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
        border-radius: 8px;
        padding: 1rem;
        z-index: 999;
    }

    .nav.show {
        display: flex;
    }

    .nav a {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav a:last-child {
        border-bottom: none;
    }
}

/* ==================== */
/* Scroll Up & Down Buttons */
/* ==================== */
.scroll-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.scroll-btn {
    background-color: var(--blue);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.scroll-btn:hover {
    background-color: var(--yellow);
    color: var(--black);
    transform: translateY(-3px);
}

/* Awalnya disembunyikan */
.scroll-btn.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9);
}

/* Smooth muncul */
.scroll-btn.show {
    opacity: 1;
    pointer-events: all;
    transform: scale(1);
    transition: all 0.3s ease;
}

/* ============================= */
/* ✨ Fade-in + Slide-up Animation */
/* ============================= */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }

    60% {
        opacity: 0.6;
        transform: translateY(10px) scale(1);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Saat tombol muncul */
.scroll-btn.show {
    opacity: 1;
    pointer-events: all;
    animation: fadeInUp 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
}

#scrollDown.show {
    animation-delay: 0.1s;
}

/* ============================= */
/* ✨ Fade-out + Slide-down Animation */
/* ============================= */
@keyframes fadeOutDown {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
}

/* Class untuk sembunyi otomatis */
.scroll-btn.hide {
    animation: fadeOutDown 0.4s ease forwards;
    pointer-events: none;
}