:root{
    --bg: #f7f9fb;
    --surface: #ffffff;
    --muted: #6b7280;
    --brand: #0b5ed7;
    --accent: #0a66ff;
    --text: #1f2937;
}

*{box-sizing:border-box;margin:0;padding:0;font-family:Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial}

body{background:var(--bg);color:var(--text);line-height:1.6;-webkit-font-smoothing:antialiased}

.container{max-width:1100px;margin:0 auto;padding:0 20px}

header{background:var(--brand);color:#F0EDCC;}
header .container{display:flex;align-items:center;justify-content:space-between;padding:18px 0}
header h2{
    font-size:1.1rem;z-index:5;font-weight:700;letter-spacing:0.2px}
nav{display:flex;gap:12px}
nav a{color:#F0EDCC;padding:8px 14px;border-radius:12px;text-decoration:none;font-weight:600;opacity:0.95;transition:background .18s,transform .15s,opacity .15s}
nav a:hover{background:rgba(255,255,255,.12);transform:translateY(-3px);opacity:1}
nav a.active{background:rgba(255,255,255,.18)}
nav .butt.active{background:rgba(255,255,255,.18)}
.active{background:rgba(255,255,255,.18)}
.butt:hover{background:rgba(255,255,255,.12);transform:translateY(-3px);opacity:1}

.hero{position:relative;color:#F0EDCC;padding:110px 0;background-color:#02343F;background-size:cover;background-position:center}
.hero .container{z-index: 1;display:grid;grid-template-columns:1.1fr .9fr;gap:40px;align-items:center}
.hero h1{font-size:42px;line-height:1.05;margin-bottom:12px;position: relative}
.hero p{font-size:17px;opacity:.95;margin-bottom:8px}

.quote-box {
    background: #F0EDCC;
    color: #333;
    padding: 35px;
    border-radius: 14px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, .25);
    backdrop-filter: blur(6px);
}

.quote-box h3 {
    margin-bottom: 10px;
}

.quote-box input,
.quote-box button {
    background: #02343F;
    color: #F0EDCC;
    width: 100%;
    padding: 12px;
    margin-top: 12px;
    border-radius: 6px;
    font-size: 15px;
}

.quote-box input {
    border: 1px solid #ddd;
}

.quote-box button {
    background: var(--brand);
    color: white;
    border: none;
    cursor: pointer;
    margin-top: 16px;
    font-weight: bold;
}

.form-control{width:100%;padding:12px;margin-top:12px;border-radius:6px;border:1px solid #ddd;background:#fff}
.form-row{display:flex;gap:12px}
.btn{display:inline-block;background:var(--brand);color:white;padding:11px 16px;border-radius:10px;border:none;cursor:pointer;font-weight:700}
.btn.secondary{background:#e6eefc;color:var(--brand)}

/* Blog Section Styles */
.blog-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #1a1f35 0%, #0a0e1a 100%);
    color: #F0EDCC;
    min-height: 600px;
}

.blog-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 10px;
    color: #F0EDCC;
}

.blog-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: rgba(240, 237, 204, 0.7);
    margin-bottom: 40px;
}

.blog-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.blog-tab {
    background: rgba(240, 237, 204, 0.1);
    border: 2px solid rgba(240, 237, 204, 0.3);
    color: #F0EDCC;
    padding: 10px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.blog-tab:hover {
    background: rgba(240, 237, 204, 0.2);
    transform: translateY(-2px);
}

.blog-tab.active {
    background: #F0EDCC;
    color: #02343F;
    border-color: #F0EDCC;
}

/* Featured Articles */
.featured-articles {
    margin-bottom: 50px;
}

.featured-articles h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #F0EDCC;
    border-bottom: 2px solid rgba(240, 237, 204, 0.3);
    padding-bottom: 10px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.featured-card {
    background: rgba(2, 52, 63, 0.6);
    border: 2px solid rgba(240, 237, 204, 0.2);
    border-radius: 12px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.featured-card:hover {
    transform: translateY(-5px);
    border-color: rgba(240, 237, 204, 0.5);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.featured-card h4 {
    color: #F0EDCC;
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.featured-excerpt {
    color: rgba(240, 237, 204, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.featured-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: rgba(240, 237, 204, 0.6);
    border-top: 1px solid rgba(240, 237, 204, 0.2);
    padding-top: 12px;
}

/* All Posts Grid */
.posts-view h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #F0EDCC;
    border-bottom: 2px solid rgba(240, 237, 204, 0.3);
    padding-bottom: 10px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.post-card {
    background: rgba(2, 52, 63, 0.4);
    border: 1px solid rgba(240, 237, 204, 0.2);
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-3px);
    border-color: rgba(240, 237, 204, 0.4);
    background: rgba(2, 52, 63, 0.6);
}

.post-card h4 {
    color: #F0EDCC;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.post-excerpt {
    color: rgba(240, 237, 204, 0.7);
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.5;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(240, 237, 204, 0.5);
    border-top: 1px solid rgba(240, 237, 204, 0.15);
    padding-top: 10px;
}

/* Write Post Form */
.write-post-view h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #F0EDCC;
}

.post-form {
    max-width: 700px;
    margin: 0 auto;
}

.post-form input,
.post-form textarea {
    width: 100%;
    background: rgba(240, 237, 204, 0.1);
    border: 2px solid rgba(240, 237, 204, 0.3);
    color: #F0EDCC;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 1rem;
    font-family: Inter, sans-serif;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.post-form input::placeholder,
.post-form textarea::placeholder {
    color: rgba(240, 237, 204, 0.5);
}

.post-form input:focus,
.post-form textarea:focus {
    outline: none;
    border-color: #F0EDCC;
    background: rgba(240, 237, 204, 0.15);
}

.post-form textarea {
    resize: vertical;
    min-height: 250px;
    line-height: 1.6;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.btn-submit,
.btn-cancel {
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit {
    background: #F0EDCC;
    color: #02343F;
    border: none;
}

.btn-submit:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(240, 237, 204, 0.3);
}

.btn-cancel {
    background: transparent;
    color: #F0EDCC;
    border: 2px solid rgba(240, 237, 204, 0.4);
}

.btn-cancel:hover {
    background: rgba(240, 237, 204, 0.1);
    border-color: #F0EDCC;
}

/* Single Post View */
.single-post-view {
    max-width: 800px;
    margin: 0 auto;
}

.back-button {
    background: rgba(240, 237, 204, 0.1);
    border: 1px solid rgba(240, 237, 204, 0.3);
    color: #F0EDCC;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: rgba(240, 237, 204, 0.2);
    transform: translateX(-5px);
}

.post-full h2 {
    color: #F0EDCC;
    font-size: 2.2rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.post-full .post-meta {
    justify-content: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(240, 237, 204, 0.2);
}

.post-author {
    font-weight: 600;
}

.post-date {
    color: rgba(240, 237, 204, 0.6);
}

.post-body {
    color: rgba(240, 237, 204, 0.9);
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-body p {
    margin-bottom: 20px;
}

.services{padding:20px 80px 60px;text-align:center;background-color:#F0EDCC;}

.service {
    position: relative;
    color: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .2);
    background-size: contain;
    background-position: center;
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
}

.service * {
    position: relative;
    padding: 0.5rem;
    z-index: 1;
}

.service:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
}

.services h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.service {
    background: white;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .1);
    transition: transform .2s, box-shadow .2s;
}

.service:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, .15);
}

.lead{color:var(--muted);font-size:1rem}
.mt-8{margin-top:8px}

footer {
    background: #111;
    color: white;
    padding: 40px 0;
    text-align: center;
    position: static;
    width: 100%;
}

header {
    width: 100%;
    background-color: #02343F;
}

@media (max-width:900px){
    .hero .container{z-index: 1;grid-template-columns:1fr;padding:0}
    .hero{padding:15px 0}
    .container {
        width: 100%;
    }

    header h2 {
        margin: 0.5rem;
        font-size: 1.3rem;
        position: relative;
    }

    .hero h1 {
        margin: 0.5rem 1rem 0.5rem 1rem;
        font-size: 1.3rem;
        position: relative;
    }

    .butt {
        margin: 0.2rem;
        font-size: 1.1rem;
        padding: 0;
    }

    p {
        margin: 0.5rem 1rem 0.5rem 1rem;
        text-wrap: wrap;
    }

    div {
        width: 100%;
    }
    h1 {
        margin: 0.2rem 1rem 0.5rem 1rem;
        position: relative;
    }

    a[href^="tel:"] {
      color: #afffff;
      text-decoration: none;
    }

     header .container{
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    nav{
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 8px;
    }

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

    .blog-title {
        font-size: 2rem;
    }
}

@media (max-width:520px){
    .form-row{flex-direction:column}
    .hero h1{font-size:30px}
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

.about {
    min-height: 57vh;
}

input::placeholder {
    color: #F0EDCC;
}

.hero ::selection {
    color: red;
    background-color: white;
    backdrop-filter: invert(100%);
}

::selection {
    color: rgb(255, 255, 255);
    background-color: rgb(214, 79, 255);
    backdrop-filter: invert(100%);
}

.quote-box ::selection {
    color: rgb(255, 255, 255);
    background-color: rgb(0, 21, 88);
    backdrop-filter: invert(100%);
}

.highlight-container, .highlight {
  position: relative;
}

.highlight-container {
  display: inline-block;
  overflow: hidden;
}

.highlight-container:before {
  content: "";
  display: block;
  height: 90%;
  width: 100%;
  margin-left: -3px;
  margin-right: -3px;
  position: absolute;
  background: rgb(232, 157, 255);
  transform: rotate(2deg) scaleX(0);
  transform-origin: left;
  top: -8px;
  left: -1px;
  padding: 10px 3px 3px 10px;
  animation: highlight-wipe 1s cubic-bezier(.2,.7,.2,1) forwards;
}

@keyframes highlight-wipe {
  from {
    transform: rotate(2deg) scaleX(0);
  }
  to {
    transform: rotate(2deg) scaleX(1);
  }
}

.tracker {
  padding: 40px 20px;
  background: #0b1c26;
  color: white;
  text-align: center;
}

#train-board {
  max-width: 700px;
  width: 80%;
  margin: 30px auto;
  margin-top: 0;
  display: grid;
  gap: 12px;
}

#train-board-two {
  max-width: 700px;
  margin: 30px auto;
  margin-top: 0;
  display: grid;
  gap: 12px;
}

.train-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 2fr .6fr;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  margin-bottom: 10px;
  align-items: center;
}

.train-station {
  font-weight: 700;
  color: #7dd3fc;
}

.train-line {
  font-weight: 600;
}

.tracker-controls {
  margin-bottom: 12px;
}

.tracker-controls button {
  background: #ff56b9;
  border: none;
  padding: 6px 12px;
  margin-right: 6px;
  margin-bottom: 6px;
  cursor: pointer;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
}

.tracker-controls button.active {
  background: #ffd6d6;
  color: rgb(85, 25, 95);
}

.tracker.loop {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, auto);
  gap: 16px;
  padding: 20px;
}

.loop-station {
  background: #07635e;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
}

.loop-title {
  font-weight: 700;
  color:rgb(255, 255, 255);
  margin-bottom: 6px;
  opacity: 1;
}

.loop-train {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 4px 0;
} 

#search-container input {
    border-radius: 10px;
    background:rgb(7, 26, 90);
    color: rgb(255, 255, 255);
}

.search-results {
    padding: 20px;
    text-align: left;
}

.search-results h3 {
    margin-bottom: 15px;
}

.station-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.station-button {
    padding: 12px;
    background: #02343F;
    color: #F0EDCC;
    border: 1px solid rgba(240, 237, 204, 0.3);
    border-radius: 5px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    width: 40%;
    margin: 0.2rem;
}

.station-button:hover {
    background: #F0EDCC;
    color: #02343F;
    transform: translateY(-2px);
}

button,
a,
input,
.toggle {
  -webkit-tap-highlight-color: transparent;
}

#metro-title {
    margin-bottom: 20px;
}

