@font-face {
    font-family: 'IRANSans';
    src: url('../fonts/IRANSansWeb(FaNum).ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'IRANSans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #10b981;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --header-offset: 3rem;
}

html {
    scroll-padding-top: var(--header-offset);
}

section[id],
footer[id] {
    scroll-margin-top: var(--header-offset);
}

body {
    font-family: 'IRANSans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

a,
a:link,
a:visited,
a:hover,
a:active,
a:focus {
    color: var(--primary-color);
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.logo img {
    width: 32px;
    vertical-align: middle;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hamburger Menu Button */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
    display: block;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    max-width: 85%;
    height: 100vh;
    background: var(--bg-white);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
    direction: rtl;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-menu-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.mobile-menu-logo img {
    width: 32px;
    height: 32px;
}

.mobile-menu-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.mobile-menu-close:hover {
    color: var(--primary-color);
}

.mobile-menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-links li {
    border-bottom: 1px solid #f3f4f6;
}

.mobile-menu-link {
    display: block;
    padding: 1rem 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.2s;
    border-right: 3px solid transparent;
}

.mobile-menu-link:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    border-right-color: var(--primary-color);
    padding-right: 1.5rem;
}

/* Hero Section */
.hero {
    position: relative;
    background:
        radial-gradient(ellipse 65% 55% at 92% 8%, rgba(37, 99, 235, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse 55% 50% at 5% 92%, rgba(16, 185, 129, 0.09) 0%, transparent 50%),
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(147, 197, 253, 0.35) 0%, transparent 60%),
        linear-gradient(180deg, #eff6ff 0%, #f8fafc 55%, #ffffff 100%);
    color: var(--text-primary);
    padding: 5rem 0 4.5rem;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(37, 99, 235, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 0%, transparent 80%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 0%, transparent 80%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.18) 0%, transparent 65%);
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #0f172a;
    line-height: 1.3;
}

.hero p {
    font-size: 1.0625rem;
    margin-bottom: 2rem;
    color: #64748b;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.75;
}

.hero .city-selection-form {
    box-shadow:
        0 4px 6px -1px rgba(37, 99, 235, 0.06),
        0 20px 40px -12px rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 16px;
}

/* City Selection Form */
.city-selection-form {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #e5e7eb;
}

.train-search-form {
    width: 100%;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    position: relative;
}

.form-groups-equal {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1 1 auto;
}

.form-row-equal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.form-row-equal .form-group {
    flex: 1 1 calc(50% - 0.375rem);
    min-width: 250px;
}

.form-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    flex: 1 1 auto;
    min-width: 250px;
}

.form-group:first-of-type,
.form-group:nth-of-type(3) {
    flex: 1.3 1 auto;
}

.form-row-equal .form-group:first-of-type,
.form-row-equal .form-group:nth-of-type(2) {
    flex: 1 1 calc(50% - 0.375rem);
}

.form-group label {
    min-width: 120px;
    max-width: 120px;
    width: 120px;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0;
    font-size: 0.875rem;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-label-with-icon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.label-icon {
    flex-shrink: 0;
    color: var(--text-secondary);
    width: 18px;
    height: 18px;
}

.form-label-with-icon span {
    flex: 1;
}

.form-group .form-control,
.form-group .custom-select-wrapper {
    flex: 1;
    min-width: 0;
}

.form-group-btn {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-end;
}

.form-group .form-control {
    padding: 0.625rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-family: 'IRANSans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: border-color 0.2s;
    background: white;
    color: var(--text-primary);
    flex: 1;
    cursor: pointer;
}

.form-group .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.form-group select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Custom Select Dropdown with Search */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'IRANSans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: white;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.3s, box-shadow 0.3s;
    min-height: 48px;
}

.custom-select-trigger:hover {
    border-color: var(--primary-color);
}

.custom-select.active .custom-select-trigger {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.custom-select-value {
    flex: 1;
    text-align: right;
    color: var(--text-primary);
}

.custom-select-value.placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.custom-select-arrow {
    width: 12px;
    height: 8px;
    margin-left: 0.75rem;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.custom-select.active .custom-select-arrow {
    transform: rotate(180deg);
}

.custom-select-options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    max-height: 350px;
    overflow: hidden;
    flex-direction: column;
}

.custom-select.active .custom-select-options {
    display: flex;
}

.custom-select-search {
    position: relative;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.custom-select-search-input {
    width: 100%;
    padding: 0.625rem 2.5rem 0.625rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: 'IRANSans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    outline: none;
    transition: border-color 0.3s;
}

.custom-select-search-input:focus {
    border-color: var(--primary-color);
}

.custom-select-search .search-icon {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.custom-select-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    max-height: 280px;
    flex: 1;
}

.custom-select-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    color: var(--text-primary);
    border-bottom: 1px solid #f3f4f6;
}

.custom-select-option:last-child {
    border-bottom: none;
}

.custom-select-option:hover {
    background-color: #f9fafb;
}

.custom-select-option.selected {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    font-weight: 600;
}

.custom-select-option.hidden {
    display: none;
}

/* Mobile backdrop */
.custom-select-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s;
}

@media (max-width: 768px) {
    .custom-select-wrapper.active .custom-select-backdrop {
        display: block;
        opacity: 1;
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .custom-select-options {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        max-height: 100vh;
        border-radius: 0;
        border: none;
        z-index: 9999;
        background: white;
    }
    
    .custom-select-list {
        max-height: calc(100vh - 80px);
    }
    
    .custom-select-search {
        position: sticky;
        top: 0;
        background: white;
        z-index: 10;
        border-bottom: 2px solid var(--border-color);
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .custom-select-close-mobile {
        display: none;
        background: transparent;
        border: none;
        padding: 0.5rem;
        cursor: pointer;
        color: var(--text-secondary);
        flex-shrink: 0;
    }
    
    .custom-select-close-mobile:hover {
        color: var(--text-primary);
    }
    
    @media (max-width: 768px) {
        .custom-select-close-mobile {
            display: block;
        }
    }
}

.btn-search {
    padding: 0.625rem 1.5rem;
    white-space: nowrap;
    height: fit-content;
    font-size: 0.9375rem;
    border-radius: 6px;
}

/* Passenger Selector */
.passenger-selector-wrapper {
    position: relative;
    flex: 1;
}

.passenger-selector-trigger {
    padding: 0.625rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-family: 'IRANSans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: white;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-height: 42px;
}

.passenger-selector-trigger:hover {
    border-color: var(--primary-color);
}

.passenger-selector-wrapper.active .passenger-selector-trigger {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.passenger-selector-value {
    flex: 1;
    text-align: right;
}

.passenger-selector-arrow {
    width: 12px;
    height: 8px;
    margin-left: 0.75rem;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.passenger-selector-wrapper.active .passenger-selector-arrow {
    transform: rotate(180deg);
}

.passenger-selector-options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
}

.passenger-selector-wrapper.active .passenger-selector-options {
    display: flex;
}

.passenger-type {
    display: flex;
    flex-direction: column;
}

.passenger-type-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.passenger-type-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.passenger-type-title {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.passenger-type-subtitle {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.passenger-counter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.passenger-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: white;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    user-select: none;
    -webkit-user-select: none;
    line-height: 1;
}

.passenger-btn:hover:not(:disabled) {
    background: var(--bg-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.passenger-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.passenger-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f3f4f6;
}

.passenger-count {
    min-width: 40px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 0.5rem 0.75rem;
    background: #f0f7ff;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    transition: all 0.2s;
}

.passenger-type:last-child .passenger-count {
    background: #f9fafb;
    border-color: #d1d5db;
    color: var(--text-secondary);
}

.passenger-selector-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
}

/* Hide confirm button on desktop */
.passenger-confirm-btn {
    display: none;
}

@media (max-width: 768px) {
    .passenger-selector-wrapper.active .passenger-selector-backdrop {
        display: block;
        opacity: 1;
    }
    
    .passenger-selector-options {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        right: auto;
        bottom: auto;
        width: calc(100% - 2rem);
        max-width: 400px;
        border-radius: 12px;
        padding: 1.25rem;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    }
    
    .passenger-type-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .passenger-counter {
        justify-content: center;
    }
    
    .passenger-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .passenger-count {
        min-width: 50px;
        padding: 0.625rem 1rem;
        font-size: 1.125rem;
    }
    
    .passenger-confirm-btn {
        display: block;
        width: 100%;
        padding: 0.875rem 1.5rem;
        margin-top: 1rem;
        background: var(--primary-color);
        color: white;
        border: none;
        border-radius: 8px;
        font-size: 1rem;
        font-weight: 600;
        font-family: 'IRANSans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        cursor: pointer;
        transition: all 0.2s;
        box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
    }
    
    .passenger-confirm-btn:hover {
        background: #2563eb;
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
        transform: translateY(-1px);
    }
    
    .passenger-confirm-btn:active {
        transform: translateY(0);
        box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
    }
}

/* City Input Container - Hidden */
.city-input-container {
    display: none;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        position: relative;
        background: transparent;
        border-radius: 0;
        overflow: visible;
        border: none;
        box-shadow: none;
    }
    
    .form-groups-equal {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .form-row-equal {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .form-row-equal .form-group {
        width: 100%;
    }
    
    .form-group {
        position: relative;
        background: #ffffff;
        border-radius: 6px;
        border: 1px solid #e5e7eb;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
        overflow: visible;
        transition: all 0.2s;
        padding: 0.75rem;
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }
    
    .form-group:hover {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
        border-color: #d1d5db;
    }
    
    .form-group label {
        margin-bottom: 0;
        font-size: 0.875rem;
        white-space: nowrap;
        flex-shrink: 0;
        min-width: 100px;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .form-group .form-control,
    .form-group .custom-select-wrapper {
        flex: 1;
    }
    
    .label-icon {
        width: 16px;
        height: 16px;
    }
    
    .form-group:first-of-type {
        margin-bottom: 0;
    }
    
    .form-group:first-of-type::after {
        display: none;
    }
    
    .form-group:nth-of-type(3) {
        margin-top: 0;
    }
    
    /* Date and Passenger fields in mobile */
    .form-group:nth-of-type(4),
    .form-group:nth-of-type(5) {
        margin-top: 0;
    }
    
    .form-group:nth-of-type(4)::after,
    .form-group:nth-of-type(5)::after {
        display: none;
    }
    
    .form-group:nth-of-type(4) .form-control,
    .form-group:nth-of-type(5) .form-control {
        background: white;
        border: 1px solid #d1d5db;
        padding: 0.5rem 0.75rem;
        min-height: auto;
        font-size: 0.875rem;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 0.75rem center;
        padding-right: 2rem;
        transition: border-color 0.2s;
    }
    
    .form-group:nth-of-type(4) .form-control:focus,
    .form-group:nth-of-type(5) .form-control:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
        outline: none;
    }
    
    .form-group:nth-of-type(4) .form-control:hover,
    .form-group:nth-of-type(5) .form-control:hover {
        border-color: #9ca3af;
    }
    
    /* Passenger selector mobile styles */
    .form-group:nth-of-type(5) .passenger-selector-trigger {
        background: white;
        border: 1px solid #d1d5db;
        padding: 0.5rem 0.75rem;
        min-height: auto;
        font-size: 0.875rem;
    }
    
    .form-group:nth-of-type(5) .passenger-selector-trigger:hover {
        border-color: #9ca3af;
    }
    
    .form-group:nth-of-type(5) .passenger-selector-wrapper.active .passenger-selector-trigger {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
    }
    
    .form-group:nth-of-type(5) .passenger-selector-value {
        font-size: 0.875rem;
    }
    
    .form-group:nth-of-type(5) .passenger-selector-arrow {
        display: none;
    }
    
    .custom-select-wrapper {
        background: transparent;
        border: 1px solid #d1d5db;
        border-radius: 6px;
        background: white;
    }
    
    .custom-select-trigger {
        background: transparent;
        border: none;
        padding: 0.5rem 0.75rem;
        min-height: auto;
        cursor: pointer;
        transition: border-color 0.2s;
        border-radius: 6px;
    }
    
    .custom-select-trigger:hover {
        border: none;
        background: #f9fafb;
    }
    
    .custom-select.active .custom-select-trigger {
        border: none;
        box-shadow: none;
        background: #f9fafb;
    }
    
    .custom-select.active .custom-select-wrapper {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
    }
    
    .custom-select-value {
        text-align: right;
        font-size: 0.875rem;
        color: var(--text-primary);
        line-height: 1.4;
    }
    
    .custom-select-value.placeholder {
        color: #6b7280;
    }
    
    .custom-select-arrow {
        display: none;
    }
    
    /* Add subtle background difference for better separation */
    .form-group:nth-of-type(4) {
        background: #fafbfc;
    }
    
    .form-group:nth-of-type(5) {
        background: #fafbfc;
    }
    
    .form-group-btn {
        width: 100%;
        margin-top: 1rem;
    }
    
    .btn-search {
        width: 100%;
    }
    
    .city-selection-form {
        padding: 1rem;
        margin-top: 1.5rem;
        border-radius: 6px;
    }
    
    .btn-search {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    /* Better spacing for form groups */
    .form-group .custom-select-wrapper {
        margin-top: 0;
    }
    
    /* Make sure the entire form group is clickable */
    .form-group .custom-select {
        width: 100%;
    }
    
    /* Improve visual hierarchy */
    .city-input-container + .custom-select-trigger {
        padding-top: 0.5rem;
    }
    
    .hero h1 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
        line-height: 1.4;
    }
    
    .hero p {
        font-size: 0.875rem;
        margin-bottom: 1rem;
        line-height: 1.5;
    }
}

/* Main Content */
.main-content {
    padding: 3rem 0;
}

.form-group-btn-search {
    width: 100%;
    margin-top: 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #059669;
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    .main-content {
        padding: 1.5rem 0;
    }
    
    .btn {
        padding: 0.75rem 1.75rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .main-content {
        padding: 1.25rem 0;
    }
    
    .btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Intro Section (index.php) */
.intro-section {
    margin-bottom: 4rem;
    padding: 1rem 0;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.intro-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.intro-text {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-secondary);
}

.intro-image img {
    width: 100%;
    height: auto;
    max-width: 480px;
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .intro-section {
        margin-bottom: 2.5rem;
        padding: 0.5rem 0;
    }

    .intro-grid {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .intro-image {
        width: 100%;
    }

    .intro-content {
        width: 100%;
    }

    .intro-title {
        font-size: 1.375rem;
        text-align: center;
    }

    .intro-text {
        font-size: 1rem;
        line-height: 1.9;
        text-align: right;
    }

    .intro-image img {
        max-width: 100%;
    }
}

/* Section Styles (for index.php) */
.section {
    margin-bottom: 4rem;
}

#features {
    padding-top: 2rem;
}

@media (max-width: 768px) {
    #features {
        padding-top: 0;
    }
}

.section-title {
    font-size: 1.625rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-primary);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

.feature-card p .link-like-text,
.faq-answer .link-like-text {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.feature-card p .link-like-text:hover,
.feature-card p .link-like-text:focus,
.faq-answer .link-like-text:hover,
.faq-answer .link-like-text:focus {
    color: inherit;
    opacity: 0.85;
}

/* How It Works */
.how-it-works {
    background: var(--bg-light);
    padding: 3rem 0;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    position: relative;
    border-right: 4px solid var(--primary-color);
}

.step-number {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.step h3 {
    font-size: 1.1rem;
    margin-top: 1rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.step p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* FAQ Section */
.faq-section {
    margin-bottom: 4rem;
}

.faq-subtitle {
    font-size: 0.9375rem;
    text-align: center;
    color: var(--text-secondary);
    max-width: 640px;
    margin: -0.5rem auto 2rem;
    line-height: 1.75;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: box-shadow 0.3s, border-color 0.3s;
}

.faq-item[open] {
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: var(--shadow-lg);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '';
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-left: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    transform: rotate(-45deg);
    transition: transform 0.3s;
    margin-top: -4px;
}

.faq-item[open] .faq-question::after {
    transform: rotate(135deg);
    margin-top: 4px;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-answer {
    padding: 0 1.5rem 1.25rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.8;
    border-top: 1px solid var(--border-color);
}

.faq-answer p {
    margin-top: 1rem;
}

.faq-answer a {
    color: var(--primary-color);
    text-decoration: none;
}

/* CTA Section */
.cta-section {
    position: relative;
    background: #0f172a;
    color: #ffffff;
    padding: 4rem 0;
    text-align: center;
    border-radius: 20px;
    margin: 3rem 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.15),
        0 16px 32px -8px rgba(0, 0, 0, 0.25);
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/assets/img/ghataryab-team.webp') center / cover no-repeat;
    pointer-events: none;
}

.cta-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 50%, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.35) 100%),
        linear-gradient(
            180deg,
            rgba(15, 23, 42, 0.38) 0%,
            rgba(15, 23, 42, 0.48) 50%,
            rgba(15, 23, 42, 0.55) 100%
        );
    pointer-events: none;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: 1.625rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
    line-height: 1.35;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.cta-section p {
    font-size: 0.975rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.75;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.cta-section .btn {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    color: #ffffff;
}

/* Footer */
footer {
    position: relative;
    background:
        linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color)) top / 100% 3px no-repeat,
        radial-gradient(ellipse 50% 40% at 0% 100%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 45% at 100% 0%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 45%, #eff6ff 100%);
    color: var(--text-primary);
    padding: 0 0 1.25rem;
    margin-top: 4rem;
    border-radius: 1.5rem 1.5rem 0 0;
    overflow: hidden;
    box-shadow: 0 -8px 32px -8px rgba(37, 99, 235, 0.08);
}

footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.35) 0%, transparent 75%);
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.35) 0%, transparent 75%);
    pointer-events: none;
}

footer::after {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 560px;
    height: 280px;
    background: radial-gradient(ellipse, rgba(147, 197, 253, 0.22) 0%, transparent 70%);
    pointer-events: none;
}

footer .container {
    position: relative;
    z-index: 1;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 2rem;
    padding: 1.75rem 0 1.25rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #0f172a;
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: bold;
    transition: color 0.2s;
}

.footer-logo:hover {
    color: var(--primary-color);
}

.footer-logo img {
    border-radius: 8px;
}

.footer-tagline {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.25rem;
    padding: 0.25rem 0.65rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 20px;
    font-size: 0.75rem;
    color: #059669;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 8px;
    color: #475569;
    text-decoration: none;
    font-size: 0.82rem;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.footer-link:hover {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.25);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.footer-link svg {
    opacity: 0.65;
    flex-shrink: 0;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    direction: rtl;
    align-items: flex-end;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #64748b;
    text-decoration: none;
    font-size: 0.82rem;
    transition: color 0.2s;
    direction: rtl;
    text-align: right;
    width: 100%;
    max-width: 240px;
}

.footer-contact-item > span:not(.footer-icon) {
    direction: ltr;
    text-align: right;
    flex: 1;
    min-width: 0;
}

.footer-contact-item:hover {
    color: var(--primary-color);
}

.footer-contact-phone {
    align-items: flex-start;
}

.footer-contact-phone .footer-icon {
    margin-top: 0.1rem;
}

.footer-phone-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
    min-width: 0;
    text-align: right;
}

.footer-phone-number {
    color: inherit;
    text-decoration: none;
    direction: ltr;
    text-align: right;
    transition: color 0.2s;
}

.footer-contact-phone:hover .footer-phone-number {
    color: var(--primary-color);
}

.footer-hours {
    color: #94a3b8;
    font-size: 0.72rem;
    line-height: 1.4;
    direction: rtl;
    text-align: right;
}

.footer-contact-address {
    align-items: flex-start;
    line-height: 1.5;
}

.footer-address-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
    min-width: 0;
}

.footer-address-text span {
    display: block;
}

.footer-contact-address .footer-icon {
    margin-top: 0.15rem;
}

.footer-enamad img {
    display: block;
    height: 72px;
    width: auto;
    border-radius: 6px;
}

.footer-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 8px;
    flex-shrink: 0;
    color: var(--primary-color);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid rgba(37, 99, 235, 0.1);
}

.copyright {
    margin: 0;
    font-size: 0.78rem;
    color: #94a3b8;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid rgba(37, 99, 235, 0.12);
    color: #64748b;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.06);
}

.footer-social-link:hover {
    color: white;
    transform: translateY(-2px);
}

.footer-social-telegram:hover {
    background: #0088cc;
    border-color: #0088cc;
}

.footer-social-instagram:hover {
    background: #e1306c;
    border-color: #e1306c;
}

.footer-social-whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
}

@media (max-width: 900px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-nav {
        justify-content: center;
    }

    .footer-contact {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .footer-contact-item {
        max-width: none;
    }

    .footer-contact-address {
        align-self: stretch;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    footer {
        margin-top: 2.5rem;
    }

    .footer-main {
        padding: 1.25rem 0 1rem;
    }

    .footer-nav {
        gap: 0.4rem;
    }

    .footer-contact {
        gap: 0.5rem;
    }

    .footer-contact-item {
        font-size: 0.72rem;
        gap: 0.35rem;
    }

    .footer-icon {
        width: 28px;
        height: 28px;
    }

    .footer-link {
        padding: 0.4rem 0.65rem;
        font-size: 0.78rem;
    }

    .footer-link svg {
        display: none;
    }
}

/* Responsive Design for Sections */
.magazine-section {
    margin: 4rem 0;
}

.magazine-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.magazine-heading .section-title {
    margin-bottom: 0;
}

.magazine-kicker {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--primary-color);
    font-size: 0.82rem;
    font-weight: 700;
}

.magazine-all-link,
.magazine-read-link {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
}

.magazine-all-link {
    flex-shrink: 0;
    padding-bottom: 0.35rem;
}

.magazine-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.magazine-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.magazine-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.12);
}

