/* --- CSS TOMBOL CUSTOM (Pilihan Anda) --- */
.cta-button {
    background-color: white;
    color: #2563eb;
    border: none;
    padding: 12px 24px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    /* Tambahan agar tidak tertabrak margin bootstrap jika ada */
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    color: #1d4ed8;
    /* Sedikit lebih gelap saat hover agar interaktif */
}

/* --- CSS LAINNYA --- */
.bg-hero {
    background-color: #dbeafe;
    overflow: hidden;
}

.img-card {
    height: 350px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.card:hover .img-card {
    transform: scale(1.05);
}

/* --- SETUP ANIMASI --- */
.anim-item {
    opacity: 0;
    transition: all 1s ease-out;
}

.slide-from-left {
    transform: translateX(-100px);
}

.slide-from-right {
    transform: translateX(100px);
}

.anim-active {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .img-card {
        height: 250px;
    }
}

/* --- BOOTSTRAP 5 COMPATIBILITY SHIM --- */
/* Helper classes present in BS5 but missing/different in BS3 */

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

/* Margins and Padding utilities */
.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.px-5 {
    padding-left: 3rem !important;
    padding-right: 3rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

/* Adding spacing to columns directly for this specific simulation */
.g-5>[class*="col-"] {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 1.5rem;
    /* Approximation */
}


/* Approximation for inner grid */
.g-3>[class*="col-"] {
    padding: 0.5rem;
}


/* Typography */
.fw-bold {
    font-weight: 700 !important;
}

.display-5 {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.2;
}

.fs-5 {
    font-size: 1.25rem !important;
}

/* Card utilities */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    /* border: 1px solid rgba(0,0,0,.125); BS3 has panels, but we use .card from BS5 styles */
    border-radius: .25rem;
}

.border-0 {
    border: 0 !important;
}

.shadow {
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
}

.shadow-sm {
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075) !important;
}

.position-relative {
    position: relative !important;
}

.position-absolute {
    position: absolute !important;
}

.overflow-hidden {
    overflow: hidden !important;
}

.bottom-0 {
    bottom: 0 !important;
}

.end-0 {
    right: 0 !important;
}

.m-3 {
    margin: 1rem !important;
}

.bg-white {
    background-color: #fff !important;
}

.px-3 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.py-1 {
    padding-top: .25rem !important;
    padding-bottom: .25rem !important;
}

.rounded {
    border-radius: .25rem !important;
}

.text-primary {
    color: #337ab7;
    /* BS3 primary color, or override if needed */
}

.inspirasi-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

.section-title {
    color: #243f93;
    font-weight: 700;
    margin-bottom: 25px;
    font-size: 28px;
}

.filter-buttons {
    margin-bottom: 40px;
}

.btn-filter {
    background-color: #f1f3f5;
    color: #243f93;
    border-radius: 8px;
    padding: 8px 24px;
    font-weight: 600;
    border: none;
    margin: 0 5px;
    transition: all 0.3s;
}

.btn-filter.active,
.btn-filter:hover {
    background-color: #243f93;
    color: #fff;
}

.inspirasi-image {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.detail-title {
    color: #243f93;
    font-weight: 700;
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 20px;
}

.app-title {
    color: #243f93;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 4px;
}

.app-product {
    color: #243f93;
    font-size: 15px;
    font-weight: 400;
}

.app-dimen {
    color: #243f93;
    font-style: italic;
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: 400;
}

.features-box {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.feature-item {
    text-align: center;
    flex: 1;
    min-width: 60px;
    padding: 0 5px;
}

.feature-item img {
    width: 45px;
    height: 45px;
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 9px;
    font-weight: 600;
    color: #333;
    line-height: 1.1;
    margin: 0;
}

/* --- INSPIRATION GRID & CARDS --- */
.inspiration-grid {
    margin-top: 20px;
}

.inspiration-card {
    margin-bottom: 40px;
}

.inspiration-card .img-wrapper {
    height: 350px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    background-color: #f8f9fa;
}

.inspiration-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.inspiration-card:hover img {
    transform: scale(1.03);
}

.inspiration-card .title {
    color: #243f93;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 6px;
    display: block;
}

.inspiration-card .material-list {
    color: #555;
    font-size: 13px;
    line-height: 1.6;
    font-weight: 500;
}

.inspiration-card .material-dimen {
    color: #777;
    font-size: 12px;
}

.btn-filter {
    margin-bottom: 10px; /* Adds space when buttons wrap to the next line */
    margin-right: 5px; /* Adds horizontal space */
}

/* Optional: Remove right margin on the last button to keep it perfectly centered */
.btn-filter:last-child {
    margin-right: 0;
}

.pagination-container {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pagination-wrapper {
    display: inline-flex;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    padding: 0;
}

.pagination-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    color: #337ab7 !important;
    text-decoration: none !important;
    border-right: 1px solid #ddd;
    background: #fff;
    font-weight: 500;
    transition: background 0.2s;
    font-family: inherit;
}

    .pagination-item:last-child {
        border-right: none;
    }

    .pagination-item:hover {
        background-color: #f5f5f5;
        color: #23527c !important;
    }

    .pagination-item.page-active {
        background: #337ab7 !important;
        color: #fff !important;
        border-color: #337ab7;
        cursor: default;
    }

    .pagination-item.first, .pagination-item.prev, .pagination-item.next, .pagination-item.last {
        background-color: #f9f9f9;
        color: #777 !important;
        font-size: 18px;
    }

    .pagination-item.disabled {
        color: #ccc !important;
        background: #fff;
        cursor: not-allowed;
        pointer-events: none;
    }

.pagination-info {
    margin-top: 10px;
    font-size: 13px;
    color: #777;
}

@media (max-width: 768px) {
    .inspiration-card {
        margin-bottom: 30px;
    }

    .inspiration-card .title {
        font-size: 16px;
    }
}
