@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&family=Open+Sans:wght@400;500;600;700&display=swap');

/* Menerapkan font Open Sans ke seluruh elemen secara global */
body, h1, h2, h3, h4, h5, h6, p, a, span, div, button, input, select, textarea {
    font-family: 'Open Sans', sans-serif !important;
}

/* --- Bagian Header Halaman --- */
.promo-header-section {
    background-color: #f8f9fa;
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.promo-title {
    
    font-weight: 800;
    font-size: 36px;
    color: #1a3673; /* Warna Yamaha Deep Blue */
    margin-bottom: 10px;
    text-transform: uppercase;
}

.promo-subtitle {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Kategori Filter Profesional --- */
.promo-categories-v4 {
    display: flex;
    background-color: transparent;
    border-bottom: 2px solid #eee;
    justify-content: center;
    gap: 10px;
}

.btn-promo-cat {
    text-align: center;
    padding: 15px 25px;
    color: #444;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    position: relative;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    cursor: pointer;
}

.btn-promo-cat span {
    position: relative;
    z-index: 1;
}

/* Efek garis bawah saat aktif (seperti gambar contoh) */
.btn-promo-cat.active {
    color: #1a3673;
    font-weight: 700;
}

.btn-promo-cat.active::after {
    content: '';
    position: absolute;
    bottom: -2px; /* Menempel di border-bottom kontainer */
    left: 10px;
    right: 10px;
    height: 3px;
    background-color: #1a3673; /* Garis aktif warna Yamaha */
    border-radius: 3px;
}

.btn-promo-cat:hover:not(.active) {
    color: #1a3673;
}

/* --- Desain Card Overlapping Image (UI Profesional) --- */
.promo-item {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.card-promo-v4 {
    background: transparent;
    position: relative;
    height: 100%;
}

/* Container Gambar (Posisi Belakang) */
.promo-img-wrapper {
    width: 100%;
    height: 350px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.promo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-promo-v4:hover .promo-img {
    transform: scale(1.03);
}

/* Kotak Konten (Posisi Menimpa di Pojok Kanan Bawah) */
.promo-content-box {
    position: absolute;
    bottom: -30px; /* Menimpa gambar ke bawah */
    right: 30px; /* Menempel di pojok kanan */
    background: #ffffff;
    width: 85%; /* Tidak selebar kontainer gambar */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    z-index: 2;
    transition: transform 0.3s ease;
}

.card-promo-v4:hover .promo-content-box {
    transform: translateY(-5px);
}

.promo-date {
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
    font-weight: 500;
}

.promo-headline {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #111;
    line-height: 1.5;
    margin-bottom: 20px;
    height: 60px; /* Batasi tinggi agar rapi, potong teks jika terlalu panjang */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Tombol Selengkapnya Gaya Minimalis (Seperti Contoh) */
.btn-read-more {
    font-weight: 700;
    color: #1a3673; /* Warna Yamaha */
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
}

.btn-read-more:hover {
    color: #0d204a;
    gap: 8px; /* Animasi panah bergeser saat hover */
}

/* Penyesuaian Responsif untuk Card Overlapping */
@media (max-width: 992px) {
    .promo-img-wrapper {
        height: 300px;
    }
    .promo-content-box {
        width: 90%;
        right: 15px;
        bottom: -20px;
        padding: 20px;
    }
    .promo-headline {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .promo-header-section {
        padding: 40px 0;
    }
    .promo-title {
        font-size: 28px;
    }
    .btn-promo-cat {
        padding: 10px 15px;
        font-size: 12px;
    }
}
.btn-load-more {
    background-color: #1a3673;
    color: white;
    border: none;
    padding: 15px 40px;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.btn-load-more:hover {
    background-color: #0d204a;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.promo-item.fade-in {
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.load-more-container {
    padding: 40px 0;
}

.btn-aesthetic-load {
    background: transparent;
    color: #1a3673;
    border: 2px solid #1a3673;
    padding: 12px 35px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 0; /* Kotak tajam memberikan kesan lebih maskulin & profesional */
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
    display: inline-flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.btn-aesthetic-load .btn-text {
    position: relative;
    z-index: 2;
}

.btn-aesthetic-load .btn-icon {
    position: relative;
    z-index: 2;
    transition: transform 0.4s;
}

/* Efek Background Fill saat Hover */
.btn-aesthetic-load::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: #1a3673;
    transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
    z-index: 1;
}

.btn-aesthetic-load:hover {
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(26, 54, 115, 0.2);
}

.btn-aesthetic-load:hover::before {
    width: 100%;
}

.btn-aesthetic-load:hover .btn-icon {
    transform: translateY(5px); /* Efek panah memantul ke bawah */
}

/* Animasi Pulse lembut pada Ikon Mouse (opsional) */
.btn-icon svg {
    animation: mouse-scroll 2s infinite;
}

@keyframes mouse-scroll {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(3px); opacity: 0.5; }
    100% { transform: translateY(0); opacity: 1; }
}

.promo-img-link {
    display: block;
    overflow: hidden;
}
.promo-img-wrapper img {
    transition: transform 0.3s ease;
}
.promo-img-link:hover img {
    transform: scale(1.05); /* Gambar sedikit membesar saat di-hover */
}
.promo-headline {
    transition: color 0.3s ease;
}
.promo-headline:hover {
    color: var(--primary-blue); /* Judul berubah warna saat di-hover */
}