/* Blog pages (index + posts). Builds on /style.css. */

.blog-main {
    padding: 130px 0 80px;
}

.blog-header {
    max-width: 760px;
    margin: 0 auto 48px;
    text-align: center;
}

.blog-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--rrugo-blue);
    margin-bottom: 12px;
}

.blog-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 44px;
    line-height: 1.15;
    margin-bottom: 16px;
}

.blog-header p {
    color: var(--text-muted);
    font-size: 18px;
}

/* Index cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 16px;
    padding: 28px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.blog-card:hover {
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.blog-card-tag {
    font-size: 12px;
    font-weight: 700;
    color: var(--rrugo-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.blog-card h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 10px;
}

.blog-card p {
    color: var(--text-muted);
    font-size: 15px;
    flex: 1;
}

.blog-card-more {
    margin-top: 18px;
    font-weight: 700;
    font-size: 14px;
    color: var(--rrugo-blue);
}

/* Article */
.post {
    max-width: 740px;
    margin: 0 auto;
}

.post-breadcrumb {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.post-breadcrumb a {
    color: var(--rrugo-blue);
    text-decoration: none;
}

.post h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 40px;
    line-height: 1.15;
    margin-bottom: 14px;
}

.post-meta {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-gray);
}

.post-lead {
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 28px;
}

.post h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    line-height: 1.25;
    margin: 44px 0 14px;
}

.post h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    margin: 28px 0 10px;
}

.post p,
.post li {
    font-size: 17px;
    line-height: 1.75;
    color: #334155;
}

.post p {
    margin-bottom: 18px;
}

.post ul,
.post ol {
    margin: 0 0 20px 22px;
}

.post li {
    margin-bottom: 8px;
}

.post a {
    color: var(--rrugo-blue);
}

.post strong {
    color: var(--text-dark);
}

.table-wrap {
    overflow-x: auto;
    margin: 8px 0 24px;
    border: 1px solid var(--border-gray);
    border-radius: 12px;
}

.post table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.post th,
.post td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-gray);
}

.post th {
    background: var(--light-gray);
    font-weight: 700;
    color: var(--text-dark);
}

.post tr:last-child td {
    border-bottom: none;
}

.post-note {
    background: var(--light-gray);
    border-left: 4px solid var(--rrugo-blue);
    border-radius: 0 10px 10px 0;
    padding: 16px 20px;
    margin: 24px 0;
    font-size: 15px;
    color: #334155;
}

.post-cta {
    margin: 48px 0 8px;
    padding: 32px;
    border-radius: 18px;
    background: linear-gradient(135deg, #0d1b3e 0%, var(--rrugo-blue) 100%);
    color: white;
    text-align: center;
}

.post-cta h2 {
    color: white;
    margin: 0 0 10px;
    font-size: 26px;
}

.post-cta p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
}

.post-cta .store-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.store-btn {
    display: inline-block;
    background: white;
    color: var(--text-dark) !important;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 999px;
}

.store-btn:hover {
    opacity: 0.9;
}

.related {
    max-width: 740px;
    margin: 56px auto 0;
}

.related h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    margin-bottom: 16px;
}

.related .blog-grid {
    grid-template-columns: 1fr;
    gap: 14px;
}

.related .blog-card {
    padding: 20px 24px;
}

.related .blog-card h2 {
    font-size: 18px;
    margin-bottom: 4px;
}

@media (max-width: 767px) {
    .blog-main {
        padding: 110px 0 60px;
    }

    .blog-header h1,
    .post h1 {
        font-size: 32px;
    }

    .post-lead {
        font-size: 18px;
    }

    .post h2 {
        font-size: 24px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .post-cta {
        padding: 26px 20px;
    }

    .post table {
        font-size: 14px;
    }

    .post th,
    .post td {
        padding: 10px;
    }
}

/* SQ / EN switch is links here (buttons on the main site) */
a.lang-btn {
    text-decoration: none;
    display: inline-block;
}

/* ── Bus timetable pages ─────────────────────────── */
.bus-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin: 8px 0 24px;
}

.bus-stat {
    background: var(--light-gray);
    border: 1px solid var(--border-gray);
    border-radius: 14px;
    padding: 12px 14px;
}

.bus-stat span {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.bus-stat strong {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    color: var(--text-dark);
}

.post .bus-table td,
.post .bus-table th {
    white-space: nowrap;
}

.post .bus-table td:nth-child(3) {
    white-space: normal;
}

.bus-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 28px 0 8px;
}

.post .bus-link {
    font-weight: 700;
    text-decoration: none;
}

.post .bus-link:hover {
    text-decoration: underline;
}

.bus-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.post .bus-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--border-gray);
    border-radius: 999px;
    background: white;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

