/* -------------------------------------------------------------------------- */
/* STORIES & TRAVEL BLOGS DEDICATED STYLES                                   */
/* -------------------------------------------------------------------------- */

/* ── Section Spacing & Home Grid ── */
.stories-home-section {
    padding: 100px 0;
    position: relative;
    background: var(--bg-main);
}

.stories-grid-home {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
    margin-bottom: 40px;
}

/* ── Common Story Card Component ── */
.story-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-smooth);
    position: relative;
    backdrop-filter: blur(12px);
}

.story-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 122, 0, 0.35);
    box-shadow: var(--shadow-glow);
}

.story-img-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #14171f;
}

.story-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.story-card:hover .story-img {
    transform: scale(1.08);
}

.story-category-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(9, 10, 12, 0.85);
    border: 1px solid rgba(255, 122, 0, 0.4);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.story-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.story-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.story-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.story-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-main);
    margin-bottom: 12px;
    transition: var(--transition-smooth);
}

.story-card:hover .story-title {
    color: var(--primary);
}

.story-title a {
    color: inherit;
    text-decoration: none;
}

.story-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.story-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: auto;
}

.story-author {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.story-read-more {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.story-read-more:hover {
    gap: 10px;
    color: #fff;
}

/* ── Centered Orange Gradient "View All Stories" Button ── */
.stories-cta-wrapper {
    text-align: center;
    margin-top: 20px;
}

.btn-stories-orange {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    background: linear-gradient(135deg, #ff7a00 0%, #e06b00 100%);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 100px;
    text-decoration: none;
    border: none;
    box-shadow: 0 10px 25px rgba(255, 122, 0, 0.35);
    transition: var(--transition-bounce);
    cursor: pointer;
}

.btn-stories-orange:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 122, 0, 0.5);
    color: #ffffff;
}

.btn-stories-orange svg {
    transition: transform 0.3s ease;
}

.btn-stories-orange:hover svg {
    transform: translateX(5px);
}

/* -------------------------------------------------------------------------- */
/* STORIES LISTING PAGE LAYOUT                                                */
/* -------------------------------------------------------------------------- */

.stories-page-hero {
    padding: 120px 0 60px 0;
    background: linear-gradient(180deg, rgba(16, 18, 23, 0.8) 0%, rgba(9, 10, 12, 1) 100%), url('../images/layout/hero_background.webp') center/cover no-repeat;
    text-align: center;
    position: relative;
}

.stories-page-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.stories-page-hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
}

.stories-filter-bar {
    padding: 30px 0;
    background: rgba(16, 18, 23, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 50px;
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 280px;
    max-width: 400px;
}

.search-input {
    width: 100%;
    padding: 14px 20px 14px 45px;
    background: var(--bg-input);
    border: 1px solid var(--bg-input-border);
    border-radius: 100px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(255, 122, 0, 0.2);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cat-pill {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.cat-pill:hover,
.cat-pill.active {
    background: var(--primary-glow);
    border-color: var(--primary);
    color: var(--primary);
}

/* ── Main Layout with Sidebar ── */
.stories-main-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    margin-bottom: 80px;
}

.stories-cards-listing {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.stories-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--border-radius-lg);
    padding: 28px;
    backdrop-filter: blur(10px);
}

.widget-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.widget-cat-list {
    list-style: none;
}

.widget-cat-list li {
    margin-bottom: 12px;
}

.widget-cat-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    transition: var(--transition-smooth);
}

.widget-cat-list a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.recent-post-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 16px;
    text-decoration: none;
}

.recent-post-img {
    width: 65px;
    height: 65px;
    border-radius: var(--border-radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.recent-post-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.3;
    margin-bottom: 4px;
    transition: var(--transition-smooth);
}

.recent-post-item:hover .recent-post-info h4 {
    color: var(--primary);
}

.recent-post-info span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.newsletter-widget p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
}

.newsletter-form input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--bg-input-border);
    border-radius: var(--border-radius-sm);
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 10px;
    outline: none;
}

.newsletter-form button {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    border: none;
    border-radius: var(--border-radius-sm);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.newsletter-form button:hover {
    background: var(--primary-hover);
}

/* ── Pagination ── */
.pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    grid-column: 1 / -1;
}

.page-link {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: var(--text-muted);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.page-link.active,
.page-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.page-link.next-link {
    width: auto;
    padding: 0 20px;
    border-radius: 100px;
}

/* -------------------------------------------------------------------------- */
/* INDIVIDUAL BLOG PAGE LAYOUT                                                */
/* -------------------------------------------------------------------------- */

.blog-detail-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 100px 24px 80px 24px;
}

.blog-hero-banner {
    width: 100%;
    height: 450px;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    margin-bottom: 35px;
    border: 1px solid var(--bg-card-border);
    box-shadow: var(--shadow-premium);
}

.blog-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-header-meta {
    margin-bottom: 30px;
}

.blog-header-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 15px 0;
}

.blog-header-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-author-details {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-btn {
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.share-btn:hover {
    background: var(--primary-glow);
    border-color: var(--primary);
    color: var(--primary);
}

/* ── Rich Article Body Styling ── */
.blog-body-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #d1d5db;
}

.blog-intro {
    font-size: 1.2rem;
    line-height: 1.7;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 30px;
    padding-left: 20px;
    border-left: 4px solid var(--primary);
}

.blog-body-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 40px 0 20px 0;
}

.blog-body-content p {
    margin-bottom: 24px;
}

.blog-body-content ul {
    margin: 0 0 24px 24px;
}

.blog-body-content li {
    margin-bottom: 10px;
}

/* ── Custom Callout & Feature Boxes ── */
.blog-callout-box {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--border-radius-lg);
    padding: 28px;
    margin: 35px 0;
    position: relative;
    backdrop-filter: blur(10px);
}

