/* style.css */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables for consistent theming */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-dark: #0f172a;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-light: #64748b;
    --text-white: #ffffff;
    
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    --transition-fast: all 0.15s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 400;
    min-height: 100vh;
}

.main-container {
    margin: 0 auto;
    padding: 0 16px;
}

.main-row {
    margin-bottom: 32px;
}

/* Enhanced Card Styles */
.content-col {
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    background-color: var(--bg-primary);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.content-col::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: var(--transition-normal);
}

.content-col:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.content-col:hover::before {
    opacity: 1;
}

/* Background Variants */
.bg-dark {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1e293b 100%);
    color: var(--text-white);
    border-color: #334155;
}

.bg-light {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    color: var(--text-primary);
}

.bg-white {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.bg-gray {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: inherit;
}

h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: inherit;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

/* Logo Styles */
.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
    padding: 16px;
}

.logo {
    height: 48px;
    filter: drop-shadow(var(--shadow-sm));
    transition: var(--transition-normal);
}

.logo:hover {
    transform: scale(1.05);
}

/* Features Section */
.features-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.feature-item {
    text-align: center;
    padding: 20px 12px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
    transition: var(--transition-normal);
    border: 1px solid var(--border-light);
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    background: var(--bg-primary);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(245, 158, 11, 0.1));
    transition: var(--transition-normal);
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(245, 158, 11, 0.2));
}

.feature-text {
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Stats Container */
.stats-container {
    display: flex;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
    border-radius: var(--radius-xl);
    padding: 24px 20px;
    margin-top: 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.stats-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03), rgba(245, 158, 11, 0.03));
    z-index: 1;
}

.stat-item {
    text-align: center;
    flex: 1;
    z-index: 2;
    position: relative;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-light);
}

/* Vehicle Category Cards */
.vehicle-category {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary-color);
    color: var(--text-white);
    border-radius: var(--radius-lg);
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.vehicle-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
    transition: var(--transition-normal);
    z-index: 1;
}

.vehicle-category:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.vehicle-category:hover::before {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.3), rgba(0, 0, 0, 0.2));
}

.vehicle-category h2,
.vehicle-category .overlay h2 {
    z-index: 2;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: var(--transition-normal);
}

.vehicle-category:hover h2,
.vehicle-category:hover .overlay h2 {
    transform: scale(1.05);
}

/* Partner Cards */
.partner {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border-radius: var(--radius-lg);
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.partner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(245, 158, 11, 0.05));
    opacity: 0;
    transition: var(--transition-normal);
}

.partner:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.partner:hover::before {
    opacity: 1;
}

/* Utility Classes */
.d-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.nested-row {
    margin-bottom: 20px;
}

.nested-col {
    height: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    
    .main-container {
        padding: 0 8px;
    }
    
    .content-col {
        padding: 24px 20px;
    }
    
    .hero-title {
        font-size: 1.875rem;
        margin-bottom: 24px;
    }
    
    .features-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        margin-top: 24px;
    }
    
    .feature-item {
        padding: 16px 8px;
    }
    
    .stats-container {
        padding: 20px 16px;
        margin-top: 24px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .vehicle-category {
        height: 140px;
        font-size: 1.1rem;
    }
    
    .partner {
        height: 160px;
    }
}

@media (min-width: 768px) {
    
    h2 {
        font-size: 1.375rem;
    }
    
    .features-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 992px) {
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .content-col {
        padding: 40px;
    }
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
.vehicle-category:focus,
.partner:focus,
.feature-item:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Link styles */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Contact Section Styles */
.contact-info .contact-item {
    line-height: 1.5;
}
.contact-info .contact-item a {
    text-decoration: none;
    color: var(--primary-color);
}
.contact-info .contact-item a:hover {
    color: var(--primary-dark);
}

.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    line-height: 0; /* Menghilangkan spasi aneh di bawah iframe */
}

/* Site Footer Styles */
.site-footer {
    background-color: #1c2331;
}
.site-footer a {
    text-decoration: none;
    transition: var(--transition-fast);
}
.site-footer a:hover {
    text-decoration: underline;
    color: #ffffff !important;
}

.social-icons a.btn {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

section[id] {
    scroll-margin-top: 200px;
}

/* Armada Card Styling */
.armada-card {
    background-color: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    overflow: hidden;
    border: 1px solid var(--border-color);
}
.armada-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.armada-card-body {
    padding: 24px;
}
.armada-card-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 20px;
    min-height: 44px; /* Atur tinggi agar sejajar */
}

