/* Brand alignment for homepage enrollment block */
.home-enrollment-section { border: 1px solid var(--border, #d4dee8); }
.home-enrollment-wrap .calendar-date-header { background: #122640 !important; }
.home-enrollment-wrap .btn, .home-enrollment-wrap .session-enroll-btn {
    background: #1a5fb4 !important;
    border-radius: 10px !important;
}
.home-enrollment-wrap .classes-header-section {
    background: linear-gradient(135deg, #0a1628 0%, #134a8f 100%) !important;
}
/* Homepage enrollment & calendar (scoped) */
.home-enrollment-wrap {
    margin-top: 1.5rem;
    color: #0f172a;
}

.home-enrollment-wrap .calendar-empty--notice {
    background: #fff !important;
    border: 1px solid #d4dee8;
    border-radius: 14px;
    padding: 2rem 1.75rem;
    text-align: center;
    max-width: 40rem;
    margin: 1rem auto 0;
    box-shadow: 0 4px 16px rgba(10, 22, 40, 0.06);
}

.home-enrollment-wrap .calendar-empty--notice .calendar-empty-text {
    color: #0f172a !important;
    font-size: 1.05rem;
    line-height: 1.65;
    margin: 0 0 1.5rem;
    padding: 0;
}

.home-enrollment-wrap .calendar-empty--notice .calendar-empty-text a {
    color: #0f172a !important;
    font-weight: 600;
    text-decoration: underline;
}

.home-enrollment-wrap .calendar-empty--notice .calendar-empty-text a:hover {
    color: #1a5fb4 !important;
}

.home-enrollment-wrap .calendar-empty-actions {
    margin: 0;
    padding: 0;
}

.home-enrollment-wrap .calendar-empty--notice .btn-catalog-fallback {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    padding: 0.8rem 1.75rem !important;
    background: linear-gradient(135deg, #1a5fb4 0%, #1e88e5 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    font-size: 0.9375rem !important;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(26, 95, 180, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.home-enrollment-wrap .calendar-empty--notice .btn-catalog-fallback:hover {
    background: #134a8f !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(26, 95, 180, 0.4);
}

.btn:hover {
    background-color: #2980b9;
}

.btn-primary {
    background-color: #3498db;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

a.btn {
    pointer-events: auto;
    cursor: pointer;
    z-index: 10;
    position: relative;
}

.btn-danger {
    background-color: #e74c3c;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Classes Header Section */
.classes-header-section {
    text-align: center;
    margin: 50px 0 40px 0;
    padding: 50px 30px;
    background: #2c3e50;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(44, 62, 80, 0.3);
    position: relative;
    overflow: hidden;
}

.classes-header-section > * {
    position: relative;
    z-index: 10;
}

.classes-header-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.cta-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.95);
    color: #2c3e50;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    animation: bounce 2s infinite;
    position: relative;
    z-index: 10;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.classes-main-title {
    font-size: 3.2rem;
    color: white;
    margin-bottom: 20px;
    font-weight: 800;
    position: relative;
    display: inline-block;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    z-index: 10;
}

.classes-main-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: white;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(255,255,255,0.5);
}

.classes-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.95);
    max-width: 850px;
    margin: 30px auto 30px;
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
}

.header-cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
    position: relative;
    z-index: 10;
}

.header-cta-buttons .btn,
.header-cta-buttons a.btn {
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    transition: all 0.3s;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.header-cta-buttons .btn:hover,
.header-cta-buttons .btn:focus,
.header-cta-buttons a.btn:hover,
.header-cta-buttons a.btn:focus {
    color: #fff !important;
}

.header-cta-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.header-cta-buttons .cta-primary {
    background: #27ae60;
    font-size: 1.2rem;
    padding: 1.2rem 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-cta-buttons .cta-primary:hover {
    background: #229954;
    transform: translateY(-4px);
}

/* Quick Enrollment Section */
.quick-enrollment-section {
    margin-bottom: 40px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
    position: relative;
    overflow: hidden;
}

.quick-enrollment-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.enrollment-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 15px;
    border: 2px solid rgba(255,255,255,0.3);
}

.enrollment-title {
    color: white;
    margin-top: 0;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.enrollment-description {
    color: rgba(255,255,255,0.95);
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.enrollment-cta-box {
    background: rgba(255,255,255,0.15);
    padding: 20px;
    border-radius: 12px;
    margin-top: 25px;
    border: 2px solid rgba(255,255,255,0.3);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.enrollment-cta-text {
    color: white;
    font-size: 1.05rem;
    margin-bottom: 15px;
}

.enrollment-cta-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.quick-enrollment-section form {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.quick-enrollment-section .form-group {
    flex: 1;
    min-width: 400px;
}

.quick-enrollment-section label {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 8px;
    display: block;
}

.quick-enrollment-section select {
    padding: 1.1rem;
    font-size: 1.1rem;
    border-radius: 8px;
    border: none;
    width: 100%;
    background: white;
    color: #2c3e50;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.quick-enrollment-section select:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}

.quick-enrollment-section button[type="submit"] {
    background: #27ae60;
    color: white;
    font-weight: 700;
    padding: 1.1rem 2.5rem;
    border: none;
    font-size: 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
    transition: all 0.3s;
    white-space: nowrap;
}

.quick-enrollment-section button[type="submit"]:hover {
    background: #229954;
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.5);
    transform: translateY(-3px);
}

/* Browse Classes Section */
.browse-classes-section {
    margin: 50px 0 30px 0;
}

.browse-classes-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 3px solid #3498db;
}

.browse-badge {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.browse-classes-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 700;
}

.browse-classes-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.browse-classes-title a:hover {
    color: #3498db;
}

.calendar-time-slot {
    border-top: 1px solid #ddd;
    min-height: 60px;
    padding: 10px;
}

.calendar-session-block {
    background: #3498db;
    color: white;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ======================================
   HOME PAGE CALENDAR STYLES
   ====================================== */

/* Calendar Section Container */
.calendar-section {
    margin: 60px 0 40px 0;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.calendar-header {
    text-align: center;
    margin-bottom: 30px;
}

.calendar-main-heading {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 2rem;
}

.calendar-subheading {
    color: #555;
    font-size: 1.1rem;
}

/* Calendar Grid - Single Column Layout */
.calendar-grid {
    display: block;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* Calendar Date Card */
.calendar-date-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 2px solid #e0e0e0;
    margin-bottom: 25px;
    width: 100%;
}

.calendar-date-card:last-child {
    margin-bottom: 0;
}

.calendar-date-card.today {
    border-color: #27ae60;
}

/* Date Header */
.calendar-date-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 20px;
}

.calendar-date-header.today-header {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

.calendar-date-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.calendar-date-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    word-wrap: break-word;
}

.calendar-badge {
    display: inline-block;
    background: rgba(255,255,255,0.3);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 5px;
}

.calendar-session-count {
    font-size: 1.1rem;
    opacity: 0.9;
    white-space: nowrap;
}

/* Sessions Container */
.calendar-sessions-container {
    padding: 20px;
    background: #f8f9fa;
}

.calendar-sessions-list {
    display: block;
    width: 100%;
}

/* Session Card */
.calendar-session-card {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
    border-left: 5px solid #1e6fa8;
    margin-bottom: 15px;
    width: 100%;
}

.calendar-session-card:last-child {
    margin-bottom: 0;
}

.session-card-content {
    display: block;
    width: 100%;
    margin-bottom: 15px;
}

.session-info {
    width: 100%;
    margin-bottom: 15px;
}

.session-title {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
}

.session-details {
    font-size: 0.95rem;
    opacity: 0.95;
    line-height: 1.6;
}

.session-details > div {
    margin-bottom: 5px;
}

.session-availability {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.spots-box {
    background: rgba(255,255,255,0.2);
    padding: 10px 15px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.spots-number {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.spots-text {
    font-size: 0.85rem;
    opacity: 0.9;
}

.spots-percent {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.95;
}

.session-full-badge {
    display: inline-block;
    background: #e74c3c;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
}

.session-action {
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.session-enroll-btn {
    background: white;
    color: #3498db;
    font-weight: 700;
    padding: 12px 30px;
    text-decoration: none;
    display: inline-block;
    border-radius: 6px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.session-enroll-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    color: #2980b9;
}

.session-full-message {
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.2);
    opacity: 0.8;
}

.session-link {
    color: white;
    text-decoration: underline;
}

.session-link:hover {
    opacity: 0.8;
}

/* Empty Calendar State */
.calendar-empty {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    background: white;
}

.calendar-empty-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.calendar-empty-title {
    color: #7f8c8d;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.calendar-empty-text {
    color: #95a5a6;
    font-size: 1rem;
}

.calendar-empty-text a {
    color: #3498db;
    text-decoration: underline;
}

.calendar-empty-text a:hover {
    color: #2980b9;
}

/* Calendar CTA Box */
.calendar-cta-box {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    text-align: center;
    border: 2px solid #dee2e6;
}

.calendar-cta-box p {
    margin: 0;
    color: #555;
    font-size: 1rem;
}

.calendar-cta-box a {
    color: #3498db;
    font-weight: 700;
    text-decoration: underline;
}

.calendar-cta-box a:hover {
    color: #2980b9;
}

/* Responsive */
@media (max-width: 768px) {
    /* Base adjustments */
}

/* Blend enrollment block with marketing homepage */
.home-enrollment-section {
    margin: 3rem 0;
    padding: 2rem 0;
}
.home-enrollment-section .section-title,
.home-enrollment-section .section-subtitle {
    text-align: center;
}

/* Group class schedules (homepage) */
.group-schedule-section {
    margin: 0 0 2.5rem;
    padding: 1.75rem;
    background: linear-gradient(135deg, var(--h2h-navy, #0a1628) 0%, #122640 45%, #1a4d7a 100%);
    border-radius: 14px;
    color: #fff;
}

/* Open enrollment — site brand navy → primary (distinct from group block mid-tone) */
.group-schedule-section--public {
    background: linear-gradient(135deg, var(--h2h-navy, #0a1628) 0%, var(--h2h-primary-dark, #134a8f) 50%, var(--h2h-primary, #1a5fb4) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 18px rgba(26, 95, 180, 0.22);
}

.group-schedule-header {
    margin-bottom: 1.25rem;
    text-align: center;
}

.group-schedule-heading {
    margin: 0 0 0.35rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}

.group-schedule-subheading {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.88);
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

.group-schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.group-schedule-card {
    background: #fff;
    color: #0f172a;
    border-radius: 12px;
    padding: 1.15rem 1.25rem;
    position: relative;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.group-schedule-card.is-full {
    opacity: 0.92;
}

.group-schedule-card__badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #dbeafe;
    color: #1d4ed8;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.group-schedule-card__today {
    display: inline-block;
    margin-left: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #b45309;
}

.group-schedule-card__title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
}

.group-schedule-card__org {
    margin: 0 0 0.65rem;
    font-size: 0.88rem;
    color: #64748b;
}

.group-schedule-card__meta {
    list-style: none;
    margin: 0 0 0.75rem;
    padding: 0;
    font-size: 0.9rem;
    line-height: 1.55;
}

.group-schedule-card__meta li {
    margin-bottom: 0.25rem;
}

.group-schedule-card__meta i {
    width: 1.1rem;
    color: var(--h2h-primary, #1a5fb4);
    margin-right: 0.35rem;
}

.group-schedule-card__seats {
    margin: 0;
    font-weight: 600;
    color: #15803d;
    font-size: 0.9rem;
}

.group-schedule-card__note {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    color: #64748b;
}

.group-schedule-card__badge--open {
    background: var(--h2h-primary-light, #e8f1fb);
    color: var(--h2h-primary-dark, #134a8f);
}

.group-schedule-card__action {
    margin: 0.5rem 0 0;
}

.group-schedule-card__btn {
    display: inline-block;
    background: var(--h2h-primary, #1a5fb4);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease;
}

.group-schedule-card__btn:hover {
    background: var(--h2h-primary-dark, #134a8f);
    color: #fff !important;
    transform: translateY(-1px);
}

.group-schedule-empty {
    text-align: center;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.group-schedule-empty__title {
    margin: 0 0 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
}

.group-schedule-empty__text {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.88);
}

.group-schedule-empty__text a {
    color: #93c5fd;
    font-weight: 600;
}

.group-schedule-section--public .calendar-cta-box {
    margin-top: 1.25rem;
    padding: 1rem 1.15rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.group-schedule-section--public .calendar-cta-box p {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
}

.group-schedule-section--public .calendar-cta-box a {
    color: #93c5fd;
    font-weight: 700;
}

.group-schedule-section--public .calendar-cta-box a:hover {
    color: #bfdbfe;
}

.group-schedule-card__full {
    margin: 0;
    font-weight: 700;
    color: #b91c1c;
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .group-schedule-section {
        padding: 1.25rem 1rem;
        margin-left: 0;
        margin-right: 0;
    }

    .calendar-section {
        padding: 0.75rem;
    }

    .classes-header-section {
        padding: 1.25rem 1rem !important;
    }

    .header-cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .header-cta-buttons .btn {
        width: 100%;
    }
}
