:root {
    --primary: #1a365d;
    --secondary: #2d3748;
    --accent: #2b6cb0;
    --accent-red: #e53e3e;
    --accent-yellow: #d69e2e;
    --light: #f7fafc;
    --border: #e2e8f0;
    --success: #38a169;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}
body {
    background-color: var(--light);
    color: var(--secondary);
    line-height: 1.6;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
header {
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--secondary) 100%
    );
    color: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgb(0 0 0 / 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}
.logo img {
    height: 50px;
}
.logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    position: relative;
}
.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}
.nav-menu a:hover {
    color: #63b3ed;
}
.nav-menu a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-yellow);
    transition: width 0.3s;
}
.nav-menu a:hover::after {
    width: 100%;
}
.contact-menu-item {
    position: relative;
}
.contact-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgb(0 0 0 / 0.1);
    min-width: 280px;
    display: none;
    z-index: 1001;
    margin-top: 15px;
}
.contact-dropdown.show {
    display: block;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}
.contact-dropdown::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid #fff0;
    border-right: 10px solid #fff0;
    border-bottom: 10px solid #fff;
}
.contact-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--secondary);
    transition: background-color 0.3s;
}
.contact-item:last-child {
    border-bottom: none;
}
.contact-item:hover {
    background-color: #f7fafc;
}
.contact-item i {
    color: var(--accent);
    width: 16px;
    text-align: center;
    font-size: 1.1rem;
}
.contact-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.contact-name {
    font-weight: 500;
    color: var(--primary);
    font-size: 0.9rem;
}
.contact-role {
    font-size: 0.75rem;
    color: #718096;
    margin-top: 2px;
}
.contact-number {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
    margin-top: 4px;
}
.contact-item:not([href]) {
    cursor: default;
}
.contact-item:not([href]):hover {
    background-color: #fff0;
}
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1002;
}
.hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 4rem 2rem;
    text-align: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-content {
    max-width: 800px;
    margin: 0 auto;
}
.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgb(0 0 0 / 0.5);
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgb(0 0 0 / 0.5);
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
}
.btn-primary:hover {
    background: #2c5282;
    transform: translateY(-2px);
}
.btn-outline {
    background: #fff0;
    color: #fff;
    border: 2px solid #fff;
}
.btn-outline:hover {
    background: #fff;
    color: var(--primary);
    transform: translateY(-2px);
}
.btn-warning {
    background: var(--accent-yellow);
    color: #fff;
}
.btn-warning:hover {
    background: #b7791f;
    transform: translateY(-2px);
}
.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgb(255 255 255 / 0.1);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s;
}
.social-links a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}
.brands-list {
    margin-top: 2rem;
}
.brands-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}
.license {
    background: #fff;
    padding: 1rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 5px rgb(0 0 0 / 0.05);
}
.license-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}
.license-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgb(0 0 0 / 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}
.license-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgb(0 0 0 / 0.15);
}
.license-image {
    height: 180px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.license-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}
.license-content {
    padding: 1.5rem;
    text-align: center;
}
.license-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.license-description {
    color: var(--secondary);
    font-size: 0.9rem;
    line-height: 1.4;
    border: 1px solid var(--primary);
    border-radius: 10px;
    padding: 8px 15px;
    display: inline-block;
    margin-top: 5px;
}
.license-description:hover {
    color: #fff;
    background: #128c7e;
    border: 0;
}
section {
    padding: 4rem 0;
}
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}
.section-title h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}
.product-group-section {
    margin-bottom: 4rem;
}
.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}
.group-title {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 600;
}
.view-all-btn {
    background: var(--accent);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
    position: relative;
    z-index: 1;
}
.view-all-btn:hover {
    background: #2c5282;
}
/* .product-card.placeholder {
    opacity: 0.7;
} */
.product-card.placeholder .btn-detail,
.product-card.placeholder .btn-inquiry {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
}
.pagination-link {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: var(--secondary);
    display: inline-block;
}
.pagination-link:hover {
    background: #f1f5f9;
}
.section-title h2::after {
    content: "";
    position: absolute;
    width: 50%;
    height: 3px;
    background: var(--accent-yellow);
    bottom: -10px;
    left: 25%;
}
.section-title p {
    color: var(--secondary);
    max-width: 600px;
    margin: 0 auto;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}
.products-grid.featured {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1000px;
    margin: 0 auto;
}
.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgb(0 0 0 / 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgb(0 0 0 / 0.1);
}
.product-image {
    height: 200px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.product-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}
