﻿.learning-levels-section {
    background: transparent;
    padding: 1.5rem 0;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

.levels-title {
    color: #21374C;
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

.levels-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

/* Base card: should fill whatever container it's placed in (Bootstrap cols, etc.) */
.level-card {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    border-left: 3px solid rgba(33, 55, 76, 0.35);
    padding: 0.875rem;
    width: 100%;
    max-width: 100%;
}

/* Only apply "grid sizing" when inside the custom flex grid */
.levels-grid .level-card {
    flex: 0 1 calc(25% - 0.75rem);
    min-width: 240px;
    max-width: 300px;
}

/* Tablets / iPads (<= 991.98px): 2 cards per row */
@media (max-width: 991.98px) {
    .levels-grid .level-card {
        flex: 0 1 calc(50% - 0.75rem);
        max-width: none;
    }
}

/* Small screens (<= 767.98px): 1 card per row (safety) */
@media (max-width: 767.98px) {
    .levels-grid .level-card {
        flex: 0 1 100%;
    }
}

.level-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.625rem;
}

.level-icon {
    color: #21374C;
    font-size: 0.95rem;
}

.learning-level-name {
    font-weight: 650;
    color: #21374C;
    font-size: 1.2rem;
}

.level-curriculum {
    font-size: 0.7rem;
    background: #eef6ff;
    color: #0b5aa2;
    border: 1px solid rgba(3, 105, 161, 0.2);
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
    margin-left: auto;
}

.level-classes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

.class-tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    background: #f7f7f8;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    color: #4b5563;
    font-weight: 500;
}

.level-meta {
    display: flex;
    justify-content: center;
    gap: 0.65rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f3f4f6;
    font-size: 0.58rem;
    color: #9ca3af;
    line-height: 1.2;
}

.level-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.level-meta i {
    color: rgba(33, 55, 76, 0.75);
    font-size: 0.52rem;
}

.levels-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.level-item-mobile {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    border-left: 3px solid rgba(33, 55, 76, 0.35);
    padding: 0.75rem;
}

.level-header-mobile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.level-header-mobile > i {
    color: #21374C;
    font-size: 0.9rem;
}

.level-name-mobile {
    font-weight: 650;
    color: #21374C;
    font-size: 1.1rem;
}

.curriculum-badge {
    font-size: 0.65rem;
    background: #eef6ff;
    color: #0b5aa2;
    border: 1px solid rgba(3, 105, 161, 0.2);
    padding: 0.1rem 0.4rem;
    border-radius: 8px;
    font-weight: 600;
    margin-left: auto;
}

.classes-mobile {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
}

.class-tag-mobile {
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    background: #f7f7f8;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    color: #4b5563;
    font-weight: 500;
}

.meta-mobile {
    display: flex;
    justify-content: center;
    gap: 0.55rem;
    padding-top: 0.4rem;
    border-top: 1px solid #f3f4f6;
    font-size: 0.55rem;
    color: #9ca3af;
    line-height: 1.2;
}

.meta-mobile span {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.meta-mobile i {
    color: rgba(33, 55, 76, 0.75);
    font-size: 0.48rem;
}

/* Leaders (redesign v2) */
.leaders {
    padding: 1.5rem 0;
}

.leaders__header {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.leaders__title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: #21374C;
    font-weight: 650;
    font-size: 1.25rem;
}

.leaders__title-icon {
    color: rgba(33, 55, 76, 0.65);
    font-size: 1rem;
}

/* Desktop grid: "media card" with subtle gradient + bottom fade */
.leaders__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem;
}

.leaders__card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    flex: 0 1 calc(25% - 0.9rem);
    min-width: 240px;
    max-width: 290px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.leaders__card:hover {
    transform: translateY(-3px);
    border-color: rgba(33, 55, 76, 0.22);
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.12);
}

.leaders__media {
    position: relative;
    height: 260px;
    background: #f3f4f6;
}