.magazine-card-image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #eef6ff, #dbeafe);
    text-decoration: none;
}

.magazine-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.magazine-card:hover .magazine-card-image img {
    transform: scale(1.04);
}

.magazine-card-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: 800;
}

.magazine-card-body {
    padding: 1rem;
}

.magazine-card-body time {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.magazine-card-body h3 {
    margin: 0.55rem 0 0.6rem;
    font-size: 1rem;
    line-height: 1.7;
}

.magazine-card-body h3 a {
    color: var(--text-primary);
    text-decoration: none;
}

.magazine-card-body p {
    min-height: 4.7em;
    margin: 0 0 0.8rem;
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.9;
}

.magazine-read-link {
    font-size: 0.82rem;
}

@media (max-width: 1000px) {
    .magazine-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .magazine-section {
        margin: 2.5rem 0;
    }

    .magazine-heading {
        align-items: center;
    }

    .section {
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 1.35rem;
        margin-bottom: 1rem;
    }
    
    /* Features Section Mobile */
    .features {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        margin-top: 1rem;
    }
    
    .feature-card {
        padding: 1rem 0.75rem;
        border-radius: 8px;
    }
    
    .feature-icon {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    .feature-card h3 {
        font-size: 0.95rem;
        margin-bottom: 0.375rem;
    }
    
    .feature-card p {
        font-size: 0.75rem;
        line-height: 1.5;
    }
    
    /* How It Works Mobile */
    .how-it-works {
        padding: 2rem 0;
        margin: 1.5rem 0;
    }
    
    .how-it-works .container {
        padding: 0 1rem;
    }
    
    .steps {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-top: 1rem;
    }
    
    .step {
        padding: 1.25rem;
        border-radius: 8px;
        border-right-width: 3px;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 1rem;
        top: -12px;
        right: 15px;
    }
    
    .step h3 {
        font-size: 1.1rem;
        margin-top: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .step p {
        font-size: 0.875rem;
        line-height: 1.6;
    }

    /* FAQ Section Mobile */
    .faq-section {
        margin-bottom: 2rem;
    }

    .faq-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
        padding: 0 0.5rem;
    }

    .faq-question {
        padding: 1rem 1.125rem;
        font-size: 0.95rem;
    }

    .faq-answer {
        padding: 0 1.125rem 1rem;
        font-size: 0.875rem;
    }
    
    /* CTA Section Mobile */
    .cta-section {
        padding: 2rem 1rem;
        margin: 1.5rem 0;
        border-radius: 12px;
    }
    
    .cta-section h2 {
        font-size: 1.35rem;
        margin-bottom: 0.75rem;
    }
    
    .cta-section p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .magazine-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.6rem;
    }

    .magazine-grid {
        grid-template-columns: 1fr;
    }

    .magazine-card-body p {
        min-height: 0;
    }

    .section {
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 1.25rem;
        margin-bottom: 0.875rem;
    }
    
    /* Features Mobile - Extra Small */
    .features {
        gap: 0.625rem;
    }
    
    .feature-card {
        padding: 0.875rem 0.625rem;
    }
    
    .feature-icon {
        font-size: 1.5rem;
        margin-bottom: 0.375rem;
    }
    
    .feature-card h3 {
        font-size: 0.875rem;
        margin-bottom: 0.25rem;
    }
    
    .feature-card p {
        font-size: 0.6875rem;
        line-height: 1.4;
    }
    
    /* How It Works Mobile - Extra Small */
    .how-it-works {
        padding: 1.5rem 0;
        margin: 1rem 0;
    }
    
    .steps {
        gap: 1rem;
    }
    
    .step {
        padding: 1rem;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
        top: -10px;
        right: 12px;
    }
    
    .step h3 {
        font-size: 1rem;
        margin-top: 0.5rem;
    }
    
    .step p {
        font-size: 0.8125rem;
    }

    .faq-question {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
    }

    .faq-answer {
        font-size: 0.8125rem;
    }
    
    /* CTA Mobile - Extra Small */
    .cta-section {
        padding: 1.5rem 0.875rem;
        margin: 1rem 0;
        border-radius: 10px;
    }
    
    .cta-section h2 {
        font-size: 1.25rem;
        margin-bottom: 0.625rem;
    }
    
    .cta-section p {
        font-size: 0.875rem;
        margin-bottom: 1.25rem;
    }
}

/* SEO landing pages (/train/slug) */
.seo-landing-hero-lead {
    max-width: 40rem;
    margin: 0.25rem auto 1.25rem;
    padding: 1.25rem 1.375rem 1.125rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 16px;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 8px 24px -8px rgba(37, 99, 235, 0.12);
    backdrop-filter: blur(8px);
}

.seo-landing-hero-route {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.625rem;
    margin-bottom: 1rem;
}

.seo-landing-hero-route__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.875rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
}

