/* ===== Shared styles for SEO pages (extends index.html theme) ===== */

/* ===== Fonts ===== */
@font-face {
    font-family: 'SolaimanLipi';
    src: url('/static/SolaimanLipi.ttf') format('truetype');
    font-display: swap;
}
@font-face {
    font-family: 'Roboto';
    src: url('/static/Roboto-Regular.ttf') format('truetype');
    font-display: swap;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --green: #1a5c32;
    --green-dark: #0f4022;
    --green-light: #e8f0e8;
    --gold: #c8a542;
    --gold-light: #f5edd6;
    --paper: #f7f2e9;
    --surface: #ffffff;
    --text: #111827;
    --text-muted: #374151;
    --border: #b8ac94;
    --border-light: #dcd3c4;
    --error: #c0392b;
    --radius: 8px;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --font-bn: 'SolaimanLipi', 'Noto Sans Bengali', sans-serif;
    --font-en: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--font-en);
    background: var(--paper);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== Skip Link ===== */
.skip-link {
    position: absolute;
    top: -60px;
    left: 1rem;
    background: var(--gold);
    color: #000;
    padding: 0.5rem 1rem;
    z-index: 1000;
    font-weight: 700;
    border-radius: var(--radius);
    text-decoration: none;
    transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ===== Header ===== */
.header {
    background: var(--green);
    color: #fff;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.header-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.header-emblem {
    width: 40px;
    height: 40px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.header-title { display: flex; flex-direction: column; }
.header-title-en {
    font-family: var(--font-en);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.header-title-bn {
    font-family: var(--font-bn);
    font-size: 1.1rem;
    color: #ffffff;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.header-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: #ffffff;
}
.header-badge span {
    background: rgba(255, 255, 255, 0.22);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
}

/* ===== Navigation ===== */
.main-nav {
    display: flex;
    align-items: center;
}
.nav-list {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    flex-wrap: wrap;
}
.nav-link {
    display: block;
    padding: 0.4rem 0.7rem;
    font-family: var(--font-en);
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}
.nav-link:hover,
.nav-link:focus {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 3px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}
.mobile-nav-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 2px;
    transition: background 0.2s;
}
.mobile-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* ===== Hero Section ===== */
.hero-section {
    padding: 2.5rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    color: #fff;
}
.hero-title {
    font-family: var(--font-en);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.hero-subtitle {
    font-family: var(--font-en);
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}
.hero-description {
    font-family: var(--font-en);
    font-size: 0.9rem;
    opacity: 0.85;
    max-width: 720px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

/* ===== Content Container ===== */
.page-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}
.page-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.page-header h1 {
    font-family: var(--font-en);
    font-size: 2rem;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 0.5rem;
}
.page-header h1 .bn {
    font-family: var(--font-bn);
    font-size: 1.8rem;
    display: block;
    margin-top: 0.25rem;
}
.page-header p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto;
}

/* ===== Breadcrumbs ===== */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-en);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    background: var(--green-light);
    border-radius: var(--radius);
}
.breadcrumbs a {
    color: var(--green);
    text-decoration: none;
    font-weight: 600;
}
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { color: var(--text-muted); }

/* ===== Content Sections ===== */
.content-section {
    margin-bottom: 3rem;
}
.content-section h2 {
    font-family: var(--font-en);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--green-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--green-light);
}
.content-section h3 {
    font-family: var(--font-en);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--green-dark);
    margin-bottom: 0.75rem;
}
.content-section p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--text);
}
.content-section p:last-child { margin-bottom: 0; }

/* ===== Feature Grid ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}
@media (max-width: 768px) {
    .feature-grid { grid-template-columns: 1fr; }
}
.feature-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.feature-card:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); }
.feature-card .feature-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}
.feature-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}
.feature-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    flex-grow: 1;
}

/* ===== Tables ===== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.88rem;
    background: var(--surface);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    overflow: hidden;
}
.data-table th,
.data-table td {
    padding: 0.6rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
    font-family: var(--font-en);
}
.data-table th {
    background: var(--green);
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.78rem;
}
.data-table th .bn {
    font-family: var(--font-bn);
    font-size: 0.82rem;
}
.data-table tbody tr:hover {
    background: var(--green-light);
}
.data-table td .bn {
    font-family: var(--font-bn);
    font-size: 0.9rem;
    color: var(--text-muted);
}
.data-table td .route-time {
    font-family: var(--font-en);
    font-size: 0.82rem;
    color: var(--green-dark);
    font-weight: 600;
}
.data-table td .route-train {
    font-family: var(--font-en);
    font-weight: 600;
}

/* ===== Station List ===== */
.station-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin: 1.5rem 0;
}
@media (max-width: 768px) {
    .station-list { grid-template-columns: 1fr; }
}
.station-item {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 0.6rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: box-shadow 0.2s;
}
.station-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background: var(--green-light);
}
.station-item .en {
    font-family: var(--font-en);
    font-weight: 600;
    font-size: 0.9rem;
}
.station-item .bn {
    font-family: var(--font-bn);
    font-size: 1rem;
    color: var(--text-muted);
}