.leaders__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 55%, rgba(0, 0, 0, 0.22) 100%);
    pointer-events: none;
}

.leaders__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.leaders__body {
    padding: 0.9rem 0.9rem 1rem;
    text-align: center;
}

.leaders__role {
    margin: 0 0 0.25rem 0;
    color: #21374C;
    font-size: 1rem;
    font-weight: 650;
}

.leaders__name {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Mobile list: compact horizontal card */
.leaders__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.leaders__item {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 0.75rem;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.6rem;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

.leaders__item-media {
    width: 96px;
    height: 96px;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
}

.leaders__item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.leaders__item-body {
    min-width: 0;
}

.leaders__role--mobile {
    font-size: 0.95rem;
}

.leaders__name--mobile {
    font-size: 0.85rem;
}

/* Responsive alignment with existing breakpoints */
@media (max-width: 576px) {
    .leaders {
        padding: 1rem 0;
    }

    .leaders__title {
        font-size: 1.1rem;
    }
}

@media (max-width: 991px) {
    .leaders__card {
        flex: 0 1 calc(33.333% - 0.9rem);
    }
}

@media (max-width: 767px) {
    .leaders__card {
        flex: 0 1 calc(50% - 0.9rem);
    }
}

.section-header {
    color: #21374C;
    text-align: center;
}

    .section-header i {
        color: #21374C;
        opacity: 0.75;
    }

/* ===========================================
   Mobile Events & Session Dates
   =========================================== */

.mobile-events-section {
    margin: 0.5rem 0;
}

.mobile-event-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.mobile-event-card__header {
    background: linear-gradient(135deg, #38506B 0%, #2c4158 100%);
    color: #fff;
    padding: 0.875rem 1rem;
}

.mobile-event-card__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-event-card__title i {
    font-size: 0.9rem;
}

.mobile-event-card__body {
    padding: 1rem;
}

/* Event Row Layout */
.mobile-event-row {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
}

/* Date Box */
.mobile-date-box {
    min-width: 56px;
    text-align: center;
    padding: 0.625rem 0.75rem;
    border-radius: 10px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.mobile-date-box--event {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.mobile-date-box--session {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.mobile-date-box--empty {
    background: #dee2e6;
    color: #6c757d;
}

.mobile-date-box__month {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.mobile-date-box__day {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.1;
}

/* Event Info */
.mobile-event-info {
    flex: 1;
    min-width: 0;
}

.mobile-event-info__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0.35rem;
    line-height: 1.35;
}

.mobile-event-info__meta {
    font-size: 0.85rem;
    color: #5a6c7d;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.25rem;
}

.mobile-event-info__meta i {
    font-size: 0.75rem;
    color: #38506B;
    width: 14px;
    flex-shrink: 0;
}

.mobile-event-info__countdown {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.5rem;
    padding: 0.3rem 0.6rem;
    background: linear-gradient(135deg, #e8f4fc, #d0e8f7);
    color: #0066cc;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
}

.mobile-event-info__countdown i {
    font-size: 0.7rem;
}

/* Event Image */
.mobile-event-image {
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin: 0.875rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Action Button */
.mobile-event-btn {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.15s ease;
    margin-top: 0.75rem;
}

.mobile-event-btn--primary {
    background: #38506B;
    color: #fff;
    border: none;
}

.mobile-event-btn--primary:hover,
.mobile-event-btn--primary:active {
    background: #2c4158;
    color: #fff;
    text-decoration: none;
}

.mobile-event-btn--outline {
    background: transparent;
    border: 1.5px solid #38506B;
    color: #38506B;
}

.mobile-event-btn--outline:hover,
.mobile-event-btn--outline:active {
    background: #38506B;
    color: #fff;
    text-decoration: none;
}

/* Empty State */
.mobile-event-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 0;
}

.mobile-event-empty__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f3f4f6;
    color: #9ca3af;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.mobile-event-empty__text {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.mobile-event-empty__subtext {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 0.2rem;
}