/*
Theme Name: Analytics Programs Child
Theme URI: https://analyticsprograms.org
Description: Custom child theme for Analytics Programs, built on GeneratePress
Author: Istiaque Ahmad
Template: generatepress
Version: 1.0.0
*/

/* ==========================================================================
   BRAND COLORS — এখানে বদলাও, সব জায়গায় স্বয়ংক্রিয়ভাবে প্রয়োগ হবে
   ========================================================================== */

:root {
    --brand-primary: #1a4d8f;      /* প্রধান রং — logo, link, heading */
    --brand-secondary: #2d7d46;    /* দ্বিতীয় রং — accent, badge */
    --brand-cta: #e0622a;          /* CTA বাটনের রং */
    --brand-cta-hover: #c94f1c;
    --text-dark: #1a1a1a;
    --text-gray: #555555;
    --border-light: #e5e5e5;
    --bg-light: #f8f9fb;
    --bg-white: #ffffff;
}

/* ==========================================================================
   BASE TYPOGRAPHY — পড়তে আরাম, দীর্ঘ পেজের জন্য
   ========================================================================== */

body {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-dark);
}

.content-area h1 {
    font-size: 2.2rem;
    line-height: 1.25;
    margin-bottom: 0.5em;
}

.content-area h2 {
    font-size: 1.6rem;
    margin-top: 2.2em;
    margin-bottom: 0.8em;
    padding-top: 0.3em;
    border-top: 1px solid var(--border-light);
}

.content-area h3 {
    font-size: 1.25rem;
    margin-top: 1.6em;
}

.content-area p {
    margin-bottom: 1.3em;
}

/* ==========================================================================
   AUTHOR BOX — npprograms-এর মডেল অনুসরণ করে
   ========================================================================== */

.author-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin: 1em 0 2em 0;
}

.author-box__photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-box__info {
    font-size: 0.92rem;
    line-height: 1.5;
}

.author-box__name {
    font-weight: 600;
    color: var(--text-dark);
}

.author-box__name a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted var(--text-gray);
}

.author-box__credential {
    color: var(--text-gray);
    font-size: 0.88rem;
    display: block;
}

.author-box__meta {
    margin-top: 6px;
    font-size: 0.82rem;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 6px;
}

.author-box__meta::before {
    content: "✓";
    color: var(--brand-secondary);
    font-weight: 700;
}

/* ==========================================================================
   KEY FACTS BOX — bullet list with bold lead-ins
   ========================================================================== */

.key-facts {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--brand-primary);
    border-radius: 6px;
    padding: 20px 24px;
    margin: 1.5em 0;
}

.key-facts h2 {
    margin-top: 0 !important;
    border-top: none !important;
    padding-top: 0 !important;
}

.key-facts ul {
    margin: 0;
    padding-left: 1.2em;
}

.key-facts li {
    margin-bottom: 0.7em;
}

.key-facts li strong {
    color: var(--brand-primary);
}

/* ==========================================================================
   COMPARISON TABLE (TablePress override)
   ========================================================================== */

.tablepress {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.92rem;
}

.tablepress th {
    background: var(--brand-primary);
    color: #fff;
    text-align: left;
    padding: 10px 12px;
    font-weight: 600;
}

.tablepress td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: top;
}

.tablepress tr:nth-child(even) td {
    background: var(--bg-light);
}

.table-disclaimer {
    font-size: 0.82rem;
    color: var(--text-gray);
    font-style: italic;
    margin-top: -1em;
    margin-bottom: 2em;
}

/* ==========================================================================
   PROGRAM CARD — school listing (Section 7/8 in template)
   ========================================================================== */

.program-card {
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 18px 20px;
    margin: 1.2em 0;
    background: var(--bg-white);
}

.program-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
}

.program-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
}

.program-card__title a {
    color: var(--brand-primary);
    text-decoration: none;
}

.program-card__location {
    color: var(--text-gray);
    font-size: 0.88rem;
}

.program-card__tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 8px 0;
}

.program-card__tag {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 3px 9px;
    font-size: 0.78rem;
    color: var(--text-gray);
}

.program-card__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px 16px;
    margin: 12px 0;
    padding: 12px 0;
    border-top: 1px dashed var(--border-light);
    border-bottom: 1px dashed var(--border-light);
    font-size: 0.88rem;
}

.program-card__stats strong {
    display: block;
    color: var(--text-gray);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.program-card__overview {
    font-size: 0.94rem;
    color: var(--text-dark);
}

/* ==========================================================================
   CTA BLOCK — লিড ক্যাপচার / affiliate widget-এর জন্য কনটেইনার
   ========================================================================== */

.cta-block {
    background: linear-gradient(135deg, var(--brand-primary), #12365e);
    color: #fff;
    border-radius: 10px;
    padding: 28px 24px;
    text-align: center;
    margin: 2em 0;
}

.cta-block h2 {
    color: #fff;
    margin-top: 0 !important;
    border-top: none !important;
    padding-top: 0 !important;
    font-size: 1.4rem;
}

.cta-block__label {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 8px;
}

.cta-block__button {
    display: inline-block;
    background: var(--brand-cta);
    color: #fff !important;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 14px;
    transition: background 0.2s;
}

.cta-block__button:hover {
    background: var(--brand-cta-hover);
}

/* ==========================================================================
   STATE / SPECIALTY GRID — homepage বা hub page-এর জন্য
   ========================================================================== */

.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin: 1.5em 0;
}

.item-grid__link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.92rem;
    transition: background 0.15s, border-color 0.15s;
}

.item-grid__link:hover {
    background: #fff;
    border-color: var(--brand-primary);
}

.item-grid__link::before {
    content: "✓";
    color: var(--brand-secondary);
    font-weight: 700;
    flex-shrink: 0;
}

/* ==========================================================================
   FAQ ACCORDION (RankMath FAQ block-এর সাথে কাজ করে)
   ========================================================================== */

.faq-item {
    border-bottom: 1px solid var(--border-light);
    padding: 16px 0;
}

.faq-item summary {
    font-weight: 600;
    cursor: pointer;
    font-size: 1.02rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    font-size: 1.3rem;
    color: var(--brand-primary);
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item p {
    margin-top: 10px;
    color: var(--text-gray);
}

/* ==========================================================================
   ADVERTISEMENT LABEL — FTC disclosure, widget-এর উপরে
   ========================================================================== */

.ad-label {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-gray);
    text-align: right;
    margin-bottom: 4px;
}

/* ==========================================================================
   RESPONSIVE — মোবাইলে টেবিল স্ক্রল
   ========================================================================== */

@media (max-width: 600px) {
    .tablepress-scroll-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .content-area h1 {
        font-size: 1.7rem;
    }

    .content-area h2 {
        font-size: 1.3rem;
    }

    .program-card__header {
        flex-direction: column;
    }
}