.all-stations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    padding: 20px;
    max-height: 600px;
    overflow-y: auto;
    scrollbar-color: #5b0a5e #24839b; 
    scrollbar-width: thin; 
}

.station-cell {
    background: #02343F;
    border: 1px solid rgba(240, 237, 204, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 1rem;
    min-height: 120px;
}

html::-webkit-scrollbar {
    width: 20px;
}
        
html::-webkit-scrollbar-track {
    border-radius: 8px;
    background-image: url("https://i.ibb.co/5150925/tracks.png");
    background-position: -5px;
    background-repeat: repeat-y;
    background-size: 50px;
}
        
html::-webkit-scrollbar-thumb {
    border-radius: 8px;
    background-image: url("https://i.ibb.co/q95CBdZ/train.png");
    background-position:center center;
    background-repeat: no-repeat;
    background-size: 35px;
}

.station-cell-title {
    font-weight: bold;
    color: #F0EDCC;
    margin-bottom: 10px;
    font-size: 0.9rem;
    border-bottom: 1px solid #F0EDCC;
    padding-bottom: 5px;
}

.station-cell-loading {
    color: #F0EDCC;
    opacity: 0.6;
    font-size: 0.85rem;
    padding: 5px 0;
}

.station-cell-train {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(240, 237, 204, 0.2);
}

.station-cell-train:last-child {
    border-bottom: none;
}