/* Specs Grid Styling */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    border-top: 1px solid var(--border-light);
    padding-top: 16px;
}
.spec-item {
    display: flex;
    align-items: center;
}
.spec-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 12px;
    min-width: 24px;
}
.spec-item div {
    line-height: 1.3;
}
.spec-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.spec-value {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Project Section Styling */
.project-card {
    text-align: center;
    padding: 30px 20px;
    background-color: #fff;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
    border: 1px solid var(--border-light);
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.project-logo {
    max-height: 70px;
    width: auto;
    max-width: 180px;
    margin: 0 auto 24px auto;
    object-fit: contain;
}
.project-client {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.project-duration {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.project-description {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: 0;
}

/* MODAL ARMADA DETAIL STYLING */
.modal-content {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    border-bottom: 1px solid var(--border-light);
    padding: 1.5rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-body {
    padding: 2rem;
}

.detail-image-container {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-light);
    height: 100%;
}

.detail-image-container img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.detail-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.detail-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.detail-spec-item {
    display: flex;
    align-items: center;
}

.detail-spec-item i {
    font-size: 1.75rem;
    color: var(--secondary-color);
    margin-right: 12px;
    min-width: 30px;
}

.detail-spec-item .spec-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-spec-item .spec-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.health-protocol {
    display: flex;
    align-items: center;
    margin-top: 2rem;
    padding: 1rem;
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
}

.health-protocol i {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-right: 1rem;
}

.health-protocol p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.interested-cta p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.cta-button {
    background-color: var(--accent-color);
    color: var(--text-white);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition-normal);
}

.cta-button:hover {
    background-color: #d97706; /* a darker shade of accent */
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Project Description Styling */
.project-description {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: 0;
}


/* ARMADA FILTER TABS STYLING */
#armada-filter.nav-pills .nav-item {
    margin: 0 8px;
}

#armada-filter.nav-pills .nav-link {
    border-radius: 50px;
    padding: 8px 25px;
    font-weight: 500;
    color: var(--text-secondary);
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

#armada-filter.nav-pills .nav-link:hover {
    color: var(--text-primary);
    background-color: #e2e8f0; /* Slightly darker gray */
}

#armada-filter.nav-pills .nav-link.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-white);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

/* ARMADA ITEM WRAPPER FOR FILTERING TRANSITION */
.armada-item-wrapper {
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

/* Atur Tampilan Awal Filter: Sembunyikan semua item kecuali light-vehicle */
.armada-item-wrapper:not([data-category="light-vehicle"]) {
    display: none;
    opacity: 0;
}

.armada-item-wrapper.hidden {
    opacity: 0;
    transform: scale(0.9);
    display: none; /* We will toggle this with JS after animation */
}

/* STYLING BARU UNTUK KARTU PROFIL */
.profile-card {
    text-align: center;
    padding: 30px;
    border-radius: var(--radius-md);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    transition: var(--transition-normal);
}
.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px auto;
    border: 4px solid #fff;
    box-shadow: var(--shadow-sm);
}
.profile-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 5px;
}
.profile-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* STYLING BARU UNTUK PROJECT CAROUSEL - DIUBAH JADI GENERIC */
.carousel-container {
    position: relative;
    padding: 0 40px; /* Memberi ruang untuk tombol navigasi di samping */
}

/* Kustomisasi Tombol Navigasi Swiper */
.carousel-container .swiper-button-next,
.carousel-container .swiper-button-prev {
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-fast);
}
.carousel-container .swiper-button-next:hover,
.carousel-container .swiper-button-prev:hover {
    background-color: var(--primary-color);
    color: #fff;
}
.carousel-container .swiper-button-next::after,
.carousel-container .swiper-button-prev::after {
    font-size: 18px; /* Mengatur ukuran ikon panah */
    font-weight: bold;
}
.carousel-container .swiper-button-prev {
    left: 0;
}
.carousel-container .swiper-button-next {
    right: 0;
}


/* Styling untuk Swiper Slide */
.project-swiper .swiper-slide,
.partner-swiper .swiper-slide {
    height: auto; /* Memastikan kartu bisa menyesuaikan tingginya */
    padding-bottom: 10px;
}

