/*
Theme Name: Bright Imaginations Child
Template: hello-elementor
Version: 2.0
*/

/* ================================
   SLIDER
================================ */

.ph-slider-container {
    position: relative;
    width: 100%;
    padding: 40px 0;
}

.ph-slider-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
}

.ph-slider-scroll::-webkit-scrollbar {
    display: none;
}

.ph-slider-track {
    display: flex;
    gap: 30px;
    cursor: grab;
}

.ph-card {
    flex: 0 0 400px;
    cursor: pointer;
}

.ph-card-image {
/*    height: 280px; */
    overflow: hidden;
    border-radius: 18px;
}

.ph-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ph-card-content {
    padding-top: 15px;
}

.ph-title {
    margin: 0 0 5px;
}

.ph-subtitle {
    font-weight: 600;
}

.ph-card-content,
.ph-title,
.ph-subtitle {
    color: #ffffff;
}

.ph-title {
    font-weight: 600;
}

.ph-subtitle {
    opacity: 0.85;
}


/* ================================
   DYNAMIC TEXT + PAGINATION COLORS
================================ */

/* WHITE MODE */

.ph-text-white .ph-title,
.ph-text-white .ph-subtitle {
    color: #ffffff;
}

.ph-text-white .ph-pagination {
    background: rgba(255,255,255,0.25);
}

.ph-text-white .ph-progress {
    background: #ffffff;
}


/* BRAND MODE */

.ph-text-brand .ph-title,
.ph-text-brand .ph-subtitle {
    color: #01004C;
}

.ph-text-brand .ph-pagination {
    background: rgba(1,0,76,0.2);
}

.ph-text-brand .ph-progress {
    background: #01004C;
}


/* ================================
   PAGINATION
================================ */

.ph-pagination {
    height: 4px;
    width: 100%;
    max-width: 200px;   /* limit width */
    background: rgba(255,255,255,0.2);
    margin: 30px auto 0; /* center it */
    margin-top: 30px;
    border-radius: 4px;
}

.ph-progress {
    height: 100%;
    width: 0%;
    background: #ffffff;
    border-radius: 4px;
}

/* ================================
   MODAL
================================ */

.ph-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.ph-modal {
    background: #ffffff;
    width: 90%;
    max-width: 900px;
    max-height: 90vh; /* Limit height to viewport */
    border-radius: 20px;
    overflow-y: auto; /* Enable vertical scrolling */
    overflow-x: hidden; /* Prevent horizontal scroll */
    position: relative; /* IMPORTANT */
    animation: fadeIn 0.3s ease;
}

.ph-modal-image {
    height: 400px;
    background-size: cover;
    background-position: center;
}

.ph-modal-content {
    padding: 30px;
}

.ph-modal-title {
    margin-top: 0;
}

/* CLOSE BUTTON FIXED */

.ph-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #ffffff;
    background: rgba(0,0,0,0.6);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

.ph-modal-close:hover {
    background: rgba(0,0,0,0.8);
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}