.post .bus-chip:hover {
    border-color: var(--rrugo-blue);
    color: var(--rrugo-blue);
}

.bus-chip span {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--light-gray);
    border-radius: 999px;
    padding: 1px 8px;
}

.bus-index {
    max-width: 960px;
}

.bus-filter {
    width: 100%;
    font: 500 16px 'DM Sans', sans-serif;
    padding: 14px 18px;
    border: 1px solid var(--border-gray);
    border-radius: 14px;
    margin-bottom: 8px;
    outline: none;
}

.bus-filter:focus {
    border-color: var(--rrugo-blue);
    box-shadow: 0 0 0 3px rgba(30, 98, 207, 0.12);
}

.bus-group h2 {
    font-size: 20px !important;
    margin: 28px 0 12px !important;
}

@media (max-width: 767px) {
    .post .bus-table {
        font-size: 13px;
    }

    .post .bus-table th,
    .post .bus-table td {
        padding: 9px 8px;
    }

    .bus-stat strong {
        font-size: 16px;
    }
}

/* ── Driver page ─────────────────────────────────── */
.drv-hero-cta {
    margin-top: 24px;
}

.drv-hero-cta .store-btn {
    background: var(--text-dark);
    color: white !important;
}

.drv-hero-cta .store-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.drv-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}

.drv-card {
    background: var(--light-gray);
    border: 1px solid var(--border-gray);
    border-radius: 20px;
    padding: 24px;
}

.drv-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    margin: 0 0 6px;
}

.drv-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

.drv-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: white;
    border: 1px solid var(--border-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.drv-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--rrugo-blue);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.drv-calc {
    max-width: 860px;
    margin: 0 auto 56px;
    padding: 32px;
    border-radius: 28px;
    background: #0b1530;
    color: white;
}

.drv-calc h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 30px;
    color: white;
    margin: 0 0 8px;
}

.drv-sub {
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 22px;
}

.drv-calc-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 12px;
}

.drv-calc-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
}

.drv-calc-grid input,
.drv-calc-grid select {
    font: 600 16px 'DM Sans', sans-serif;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: #12224a;
    color: white;
    width: 100%;
}