.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}
.product-badge.genuine {
    background: var(--success);
}
.product-badge.oem {
    background: var(--accent-yellow);
}
.product-badge.promo {
    background: var(--accent-red);
}
.product-info {
    padding: 1.5rem;
}
.product-category {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}
.product-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}
.product-description {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}
.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.product-brand {
    font-weight: 500;
    color: var(--secondary);
}
.product-stock {
    font-size: 0.85rem;
    color: var(--success);
    font-weight: 500;
}
.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}
.product-actions {
    display: flex;
    gap: 0.5rem;
}
.btn-detail {
    flex: 1;
    background: #fff;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
}
.btn-detail:hover {
    background: #ebf8ff;
}
.btn-inquiry {
    flex: 1;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
    text-align: center;
    text-decoration: none;
}
.btn-inquiry:hover {
    background: #2c5282;
}
.filters-section {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgb(0 0 0 / 0.05);
    margin-bottom: 2rem;
}
.search-box {
    display: flex;
    margin-bottom: 1.5rem;
}
.search-box input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}
.search-box button {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0 1.5rem;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background 0.3s;
}
.search-box button:hover {
    background: #2c5282;
}
.filter-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}
.filter-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: #fff;
}
.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.results-count {
    color: var(--secondary);
    font-weight: 500;
}
.sort-options select {
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 4px;
}
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    gap: 0.5rem;
}
.pagination button {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}
.pagination button.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.pagination button:hover:not(.active) {
    background: #f1f5f9;
}
footer {
    background: var(--primary);
    color: #fff;
    padding: 3rem 0 1.5rem;
    
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.footer-col h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}
.footer-col p,
.footer-col a {
    color: #cbd5e0;
    margin-bottom: 0.75rem;
    display: block;
    text-decoration: none;
}
.footer-col a:hover {
    color: #fff;
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #2d3748;
    color: #a0aec0;
}
.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}
.whatsapp-main-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #25d366;
    color: #fff;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 4px 10px rgb(0 0 0 / 0.2);
    transition: all 0.3s;
    cursor: pointer;
}
.whatsapp-main-btn:hover {
    background: #128c7e;
    box-shadow: 0 6px 15px rgb(0 0 0 / 0.3);
}
.whatsapp-list {
    position: absolute;
    bottom: 70px;
    right: 0;
    border-radius: 10px;
    padding: 5px;
    min-width: 200px;
    display: none;
    flex-direction: column;
    gap: 5px;
}
.whatsapp-list.show {
    display: flex;
    animation: slideUp 0.3s ease;
}
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.whatsapp-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 50px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    font-weight: 500;
}
.whatsapp-item:hover {
    background: #25d366;
    color: #fff;
    transform: translateX(-5px);
}
.whatsapp-item i {
    color: #25d366;
    font-size: 1.2rem;
}
.whatsapp-item:hover i {
    color: #fff;
}
.floating-customer-service {
    position: fixed;
    bottom: 50px;
    right: 10px;
    z-index: 1000;
}
.customer-service-img {
    width: 12em;
}
.whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #25d366;
    color: #fff;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 4px 10px rgb(0 0 0 / 0.2);
    transition: all 0.3s;
}
.whatsapp-btn:hover {
    background: #128c7e;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgb(0 0 0 / 0.3);
}
.whatsapp-btn i {
    font-size: 1.5rem;
}
.seo-section {
    background: var(--light);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgb(0 0 0 / 0.05);
    margin-top: 2rem;
}
.seo-section h2 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}
.seo-section h3 {
    color: var(--accent);
    margin: 1.5rem 0 0.5rem;
    font-size: 1.2rem;
}
.seo-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
}
.seo-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}
.seo-section li {
    margin-bottom: 0.5rem;
}
.search-section {
    background: #fff;
    padding: 3rem 0;
}
.search-container {
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    padding: 0 15px;
}
.search-box {
    position: relative;
    display: flex;
    gap: 10px;
    width: 100%;
}
.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    background: #fff;
    min-width: 0;
}
.search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgb(43 108 176 / 0.1);
}
.search-btn {
    padding: 12px 20px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}
.search-btn:hover {
    background: #2c5282;
}
.search-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
}
.search-results-info {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--secondary);
    font-size: 0.9rem;
    padding: 0 15px;
}
.clear-search {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    background: var(--light);
    color: var(--secondary);
    text-decoration: none;
    border-radius: 4px;
    margin-left: 10px;
    font-size: 0.85rem;
    transition: background 0.3s;
    white-space: nowrap;
}
.clear-search:hover {
    background: #e2e8f0;
}
.loading-spinner {
    display: none;
    text-align: center;
    padding: 2rem;
}
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
#allProductsContainer .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.marketing-slider-section {
    background: #fff;
    padding: 3rem 0;
}

.marketing-slider {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    /* box-shadow: 0 4px 15px rgb(0 0 0 / 0.1); */
    background: #f8f9fa; /* Fallback background */
}

