/* Exams header component styles moved from inline Blade.
   Kept scoped names to avoid global collisions. */
.exams-hero {
    border-bottom: 1px solid #e5e7eb;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

/* Make the hero section full-bleed: remove the centered max-width for the container inside the hero
   but keep comfortable inner padding so content doesn't touch screen edges. */
.exams-hero > .container {
    max-width: none;
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
}
@media (min-width: 640px) {
    .exams-hero > .container {
        padding-left: 24px;
        padding-right: 24px;
    }
}
@media (min-width: 1024px) {
    .exams-hero > .container {
        padding-left: 32px;
        padding-right: 32px;
    }
}

/* Page container to replace Tailwind's max-w / padding utilities */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}
@media (min-width: 640px) {
    .container {
        padding-left: 24px;
        padding-right: 24px;
    }
}
@media (min-width: 1024px) {
    .container {
        padding-left: 32px;
        padding-right: 32px;
    }
}
/* Make title take full available width (brand prefers bold, wide headings) */
.exams-hero .title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0b1220;
    margin: 0;
    /* line-height: 30px; */
    max-width: 100%;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

@media (min-width: 1024px) {
    .exams-hero .title {
        font-size: 2.3rem;
    }
}

/* layout classes (replacing Tailwind utilities) */
.exams-hero-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    max-width: 100%;
    width: 100%;
}
.title-wrap {
    flex: 1 1 auto;
    padding-right: 0;
    min-width: 0;
    width: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.registration-col {
    flex: 0 1 auto;
    margin-top: 0.75rem;
    margin-left: 0;
    width: 100%;
    max-width: 350px;
}
.live-session-col {
    flex: 0 1 auto;
    margin-top: 0.75rem;
    margin-left: 0;
    width: 100%;
}
.right-spacer {
    margin-left: 0;
}

@media (min-width: 768px) {
    .exams-hero-row {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        justify-content: center;
        /* max-width: 1200px; */
    }
    .title-wrap {
        padding-right: 1rem;
        flex: 1 1 auto;
        width: auto;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .registration-col {
        /* margin-top: 0;
        margin-left: 0; */
        flex: 0 0 auto;
        width: auto;
        /* max-width: none; */
    }
    .live-session-col {
        margin-top: 0;
        margin-left: 0.5rem;
        flex: 0 0 auto;
        width: auto;
        max-width: none;
    }
    .right-spacer {
        margin-left: auto;
    }
}
.exams-hero .desc {
    margin-top: 6px;
    color: #6b7280;
}

/* Registration pill: rounded rectangle with purple stroke and subtle shadow */
/* Registration pill (compact, bordered, right aligned on wide screens) */
.registration-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* use full width on mobile, auto on larger screens */
    width: 100%;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 10px;
    border: 2px solid #6d28d9; /* purple outline */
    background: linear-gradient(135deg, #f8f5ff, #ffffff);
    color: #0b1220;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(182, 86, 226, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 8px;
}

@media (min-width: 768px) {
    .registration-pill {
        width: auto;
    }
}
.registration-pill .pill-text {
    display: inline-block;
}
.registration-pill .pill-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    margin-left: 2px;
    font-weight: 600;
}
.registration-pill:hover {
    box-shadow: 0 12px 28px rgba(182, 86, 226, 0.25);
    border-color: #9333ea;
    background: linear-gradient(135deg, #f5ecff, #ffffff);
    transform: translateY(-2px);
}
.registration-pill:hover .pill-arrow {
    transform: translateX(4px);
}
.registration-pill.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* registration wrapper: light rounded inset container */
.registration-wrapper {
    background: linear-gradient(
        135deg,
        rgba(139, 92, 246, 0.05),
        rgba(182, 86, 226, 0.03)
    );
    border-radius: 12px;
    padding: 12px;
    border: 1px solid rgba(182, 86, 226, 0.15);
    position: relative;
}

/* Registration badge label */
.registration-badge {
    position: absolute;
    top: -10px;
    left: 12px;
    background: linear-gradient(135deg, #b656e2, #234eb0);
    color: #fff;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(182, 86, 226, 0.2);
}

/* small icon inside pill */
.registration-pill .pill-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}
.registration-pill:hover .pill-icon {
    transform: rotate(5deg) scale(1.1);
}
.registration-pill .pill-icon svg {
    display: block;
    stroke-width: 2;
}

/* On larger screens we align the row items on baseline so the pill sits on the heading baseline
   instead of using a manual transform nudge. */
/* larger-screen alignment is handled by the Blade layout (md:items-baseline) */

/* Live Session Pill Styles (similar to registration but with video theme) */
.live-session-col {
    flex: 0 0 auto;
    margin-top: 0.75rem;
    margin-left: 0;
}

@media (min-width: 768px) {
    .live-session-col {
        margin-top: 0;
        margin-left: 1rem;
    }
}

.live-session-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* use full width on mobile, auto on larger screens */
    width: 100%;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 10px;
    border: 2px solid #ec4899; /* pink/red for live */
    background: linear-gradient(135deg, #fef2f6, #ffffff);
    color: #0b1220;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 8px;
}

@media (min-width: 768px) {
    .live-session-pill {
        width: auto;
    }
}
.live-session-pill .pill-text {
    display: inline-block;
}
.live-session-pill .pill-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    margin-left: 2px;
    font-weight: 600;
}
.live-session-pill:hover {
    box-shadow: 0 12px 28px rgba(236, 72, 153, 0.25);
    border-color: #db2777;
    background: linear-gradient(135deg, #fce7f3, #ffffff);
    transform: translateY(-2px);
}
.live-session-pill:hover .pill-arrow {
    transform: translateX(4px);
}
.live-session-pill.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Live session wrapper: light rounded inset container */
.live-session-wrapper {
    background: linear-gradient(
        135deg,
        rgba(236, 72, 153, 0.05),
        rgba(236, 72, 153, 0.03)
    );
    border-radius: 12px;
    padding: 12px;
    border: 1px solid rgba(236, 72, 153, 0.15);
    position: relative;
}

/* Live session badge label */
.live-session-badge {
    position: absolute;
    top: -10px;
    left: 12px;
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    color: #fff;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.2);
}

/* Live session icon inside pill */
.live-session-pill .pill-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}
.live-session-pill:hover .pill-icon {
    transform: rotate(-5deg) scale(1.1);
}
.live-session-pill .pill-icon svg {
    display: block;
    stroke-width: 2;
}

/* Tabs strip */
.exams-tabs {
    background: #f3f4f6;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}
.exams-tabs .tabs-inner {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: auto;
}
.exams-tabs ul {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 10px 0;
    margin: 0;
    list-style: none;
    white-space: nowrap;
    flex-wrap: nowrap;
}
.exams-tabs ul li {
    flex: 0 0 auto;
}
.exams-tabs a.tab {
    color: #111827;
    font-weight: 600;
    padding: 8px 12px;
    display: inline-block;
    text-decoration: none;
    border: 1px solid #d1d5db;
    border-radius: 22px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    touch-action: manipulation;
}
.exams-tabs a.tab:hover {
    border-color: #6d28d9;
    color: #6d28d9;
}
.exams-tabs a.tab.active {
    background: #6d28d9;
    color: #fff;
    border-radius: 22px;
    padding: 8px 18px;
    border: none;
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.12);
}

/* Arrows for overflow navigation */
.exams-tabs .nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(2, 6, 23, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    cursor: pointer;
}
.exams-tabs .nav-arrow.left {
    left: 8px;
}
.exams-tabs .nav-arrow.right {
    right: 8px;
}
.exams-tabs .nav-arrow svg {
    width: 14px;
    height: 14px;
    color: #374151;
}

/* Hide native scrollbar but keep scrollability */
.exams-tabs .tabs-inner::-webkit-scrollbar {
    display: none;
}
.exams-tabs .tabs-inner {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

@media (min-width: 1440px) {
    /* slightly more space on very wide screens */
    /* .exams-hero .title {
        font-size: 32px;
    } */
    /* Constrain pills on very large screens */
    .registration-pill {
        max-width: 420px;
    }
    .live-session-pill {
        max-width: 420px;
    }
}

/* Tabs container adjustments (non-Tailwind) */
.tabs-container {
    padding-left: 0;
    padding-right: 0;
    max-width: none;
    width: 100%;
}
.tabs-container .tabs-inner {
    padding-left: 16px;
    padding-right: 56px;
}

/* Mobile-specific adjustments: make sure tabs behave like a horizontal flex row with scroll
   and keep arrows hidden on small screens (they appear only when overflow is detected). */
@media (max-width: 767px) {
    /* On narrow screens tabs should wrap into multiple rows rather than horizontally scroll. */
    .tabs-container .tabs-inner {
        padding-left: 12px;
        padding-right: 12px;
        overflow-x: visible;
    }
    .exams-tabs .nav-arrow {
        display: none !important;
    }
    .exams-tabs ul {
        gap: 12px;
        padding: 8px 0;
        flex-wrap: wrap;
    }
    /* Allow items to shrink and wrap into subsequent lines */
    .exams-tabs ul li {
        flex: 0 1 auto;
    }
    /* Disable scroll-snap on mobile when tabs can wrap */
    .exams-tabs .tabs-inner {
        scroll-snap-type: none;
    }
}
.tabs-container .tabs-inner ul {
    padding-left: 0;
}

.tabs-fallback {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
    color: #374151;
}
.tab-link {
    color: #374151;
    text-decoration: none;
    padding: 6px 8px;
    display: inline-block;
}
.tab-link:hover {
    color: #6d28d9;
}

/* Small helper to keep the right-side buttons from overlapping tabbable area */
.tabs-container .nav-arrow {
    z-index: 30;
}
