/* ─────────────────────────────────────────────────────────────────────────
   IELTSBeacon Inner Page Styles
   Applies to all pages using page.php (non-homepage)
───────────────────────────────────────────────────────────────────────── */

/* ── Body override for inner pages ───────────────────────────────────── */
body.ibb-inner-page {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #0B2545;
    background: #f4f7f9;
    -webkit-font-smoothing: antialiased;
}

/* ── Breadcrumb ──────────────────────────────────────────────────────── */
.ibb-breadcrumb {
    background: #0B2545;
    border-top: 0.5px solid rgba(255,255,255,0.06);
    padding: 10px 0;
}

.ibb-breadcrumb .ibb-container {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.ibb-breadcrumb a {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: color 0.2s;
}

.ibb-breadcrumb a:hover { color: rgba(255,255,255,0.75); }

.ibb-breadcrumb span {
    font-size: 12px;
    color: rgba(255,255,255,0.25);
}

.ibb-breadcrumb span[aria-current="page"] {
    color: rgba(255,255,255,0.65);
}

/* ── Page hero ───────────────────────────────────────────────────────── */
.ibb-page-hero {
    background: #0B2545;
    padding: 36px 0 40px;
}

.ibb-page-hero-inner {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 32px;
    position: relative;
    width: 100%;
}

.ibb-page-hero-content {
    max-width: 720px !important;
    flex: 1 1 auto !important;
    min-width: 0;
}

.ibb-page-hero-visual {
    width: 180px !important;
    height: 180px !important;
    max-width: 180px !important;
    max-height: 180px !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    opacity: 0.85;
    overflow: hidden;
}

.ibb-page-hero-visual svg {
    width: 180px !important;
    height: 180px !important;
    max-width: 180px !important;
    max-height: 180px !important;
    display: block;
}

.ibb-page-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(29,158,117,0.12);
    color: #5DCAA5;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
    border: 0.5px solid rgba(29,158,117,0.25);
}

.ibb-page-badge i { font-size: 13px; }

.ibb-page-hero h1 {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.4px;
}

.ibb-page-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ibb-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.06);
    padding: 4px 10px;
    border-radius: 20px;
    border: 0.5px solid rgba(255,255,255,0.08);
}

.ibb-meta-pill i { font-size: 12px; }

/* ── Page body layout ────────────────────────────────────────────────── */
.ibb-page-body { padding: 32px 0 48px; }

.ibb-page-body-inner {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    align-items: start;
}

/* ── Main content area ───────────────────────────────────────────────── */
.ibb-page-content {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 32px 36px;
    min-width: 0;
}

/* ── Prose styles ────────────────────────────────────────────────────── */
.ibb-prose h2 {
    font-size: 20px;
    font-weight: 800;
    color: #0B2545;
    margin: 32px 0 12px;
    line-height: 1.3;
    padding-top: 8px;
    border-top: 0.5px solid #f0f4f8;
}

.ibb-prose h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }

.ibb-prose h3 {
    font-size: 16px;
    font-weight: 700;
    color: #0B2545;
    margin: 20px 0 8px;
}

.ibb-prose h4 {
    font-size: 14px;
    font-weight: 700;
    color: #0B2545;
    margin: 16px 0 6px;
}

.ibb-prose p {
    font-size: 15px;
    color: #374151;
    line-height: 1.75;
    margin-bottom: 14px;
}

.ibb-prose ul,
.ibb-prose ol {
    margin: 0 0 16px 20px;
}

.ibb-prose li {
    font-size: 15px;
    color: #374151;
    line-height: 1.75;
    margin-bottom: 6px;
}