.marketing-slider-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 500px;
}

.marketing-slide {
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
    position: relative;
}

.marketing-slide.active {
    opacity: 1;
    position: relative;
}

.marketing-slider-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed from cover to contain for proportional scaling */
    object-position: center;
    background: #fff; /* White background for transparent images */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.marketing-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 2rem 1rem 1rem;
    text-align: center;
    backdrop-filter: blur(2px);
}

.marketing-slide-caption p {
    margin: 0;
    font-size: 1.1rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.9);
    font-weight: 500;
}

.marketing-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s;
    z-index: 10;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.marketing-slider-nav:hover {
    background: rgba(0,0,0,0.9);
    transform: translateY(-50%) scale(1.1);
}

.marketing-slider-nav.prev {
    left: 20px;
}

.marketing-slider-nav.next {
    right: 20px;
}

.marketing-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.marketing-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.marketing-dot.active {
    background: white;
    transform: scale(1.2);
}

.marketing-dot:hover {
    background: rgba(255,255,255,0.8);
}

/* Alternative styling for different aspect ratios */
.marketing-slider.aspect-16-9 .marketing-slider-container {
    height: 0;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
}

.marketing-slider.aspect-4-3 .marketing-slider-container {
    height: 0;
    padding-bottom: 75%; /* 4:3 Aspect Ratio */
}

.marketing-slider.aspect-1-1 .marketing-slider-container {
    height: 0;
    padding-bottom: 100%; /* 1:1 Aspect Ratio */
}

.kegiatan-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 4rem 0;
    position: relative;
}

