/* ==========================================================================
   Home "Everything you need" (v4, 20 Nov 2026): one compact row, one card system.
   Each card: tag pill + link (top row) -> one-line heading -> live preview -> action.
   Markup: resources/views/user/new_home/home-partitions/section3.blade.php (.gw-hub)
   Colours only from gateway-theme.css. Gold text only on navy; gold-dark on light.
   ========================================================================== */
.gw-hub { padding: 64px 0; background: var(--gw-white); font-family: var(--gw-font); }
.gw-hub .container { max-width: 1232px; padding-left: 16px; padding-right: 16px; }

/* Header: kicker, title and sub read as one block */
.gw-hub-head { margin-bottom: 26px; }
.gw-hub-kicker { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gw-gold-dark); }
.gw-hub .gw-hub-title {
    margin: 0; font-family: var(--gw-font); font-size: clamp(26px, 2.4vw, 36px); line-height: 1.15; font-weight: 700; letter-spacing: -.02em;
    color: var(--gw-navy); -webkit-text-fill-color: var(--gw-navy); background: none; text-align: left;
}
.gw-hub .gw-hub-title span { color: var(--gw-gold-dark); -webkit-text-fill-color: var(--gw-gold-dark); }
.gw-hub-sub { margin: 8px 0 0; font-size: 15.5px; color: var(--gw-slate); }

.gw-hub-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }

/* ---- Card system ---- */
.gw-hub-card {
    position: relative; display: flex; flex-direction: column; min-width: 0;
    padding: 20px 22px 22px; border-radius: 22px; text-decoration: none;
    transition: transform 200ms ease, box-shadow 200ms ease;
}
.gw-hub-card:hover { transform: translateY(-3px); }
.gw-hub-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; min-height: 28px; }
.gw-hub-tag {
    display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px;
    font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; line-height: 1.2;
}
.gw-hub .gw-hub-h {
    margin: 0 0 14px; font-family: var(--gw-font); font-size: 19px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em;
    background: none; text-align: left; color: inherit; -webkit-text-fill-color: currentColor;
}
.gw-hub-p { margin: 0; font-size: 14px; line-height: 1.5; }
.gw-hub-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.gw-hub-link span, .gw-hub-btn span { transition: transform 200ms ease; }
.gw-hub-link:hover span { transform: translateX(3px); }
.gw-hub-nowrap { white-space: nowrap; }

/* ---- Blog (navy) ---- */
.gw-hub-blog { background: var(--gw-navy); color: var(--gw-white); }
.gw-hub-blog .gw-hub-tag { background: var(--gw-gold-shine); color: var(--gw-navy); box-shadow: var(--gw-gold-glow); }
.gw-hub-blog .gw-hub-link, .gw-hub-blog .gw-hub-link:hover { color: var(--gw-gold); }
.gw-hub-blog .gw-hub-p { color: rgba(255, 255, 255, .85); }
.gw-hub-posts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gw-hub-post { display: flex; flex-direction: column; height: 100%; color: var(--gw-white); text-decoration: none; }
.gw-hub-post:hover { color: var(--gw-white); }
.gw-hub-post-img { display: block; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: var(--gw-navy-light); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); transition: box-shadow 200ms ease; }
.gw-hub-post-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 300ms ease; }
.gw-hub-post:hover .gw-hub-post-img { box-shadow: 0 0 0 2px var(--gw-gold); }
.gw-hub-post:hover .gw-hub-post-img img { transform: scale(1.05); }
.gw-hub-post-title {
    margin-top: 9px; font-size: 13.5px; line-height: 1.4; font-weight: 500; color: var(--gw-white);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gw-hub-post:hover .gw-hub-post-title { color: var(--gw-gold); }
.gw-hub-post:focus-visible { outline: 2px solid var(--gw-gold); outline-offset: 4px; border-radius: 14px; }

/* ---- FAQ (gold) ---- */
.gw-hub-faq { background: var(--gw-gold-shine); color: var(--gw-navy); box-shadow: 0 10px 30px rgba(var(--gw-gold-rgb), .25); }
.gw-hub-faq:hover { color: var(--gw-navy); box-shadow: 0 16px 36px rgba(var(--gw-gold-rgb), .35); }
.gw-hub-faq .gw-hub-tag { background: var(--gw-navy); color: var(--gw-gold); }
.gw-hub-faq .gw-hub-h { font-size: 22px; }
.gw-hub-num { font-size: 46px; line-height: .9; font-weight: 800; letter-spacing: -.04em; margin-right: 2px; vertical-align: -4px; }
/* one real question at a time, cross-fading in a fixed-height slot (no layout jump) */
.gw-hub-ticker {
    position: relative; display: block; height: 58px; margin-bottom: 16px; overflow: hidden;
    border-radius: 14px; background: rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 1px rgba(var(--gw-navy-rgb), .08);
}
.gw-hub-q {
    position: absolute; inset: 0; display: flex; align-items: center; gap: 8px; padding: 0 14px;
    font-size: 13.5px; line-height: 1.35; font-weight: 600; color: var(--gw-navy);
    opacity: 0; transform: translateY(10px); transition: opacity 220ms ease, transform 220ms ease;
}
.gw-hub-q b { flex: 0 0 auto; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--gw-navy); color: var(--gw-gold); font-size: 11px; }
.gw-hub-q.is-on { opacity: 1; transform: none; }
.gw-hub-btn {
    margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px; border-radius: 999px; background: var(--gw-navy); color: var(--gw-gold);
    font-size: 14px; font-weight: 600;
}
.gw-hub-faq:hover .gw-hub-btn span { transform: translateX(3px); }
.gw-hub-faq:focus-visible { outline: 3px solid var(--gw-navy); outline-offset: 3px; }

