/* Exams header component styles moved from inline Blade.
   Kept scoped names to avoid global collisions. */
.exams-hero {border-bottom: 1px solid #e5e7eb; }

/* 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: 25px; font-weight: 700; color: #0b1220; margin: 0; line-height: 30px; max-width: 100%; letter-spacing: 0; overflow-wrap: anywhere; }

/* 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: 2.5rem; padding-bottom: 2.5rem; }
.title-wrap { flex: 1 1 auto; padding-right: 0; min-width: 0; }
.registration-col { flex: 0 0 auto; margin-top: 0.75rem; margin-left: 0; }
.right-spacer { margin-left: 0; }

@media (min-width: 768px) {
    .exams-hero-row { flex-direction: row; flex-wrap: nowrap; align-items: baseline; gap: 1rem; }
    .title-wrap { padding-right: 1.5rem; }
    .registration-col { margin-top: 0; margin-left: 2rem; }
    .right-spacer { margin-left: 1.5rem; }
}
.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;
    /* slightly smaller minimum to give the title more room */
    min-width: 160px;
    max-width: 420px;
    /* tighten horizontal padding to better match the screenshot */
    padding: 6px 12px;
    border-radius: 10px;
    border: 2px solid #6d28d9; /* purple outline */
    background: #ffffff;
    color: #0b1220;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(16,24,40,0.06);
}
.registration-pill .pill-text { display:inline-block; }
.registration-pill:hover { box-shadow: 0 10px 26px rgba(16,24,40,0.08); }

/* registration wrapper: light rounded inset container */
.registration-wrapper {
    background: rgba(99,102,241,0.03); /* very light purple tint */
    border-radius: 12px;
    padding: 6px;
}

/* small icon inside pill */
.registration-pill .pill-icon { display:inline-flex; align-items:center; margin-right:8px; }
.registration-pill .pill-icon img { display:inline-block; vertical-align: middle; }

/* 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) */

/* Tabs strip */
.exams-tabs { background: #f3f4f6; border-top: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; position: relative; }
.exams-tabs .tabs-inner { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch; }
.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; }
.exams-tabs a.tab.active { background: #6d28d9; color: #fff; border-radius: 22px; padding: 8px 18px; 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 { height: 6px; }
.exams-tabs .tabs-inner::-webkit-scrollbar-track { background: transparent; }
.exams-tabs .tabs-inner::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 10px; }


@media (min-width: 1440px) {
    /* slightly more space on very wide screens */
    .exams-hero .title { font-size: 32px; }
}

/* Tabs container adjustments (non-Tailwind) */
.tabs-container { padding-left: 0; padding-right: 0; }
.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; }