.kegiatan-slider {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.kegiatan-cards-container {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.kegiatan-cards-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.kegiatan-card {
    flex: 0 0 350px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.kegiatan-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.kegiatan-image {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
}

.kegiatan-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.kegiatan-card:hover .kegiatan-image img {
    transform: scale(1.1);
}

.kegiatan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.kegiatan-card:hover .kegiatan-overlay {
    opacity: 1;
}

.kegiatan-content {
    padding: 1.5rem;
    position: relative;
}

.kegiatan-description {
    color: var(--secondary);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.kegiatan-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
    transition: all 0.3s ease;
    z-index: 10;
}

.kegiatan-nav:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.kegiatan-nav.prev {
    left: 0;
}

.kegiatan-nav.next {
    right: 0;
}

.kegiatan-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.kegiatan-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e0;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.kegiatan-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

.kegiatan-dot:hover {
    background: var(--accent);
}

/* Animation for card entrance */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.kegiatan-card {
    animation: slideInFromRight 0.6s ease-out;
}

.toggle-kegiatan-btn {
    background: linear-gradient(135deg, #0e4b75 0%, #0c3d5e 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(14, 75, 117, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.toggle-kegiatan-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 75, 117, 0.4);
}

.toggle-kegiatan-btn.hide {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
}

.toggle-kegiatan-btn.hide:hover {
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    .floating-customer-service {
        bottom: 55px;
        right: 45px;
    }
    .customer-service-img {
        width: 90px;
    }
    .floating-whatsapp {
        bottom: 15px;
        right: 15px;
    }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary);
        flex-direction: column;
        padding: 1rem 0;
        text-align: center;
        box-shadow: 0 5px 10px rgb(0 0 0 / 0.1);
        z-index: 1001;
    }
    .nav-menu.active {
        display: flex;
    }
    .contact-menu-item {
        position: static;
    }
    .contact-dropdown {
        position: static;
        transform: none;
        margin-top: 0;
        box-shadow: none;
        border-top: 1px solid var(--border);
        border-radius: 0;
        min-width: 100%;
    }
    .contact-dropdown::before {
        display: none;
    }
    .contact-dropdown.show {
        display: block;
        animation: none;
    }
    .nav-menu.active .contact-dropdown {
        display: none;
    }
    .nav-menu.active .contact-dropdown.show {
        display: block;
    }
    .hero {
        min-height: 60vh;
        padding: 3rem 1rem;
    }
    .hero h2 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .catalog-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    .products-grid.featured {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    .group-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    .view-all-btn {
        align-self: flex-start;
    }
    .license-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .brands-section {
        padding: 2rem 0;
    }
    .brands-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1.5rem;
    }
    .brand-item {
        height: 70px;
        padding: 0.8rem;
    }
    .brand-logo {
        max-height: 40px;
    }
    .brand-logo.placeholder {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    .search-container {
        max-width: 100%;
        padding: 0 10px;
    }
    .search-box {
        gap: 8px;
    }
    .search-input {
        padding: 10px 14px;
        font-size: 0.95rem;
    }
    .search-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    #allProductsContainer .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .map-container {
        height: 300px;
    }
    
    .address-details {
        grid-template-columns: 1fr;
    }

    .marketing-slider-section {
        padding: 2rem 0;
    }
    
    .marketing-slider-container {
        height: 350px;
    }
    
    .marketing-slide-caption {
        padding: 1.5rem 0.5rem 0.5rem;
    }
    
    .marketing-slide-caption p {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .marketing-slider-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        padding: 0.75rem;
    }
    
    .marketing-slider-nav.prev {
        left: 10px;
    }
    
    .marketing-slider-nav.next {
        right: 10px;
    }
    
    .marketing-slider-dots {
        bottom: 15px;
    }
    
    .marketing-dot {
        width: 10px;
        height: 10px;
    }

    .kegiatan-section {
        padding: 3rem 0;
    }
    
    .kegiatan-card {
        flex: 0 0 300px;
    }
    
    .kegiatan-image {
        height: 200px;
    }
    
    .kegiatan-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .kegiatan-content {
        padding: 1rem;
    }
}
@media (max-width: 480px) {
    .hero {
        min-height: 50vh;
        padding: 2rem 1rem;
    }
    .hero h2 {
        font-size: 1.8rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    .brand-item {
        height: 60px;
        padding: 0.6rem;
    }
    .brand-logo {
        max-height: 35px;
    }
    .brand-logo.placeholder {
        width: 45px;
        height: 45px;
        font-size: 0.9rem;
    }

    .map-container {
        height: 250px;
    }
    
    .maps-section {
        padding: 2rem 0;
    }

    .marketing-slider-section {
        padding: 1.5rem 0;
    }
    
    .marketing-slider-container {
        height: 250px;
    }
    
    .marketing-slider {
        border-radius: 6px;
    }
    
    .marketing-slide-caption {
        padding: 1rem 0.5rem 0.5rem;
    }
    
    .marketing-slide-caption p {
        font-size: 0.9rem;
        line-height: 1.2;
    }
    
    .marketing-slider-nav {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        padding: 0.5rem;
    }
    
    .marketing-slider-nav.prev {
        left: 5px;
    }
    
    .marketing-slider-nav.next {
        right: 5px;
    }
    
    .marketing-slider-dots {
        bottom: 10px;
        gap: 8px;
    }
    
    .marketing-dot {
        width: 8px;
        height: 8px;
    }

    .kegiatan-section {
        padding: 2rem 0;
    }
    
    .kegiatan-card {
        flex: 0 0 280px;
    }
    
    .kegiatan-image {
        height: 180px;
    }
    
    .kegiatan-nav {
        width: 35px;
        height: 35px;
        display: none; /* Hide arrows on very small screens */
    }
    
    .kegiatan-cards-container {
        gap: 1rem;
    }
}

.marketing-slider-image {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.marketing-slider-image.loaded {
    opacity: 1;
}

/* Fallback for broken images */
.marketing-slider-image:before {
    content: "Gambar tidak tersedia";
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #64748b;
    font-size: 0.9rem;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.marketing-slider-image:after {
    content: attr(alt);
    display: none;
}

.quebeeq {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}
.brands-section {
    background: #fff;
    padding: 3rem 0;
}
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: center;
    justify-items: center;
}
.brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    width: 100%;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgb(0 0 0 / 0.05);
    transition: all 0.3s ease;
}
.brand-item:hover {
    transform: scale(1.05);
}
.brand-logo {
    max-width: 100%;
    max-height: 50px;
    object-fit: contain;
    transition: all 0.3s ease;
}
.brand-logo:hover {
    opacity: 1;
}
.brand-logo.placeholder {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.2rem;
    filter: none;
    opacity: 1;
}

/* Product Image Slider Styles */
.product-image-slider {
    height: 200px;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.slide.active {
    opacity: 1;
}

.slide img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 10px;
    pointer-events: none;
}

.slider-prev,
.slider-next {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    pointer-events: all;
    transition: background 0.3s;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 5px;
    pointer-events: none;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
    pointer-events: all;
}

.dot.active {
    background: rgba(255, 255, 255, 1);
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.no-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* Hide navigation and dots for single image */
.product-image-slider:has(.slide:only-child) .slider-nav,
.product-image-slider:has(.slide:only-child) .slider-dots {
    display: none;
}

.maps-section {
    background: #fff;
    padding: 3rem 0;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgb(0 0 0 / 0.1);
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.address-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.address-info h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.address-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.address-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.address-item i {
    color: var(--accent);
    margin-top: 2px;
    flex-shrink: 0;
}

.address-text {
    color: var(--secondary);
    line-height: 1.4;
}

.kegiatan-cards-container {
    scroll-snap-type: x mandatory;
}

.kegiatan-card {
    scroll-snap-align: start;
}