/* ===== Numbered Steps ===== */
.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}
@media (max-width: 768px) {
    .steps-container { grid-template-columns: 1fr; }
}
.step-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
}
.step-card .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--green);
    color: #fff;
    font-family: var(--font-en);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 0.75rem;
}
.step-card h3 {
    font-family: var(--font-en);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--green-dark);
    margin-bottom: 0.5rem;
}
.step-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* ===== FAQ ===== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}
.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.faq-question {
    font-family: var(--font-en);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--green-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.faq-question::before {
    content: "▼";
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: transform 0.2s;
    flex-shrink: 0;
}
.faq-answer {
    margin-top: 0.75rem;
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text);
    display: block;
}
.faq-answer strong { color: var(--green-dark); }

/* ===== Disclaimer / Notice ===== */
.disclaimer-box {
    background: #fff7f7;
    border: 1px solid #fed7d7;
    border-left: 4px solid var(--error);
    border-radius: 4px;
    padding: 1.5rem;
    margin: 2rem 0;
    font-size: 0.92rem;
    line-height: 1.7;
}
.disclaimer-box strong { color: var(--error); }

/* ===== CTA Section ===== */
.cta-section {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--green-dark);
    color: #fff;
    border-radius: var(--radius);
    margin: 3rem 0;
}
.cta-section h2 {
    font-family: var(--font-en);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.cta-section p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    font-family: var(--font-en);
    font-size: 0.88rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
    background: var(--green);
    color: #fff;
}
.btn-primary:hover { background: var(--green-dark); }
.btn-secondary {
    background: var(--gold);
    color: #1a1a2e;
    border: 1px solid var(--gold);
}
.btn-secondary:hover { background: #e5be50; color: #000; }
.btn-group-center {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Text Content ===== */
.text-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.02rem;
    line-height: 1.8;
}
.text-content h2 {
    font-family: var(--font-en);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--green-dark);
    margin-bottom: 1rem;
    text-align: center;
}
.text-content h3 {
    font-family: var(--font-en);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--green-dark);
    margin: 2rem 0 1rem;
}
.text-content ul, .text-content ol {
    margin: 1rem 0 1rem 2rem;
    line-height: 1.8;
}
.text-content li {
    margin-bottom: 0.5rem;
}
.text-content strong { color: var(--green-dark); }
.text-content .bn {
    font-family: var(--font-bn);
    font-size: 1.1rem;
}

/* ===== Info Cards Grid ===== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}
@media (max-width: 768px) {
    .info-grid { grid-template-columns: 1fr; }
}
.info-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.info-card:hover { box-shadow: var(--shadow); }
.info-card .info-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}
.info-card h3 {
    font-family: var(--font-en);
    font-size: 1rem;
    font-weight: 600;
    color: var(--green-dark);
    margin-bottom: 0.5rem;
}
.info-card p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-muted);
    flex-grow: 1;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--green-dark);
    color: #e5e7eb;
    padding: 2.5rem 2rem 1.5rem;
    border-top: 3px solid var(--gold);
    font-size: 0.85rem;
    margin-top: auto;
}
.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
}
@media (max-width: 768px) {
    .footer-container { grid-template-columns: 1fr; gap: 1.5rem; }
}
.footer-brand h3 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.5rem;
    font-family: var(--font-en);
}
.footer-brand p {
    color: #9ca3af;
    line-height: 1.6;
    font-size: 0.85rem;
}
.footer-links h4 {
    color: var(--gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    font-family: var(--font-en);
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}
.footer-bottom {
    max-width: 1100px;
    margin: 2rem auto 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #9ca3af;
    font-size: 0.8rem;
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: var(--green);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--green-dark); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .header { padding: 0.75rem 1rem; }
    .header-right {
        gap: 0.5rem;
        position: relative;
    }
    .mobile-nav-toggle { display: flex; }
    .main-nav {
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--green);
        flex-direction: column;
        width: 220px;
        padding: 0.5rem;
        border-radius: 4px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
        clip-path: inset(100% 0 0 0);
        transition: clip-path 0.25s ease-out;
        z-index: 100;
    }
    .main-nav.open { clip-path: inset(0 0 0 0); }
    .nav-list {
        flex-direction: column;
        gap: 0.25rem;
        width: 100%;
    }
    .header-badge { display: none; }
    .hero-section { padding: 1.5rem 1rem; }
    .hero-title { font-size: 1.5rem; }
    .page-container { padding: 1.5rem 1rem; }
}

@media (max-width: 480px) {
    .hero-section { padding: 1.25rem 0.75rem; }
    .hero-title { font-size: 1.25rem; }
    .page-container { padding: 1rem 0.5rem; }
    .footer-container { gap: 1rem; }
    .site-footer { padding: 1.25rem 0.75rem 1rem; font-size: 0.75rem; }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}