
/* Live Darshan Section Styles */
.live-darshan-section {
    padding: 20px;
}

.live-darshan-section h2 {
    color: #ff6600;
    font-size: 2.5rem;
    font-weight: bold;
}

/* Darshan Card */
.darshan-card {
    margin-bottom: 20px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.darshan-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.darshan-wrap {
    position: relative;
    text-align: center;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
}

/* Image Size Fix */
.darshan-image {
    width: 100%; max-width: 100%;
    height: 340px;  /* Fixed height */
    object-fit: cover; /* Ensures all images look uniform */
    border-radius: 8px;
}

.darshan-name {
    margin-top: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

/* View Button */
.view-btn {
    margin-top: 10px;
    background-color: #ff6600;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.view-btn:hover {
    background-color: #e55c00;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .darshan-wrap {
        padding: 5px;
    }

    .darshan-name {
        font-size: 1rem;
    }

    .view-btn {
        font-size: 0.9rem;
        padding: 4px 8px;
    }
}

@media (max-width: 576px) {
    .live-darshan-section h2 {
        font-size: 2rem;
    }

    .darshan-wrap {
        padding: 5px;
    }

    .darshan-name {
        font-size: 0.9rem;
    }

    .view-btn {
        font-size: 0.8rem;
        padding: 3px 7px;
    }
}

/* Modal Styles */
.modal-content {
    border-radius: 10px;
    background-color: #f9f9f9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: none;
    padding-bottom: 0;
}

.modal-title {
    font-size: 1.5rem;
    color: #ff6600;
}

.close {
    color: #333;
    font-size: 1.5rem;
    opacity: 1;
}

.modal-body {
    padding: 20px;
}

.modal-body iframe {
    border-radius: 10px;
}

@media (max-width: 768px) {
    .modal-body {
        padding: 15px;
    }

    .modal-title {
        font-size: 1.3rem;
    }
}

/* Mobile Live Darshan grid fix */
@media (max-width: 576px) {
    .live-darshan-section .row {
        margin-left: -6px;
        margin-right: -6px;
    }

    .live-darshan-section .row > div {
        padding-left: 6px;
        padding-right: 6px;
    }

    .live-darshan-section .darshan-card {
        width: 100%;
        margin-bottom: 12px;
    }

    .live-darshan-section .darshan-wrap {
        width: 100%;
        padding: 6px;
        overflow-wrap: anywhere;
    }

    .live-darshan-section .darshan-image {
        display: block;
        width: 100%;
        height: 130px;
        object-fit: cover;
    }

    .live-darshan-section .darshan-name {
        font-size: 13px;
        line-height: 1.3;
        overflow-wrap: anywhere;
    }

    .live-darshan-section .view-btn {
        margin-top: 7px;
        font-size: 12px;
        padding: 5px 10px;
    }
}

/* Force uniform Live Darshan image sizes */
.live-darshan-section .darshan-image {
    display: block !important;
    width: 100% !important;
    height: 180px !important;
    max-width: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

@media (max-width: 576px) {
    .live-darshan-section .darshan-image {
        height: 130px !important;
    }
}


/* Decorative Live Darshan heading */
.live-darshan-section .live-darshan-heading {
    text-align: center;
    padding: 8px 12px 22px;
    margin: 0 auto 12px;
}

.live-darshan-section .live-darshan-heading-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.live-darshan-section .live-darshan-heading-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    color: #ff6600;
    border: 1px solid #e4bd79;
    border-radius: 50%;
    background: rgba(255, 102, 0, 0.07);
    font-size: 25px;
}

.live-darshan-section .live-darshan-heading-row h2 {
    display: block !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    line-height: 1.2;
}

.live-darshan-section .live-darshan-heading-divider {
    display: block;
    width: 78px;
    height: 2px;
    margin: 12px auto 9px;
    background: #b58a42;
    border-radius: 2px;
}

.live-darshan-section .live-darshan-heading-subtitle {
    margin: 0;
    color: #735b52;
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 576px) {
    .live-darshan-section .live-darshan-heading {
        padding: 5px 4px 18px;
    }

    .live-darshan-section .live-darshan-heading-row {
        gap: 8px;
    }

    .live-darshan-section .live-darshan-heading-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        font-size: 20px;
    }

    .live-darshan-section .live-darshan-heading-row h2 {
        font-size: 2rem;
    }

    .live-darshan-section .live-darshan-heading-subtitle {
        font-size: 12px;
    }
}
/* Match Live Darshan heading size to Available Pandits */
.live-darshan-section .live-darshan-heading h2 {
    font-size: clamp(25px, 3.2vw, 38px) !important;
}

@media (max-width: 576px) {
    .live-darshan-section .live-darshan-heading h2 {
        font-size: clamp(21px, 5.8vw, 28px) !important;
    }
}

/* Final heading size: match Available Pandits */
.live-darshan-section .live-darshan-heading-row h2 {
    font-size: clamp(25px, 3.2vw, 38px) !important;
}

@media (max-width: 576px) {
    .live-darshan-section .live-darshan-heading-row h2 {
        font-size: clamp(21px, 5.8vw, 28px) !important;
    }
}

/* Mobile fix: icon and Live Darshan text on one line */
@media screen and (max-width: 576px) {
    .live-darshan-section .live-darshan-heading-row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 7px !important;
        width: 100% !important;
    }

    .live-darshan-section .live-darshan-heading-icon {
        width: 28px !important;
        height: 28px !important;
        flex: 0 0 28px !important;
        font-size: 16px !important;
    }

    .live-darshan-section .live-darshan-heading-row h2 {
        display: block !important;
        width: auto !important;
        flex: 0 1 auto !important;
        font-size: 21px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        margin: 0 !important;
    }
}
