/* ==========================================================================
   MAIN DOMAIN HUB PORTAL (Junction) — Styles
   Header/Footer use the theme's REGULAR styles (same as every Q&A
   Subdomain site) — this file only styles the Hero and Grid sections,
   which are unique to this template.
   ========================================================================== */

.qam-hub-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- HERO ---- */
.qam-hub-hero {
    background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 100%);
    text-align: center;
    padding: 50px 24px;
}
.qam-hub-hero-heading { font-size: 32px; font-weight: 800; color: #0f172a; margin: 0 0 12px 0; }
.qam-hub-hero-subtext { font-size: 16px; color: #64748b; max-width: 620px; margin: 0 auto; }

/* ---- GRIDS SECTION ---- */
.qam-hub-grids-section { padding: 40px 24px 60px; }

.qam-hub-grids-wrap {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* "full" width Grids span both columns (their own full row);
   "half" width Grids take one column each, pairing up naturally with
   whichever "half" Grid comes next in the list. */
.qam-hub-grid-full { grid-column: 1 / -1; }
.qam-hub-grid-half { grid-column: span 1; }

.qam-hub-grid {
    border-radius: 14px;
    padding: 28px 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.qam-hub-grid-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.qam-hub-grid-title { font-size: 22px; font-weight: 800; color: #0f172a; margin: 0; }
.qam-hub-grid-visit-btn {
    background: var(--primary-color, #2563eb);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    padding: 9px 18px;
    border-radius: 20px;
    white-space: nowrap;
}
.qam-hub-grid-visit-btn:hover { background: #1d4ed8; color: #fff; }

.qam-hub-grid-description {
    font-size: 15px;
    color: #475569;
    margin: 0;
    line-height: 1.5;
}

.qam-hub-grid-questions {
    background: #f8fafc;
    border-radius: 10px;
    padding: 16px 18px;
}
.qam-hub-grid-questions-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    margin: 0 0 10px 0;
}
.qam-hub-grid-questions-list { list-style: none; margin: 0; padding: 0; }
.qam-hub-grid-questions-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
}
.qam-hub-grid-questions-list li:last-child { border-bottom: none; }
.qam-hub-grid-questions-list a {
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
}
.qam-hub-grid-questions-list a:hover { color: var(--primary-color, #2563eb); }
.qam-hub-grid-q-date { color: #94a3b8; font-size: 12px; white-space: nowrap; }
.qam-hub-grid-empty { color: #94a3b8; font-size: 13.5px; font-style: italic; margin: 0; }

.qam-hub-grid-extra {
    font-size: 13.5px;
    color: #64748b;
    margin: 0;
    border-top: 1px dashed #e2e8f0;
    padding-top: 12px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 782px) {
    .qam-hub-grids-wrap { grid-template-columns: 1fr; }
    .qam-hub-grid-half, .qam-hub-grid-full { grid-column: 1 / -1; }
    .qam-hub-hero-heading { font-size: 24px; }
}