.ibb-prose strong { font-weight: 700; color: #0B2545; }

.ibb-prose a {
    color: #1D9E75;
    text-decoration: underline;
    text-decoration-color: rgba(29,158,117,0.3);
}

.ibb-prose a:hover { text-decoration-color: #1D9E75; }

.ibb-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
}

.ibb-prose table th {
    background: #0B2545;
    color: #ffffff;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
}

.ibb-prose table td {
    padding: 10px 12px;
    border-bottom: 0.5px solid #f0f4f8;
    color: #374151;
    vertical-align: top;
}

.ibb-prose table tr:nth-child(even) td { background: #f8fafc; }

.ibb-prose blockquote {
    border-left: 3px solid #1D9E75;
    border-radius: 0 8px 8px 0;
    background: #E1F5EE;
    padding: 14px 18px;
    margin: 16px 0;
    font-style: normal;
}

.ibb-prose blockquote p {
    color: #085041;
    margin: 0;
    font-size: 14px;
}

/* ── Info and warning boxes (added via Gutenberg custom HTML block) ── */
.ibb-info-box {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #E1F5EE;
    border-left: 3px solid #1D9E75;
    border-radius: 0 10px 10px 0;
    padding: 16px 18px;
    margin: 20px 0;
}

.ibb-info-box-icon { font-size: 20px; color: #1D9E75; flex-shrink: 0; margin-top: 1px; }
.ibb-info-box-title { font-size: 13px; font-weight: 700; color: #085041; margin-bottom: 4px; }
.ibb-info-box p { font-size: 13px; color: #0F6E56; line-height: 1.6; margin: 0; }

.ibb-warn-box {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #FAEEDA;
    border-left: 3px solid #EF9F27;
    border-radius: 0 10px 10px 0;
    padding: 16px 18px;
    margin: 20px 0;
}

.ibb-warn-box-icon { font-size: 20px; color: #EF9F27; flex-shrink: 0; margin-top: 1px; }
.ibb-warn-box-title { font-size: 13px; font-weight: 700; color: #633806; margin-bottom: 4px; }
.ibb-warn-box p { font-size: 13px; color: #854F0B; line-height: 1.6; margin: 0; }

.ibb-answer-notice {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #f0f4f8;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 24px;
    font-size: 13px;
    color: #374151;
    line-height: 1.6;
}

.ibb-answer-notice i { font-size: 18px; color: #64748b; flex-shrink: 0; margin-top: 1px; }
.ibb-answer-notice p { margin: 0; }

/* ── Layout section title ─────────────────────────────────────────────── */
.ibb-layout-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #0B2545;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 0.5px solid #e2e8f0;
}

/* ── Module child cards ───────────────────────────────────────────────── */
.ibb-layout-module-children { margin-bottom: 32px; }

.ibb-child-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.ibb-child-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, transform 0.15s;
}

.ibb-child-card:hover {
    border-color: #1D9E75;
    transform: translateY(-1px);
    color: inherit;
    text-decoration: none;
}

.ibb-child-card-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    background: #E1F5EE;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #1D9E75;
    margin-top: 2px;
}

.ibb-child-card-body h3 {
    font-size: 14px;
    font-weight: 700;
    color: #0B2545;
    margin-bottom: 4px;
}

.ibb-child-card-body p {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 4px;
}

.ibb-child-sub-count {
    font-size: 11px;
    color: #1D9E75;
    font-weight: 600;
}

/* ── Module bottom strip ─────────────────────────────────────────────── */
.ibb-module-bottom-strip,
.ibb-other-bands { margin-top: 32px; }

.ibb-module-strip-grid,
.ibb-other-bands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.ibb-strip-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 12px;
    background: #fff;
    text-decoration: none;
    color: #0B2545;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
}

.ibb-strip-card i { font-size: 20px; color: #1D9E75; }
.ibb-strip-card:hover { border-color: #1D9E75; background: #f0faf6; color: #0B2545; text-decoration: none; }

/* ── Next steps (preparation bottom) ────────────────────────────────── */
.ibb-next-steps { margin-top: 32px; }

.ibb-next-steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.ibb-next-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s;
}

.ibb-next-card:hover { border-color: #1D9E75; color: inherit; text-decoration: none; }

.ibb-next-card-highlight { border-color: #1D9E75; background: #f0faf6; }

.ibb-next-num {
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: #1D9E75;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

.ibb-next-title {
    font-size: 13px;
    font-weight: 700;
    color: #0B2545;
    margin-bottom: 3px;
}

.ibb-next-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
}

/* ── More answers (answers bottom) ──────────────────────────────────── */
.ibb-more-answers { margin-top: 32px; }

.ibb-more-answers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.ibb-more-answer-card {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 14px;
    background: #fff;
    text-decoration: none;
    font-size: 13px;
    color: #0B2545;
    transition: border-color 0.2s;
}

.ibb-more-answer-card i { font-size: 16px; color: #1D9E75; flex-shrink: 0; }
.ibb-more-answer-card:hover { border-color: #1D9E75; color: #0B2545; text-decoration: none; }

/* ── Sidebar ─────────────────────────────────────────────────────────── */
.ibb-page-sidebar {
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ibb-sb-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
}

.ibb-sb-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #94a3b8;
    margin-bottom: 12px;
}

.ibb-sb-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #374151;
    text-decoration: none;
    padding: 7px 0;
    border-bottom: 0.5px solid #f0f4f8;
    transition: color 0.2s;
}

.ibb-sb-link:last-child { border-bottom: none; }
.ibb-sb-link i { font-size: 14px; color: #1D9E75; flex-shrink: 0; }
.ibb-sb-link:hover { color: #1D9E75; text-decoration: none; }

.ibb-sb-link-active {
    color: #1D9E75;
    font-weight: 700;
}

.ibb-sb-cta {
    background: #0B2545;
    border-radius: 12px;
    padding: 18px;
    text-align: center;
}

.ibb-sb-cta h3 {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.ibb-sb-cta p {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 14px;
    line-height: 1.5;
}

.ibb-sb-cta a {
    display: block;
    background: #1D9E75;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 10px;
    border-radius: 7px;
    text-decoration: none;
    transition: background 0.2s;
}

.ibb-sb-cta a:hover { background: #178a65; color: #fff; }

/* ── Bottom CTA strip ────────────────────────────────────────────────── */
.ibb-page-cta {
    background: #0B2545;
    padding: 48px 0;
    text-align: center;
}

.ibb-page-cta h2 {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
}

.ibb-page-cta p {
    font-size: 15px;
    color: rgba(255,255,255,0.55);
    margin-bottom: 24px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.ibb-page-cta-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .ibb-page-body-inner {
        grid-template-columns: 1fr 240px;
    }
    .ibb-page-hero-visual {
        width: 160px;
        height: 160px;
    }
    .ibb-module-strip-grid,
    .ibb-other-bands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ibb-page-body-inner {
        grid-template-columns: 1fr;
    }
    .ibb-page-sidebar {
        display: none;  /* hide entire sidebar on mobile for cleaner reading */
    }
    .ibb-page-hero-visual {
        display: none;  /* hide hero visual on mobile */
    }
    .ibb-page-hero-content {
        max-width: 100%;
    }
    .ibb-page-hero h1 { font-size: 24px; }
    .ibb-page-content { padding: 20px; }
    .ibb-child-grid { grid-template-columns: 1fr; }
    .ibb-next-steps-grid { grid-template-columns: 1fr; }
    .ibb-more-answers-grid { grid-template-columns: 1fr; }
    .ibb-module-strip-grid,
    .ibb-other-bands-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .ibb-module-strip-grid,
    .ibb-other-bands-grid { grid-template-columns: 1fr; }
    .ibb-page-cta h2 { font-size: 20px; }
}

/* ════════════════════════════════════════════════════════════════════
   GENERATEPRESS RESET — strip all parent theme wrappers/layouts
   so our custom templates render full-width
════════════════════════════════════════════════════════════════════ */

/* Hide GP header, nav, footer, etc */
body.ibb-inner-page .site-header,
body.ibb-inner-page .main-navigation,
body.ibb-inner-page .site-footer,
body.ibb-inner-page #site-navigation,
body.ibb-inner-page .generate-back-to-top,
body.ibb-inner-page .site-branding,
body.ibb-inner-page #masthead,
body.ibb-inner-page #colophon,
body.ibb-inner-page .gen-sidebar-nav,
body.ibb-inner-page .sidebar,
body.ibb-inner-page #right-sidebar,
body.ibb-inner-page #left-sidebar {
    display: none !important;
}

/* Force ALL GP container wrappers to full width with no padding */
body.ibb-inner-page #page,
body.ibb-inner-page .site,
body.ibb-inner-page #wrapper,
body.ibb-inner-page #content,
body.ibb-inner-page .site-content,
body.ibb-inner-page .content-area,
body.ibb-inner-page .site-main,
body.ibb-inner-page .grid-container,
body.ibb-inner-page .inside-article,
body.ibb-inner-page .inside-content,
body.ibb-inner-page article.page,
body.ibb-inner-page article.post,
body.ibb-inner-page .entry-content {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Hide GP entry title (we have our own H1 in the hero) */
body.ibb-inner-page .entry-header,
body.ibb-inner-page .entry-title,
body.ibb-inner-page .entry-meta,
body.ibb-inner-page .entry-footer {
    display: none !important;
}

/* Force flex layouts back to block where GP applies them */
body.ibb-inner-page #page {
    display: block !important;
}

/* Body and html — no constraints */
body.ibb-inner-page {
    margin: 0 !important;
    padding: 0 !important;
}

/* ── Author byline ───────────────────────────────────────────────────── */
.ibb-author-byline {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.ibb-author-avatar {
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(29, 158, 117, 0.4);
}

.ibb-author-avatar svg { display: block; }

.ibb-author-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.ibb-author-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 600;
}

.ibb-author-name {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.15);
    transition: color 0.2s, border-color 0.2s;
}

.ibb-author-name:hover {
    color: #5DCAA5;
    border-color: #5DCAA5;
    text-decoration: none;
}

/* ── Force full-width on inner pages (override GeneratePress) ────────── */
body.ibb-inner-page #page,
body.ibb-inner-page #wrapper,
body.ibb-inner-page .site,
body.ibb-inner-page .site-content,
body.ibb-inner-page .inside-article,
body.ibb-inner-page .content-area,
body.ibb-inner-page #primary {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

body.ibb-inner-page .ibb-site-wrap {
    width: 100%;
    max-width: 100%;
}
