/* ==========================================================================
   Exam listing v2 (/exam)
   View: resources/views/user/exams/exam.blade.php
   Colours and font come ONLY from gateway-theme.css variables.
   Gold text only on navy; on white/ice use --gw-gold-dark. No grey text.
   ========================================================================== */

.ex2 {
    font-family: var(--gw-font);
    color: var(--gw-slate);
    background: var(--gw-ice);
    overflow-x: clip;
}

.ex2 h1,
.ex2 h2,
.ex2 h3,
.ex2 h6 {
    font-family: var(--gw-font);
    color: var(--gw-navy);
    -webkit-text-fill-color: var(--gw-navy);
    background: none;
}

/* ---------- Hero ---------- */
.ex2-hero {
    position: relative;
    padding: 28px 0 30px;
    background:
        radial-gradient(ellipse 60% 80% at 100% 0%, rgba(var(--gw-gold-rgb), .16), transparent 60%),
        linear-gradient(180deg, var(--gw-white) 0%, var(--gw-ice) 100%);
}

.ex2 .ex2-crumbs {
    gap: 8px;
    font-size: 13px;
    margin: 0 0 22px;
    padding: 0;
    background: none;
    color: var(--gw-slate);
}
.ex2 .ex2-crumbs a { color: var(--gw-slate); text-decoration: none; }
.ex2 .ex2-crumbs a:hover { color: var(--gw-navy); }
.ex2 .ex2-crumbs i { font-size: 14px; color: var(--gw-slate); }
.ex2 .ex2-crumbs .breadcrumb-active { color: var(--gw-gold-dark); font-weight: 600; }
.ex2 .ex2-crumbs a:focus-visible { outline: 3px solid var(--gw-gold); outline-offset: 2px; border-radius: 4px; }

.ex2-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gw-gold-dark);
}
.ex2-kicker::before {
    content: "";
    width: 22px;
    height: 3px;
    border-radius: 3px;
    background: var(--gw-gold);
}

.ex2 .ex2-title {
    margin: 0 0 10px;
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.02em;
    text-align: left;
}
.ex2 .ex2-title span {
    color: var(--gw-gold-dark);
    -webkit-text-fill-color: var(--gw-gold-dark);
    background: none;
}

.ex2-sub {
    margin: 0 0 24px;
    font-size: clamp(15px, 1.6vw, 18px);
    color: var(--gw-slate);
    max-width: 560px;
}

/* Jump chips: one horizontal scrolling row */
.ex2-chips {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 2px 10px;
    margin: 0 -2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--gw-navy-rgb), .25) transparent;
    -webkit-overflow-scrolling: touch;
}
.ex2-chips::-webkit-scrollbar { height: 6px; }
.ex2-chips::-webkit-scrollbar-thumb { background: rgba(var(--gw-navy-rgb), .2); border-radius: 6px; }

.ex2 .ex2-chip {
    flex: 0 0 auto;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    min-height: 52px;
    padding: 7px 18px;
    border-radius: 16px;
    border: 1px solid rgba(var(--gw-navy-rgb), .14);
    background: var(--gw-white);
    color: var(--gw-navy);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.25;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.ex2-chip__name { font-size: 15px; font-weight: 700; letter-spacing: .01em; }
.ex2-chip__kind { font-size: 11.5px; font-weight: 500; color: var(--gw-slate); }
.ex2 .ex2-chip:hover {
    border-color: var(--gw-gold);
    color: var(--gw-navy);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(var(--gw-navy-rgb), .08);
}
.ex2 .ex2-chip:active {
    background: var(--gw-navy);
    border-color: var(--gw-navy);
    color: var(--gw-gold);
}
.ex2 .ex2-chip:active .ex2-chip__kind { color: var(--gw-white); }
.ex2 .ex2-chip:focus-visible {
    outline: 3px solid var(--gw-gold);
    outline-offset: 2px;
}

/* ---------- Layout ---------- */
.ex2-main { padding: 8px 0 72px; }

.ex2 .ex2-layout.page-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-top: 16px;
}
@media (min-width: 1200px) {
    .ex2 .ex2-layout.page-body {
        grid-template-columns: minmax(0, 1fr) 320px;
        align-items: start;
    }
    .ex2-side__inner {
        position: sticky;
        top: 100px;
    }
}
.ex2-feed { min-width: 0; }

