/* ============================================================
   Static / Information Pages  —  static-pages.css
   Used by: front/page/show.blade.php and all templates
   ============================================================ */

/* ── Top / bottom ads ──────────────────────────────────────── */
.sp-top-ad    { margin: 14px auto; text-align: center; }
.sp-bottom-ad { margin: 32px auto 0; text-align: center; }

/* ── Hero ──────────────────────────────────────────────────── */
.sp-hero {
    background: var(--black);
    color: #fff;
    padding: 48px 0 40px;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}
.sp-hero.has-cover {
    background-image: var(--cover);
    background-size: cover;
    background-position: center;
}
.sp-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(9,9,9,.85), rgba(9,9,9,.65));
    z-index: 0;
}
.sp-hero-inner {
    position: relative;
    z-index: 1;
}

/* Breadcrumb */
.sp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,.65);
    margin-bottom: 16px;
}
.sp-breadcrumb a { color: rgba(255,255,255,.65); }
.sp-breadcrumb a:hover { color: #fff; }
.sp-breadcrumb span { color: rgba(255,255,255,.45); }

.sp-hero-title {
    font-family: "Noto Serif Bengali", serif;
    font-size: 38px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 10px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.sp-hero-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--red);
    border-radius: 2px;
    margin-top: 12px;
}
.sp-hero-desc {
    font-size: 17px;
    color: rgba(255,255,255,.8);
    line-height: 1.6;
    margin: 10px 0 0;
    max-width: 640px;
}

/* ── Layout wrapper ────────────────────────────────────────── */
.sp-layout {
    padding: 40px 0 56px;
}

/* ── Rich content (rendered HTML from Quill) ───────────────── */
.rich-content {
    font-size: 17px;
    line-height: 1.9;
    color: #222;
}
.rich-content h1,
.rich-content h2,
.rich-content h3,
.rich-content h4 {
    font-family: "Noto Serif Bengali", serif;
    font-weight: 800;
    color: #111;
    margin: 28px 0 12px;
    line-height: 1.35;
}
.rich-content h1 { font-size: 28px; }
.rich-content h2 { font-size: 22px; border-left: 4px solid var(--red); padding-left: 12px; }
.rich-content h3 { font-size: 18px; color: var(--black); }
.rich-content p  { margin-bottom: 16px; }
.rich-content ul,
.rich-content ol { padding-left: 24px; margin-bottom: 16px; }
.rich-content li { margin-bottom: 6px; }
.rich-content a  { color: var(--red); text-decoration: underline; }
.rich-content a:hover { color: var(--red-dark); }
.rich-content blockquote {
    border-left: 4px solid var(--red);
    padding: 14px 20px;
    background: #fdf5f5;
    border-radius: 0 8px 8px 0;
    color: #555;
    font-style: italic;
    margin: 20px 0;
}
.rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 20px auto;
}
.rich-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 15px;
}
.rich-content table th,
.rich-content table td {
    border: 1px solid var(--line);
    padding: 10px 14px;
    text-align: left;
}
.rich-content table th { background: var(--soft); font-weight: 700; }
.rich-content table tr:nth-child(even) { background: #fafafa; }
.rich-content pre,
.rich-content code {
    background: #f4f4f4;
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 14px;
}
.rich-content pre { padding: 14px; overflow-x: auto; }
.rich-content iframe { max-width: 100%; border-radius: 8px; }

/* ── Default / single-column wrapper ──────────────────────── */
.sp-content-wrap {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
    border: 1px solid var(--line);
    padding: 36px 40px;
}

/* ── Section title (shared) ─────────────────────────────────── */
.sp-section-title {
    font-family: "Noto Serif Bengali", serif;
    font-size: 22px;
    font-weight: 800;
    color: #111;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--red);
    display: inline-block;
}

/* ── ABOUT template ─────────────────────────────────────────── */
.sp-about-wrap { max-width: 900px; margin: 0 auto; }

/* Pillars */
.sp-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 36px;
}
.sp-pillar {
    background: #fff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--red);
    border-radius: 8px;
    padding: 20px 18px;
    text-align: center;
}
.sp-pillar-icon { font-size: 32px; margin-bottom: 10px; }
.sp-pillar h3 {
    font-family: "Noto Serif Bengali", serif;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #111;
}
.sp-pillar p { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0; }

