/* =========================================
   TRAINS PAGE STYLES - UNIQUE CLASSES
   ========================================= */

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Playfair Display", serif;
    margin: 0;
    padding: 0;
}

.trains-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   BREADCRUMBS
   ========================================= */
.trains-breadcrumbs {
    display: flex;
    align-items: center;
    margin-top: 100px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 5px;
}

.trains-crumb {
    position: relative;
    background: #4dd0e1;
    color: #2c2c2c;
    padding: 8px 20px 8px 30px;
    font-size: 0.9rem;
    text-decoration: none;
    margin-right: 5px;
    clip-path: polygon(0 0, 90% 0, 100% 50%, 90% 100%, 0 100%, 10% 50%);
    transition: opacity 0.3s ease;
}

.trains-crumb:hover {
    opacity: 0.85;
}

.trains-crumb-home {
    padding-left: 20px;
    clip-path: polygon(0 0, 90% 0, 100% 50%, 90% 100%, 0 100%);
}

.trains-crumb-current {
    background: #4dd0e1;
    opacity: 0.8;
    cursor: default;
}

/* =========================================
   HERO SECTION (MAIN CONTENT)
   ========================================= */
.trains-hero-section {
    padding: 40px 0 60px;
    background: #ffffff;
}

.trains-main-title {
    font-size: 2.8rem;
    color: #7ec850;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 700;
    letter-spacing: 3px;
}

.trains-section-title {
    font-size: 2.2rem;
    color: #6ec1e4;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    letter-spacing: 2px;
}

.trains-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.trains-hero-text {
    padding: 30px;
    background: #f5f5f5;
    border-radius: 8px;
}

.trains-hero-heading {
    font-size: 2rem;
    color: #6ec1e4;
    margin-bottom: 20px;
    font-weight: 600;
}

.trains-hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    text-align: justify;
    margin-bottom: 25px;
}

.trains-enquire-btn {
    display: inline-block;
    background: #ec3335;
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(236, 51, 53, 0.3);
}

.trains-enquire-btn:hover {
    background: #d02c2e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(236, 51, 53, 0.4);
}

/* =========================================
   SLIDESHOW COMPONENTS
   ========================================= */
.trains-hero-slider {
    width: 100%;
    position: relative;
}

.trains-slideshow-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.trains-hero-slider .trains-slideshow-wrapper {
    height: 450px;
}

.trains-slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.trains-slide-active {
    opacity: 1;
}

.trains-slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
}

.trains-dot {
    width: 12px;
    height: 12px;
    background: #cccccc;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.trains-dot:hover {
    background: #999999;
}

.trains-dot-active {
    background: #555555;
    transform: scale(1.2);
}

/* =========================================
   POPULAR ROUTES SECTION
   ========================================= */
.trains-routes-section {
    padding: 50px 0;
    background: #f9f9f9;
}

.trains-routes-list {
    max-width: 800px;
    margin: 0 auto;
}

.trains-route-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    margin-bottom: 15px;
    background: #ffffff;
    border-left: 4px solid #6ec1e4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 4px;
}

.trains-route-from,
.trains-route-to {
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
}

.trains-route-arrow {
    font-size: 1.5rem;
    color: #4dd0e1;
    margin: 0 15px;
}

/* =========================================
   TICKET INFORMATION SECTION
   ========================================= */
.trains-ticket-info-section {
    padding: 50px 0;
    background: #ffffff;
}

.trains-ticket-info-text {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    text-align: center;
}

.trains-highlight-text {
    color: #7ec850;
    font-weight: 600;
}

/* =========================================
   TRAIN CLASSES SECTION
   ========================================= */
.trains-classes-section {
    padding: 60px 0;
    background: #f9f9f9;
}

.trains-classes-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.trains-classes-list-container {
    padding: 20px;
}

.trains-classes-list {
    list-style: none;
    padding-left: 0;
    margin-top: 30px;
}

.trains-classes-list li {
    padding: 12px 0;
    font-size: 1.05rem;
    color: #555;
    border-bottom: 1px solid #e0e0e0;
}

.trains-classes-list li:last-child {
    border-bottom: none;
}

.trains-classes-list strong {
    color: #333;
}