/* ---------- Card grid ---------- */
.ex2 .ex2-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
}
@media (max-width: 649.98px) {
    .ex2 .ex2-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

/* ---------- Card ---------- */
.ex2-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    padding: 20px;
    background: var(--gw-white);
    border: 1px solid rgba(var(--gw-navy-rgb), .08);
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(var(--gw-navy-rgb), .05);
    scroll-margin-top: 110px;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.ex2-card::before {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    top: 0;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--gw-gold-shine);
    opacity: 0;
    transition: opacity .25s ease;
}
.ex2-card:hover,
.ex2-card:focus-within {
    transform: translateY(-4px);
    border-color: rgba(var(--gw-gold-rgb), .9);
    box-shadow: 0 14px 30px rgba(var(--gw-navy-rgb), .12);
}
.ex2-card:hover::before,
.ex2-card:focus-within::before { opacity: 1; }
.ex2-card.is-flash {
    border-color: var(--gw-gold);
    box-shadow: 0 0 0 4px rgba(var(--gw-gold-rgb), .45), 0 14px 30px rgba(var(--gw-navy-rgb), .12);
}

.ex2-card__head {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

/* Logo tile: navy square with the exam monogram; the banner image covers it when it loads
   and removes itself if it fails (onerror), so the monogram shows instead. */
.ex2 .ex2-logo {
    position: relative;
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 30% 20%, rgba(var(--gw-gold-rgb), .25), transparent 60%),
        var(--gw-navy);
    text-decoration: none;
}
.ex2-logo__mark {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: .02em;
    color: var(--gw-gold);
}
.ex2 .ex2-logo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.ex2-card:hover .ex2-logo img { transform: scale(1.06); }

.ex2-card__id {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 auto;
    min-width: 0;
}
.ex2-kind {
    align-self: flex-start;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(var(--gw-gold-rgb), .2);
    color: var(--gw-gold-dark);
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}
.ex2 .ex2-card__title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ex2 .ex2-card__link {
    color: var(--gw-navy);
    -webkit-text-fill-color: var(--gw-navy);
    text-decoration: none;
}
.ex2 .ex2-card__link:hover {
    color: var(--gw-navy);
    -webkit-text-fill-color: var(--gw-navy);
    text-decoration: underline;
    text-decoration-color: var(--gw-gold);
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
}
.ex2 .ex2-card__link:focus-visible {
    outline: 3px solid var(--gw-gold);
    outline-offset: 3px;
    border-radius: 4px;
}

.ex2-card__line {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--gw-slate);
}

/* Key facts: 2 x 2 tiles */
.ex2-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}
.ex2-fact {
    min-width: 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--gw-ice);
}
.ex2-fact dt {
    margin: 0 0 2px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--gw-gold-dark);
}
.ex2-fact dd {
    margin: 0;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--gw-navy);
    overflow-wrap: anywhere;
}

.ex2-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ex2-tags li {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--gw-slate);
}

.ex2-card__foot {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(var(--gw-navy-rgb), .08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.ex2-stats {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.ex2-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gw-slate);
}
.ex2-stat img { width: 16px; height: auto; }
.ex2 .AddLikes {
    cursor: pointer;
    padding: 4px 8px;
    margin: -4px -8px;
    border-radius: 999px;
    transition: background-color .2s ease;
}
.ex2 .AddLikes:hover { background: rgba(var(--gw-gold-rgb), .2); }
.ex2 .AddLikes:focus-visible { outline: 3px solid var(--gw-gold); outline-offset: 1px; }
.ex2-date { font-size: 12.5px; color: var(--gw-slate); }

/* Gold button: navy text at rest, navy fill + gold text on hover */
.ex2 .ex2-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 22px;
    border-radius: 999px;
    border: 0;
    background: var(--gw-gold-shine);
    box-shadow: var(--gw-gold-glow);
    color: var(--gw-navy);
    -webkit-text-fill-color: var(--gw-navy);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.ex2 .ex2-btn span { display: inline-block; transition: transform .2s ease; }
.ex2 .ex2-btn:hover,
.ex2 .ex2-btn:focus-visible {
    background: var(--gw-navy);
    color: var(--gw-gold);
    -webkit-text-fill-color: var(--gw-gold);
    box-shadow: 0 8px 18px rgba(var(--gw-navy-rgb), .25);
}
.ex2 .ex2-btn:hover span { transform: translateX(4px); }
.ex2 .ex2-btn:focus-visible { outline: 3px solid var(--gw-gold); outline-offset: 3px; }

/* Share widget (social_media_share.css), tidied to a 36px button */
.ex2 .c-share {
    position: relative;
    flex: 0 0 auto;
    align-self: flex-start;
    width: 36px;
    height: 36px;
    left: 0;
    bottom: 0;
    font-size: 14px;
}
.ex2 .c-share__input {
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    margin: 0;
    cursor: pointer;
}
.ex2 .c-share__toggler {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gw-ice);
    transition: background-color .2s ease;
}
.ex2 .c-share:hover .c-share__toggler { background: rgba(var(--gw-gold-rgb), .25); }
.ex2 .c-share__toggler img { width: 16px; height: 16px; filter: none; opacity: .85; }
.ex2 .c-share__input:focus-visible ~ .c-share__toggler { outline: 3px solid var(--gw-gold); outline-offset: 2px; }
.ex2 .c-share_options {
    width: 0;
    padding: 0;
    height: 36px;
    align-items: center;
    justify-content: center;
}
.ex2 .c-share__input:checked ~ .c-share_options {
    width: 44px !important;
    height: 36px;
    margin-right: 42px;
    padding: 0;
    align-items: center;
    justify-content: center;
    background: var(--gw-white);
    box-shadow: 0 6px 16px rgba(var(--gw-navy-rgb), .15);
    border-radius: 999px;
}
.ex2 .c-share_options a { color: var(--gw-navy); font-size: 18px; }
.ex2 .c-share_options a:focus-visible { outline: 3px solid var(--gw-gold); outline-offset: 2px; border-radius: 50%; }

