/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */


.card {
    background-color: transparent !important;
}

.btn-custom {
    border-color: #1f2d36 !important;
    background-color: #1f2d36 !important;
    color: #fff !important;
    font-size: 12px !important;
    padding: 8px !important;
    border-radius: 4px !important;
}

.btn-custom:hover {
    background-color: #6b7444 !important;
}

li.custom-page-item span {
    border-color: #1f2d36 !important;
    background-color: #1f2d36 !important;
    color: #fff !important;
}

li.custom-page-item .page-link {
    padding: 3px 6px !important;
}

.custom-primary {
    background-color: #003B2E !important;
    color: #fff !important;
}

.compact-view-btn {
    padding: 2px 6px;
    line-height: 1;
    border-radius: 6px;
}

.status-badge {
    width: 100px !important;
    background-color: #9dafac !important;
}

.custom-link {
    color: #003B2E !important;
    text-decoration: none !important;
}

.custom-link:hover {
    transform: scale(1.05);
}

.custom-link:focus {
    transform: scale(0.95);
    color: #fff !important;
}

.avatar-lg {
    width: 100px;
    height: 100px;
}

.avatar-title {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    border-radius: 50%;
    background: #ccd1df;
}

.icon-circle {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #b5bcc8;
}

#members-page ul {
    margin: unset !important;
}

.btn-custom-primary {
    background: #003B2E;
    color: #fff;
    border: 1px solid #003B2E;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    transition: 0.15s;
}

.btn-custom-primary:hover,
.btn-custom-primary.active {
    background: #025544;
    border-color: #025544;
}

.btn-custom-primary:disabled {
    opacity: .4;
}

/* Small phones */
@media (max-width: 480px) {
    .btn-custom-primary {
        flex: 1 0 18%;
        text-align: center;
        margin-bottom: 6px;
    }
}


#members-page .cards-wrapper {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px 0;
}

#members-page .cards-wrapper .card {
    min-width: 250px;
}

/* Tablet+: switch to wrapping grid */
@media (min-width: 768px) {
    #members-page .cards-wrapper {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        white-space: normal;
        overflow-x: visible;
    }
}

.avatar-lg img {
    width: 96px;
    height: 96px;
    object-fit: cover;
}

@media (max-width: 575px) {
    .avatar-lg img {
        width: 72px;
        height: 72px;
    }
}

@media (max-width: 575px) {
    #members-page h5 {
        font-size: 14px;
    }

    #members-page p {
        font-size: 12px;
    }
}


.hover-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    min-height: 200px;
}

.hover-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.hover-card:hover {
    border-color: var(--bs-primary);
}

.hover-card .card-title {
    transition: color 0.25s ease;
}

.hover-card:hover .card-title {
    color: var(--bs-primary);
}

.list-inline {
    margin: unset !important;
}

/*=================== Image Gallery Styles =================*/
.image-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    height: 100%;
    width: 100%;
}

.gallery-img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.image-card:hover .gallery-img {
    transform: scale(1.08);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: #fff;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-card:hover .image-overlay {
    opacity: 1;
}

/* Lightbox */

.lightbox-modal .modal-content {
    background: transparent;
    border: none;
}

.lightbox-image {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-caption {
    padding: 10px;
    font-weight: 500;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    padding: 8px 8px;
    cursor: pointer;
    border-radius: 8px;
}

.lightbox-nav.left {
    left: 15px;
}

.lightbox-nav.right {
    right: 15px;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.7);
    color: white;
}

/*============ Needs to convert to masonry layout =====================*/
/*================== Youtube Video Gallery ============================*/
.video-card {
    cursor: pointer;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.video-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.thumbnail-wrapper {
    position: relative;
    overflow: hidden;
}

.video-thumbnail {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-card:hover .video-thumbnail {
    transform: scale(1.08);
}

.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-duration {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 500;
}

.video-card:hover .play-overlay {
    opacity: 1;
}

.play-button {
    font-size: 20px;
    color: white;
    background: rgba(255, 0, 0, 0.85);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-title {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
}

/*========================= Month wise Session Calendar =======================*/
.session-calendar {
    width: 100%;
    max-height: 300px !important;
}

.session-calendar-header {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.session-calendar-weekdays {
    width: 100%;
    display: grid;
    gap: 4px;
    grid-template-columns:repeat(7, 1fr);
    margin-bottom: 5px;
    background-color: transparent;
    background-image: linear-gradient(231deg, #D29C38 0%, #0A4F3E 100%);
}

.calendar-weekday {
    width: 100%;
    aspect-ratio: 1 / 1;
    text-align: center;
    font-weight: 600;
    color: #fff;
}

.session-calendar-grid {
    width: 100%;
    display: grid;
    grid-template-columns:repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.calendar-day:not(.empty) {
    border: 1px solid #e5e5e5;
}

.calendar-day .day-number {
    font-weight: 500;
}

.calendar-day.has-session {
    background: #f3f6ff;
    border-color: #5b7cff;
    cursor: pointer;
}

.calendar-day.has-session .day-number {
    color: #5b7cff;
}

.calendar-day {
    position: relative;
}

.calendar-tooltip {
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);

    background: #5b5a5a;
    color: #fff;

    border-radius: 8px;
    font-size: 13px;
    min-width: 200px;
    padding: 7px 14px;
    opacity: 0;
    pointer-events: none;

    transition: all .25s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.tooltip-header-wrapper {
    /*display:flex;*/
    /*align-items:center;*/
    /*justify-content:center;*/
    /*border-top-left-radius:8px;*/
    /*border-top-right-radius:8px;*/
    /*gap:5px;*/
    /*background-image: linear-gradient(231deg, #D29C38 0%, #0A4F3E 100%);*/
}

.calendar-tooltip ul {
    margin: 5px 0 0 0;
    padding-left: 15px;
}

.calendar-day:hover .calendar-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.calendar-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);

    border-width: 6px;
    border-style: solid;
    border-color: #5b5a5a transparent transparent transparent;
}

.year-calendar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.year-month {
    width: 100%;
}

.month-title {
    text-align: center;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 18px;
}

@media (max-width: 1024px) {
    .year-calendar {
        grid-template-columns:repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .year-calendar {
        grid-template-columns:1fr;
    }
}

.news-published-date {
    font-size: 14px;
    color: #b10303;
    font-weight: 600;
}