.seo-landing-hero-route__pill--origin {
    color: #1d4ed8;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.seo-landing-hero-route__pill--dest {
    color: #047857;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.18);
}

.seo-landing-hero-route__arrow {
    display: flex;
    align-items: center;
    color: #94a3b8;
    flex-shrink: 0;
}

.seo-landing-hero-intro {
    position: relative;
    max-width: 38rem;
    margin: 0.15rem auto 1.35rem;
    padding: 0.85rem 1.15rem;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(239, 246, 255, 0.85) 100%);
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-right: 3px solid var(--primary-color);
    border-radius: 12px;
    box-shadow: 0 4px 14px -6px rgba(37, 99, 235, 0.12);
}

.seo-landing-hero-intro p {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.85;
    color: #475569;
    text-align: justify;
    text-justify: inter-word;
    letter-spacing: -0.01em;
}

.seo-landing-hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.seo-landing-hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    line-height: 1.3;
}

.seo-landing-hero-chip svg {
    flex-shrink: 0;
    color: var(--primary-color);
    opacity: 0.85;
}

.seo-landing-article {
    max-width: 48rem;
    margin: 2.5rem auto 0;
    padding: 0 0 1rem;
}

.seo-landing-article__intro {
    text-align: center;
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--border-color);
}

.seo-landing-article__eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.08);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 0.625rem;
}