/* Empty state */
.ex2-empty {
    grid-column: 1 / -1;
    padding: 48px 24px;
    text-align: center;
    background: var(--gw-white);
    border-radius: 20px;
    border: 1px dashed rgba(var(--gw-navy-rgb), .2);
}
.ex2 .ex2-empty h2 { font-size: 22px; font-weight: 700; margin: 0 0 6px; }
.ex2-empty p { margin: 0 0 18px; }

/* ---------- Sidebar ---------- */
.ex2-side { min-width: 0; color: var(--gw-slate); }
.ex2-side__inner { display: grid; gap: 20px; }
@media (min-width: 768px) and (max-width: 1199.98px) {
    .ex2-side__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}

.ex2 .ex2-box {
    background: var(--gw-white);
    border: 1px solid rgba(var(--gw-navy-rgb), .08);
    border-radius: 18px;
    box-shadow: 0 2px 10px rgba(var(--gw-navy-rgb), .05);
    padding: 20px;
    height: auto;
    overflow: visible;
    margin: 0;
}
.ex2 .ex2-box__title {
    display: block;
    margin: 0 0 12px;
    padding: 0 0 10px;
    font-size: 15px;
    font-weight: 600;
    border-bottom: 1px solid rgba(var(--gw-navy-rgb), .08);
    position: relative;
}
.ex2 .ex2-box__title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 36px;
    height: 2px;
    background: var(--gw-gold);
}
.ex2-box__empty { margin: 0; font-size: 14px; }

/* CTA form box (hooks: .subscribe-now-box .card-body, .full_name, .phone_number, #subscribeUser) */
.ex2 .subscribe-now-box.ex2-box {
    padding: 0;
    overflow: hidden;
    border-top: 4px solid var(--gw-gold);
}
.ex2 .subscribe-now-box .card {
    background: var(--gw-white);
    background-image: none;
    border: 0;
    border-radius: 0;
    padding: 0;
}
.ex2 .subscribe-now-box .card-body { padding: 22px 20px; }
.ex2 .subscribe-now-box .story {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}
.ex2 .subscribe-now-box .story span {
    color: var(--gw-gold-dark);
    -webkit-text-fill-color: var(--gw-gold-dark);
    font-weight: 700;
}
.ex2-box__sub { margin: 0 0 16px; font-size: 13px; color: var(--gw-slate); }
.ex2 .subscribe-now-box form input.form-control {
    min-height: 46px;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid rgba(var(--gw-navy-rgb), .14);
    background: var(--gw-ice);
    color: var(--gw-navy);
    font-size: 14px;
}
.ex2 .subscribe-now-box form input.form-control:focus {
    border-color: var(--gw-navy);
    background: var(--gw-white);
    box-shadow: 0 0 0 3px rgba(var(--gw-gold-rgb), .45);
    outline: none;
}
.ex2 .subscribe-now-box form input.form-control::placeholder { color: var(--gw-slate); opacity: .85; }
.ex2 .subscribe-now-box .btn-primary-main {
    margin-top: 16px;
    min-height: 46px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
}