/* ---- Exams (ice) ---- */
.gw-hub-exam { background: var(--gw-ice); color: var(--gw-navy); box-shadow: inset 0 0 0 1px rgba(var(--gw-navy-rgb), .08); }
.gw-hub-exam .gw-hub-tag { background: var(--gw-white); color: var(--gw-navy); box-shadow: inset 0 0 0 1px rgba(var(--gw-navy-rgb), .14); }
.gw-hub-exam .gw-hub-link { color: var(--gw-gold-dark); }
.gw-hub-exam .gw-hub-link:hover { color: var(--gw-navy); }
.gw-hub-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: auto; }
.gw-hub-tile {
    display: grid; place-items: center; min-height: 48px; padding: 6px 4px; border-radius: 12px;
    background: var(--gw-white); color: var(--gw-navy); box-shadow: inset 0 0 0 1px rgba(var(--gw-navy-rgb), .1);
    font-size: 12.5px; font-weight: 700; letter-spacing: .02em; text-align: center; text-decoration: none; text-transform: uppercase;
    transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}
.gw-hub-tile:hover, .gw-hub-tile:focus-visible { background: var(--gw-navy); color: var(--gw-gold); transform: translateY(-2px); }
.gw-hub-tile:focus-visible { outline: 2px solid var(--gw-gold-dark); outline-offset: 2px; }

/* ---- Tablet: blog full width, FAQ + exams side by side ---- */
@media (max-width: 991.98px) {
    .gw-hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gw-hub-blog { grid-column: 1 / -1; }
}
/* ---- Phones: stacked; blog posts become a swipe row ---- */
@media (max-width: 599.98px) {
    .gw-hub { padding: 44px 0; }
    .gw-hub-head { margin-bottom: 18px; }
    .gw-hub-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .gw-hub-card { padding: 18px; border-radius: 18px; }
    .gw-hub-posts { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; scrollbar-width: none; }
    .gw-hub-posts::-webkit-scrollbar { display: none; }
    .gw-hub-posts li { scroll-snap-align: start; }
    .gw-hub-faq .gw-hub-h { font-size: 20px; }
    .gw-hub-num { font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) {
    .gw-hub-card, .gw-hub-post-img img, .gw-hub-link span, .gw-hub-btn span, .gw-hub-q, .gw-hub-tile { transition: none; }
    .gw-hub-card:hover, .gw-hub-tile:hover { transform: none; }
}
.gw-hub-qt { min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