/* STYLING BARU untuk logo partner di dalam carousel */
.partner-logo {
    height: 120px;
    background-color: #fff;
    border-radius: var(--radius-md);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transition: var(--transition-normal);
    border: 1px solid var(--border-light);
    filter: grayscale(100%);
    opacity: 0.8;
}
.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* =================================================================== */
/* ==== PERUBAHAN HEADER DIMULAI DARI SINI ==== */
/* =================================================================== */

header.sticky-top .navbar {
    min-height: 90px; /* Sedikit mengurangi tinggi agar lebih compact */
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    transition: all 0.3s ease;
}

/* Mengatur padding untuk container-fluid agar tidak terlalu mepet ke tepi */
header .container-fluid {
    padding-left: 2rem;
    padding-right: 2rem;
}

header .navbar-brand {
    padding-top: 5px;
    padding-bottom: 5px;
}

header .navbar-brand img {
    /* Penyesuaian ukuran logo agar proporsional */
    height: 150px; 
    width: auto;
    margin-right: 15px;
}

header .navbar-brand span {
    /* Penyesuaian ukuran teks brand agar tidak terlalu besar */
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* STYLING BARU UNTUK LINK NAVIGASI SEPERTI TOMBOL */
header .navbar-nav .nav-item {
    margin: 0 5px; /* Memberi jarak antar tombol */
}

header .navbar-nav .nav-link {
    font-size: 1.3rem; /* Ukuran font standar agar rapi */
    font-weight: 500;
    padding: 0.5rem 1.25rem; /* Padding untuk area tombol */
    border-radius: 10px; /* Membuat sudut menjadi bulat (pill shape) */
    background-color: #e5e5e4; /* Default transparan */
    transition: all 0.2s ease-in-out;
    color: #000000;
}

/* EFEK HOVER PADA TOMBOL NAVIGASI */
header .navbar-nav .nav-link:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-2px); /* Efek sedikit terangkat */
    box-shadow: var(--shadow-md);
}

/* Penyesuaian untuk layar yang lebih kecil (mobile) */
@media (max-width: 991.98px) {
    header.sticky-top .navbar {
        min-height: auto;
    }
    
    header .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    header .navbar-brand img {
        height: 50px; /* Logo lebih kecil di mobile */
    }
    
    header .navbar-brand span {
        font-size: 1.2rem;
    }

    /* Styling tombol di tampilan mobile */
    header .navbar-nav .nav-item {
        margin: 5px 0;
    }
    header .navbar-nav .nav-link {
        text-align: center;
        background-color: var(--bg-tertiary);
    }
}

/* 1. Perbaikan Filter "OUR FLEET" agar teks wrap dan rapi */
@media (max-width: 767.98px) {
  /* Hapus semua aturan scroll dari container */
  #armada-filter.nav-pills {
    gap: 8px; /* Memberi jarak modern antar tombol */
  }

  /* Targetkan langsung item di dalam filter */
  #armada-filter.nav-pills .nav-item {
    flex-grow: 1; /* Biarkan setiap item mengisi ruang yang tersedia secara merata */
  }

  /* Aturan utama untuk tombolnya */
  #armada-filter.nav-pills .nav-link {
    /* KUNCI: Izinkan teks untuk wrap (turun ke bawah) */
    white-space: normal;
    text-align: center;
    
    /* KUNCI: Atur tinggi dan pusatkan teks secara vertikal */
    min-height: 54px; /* Beri tinggi minimal agar semua tombol sama tinggi */
    display: flex;
    align-items: center;
    justify-content: center;

    /* Sesuaikan ukuran agar lebih compact */
    font-size: 0.8rem;
    padding: 5px 10px; /* Kurangi padding horizontal, fokus ke vertikal */
  }
}


/* 2. Perbaikan Header di Mobile (tetap sama) */
@media (max-width: 991.98px) {
  header .navbar-brand img {
    height: 40px; 
    margin-right: 10px;
  }
  
  header .navbar-brand span {
    font-size: 1.1rem;
    line-height: 1.2;
  }
}

.certificate-placeholder {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    background-color: var(--bg-tertiary);
    height: 100%;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: var(--transition-normal);
}

.certificate-placeholder:hover {
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.certificate-placeholder i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.certificate-placeholder p {
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.gallery-video-card {
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.gallery-text-content {
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.gallery-text-content h3 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.gallery-image:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.gallery-swiper .swiper-slide {
    height: auto;
    padding-bottom: 10px;
}

@media (max-width: 991.98px) {
    .gallery-text-content {
        padding: 2rem 1.5rem;
        text-align: center;
    }
}