.callout-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.route-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 15px;
}

.route-info-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 16px;
    border-radius: var(--border-radius-md);
}

.route-info-card strong {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.route-info-card span {
    font-weight: 700;
    color: var(--text-main);
}

.blog-faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.faq-box-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius-md);
    padding: 20px;
}

.faq-box-item h4 {
    font-size: 1.05rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.faq-box-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ── CTA Banner inside Blog ── */
.blog-cta-banner {
    background: linear-gradient(135deg, rgba(255, 122, 0, 0.15) 0%, rgba(16, 18, 23, 0.9) 100%);
    border: 1px solid rgba(255, 122, 0, 0.3);
    border-radius: var(--border-radius-xl);
    padding: 40px;
    text-align: center;
    margin: 50px 0;
}

.blog-cta-banner h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.blog-cta-banner p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 24px auto;
}

/* ── Article Navigation ── */
.article-nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin: 50px 0;
}

.art-nav-item {
    text-decoration: none;
    color: var(--text-muted);
    max-width: 45%;
    transition: var(--transition-smooth);
}

.art-nav-item:hover {
    color: var(--primary);
}

.art-nav-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
}

.art-nav-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
}

.art-nav-item:hover .art-nav-title {
    color: var(--primary);
}

/* -------------------------------------------------------------------------- */
/* RESPONSIVE BREAKPOINTS                                                     */
/* -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    .stories-main-grid {
        grid-template-columns: 1fr;
    }
    .route-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .stories-grid-home {
        grid-template-columns: 1fr;
    }
    .stories-cards-listing {
        grid-template-columns: 1fr;
    }
    .blog-header-title {
        font-size: 2rem;
    }
    .blog-hero-banner {
        height: 300px;
    }
}

@media (max-width: 600px) {
    .filter-container {
        flex-direction: column;
        align-items: stretch;
    }
    .search-box {
        max-width: 100%;
    }
    .article-nav-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    .art-nav-item {
        max-width: 100%;
    }
}

/* -------------------------------------------------------------------------- */
/* REQUIRED DOCUMENTS FOR SECURITY SECTION STYLES                             */
/* -------------------------------------------------------------------------- */

.security-docs-section {
    padding: 100px 0;
    position: relative;
    background: #090a0c;
}

.security-docs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 50px;
    margin-bottom: 40px;
}

.security-doc-card {
    background: rgba(18, 20, 26, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius-lg);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-smooth);
    position: relative;
    backdrop-filter: blur(12px);
}

.security-doc-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 122, 0, 0.35);
    box-shadow: var(--shadow-glow);
}

.doc-num-badge {
    width: fit-content;
    background: var(--primary);
    color: #090a0c;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    padding: 6px 14px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.security-doc-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
    line-height: 1.35;
}

.security-doc-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex-grow: 1;
}

@media (max-width: 1100px) {
    .security-docs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .security-docs-grid {
        grid-template-columns: 1fr;
    }
}





/* ═══════════════════════════════════════════════════════════════════════════
   MS CABS STORIES — MOBILE RESPONSIVE FIXES v2.1
   Applied: 2026-07-19
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 600px) {
    /* Story cards grid — single column */
    .stories-grid {
        grid-template-columns: 1fr !important;
    }
    /* Blog card touch target */
    .story-card,
    .blog-card {
        min-height: auto;
        border-radius: 12px;
    }
    /* Compact blog post header on mobile */
    .blog-post-banner {
        min-height: 200px;
    }
    .blog-post-header-content h1 {
        font-size: 1.5rem;
    }
    /* Related posts grid */
    .related-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ── Blog Detail Page: Mobile Overflow Fixes ── */

/* Prevent the entire page from scrolling horizontally */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }

    /* Container: tighten padding, ensure no overflow */
    .blog-detail-container {
        padding: 80px 16px 60px 16px;
        overflow-x: hidden;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Hero image: reduce height, keep full width */
    .blog-hero-banner {
        height: 220px;
        margin-bottom: 24px;
        border-radius: 12px;
    }

    /* Title: scale down so it wraps within viewport */
    .blog-header-title {
        font-size: 1.55rem;
        line-height: 1.3;
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    /* Author + share row: stack vertically on mobile */
    .blog-header-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    /* Author details: allow wrapping, tighten gap */
    .blog-author-details {
        flex-wrap: wrap;
        gap: 8px;
        font-size: 0.85rem;
    }

    /* Social share: wrap if needed */
    .social-share-buttons {
        flex-wrap: wrap;
        gap: 8px;
    }

    /* Article body text: comfortable line length */
    .blog-body-content {
        font-size: 0.98rem;
        overflow-x: hidden;
    }

    /* Prevent wide images/tables inside content from breaking layout */
    .blog-body-content img,
    .blog-body-content table,
    .blog-body-content iframe,
    .blog-body-content video {
        max-width: 100% !important;
        height: auto !important;
        display: block;
    }

    .blog-body-content table {
        overflow-x: auto;
        display: block;
        white-space: nowrap;
    }

    /* Headings inside body */
    .blog-body-content h2 {
        font-size: 1.35rem;
    }
    .blog-body-content h3 {
        font-size: 1.15rem;
    }

    /* CTA banner */
    .blog-cta-banner {
        padding: 28px 18px;
    }
    .blog-cta-banner h3 {
        font-size: 1.25rem;
    }

    /* Related packages: single column */
    .related-packages-section .packages-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Extra small screens */
@media (max-width: 400px) {
    .blog-header-title {
        font-size: 1.3rem;
    }
    .blog-detail-container {
        padding: 70px 14px 50px 14px;
    }
}