.seo-landing-article__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
}

.seo-landing-block {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem 1.625rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.seo-landing-block__header {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    margin-bottom: 1.125rem;
}

.seo-landing-block__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

.seo-landing-block__icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.seo-landing-block--capacity .seo-landing-block__icon {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.seo-landing-block--schedule .seo-landing-block__icon {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}

.seo-landing-block--faq .seo-landing-block__icon {
    background: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
}

.seo-landing-block h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.45;
    padding-top: 0.2rem;
}

.seo-landing-route-cities {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    padding: 1rem 1.125rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.seo-landing-route-cities__city {
    margin: 0;
    text-align: center;
    flex: 0 0 auto;
}

.seo-landing-route-cities__img {
    width: 96px;
    height: 96px;
    object-fit: contain;
    display: block;
    margin: 0 auto 0.4rem;
}

.seo-landing-route-cities__name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.4;
}

.seo-landing-route-cities__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    flex: 0 0 auto;
}

.seo-landing-prose {
    font-size: 0.9375rem;
    line-height: 1.85;
    color: #475569;
}

.seo-landing-prose p {
    margin: 0 0 0.875rem;
}

.seo-landing-prose p:last-child {
    margin-bottom: 0;
}

.seo-landing-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.125rem;
}

.seo-landing-stat {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.875rem 0.75rem;
    text-align: center;
}