.trains-free-offer-box {
    background: linear-gradient(135deg, #00A064  0%, #61ce70 100%);
    color: #ffffff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(126, 200, 80, 0.3);
    text-align: center;
}

.trains-free-offer-text {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.trains-free-offer-text strong {
    font-weight: 700;
}

.trains-free-badge {
    background: #ffffff;
    color: #ec3335;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1.1rem;
}

.trains-free-offer-note,
.trains-free-offer-disclaimer {
    font-size: 1.3rem;
    margin-top: 10px;
    color: #ff0004;
}

/* =========================================
   TRAIN TIMES SECTION
   ========================================= */
.trains-times-section {
    padding: 60px 0;
    background: #ffffff;
}

.trains-times-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.trains-times-schedule {
    background: #f5f5f5;
    padding: 30px;
    border-radius: 8px;
    height: 100%;
}

.trains-schedule-heading {
    font-size: 1.2rem;
    color: #7ec850;
    margin-bottom: 15px;
    margin-top: 25px;
    font-weight: 600;
}

.trains-schedule-heading:first-child {
    margin-top: 0;
}

.trains-schedule-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.trains-schedule-list li {
    padding: 8px 0;
    font-size: 1rem;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
}

.trains-schedule-list li:last-child {
    border-bottom: none;
}

.trains-observation-note {
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
}

.trains-times-visuals {
    display: flex;
    flex-direction: column;
    gap: 30px;
    height: 100%;
}

.trains-times-main-img {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.trains-times-main-img img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.trains-times-gallery {
    width: 100%;
}

.trains-times-gallery .trains-slideshow-wrapper {
    height: 350px;
}

/* =========================================
   TABLET STYLES (768px - 1024px)
   ========================================= */
@media (max-width: 1024px) {
    .trains-page-container {
        padding: 0 30px;
    }

    .trains-breadcrumbs {
        margin-top: 90px;
    }

    .trains-main-title {
        font-size: 2.3rem;
    }

    .trains-section-title {
        font-size: 2rem;
    }

    .trains-hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .trains-hero-slider .trains-slideshow-wrapper {
        height: 400px;
    }

    .trains-times-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .trains-times-visuals {
        gap: 20px;
    }

    .trains-times-gallery .trains-slideshow-wrapper {
        height: 300px;
    }

    .trains-classes-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* =========================================
   MOBILE STYLES (max-width: 767px)
   ========================================= */
@media (max-width: 767px) {
    .trains-page-container {
        padding: 0 15px;
    }

    .trains-breadcrumbs {
        margin-top: 80px;
        margin-bottom: 15px;
    }

    .trains-crumb {
        font-size: 0.75rem;
        padding: 6px 15px 6px 20px;
    }

    .trains-crumb-home {
        padding-left: 15px;
    }

    .trains-hero-section {
        padding: 30px 0 40px;
    }

    .trains-main-title {
        font-size: 2rem;
        margin-bottom: 30px;
        letter-spacing: 2px;
    }

    .trains-section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
        letter-spacing: 1px;
    }

    .trains-hero-slider .trains-slideshow-wrapper {
        height: 300px;
    }

    .trains-hero-heading {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }

    .trains-hero-description {
        font-size: 1rem;
        line-height: 1.6;
    }

    .trains-routes-section,
    .trains-times-section,
    .trains-ticket-info-section,
    .trains-classes-section {
        padding: 40px 0;
    }

    .trains-route-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .trains-route-arrow {
        margin: 5px 0;
        transform: rotate(90deg);
    }

    .trains-times-schedule {
        padding: 20px;
    }

    .trains-schedule-heading {
        font-size: 1.05rem;
        margin-top: 20px;
    }

    .trains-schedule-list li {
        font-size: 0.95rem;
    }

    .trains-times-gallery .trains-slideshow-wrapper {
        height: 250px;
    }

    .trains-ticket-info-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .trains-classes-list li {
        font-size: 0.95rem;
    }

    .trains-free-offer-box {
        padding: 30px 20px;
    }

    .trains-free-offer-text {
        font-size: 1.1rem;
    }

    .trains-slider-dots {
        gap: 8px;
        margin-top: 15px;
    }

    .trains-dot {
        width: 10px;
        height: 10px;
    }
}

/* =========================================
   SMALL MOBILE (max-width: 480px)
   ========================================= */
@media (max-width: 480px) {
    .trains-main-title {
        font-size: 1.7rem;
    }

    .trains-section-title {
        font-size: 1.5rem;
    }

    .trains-hero-slider .trains-slideshow-wrapper {
        height: 250px;
    }

    .trains-hero-heading {
        font-size: 1.4rem;
    }

    .trains-hero-description {
        font-size: 0.95rem;
    }

    .trains-route-from,
    .trains-route-to {
        font-size: 1rem;
    }

    .trains-schedule-heading {
        font-size: 1rem;
    }

    .trains-free-offer-text {
        font-size: 1rem;
    }

    .trains-free-badge {
        font-size: 1rem;
        padding: 3px 10px;
    }
}