/* About body */
.sp-about-wrap .sp-body { margin-bottom: 36px; }

/* Contact strip */
.sp-contact-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    background: var(--black);
    color: #fff;
    border-radius: 10px;
    padding: 28px 24px;
    margin-top: 36px;
}
.sp-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.sp-ci-icon { font-size: 24px; flex-shrink: 0; }
.sp-ci-label { font-size: 12px; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .05em; }
.sp-ci-value { font-size: 15px; font-weight: 700; margin-top: 2px; }

/* ── CONTACT template ───────────────────────────────────────── */
.sp-contact-intro { max-width: 760px; margin: 0 auto 36px; }

.sp-contact-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 36px;
    align-items: start;
}

/* Info cards */
.sp-info-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px 18px;
    margin-bottom: 14px;
    transition: box-shadow .15s;
}
.sp-info-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.07); }
.sp-info-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.sp-info-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.sp-info-value { font-size: 15px; font-weight: 600; margin-top: 3px; color: #111; }
.sp-info-value a { color: var(--red); }

.sp-contact-socials { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.sp-social-btn {
    width: 34px; height: 34px;
    background: var(--black); color: #fff;
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 13px; font-weight: 800;
    transition: background .15s;
}
.sp-social-btn:hover { background: var(--red); }

/* Form */
.sp-contact-form-wrap { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 30px 28px; }

.sp-form-intro { color: var(--muted); font-size: 14px; margin: -8px 0 20px; line-height: 1.6; }

.sp-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.sp-form-group { display: flex; flex-direction: column; margin-bottom: 16px; }
.sp-form-row .sp-form-group { margin-bottom: 0; }

.sp-form-group label { font-weight: 700; font-size: 14px; margin-bottom: 6px; color: #333; }
.sp-form-group .req { color: var(--red); }
.sp-form-group input,
.sp-form-group textarea {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 10px 13px;
    font-size: 15px;
    font-family: inherit;
    width: 100%;
    transition: border-color .15s;
    background: #fff;
}
.sp-form-group input:focus,
.sp-form-group textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(215,25,32,.08);
}
.sp-form-group textarea { resize: vertical; }
.sp-field-err { color: var(--red); font-size: 12px; margin-top: 4px; }

.sp-submit-btn {
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s;
    width: 100%;
}
.sp-submit-btn:hover { background: var(--red-dark); }

.sp-success-msg {
    background: #e8f5ee;
    border: 1px solid var(--green);
    color: var(--green-dark);
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 18px;
    font-weight: 600;
}

/* ── LEGAL template ─────────────────────────────────────────── */
.sp-legal-wrap {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 36px;
    align-items: start;
    max-width: 1060px;
    margin: 0 auto;
}

/* Table of contents */
.sp-legal-toc {
    position: sticky;
    top: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}
.sp-toc-head {
    background: var(--black);
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    padding: 12px 16px;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.sp-toc-list { list-style: none; padding: 8px 0; margin: 0; }
.sp-toc-list li a {
    display: block;
    padding: 7px 16px;
    font-size: 13px;
    color: #333;
    border-left: 3px solid transparent;
    transition: background .12s, border-color .12s;
    line-height: 1.4;
}
.sp-toc-list li a:hover {
    background: var(--soft);
    border-left-color: var(--red);
    color: var(--red);
}
.sp-toc-list li.toc-sub a { padding-left: 28px; font-size: 12px; color: var(--muted); }

/* Legal body */
.sp-legal-body { min-width: 0; }
.sp-legal-meta { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.sp-legal-content h2 { scroll-margin-top: 80px; }
.sp-legal-content h3 { scroll-margin-top: 80px; }
.sp-legal-footer {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 14px;
    color: var(--muted);
}
.sp-legal-footer a { color: var(--red); }

/* ── EDITORIAL template ─────────────────────────────────────── */
.sp-editorial-wrap { max-width: 1060px; margin: 0 auto; }

.sp-editorial-principles {
    display: flex;
    gap: 0;
    background: var(--black);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 36px;
}
.sp-principle {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 22px 12px;
    color: #fff;
    border-right: 1px solid rgba(255,255,255,.12);
    text-align: center;
    gap: 6px;
}
.sp-principle:last-child { border-right: none; }
.sp-principle-icon { font-size: 26px; }
.sp-principle span:last-child { font-size: 13px; font-weight: 700; }

/* ── ADVERTISE template ─────────────────────────────────────── */
.sp-advertise-wrap { max-width: 980px; margin: 0 auto; }

.sp-ad-formats { margin-bottom: 40px; }

.sp-ad-format-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.sp-ad-format-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}
.sp-afc-preview { width: 100%; overflow: hidden; }
.sp-afc-info { padding: 14px 16px; }
.sp-afc-name { font-weight: 800; font-size: 14px; color: #111; margin-bottom: 4px; }
.sp-afc-desc { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 6px; }
.sp-afc-size {
    display: inline-block;
    background: var(--soft);
    color: #555;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 700;
    font-family: monospace;
}

.sp-advertise-form {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 36px 36px;
    margin-top: 8px;
}

/* ── FAQ template ───────────────────────────────────────────── */
.sp-faq-wrap { max-width: 800px; margin: 0 auto; }

.sp-faq-content .faq-q {
    padding: 14px 18px 14px 42px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    margin: 12px 0 0;
    position: relative;
    transition: background .15s;
}
.sp-faq-content .faq-q::before {
    content: '+';
    position: absolute;
    left: 14px;
    top: 50%; transform: translateY(-50%);
    width: 22px; height: 22px;
    background: var(--red);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 700; line-height: 1;
}
.sp-faq-content .faq-q.open { background: var(--soft); border-color: var(--red); }
.sp-faq-content .faq-q.open::before { content: '−'; }
.sp-faq-content .faq-answer {
    display: none;
    padding: 14px 18px 14px 42px;
    background: #fafafa;
    border: 1px solid var(--line);
    border-top: none;
    border-radius: 0 0 8px 8px;
    margin-bottom: 4px;
}
.sp-faq-content .faq-answer.open { display: block; }
.sp-faq-cta { margin-top: 36px; text-align: center; font-size: 15px; color: var(--muted); }
.sp-faq-cta a { color: var(--red); font-weight: 700; }

.sp-empty { text-align: center; padding: 60px 0; color: var(--muted); }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .sp-legal-wrap { grid-template-columns: 200px 1fr; gap: 24px; }
    .sp-contact-grid { grid-template-columns: 320px 1fr; gap: 24px; }
    .sp-ad-format-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    .sp-legal-wrap { grid-template-columns: 1fr; }
    .sp-legal-toc { position: static; }
    .sp-contact-grid { grid-template-columns: 1fr; }
    .sp-pillars { grid-template-columns: 1fr; }
    .sp-contact-strip { grid-template-columns: 1fr; gap: 14px; }
    .sp-editorial-principles { flex-wrap: wrap; }
    .sp-principle { flex: 1 1 33%; border-bottom: 1px solid rgba(255,255,255,.12); }
}

@media (max-width: 640px) {
    .sp-hero-title { font-size: 26px; }
    .sp-hero { padding: 32px 0 26px; }
    .sp-content-wrap { padding: 22px 18px; }
    .sp-form-row { grid-template-columns: 1fr; }
    .sp-ad-format-grid { grid-template-columns: 1fr; }
    .sp-contact-form-wrap { padding: 22px 18px; }
    .sp-advertise-form { padding: 22px 18px; }
    .sp-editorial-principles { display: grid; grid-template-columns: repeat(3, 1fr); }
    .sp-principle { border-right: none; border-bottom: 1px solid rgba(255,255,255,.12); }
}