.seo-landing-stat__value {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 0.2rem;
}

.seo-landing-stat__label {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.4;
}

.seo-landing-callout {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    margin-top: 1rem;
    padding: 0.875rem 1rem;
    background: #f8fafc;
    border-radius: 10px;
    border-right: 3px solid var(--primary-color);
    font-size: 0.875rem;
    line-height: 1.7;
    color: #475569;
}

.seo-landing-callout svg {
    flex-shrink: 0;
    width: 1.125rem;
    height: 1.125rem;
    color: var(--primary-color);
    margin-top: 0.15rem;
}

.seo-landing-capacity-card {
    margin-top: 0.25rem;
}

.seo-landing-capacity-cta {
    margin: 1rem 0 0;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.6;
    color: #065f46;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(37, 99, 235, 0.06) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
}

.seo-landing-scroll-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 1.125rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.seo-landing-scroll-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.seo-landing-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.seo-landing-faq-list .faq-item {
    margin: 0;
}

.seo-landing-faq-list .faq-question {
    font-size: 0.9rem;
    padding: 1rem 1.125rem;
}

.seo-landing-faq-list .faq-answer {
    padding: 0 1.125rem 1rem;
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .seo-landing-hero-lead {
        margin: 0.125rem auto 1rem;
        padding: 1rem 1rem 0.875rem;
        border-radius: 12px;
    }

    .seo-landing-hero-route {
        margin-bottom: 0.875rem;
    }

    .seo-landing-hero-route__pill {
        font-size: 0.8125rem;
        padding: 0.35rem 0.75rem;
    }

    .seo-landing-hero-intro {
        max-width: 100%;
        margin-bottom: 1.1rem;
        padding: 0.75rem 0.9rem;
    }

    .seo-landing-hero-intro p {
        font-size: 0.875rem;
        line-height: 1.8;
    }

    .seo-landing-hero-chip {
        font-size: 0.75rem;
        padding: 0.35rem 0.7rem;
    }

    .seo-landing-article {
        margin-top: 1.75rem;
    }

    .seo-landing-article__intro {
        margin-bottom: 1.25rem;
        padding-bottom: 1.25rem;
    }

    .seo-landing-article__title {
        font-size: 1rem;
    }

    .seo-landing-block {
        padding: 1.125rem 1rem;
        border-radius: 12px;
        margin-bottom: 0.75rem;
    }

    .seo-landing-block__header {
        gap: 0.75rem;
        margin-bottom: 0.875rem;
    }

    .seo-landing-block__icon {
        width: 2.25rem;
        height: 2.25rem;
        border-radius: 10px;
    }

    .seo-landing-block h2 {
        font-size: 1rem;
    }

    .seo-landing-route-cities {
        gap: 0.875rem;
        padding: 0.875rem;
        margin-bottom: 1rem;
    }

    .seo-landing-route-cities__img {
        width: 72px;
        height: 72px;
    }

    .seo-landing-route-cities__name {
        font-size: 0.75rem;
    }

    .seo-landing-stats {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .seo-landing-stat {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: right;
        padding: 0.75rem 0.875rem;
    }

    .seo-landing-stat__value {
        font-size: 0.9375rem;
        margin-bottom: 0;
        order: 2;
    }

    .seo-landing-stat__label {
        font-size: 0.8125rem;
        order: 1;
    }

    .seo-landing-callout {
        font-size: 0.8125rem;
        padding: 0.75rem 0.875rem;
    }

    .seo-landing-capacity-cta {
        font-size: 0.875rem;
        padding: 0.75rem 0.875rem;
    }

    .seo-landing-scroll-btn {
        font-size: 0.875rem;
        padding: 0.7rem 1rem;
    }
}