/* Popular posts */
.ex2 .popular-post { height: auto; overflow: visible; }
.ex2-popular { display: grid; gap: 4px; }
.ex2 .ex2-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    margin: 0 -8px;
    border-radius: 12px;
    text-decoration: none;
    transition: background-color .2s ease;
}
.ex2 .ex2-mini:hover { background: var(--gw-ice); }
.ex2 .ex2-mini:focus-visible { outline: 3px solid var(--gw-gold); outline-offset: 0; }
.ex2 .popular-post .post-img {
    position: relative;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    border-radius: 14px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: var(--gw-navy);
}
.ex2-mini__mark { font-size: 15px; font-weight: 800; color: var(--gw-gold); }
.ex2 .popular-post .post-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ex2-mini__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ex2-mini__id { font-size: 11.5px; font-weight: 600; color: var(--gw-gold-dark); }
.ex2-mini__title { font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--gw-navy); }
.ex2-mini__date { font-size: 12px; color: var(--gw-slate); }

/* ---------- Help band (navy) ---------- */
.ex2-band {
    position: relative;
    margin-top: 48px;
    padding: 32px 36px;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    background:
        radial-gradient(ellipse at 0% 0%, rgba(var(--gw-gold-rgb), .18), transparent 45%),
        radial-gradient(ellipse at 100% 100%, rgba(var(--gw-navy-light-rgb), .95), transparent 60%),
        var(--gw-navy);
    color: var(--gw-white);
}
.ex2-band__text { min-width: 0; flex: 1 1 360px; }
.ex2-band__kicker {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gw-gold);
}
.ex2 .ex2-band__title {
    margin: 0 0 6px;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.01em;
    color: var(--gw-white);
    -webkit-text-fill-color: var(--gw-white);
}
.ex2 .ex2-band__title span {
    color: var(--gw-gold);
    -webkit-text-fill-color: var(--gw-gold);
}
.ex2-band__sub { margin: 0; font-size: 15px; color: var(--gw-white); opacity: .85; }
.ex2 .ex2-band__btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 12px 28px;
    border-radius: 999px;
    background: var(--gw-gold-shine);
    box-shadow: var(--gw-gold-glow);
    color: var(--gw-navy);
    -webkit-text-fill-color: var(--gw-navy);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.ex2 .ex2-band__btn span { display: inline-block; transition: transform .2s ease; }
.ex2 .ex2-band__btn:hover {
    transform: translateY(-2px);
    color: var(--gw-navy);
    -webkit-text-fill-color: var(--gw-navy);
    box-shadow: 0 0 0 4px rgba(var(--gw-gold-rgb), .3), var(--gw-gold-glow);
}
.ex2 .ex2-band__btn:hover span { transform: translateX(4px); }
.ex2 .ex2-band__btn:focus-visible { outline: 3px solid var(--gw-white); outline-offset: 3px; }

/* ---------- Small screens ---------- */
@media (max-width: 767.98px) {
    .ex2-hero { padding: 20px 0 20px; }
    .ex2 .ex2-crumbs { margin-bottom: 16px; }
    .ex2-main { padding-bottom: 56px; }
    .ex2-band { padding: 26px 22px; margin-top: 36px; }
    .ex2 .ex2-band__btn { width: 100%; justify-content: center; }
}
@media (max-width: 599.98px) {
    .ex2 .container { padding-left: 16px; padding-right: 16px; }
    .ex2-card { padding: 16px; gap: 12px; }
    .ex2 .ex2-card__title { font-size: 22px; }
    .ex2 .ex2-logo { flex-basis: 56px; width: 56px; height: 56px; border-radius: 14px; }
}
@media (max-width: 379.98px) {
    .ex2-facts { gap: 6px; }
    .ex2-fact { padding: 8px 10px; }
    .ex2 .ex2-btn { width: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .ex2 *,
    .ex2 *::before,
    .ex2 *::after {
        transition: none !important;
        animation: none !important;
    }
    .ex2-card:hover,
    .ex2-card:focus-within,
    .ex2 .ex2-chip:hover,
    .ex2 .ex2-band__btn:hover { transform: none; }
    .ex2-card:hover .ex2-logo img,
    .ex2 .ex2-btn:hover span,
    .ex2 .ex2-band__btn:hover span { transform: none; }
}

/* hide the sideways scrollbar on the chip row (still swipeable) */
.ex2-chips { scrollbar-width: none; }
.ex2-chips::-webkit-scrollbar { display: none; }
