/* Siqaya Custom Overrides & Extensions */

/* --- Form Fixes --- */
.default-form .form-group input[type="number"] {
    position: relative;
    display: block;
    width: 100%;
    height: 60px;
    background: #ffffff;
    border: 1px solid #e5eaf4;
    border-radius: 5px;
    font-size: 16px;
    color: #1a243d;
    padding: 10px 30px;
    transition: all 500ms ease;
}

.default-form .form-group .nice-select {
    height: 60px;
    line-height: 58px;
    border: 1px solid #e5eaf4;
    border-radius: 5px;
    padding: 0 30px;
    width: 100%;
    font-size: 16px;
    color: #1a243d;
}

.default-form .form-group .nice-select:after {
    right: 30px;
}

.default-form .form-group .nice-select .list {
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #1a243d;
}

.form-error {
    border-color: #ff4d4d !important;
}

.error-message {
    color: #ff4d4d;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

/* --- Partner Section --- */
.partner-section {
    padding: 100px 0;
    background-color: #ffffff;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    align-items: center;
    justify-items: center;
}

.partner-item img {
    max-width: 140px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 300ms ease;
}

.partner-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* --- CSR Gallery Section --- */
.gallery-section {
    padding: 100px 0;
    background-color: #f7f9fb;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 110, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 300ms ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: #fff;
    font-size: 24px;
}

/* --- Vanilla Lightbox --- */
#siqaya-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 300ms ease;
}

#siqaya-lightbox.active {
    display: flex;
    opacity: 1;
}

#siqaya-lightbox img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}

/* --- YouTube Responsive Embed --- */
.video-embed {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    /* Ensure it's above any decorative shapes that might block clicks */
    z-index: 5;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- Footer Sertifikasi & Standar --- */
.footer-sertifikasi {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    margin-top: 10px;
}

.footer-sertifikasi-header {
    margin-bottom: 28px;
}

.footer-sertifikasi-header h4 {
    font-family: 'Spartan', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.footer-sertifikasi-header p {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    margin: 0;
    max-width: 650px;
}

.footer-sertifikasi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.footer-sertifikasi-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    transition: all 300ms ease;
}

.footer-sertifikasi-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.footer-sertifikasi-item img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.85;
    flex-shrink: 0;
}

.footer-sertifikasi-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.footer-sertifikasi-text strong {
    font-family: 'Spartan', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

.footer-sertifikasi-text span {
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
}

/* --- Footer Sertifikasi Responsive --- */
@media only screen and (max-width: 1199px) {
    .footer-sertifikasi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (max-width: 767px) {
    .footer-sertifikasi {
        padding-top: 30px;
        margin-top: 5px;
    }

    .footer-sertifikasi-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .footer-sertifikasi-item {
        padding: 14px 16px;
    }
}