/* ========== GLOBAL STYLES – Sri Lankan Train Website ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #f0f4f2; color: #1e2a2e; line-height: 1.6; }
.container { max-width: 1280px; margin: 0 auto; background: white; padding: 20px 30px 40px; box-shadow: 0 0 20px rgba(0,0,0,0.05); }
.main-menu { background: #1e3a2f; padding: 12px 20px; border-radius: 40px; margin-bottom: 25px; text-align: center; flex-wrap: wrap; }
.main-menu a { color: white; text-decoration: none; margin: 0 8px; font-weight: 500; }
.main-menu a:hover { text-decoration: underline; }
.breadcrumb { font-size: 0.85rem; margin-bottom: 20px; color: #2c6e49; }
.breadcrumb a { color: #1f5e3a; text-decoration: none; }
h1 { font-size: 2rem; color: #1e3a2f; margin-bottom: 0.5rem; }
h2 { font-size: 1.6rem; margin: 1.8rem 0 1rem; color: #2d6a4f; border-left: 5px solid #2d6a4f; padding-left: 15px; }
h3 { font-size: 1.3rem; margin: 1.5rem 0 0.5rem; color: #40916c; }
p { margin-bottom: 1.2rem; line-height: 1.7; }
.intro { background: #eef3f0; padding: 20px; border-radius: 16px; margin: 20px 0; overflow: auto; }
.intro img { max-width: 200px; height: auto; float: right; margin: 0 0 15px 20px; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
@media (max-width: 600px) { .intro img { float: none; display: block; margin: 0 auto 15px auto; max-width: 100%; } }

/* CTA buttons */
.cta-booking { background: linear-gradient(135deg, #f9a826 0%, #f06d06 100%); text-align: center; padding: 14px; border-radius: 50px; margin: 25px 0 15px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.cta-booking a { color: white; font-size: 1.2rem; font-weight: bold; text-decoration: none; }
.cta-booking a:hover { text-decoration: underline; }

/* Important note */
.important-note { background: #fff0e0; border-left: 6px solid #d9534f; padding: 12px 20px; margin: 20px 0; border-radius: 12px; font-weight: bold; color: #a94442; }

/* Tables (timetable, price, climate) */
.table-wrapper { overflow-x: auto; margin: 20px 0; }
.timetable, .price-table, .climate-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; background: #fef9e3; border-radius: 12px; overflow: hidden; }
.timetable th, .timetable td, .price-table th, .price-table td, .climate-table th, .climate-table td { border: 1px solid #ddd; padding: 8px 12px; text-align: left; }
.timetable th, .price-table th, .climate-table th { background-color: #e9f5ef; }
.table-note, .price-note-text { font-size: 0.8rem; margin-top: 5px; color: #4a5c52; }

/* Two column layout (timetable + sponsor) */
.timetable-row { display: flex; flex-wrap: nowrap; gap: 30px; margin: 20px 0; }
.timetable-col { flex: 75%; min-width: 0; }
.sponsor-col { flex: 25%; min-width: 200px; }

/* Three column price + ads */
.three-col-price { display: flex; flex-wrap: wrap; gap: 20px; margin: 20px 0; align-items: flex-start; }
.left-ad { flex: 0 0 25%; min-width: 200px; }
.price-middle { flex: 1; min-width: 280px; }
.right-ad { flex: 0 0 15%; min-width: 150px; }

/* Ad containers */
.ad-container { background: #f4f4f4; border: 2px dashed #aaa; border-radius: 16px; padding: 20px; text-align: center; position: sticky; top: 20px; }
.ad-title { font-weight: bold; margin-bottom: 10px; }
.ad-link { display: inline-block; margin-top: 8px; font-size: 0.8rem; color: #2d6a4f; text-decoration: underline; }

/* Two column checklist + hotels */
.two-col-flex { display: flex; flex-wrap: wrap; gap: 30px; margin: 20px 0 30px; }
.checklist-col { flex: 55%; min-width: 0; }
.hotels-col { flex: 45%; min-width: 0; background: #fef9e3; border-radius: 16px; padding: 10px; align-self: start; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.hotels-col h4 { margin-bottom: 15px; color: #b45309; font-size: 1.2rem; }
.hotels-col ul, .hotel-list, .restaurant-list, .attraction-list { list-style: none; padding-left: 0; }
.hotels-col li, .hotel-list li, .restaurant-list li, .attraction-list li { margin-bottom: 12px; border-bottom: 1px solid #e2e8e0; padding-bottom: 8px; }
.hotels-col a, .hotel-list a, .restaurant-list a, .attraction-list a { text-decoration: none; font-weight: 500; color: #1f5e3a; }
.hotels-col a:hover, .hotel-list a:hover, .restaurant-list a:hover, .attraction-list a:hover { text-decoration: underline; }

/* Checklist */
.checklist { background: #f0f7f4; padding: 15px 20px; border-radius: 16px; list-style: none; margin: 0; }
.checklist li { margin-bottom: 8px; padding-left: 24px; position: relative; }
.checklist li::before { content: "✔️"; position: absolute; left: 0; }

/* Flex columns for hotels/restaurants/attractions */
.flex-cols { display: flex; gap: 30px; flex-wrap: wrap; margin: 25px 0; }
.col { flex: 1; min-width: 200px; }

/* Taxi promo */
.taxi-promo { background: linear-gradient(135deg, #ff8c42 0%, #f06d06 100%); padding: 12px 15px; border-radius: 20px; margin-top: 15px; text-align: center; color: white; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.taxi-promo h4 { font-size: 1.1rem; margin-bottom: 8px; color: white; }
.taxi-promo a { display: inline-block; background: white; color: #f06d06; padding: 6px 16px; border-radius: 40px; text-decoration: none; font-weight: bold; font-size: 0.85rem; }
.taxi-promo a:hover { background: #fff0e0; }

/* Vibrant banner */
.vibrant-banner { background: linear-gradient(135deg, #ff7e05 0%, #f04e23 100%); border-radius: 28px; padding: 20px 25px; margin: 30px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); }
.banner-icons { display: flex; gap: 15px; font-size: 2rem; }
.banner-text { flex: 1; color: white; }
.banner-text strong { font-size: 1.4rem; display: block; }
.banner-text span { font-size: 0.9rem; display: block; margin-top: 5px; }
.banner-btn { background: white; color: #f04e23; padding: 12px 28px; border-radius: 50px; font-weight: bold; text-decoration: none; transition: 0.2s; white-space: nowrap; }
.banner-btn:hover { transform: scale(1.02); background: #fff0e0; }

/* Author bio */
.author-bio { background: #f0f7f4; border-radius: 20px; padding: 20px; margin: 40px 0 20px; border-left: 5px solid #2d6a4f; }
.author-bio h4 { color: #1e3a2f; margin-bottom: 10px; }
.author-bio p { margin-bottom: 8px; font-size: 0.9rem; }
.author-bio .support-note { font-style: italic; color: #5e6e66; }

/* Train list section */
.train-list-section { margin: 40px 0 20px; text-align: center; }
.train-list-section h4 { font-size: 1.5rem; margin-bottom: 20px; color: #2d6a4f; }
.train-buttons { display: flex; flex-wrap: wrap; gap: 15px; justify-content: center; margin-bottom: 20px; }
.train-button { background: white; border: 2px solid #2d6a4f; padding: 8px 18px; border-radius: 40px; text-decoration: none; color: #2d6a4f; font-weight: 500; transition: 0.2s; }
.train-button:hover { background: #2d6a4f; color: white; }
.ctr-button { display: inline-block; background: #f06d06; color: white; padding: 10px 25px; border-radius: 40px; text-decoration: none; font-weight: bold; }
.ctr-button:hover { background: #d45c00; }

/* Footer */
footer { margin-top: 40px; padding-top: 20px; border-top: 1px solid #ccc; font-size: 0.8rem; text-align: center; color: #5e6e66; }

/* Responsive */
@media (max-width: 800px) {
    .container { padding: 15px; }
    h1 { font-size: 1.6rem; }
    .main-menu a { display: inline-block; margin: 5px; }
    .timetable-row, .two-col-flex, .flex-cols, .three-col-price { flex-wrap: wrap; }
    .timetable-col, .sponsor-col, .checklist-col, .hotels-col, .col, .left-ad, .price-middle, .right-ad { flex: 100%; }
    .vibrant-banner { flex-direction: column; text-align: center; }
    .ad-container { position: static; }
}