.drv-out {
    display: grid;
    grid-template-columns: 1fr 1.3fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.drv-out div {
    background: #12224a;
    border-radius: 16px;
    padding: 16px;
}

.drv-out span {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.drv-out strong {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
}

.drv-out .drv-out-main {
    background: linear-gradient(135deg, #1e62cf, #06b6d4);
}

.drv-note {
    margin-top: 14px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.drv-steps {
    list-style: none;
    counter-reset: s;
    margin: 0 0 24px !important;
    padding: 0;
}

.drv-steps li {
    counter-increment: s;
    position: relative;
    padding: 0 0 18px 52px;
}

.drv-steps li::before {
    content: counter(s);
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: #eef3ff;
    color: var(--rrugo-blue);
    font: 800 16px 'Outfit', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drv-steps strong,
.drv-steps span {
    display: block;
}

@media (max-width: 980px) {
    .drv-grid {
        grid-template-columns: 1fr 1fr;
    }

    .drv-calc-grid {
        grid-template-columns: 1fr 1fr;
    }

    .drv-calc-grid label:first-child {
        grid-column: span 2;
    }
}

@media (max-width: 767px) {
    .drv-grid,
    .drv-out {
        grid-template-columns: 1fr;
    }

    .drv-calc {
        padding: 22px 16px;
        border-radius: 22px;
    }

    .drv-calc h2 {
        font-size: 24px;
    }
}

/* Calculator: keep every input on the same line even when a label wraps */
.drv-calc-grid label {
    justify-content: flex-end;
}

/* ── Blog search + categories ────────────────────── */
.blog-filter {
    max-width: 760px;
    margin: 0 auto 32px;
}

.blog-search {
    width: 100%;
    font: 500 16px 'DM Sans', sans-serif;
    padding: 14px 18px;
    border: 1px solid var(--border-gray);
    border-radius: 14px;
    outline: none;
    margin-bottom: 14px;
}

.blog-search:focus {
    border-color: var(--rrugo-blue);
    box-shadow: 0 0 0 3px rgba(30, 98, 207, 0.12);
}

.blog-cats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.blog-cat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--border-gray);
    border-radius: 999px;
    background: white;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

.blog-cat span {
    font-size: 12px;
    color: var(--text-muted);
}

.blog-cat:hover {
    border-color: var(--rrugo-blue);
    color: var(--rrugo-blue);
}

.blog-cat.active {
    background: var(--rrugo-blue);
    border-color: var(--rrugo-blue);
    color: white;
}

.blog-cat.active span {
    color: rgba(255, 255, 255, 0.8);
}

.blog-empty {
    text-align: center;
    color: var(--text-muted);
    margin-top: 24px;
}

@media (max-width: 767px) {
    .blog-cats {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        padding-bottom: 4px;
    }

    .blog-cats::-webkit-scrollbar {
        display: none;
    }

    .blog-cat {
        flex-shrink: 0;
    }
}

/* ── "Plan your trip" partner box (affiliate links) ─ */
.plan-box {
    margin: 40px 0 8px;
    padding: 24px;
    border: 1px solid var(--border-gray);
    border-radius: 20px;
    background: var(--light-gray);
}

.post .plan-box h2 {
    margin: 0 0 16px;
    font-size: 22px;
}

.plan-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: white;
    border: 1px solid var(--border-gray);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 10px;
}

.plan-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #eef3ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--rrugo-blue);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.plan-body {
    min-width: 0;
}

.post .plan-body h3 {
    margin: 0 0 4px;
    font-size: 17px;
}

.post .plan-body p {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.55;
}

.post .plan-btn {
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
}

.post .plan-btn:hover {
    text-decoration: underline;
}

.post .plan-disclosure {
    margin: 12px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
}

@media (max-width: 767px) {
    .plan-box {
        padding: 18px 14px;
    }
}

.plan-also {
    font-size: 14px;
    color: var(--text-muted);
    margin-left: 6px;
}

.post .plan-alt {
    font-weight: 600;
    color: var(--text-muted);
}

/* ── Flight search ───────────────────────────────── */
.fl-form {
    max-width: 960px;
    margin: 0 auto 48px;
    padding: 28px;
    border-radius: 28px;
    background: #0b1530;
    color: white;
}

.fl-grid {
    display: grid;
    grid-template-columns: 1.1fr auto 1.4fr 1.15fr 1.15fr 0.6fr;
    gap: 12px;
    align-items: end;
}

.fl-grid > * {
    min-width: 0;
}

.fl-grid label {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
}

.fl-grid input,
.fl-grid select {
    font: 600 16px 'DM Sans', sans-serif;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: #12224a;
    color: white;
    width: 100%;
    min-width: 0;
    color-scheme: dark;
}

.fl-grid input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.fl-swap.is-on {
    border-color: #93c5fd;
}

.fl-swap {
    width: 44px;
    height: 46px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: #12224a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fl-swap svg {
    width: 20px;
    height: 20px;
    stroke: #93c5fd;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fl-popular {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.fl-chip {
    font: 600 13px 'DM Sans', sans-serif;
    color: white;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 6px 12px;
    cursor: pointer;
}

.fl-chip:hover {
    background: rgba(255, 255, 255, 0.16);
}

.fl-error {
    min-height: 20px;
    margin: 10px 0 0;
    font-size: 14px;
    color: #fca5a5;
}

.fl-submit {
    margin-top: 8px;
    width: 100%;
    font: 700 17px 'DM Sans', sans-serif;
    color: white;
    border: 0;
    border-radius: 999px;
    padding: 15px;
    cursor: pointer;
    background: linear-gradient(135deg, #1e62cf, #06b6d4);
}

.fl-note {
    margin: 12px 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.fl-after {
    max-width: 960px;
}

@media (max-width: 900px) {
    .fl-grid {
        grid-template-columns: 1fr auto 1fr;
    }

    .fl-grid > label:nth-child(n + 4) {
        grid-column: span 1;
    }
}

@media (max-width: 767px) {
    .fl-form {
        padding: 20px 14px;
        border-radius: 22px;
    }

    .fl-grid {
        grid-template-columns: 1fr 1fr;
    }

    .fl-grid .fl-from,
    .fl-grid .fl-to {
        grid-column: span 2;
    }

    .fl-swap {
        grid-column: span 2;
        width: 100%;
        height: 38px;
    }
}

/* Bus pages: next bus today + slim app bar */
.bus-next {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 12px;
    margin: 4px 0 12px;
    padding: 14px 18px;
    border-radius: 16px;
    background: #0b1530;
    color: white;
}

.bus-next[hidden] {
    display: none;
}

.bus-next-label {
    width: 100%;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.bus-next-time {
    font-family: 'Outfit', sans-serif;
    font-size: 30px;
    line-height: 1;
}

.bus-next-meta {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
}

.post .bus-appbar {
    display: block;
    margin: 0 0 22px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid #dbe6ff;
    background: #eef3ff;
    color: var(--rrugo-blue);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
}

.post .bus-appbar:hover {
    border-color: var(--rrugo-blue);
}

.post .bus-table tr.is-next td {
    background: #eef3ff;
    font-weight: 700;
}

.post .bus-next-time {
    color: white;
}
