
/* =================== google-font-Roboto & Ek-mesirri =================== */
@import url('https://fonts.googleapis.com/css2?family=El+Messiri:wght@400..700&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
/* font-family: "Roboto", sans-serif; */
/* font-family: "El Messiri", sans-serif; */

@import "@fortawesome/fontawesome-free/css/all.min.css";
:root {
    --main-color: #ff0000;
    --second-color: #780116;
    --bg-color: #fffffc;
    --back-color: #edf6f9af;
    --text-color: #220901;
    --light-hover: #ff0101ca;
        --muted: #9aa6b2;
        --radius: 12px;
        --gap: 24px;
        --max-width: 1200px;
        --text: #e6eef6;
        --glass: rgba(255, 255, 255, 0.02);
    }

    .container-fluid {
  --bs-gutter-x: 0 !important;
}
h1, h2, h3, h4, h5{
    font-family: "El Messiri", sans-serif;
    font-weight: 800;
    color: var(--second-color);
}
/* ---------------------------------- navbar style ----------------------------------------- */
.navbar {
  background-color: #fffffccb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 0;
}

.navbar-brand {
  font-weight: 700;
  padding: 0;
  color: var(--section-bg-color);
  font-size: 2.1rem;
  letter-spacing: 1px;
}

.navbar-brand span {
  font-family: "El Messiri", sans-serif;
  color: var(--second-color);
  padding: 0;
  border-radius: 8px;
  position: relative;
  display: inline-block;
  background: linear-gradient(90deg, #800000, #ff5f15, #800000);
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: glowShift 3s ease-in-out infinite;
  transition: transform 0.4s ease, text-shadow 0.4s ease;
}

/* subtle glowing animation */
@keyframes glowShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.navbar-brand span:hover {
  transform: scale(1.05);
  animation: glowShift 0.8s ease-in-out infinite;
}

/* Menu items */
.navbar-nav .nav-link {
  font-weight: 600;
  margin: 0 12px;
  position: relative;
  color: #220901;
  transition: all 0.4s ease;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: linear-gradient(90deg, #ff0000, #780116);
  transition: width 0.3s ease;
}
.navbar-nav .nav-link:hover {
  color: #ff0000;
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

/* Dropdowns */
.dropdown-menu {
  border: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  background-color: #fff;
  animation: dropdownFade 0.3s ease;
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-item {
  color: var(--second-color);
  font-weight: 500;
  transition: 0.3s;
}

.dropdown-item:hover {
  background-color: var(--main-color);
  color: #fff;
  border-radius: 6px;
}

/* Submenu Style */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -5px;
  display: none;
  border-radius: 10px;
}

.dropdown-submenu:hover > .dropdown-menu {
  display: block;
}

/* User Dropdown */
.user-dropdown img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 8px;
  border: 2px solid var(--section-bg-color);
}

.user-dropdown .dropdown-toggle {
  color: var(--section-bg-color);
  font-weight: 500;
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: 0.3s;
}

.user-dropdown .dropdown-toggle:hover {
  color: var(--section-bg-color);
  opacity: 0.9;
}

@media (max-width: 992px) {
  .navbar-nav .nav-link {
    text-align: center;
    margin: 6px 0;
  }
  .user-dropdown {
    justify-content: center;
  }
  .dropdown-submenu .dropdown-menu {
    position: static;
    margin-left: 1rem;
    display: none;
  }
  .dropdown-submenu.show > .dropdown-menu {
    display: block;
  }
}

/* ==== WORLD-CLASS COLORFUL BUTTON ==== */
.btn-login {
    position: relative;
    padding: 7px 18px;
    font-size: 14px;
    font-weight: 500;

    color: #fff;
    text-decoration: none;
    border-radius: 999px;

    background: linear-gradient(
        120deg,
        #ff0000,
        #ff9800,
        #ff00ff,
        #780116,
        #ff0000
    );
    background-size: 400% 400%;
    animation: colorWave 6s ease infinite;

    transition: transform .25s ease;
}

/* smooth lift */
.btn-login:hover {
    transform: translateY(-2px);
}

/* click feel */
.btn-login:active {
    transform: scale(.95);
}

/* animated soft glow */
.btn-login::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: inherit;
    filter: blur(8px);
    opacity: .5;
    z-index: -1;
    animation: colorWave 6s ease infinite;
}

/* gradient animation */
@keyframes colorWave {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}



    /* -----------=================---------banner style--------------------------------------- */
    .master-background {
  background-image: url("/image/bus-2.png"); /* change path */
  background-size: cover;
  background-position: center;
  min-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -60px;
  padding: 100px 10px 20px 10px;
}
.heading{
  margin-top: 6rem;
}
.heading h1{
  color: #fffdf7;
  font-size: 3.3rem;
  text-align: start;
  font-family: "El Messiri", sans-serif;
  font-weight: bolder;
}
.heading p{
  color: #fffdf7;
  font-family: "Roboto", sans-serif;
  font-size: larger;
}
.form-part{
  position: relative;
}
.light1{
  position: absolute;
  height: .7rem;
  width: .7rem;
  border-radius: 50%;
  background-color: white;
  bottom: 28%;
  left: -44%;
  animation: light1 .2s ease-in-out infinite;
}
.light2{
  position: absolute;
  height: .5rem;
  width: .5rem;
  border-radius: 50%;
  background-color: white;
  bottom: 28%;
  left: -1%;
  animation: light2 .2s ease-in-out infinite;
}
@keyframes light1{
  0%{box-shadow: 0 0 20px 5px rgb(247, 240, 209);
    background-color: rgba(255, 255, 255, 0.774);}
  50%{box-shadow: 0 0 20px 15px rgb(247, 240, 209);}
  100%{box-shadow: 0 0 20px 5px rgb(247, 240, 209);
    background-color: rgba(255, 255, 255, 0.774);}
}
@keyframes light2{
  0%{box-shadow: 0 0 20px 4px rgb(247, 240, 209);
    background-color: rgba(255, 255, 255, 0.774);}
  50%{box-shadow: 0 0 20px 10px rgb(247, 240, 209);}
  100%{box-shadow: 0 0 20px 4px rgb(247, 240, 209);
    background-color: rgba(255, 255, 255, 0.774);}
}


/* ----------------------------- Responsive Design ------------------------- */

/* Tablets */
@media (max-width: 991px) {
  .master-background {
    
    flex-direction: column;
    text-align: center;
    padding: 80px 20px 40px 20px;
  }

  .heading {
    margin-top: 1rem;
  }

  .heading h1 {
    font-size: 2.5rem;
    text-align: center;
  }

  .heading p {
    line-height: 0;
    font-size: 1rem;
    text-align: center;
  }

  .form-part {
    margin-top: 2rem;
    padding: 0 1rem;
  }

  .light1,
  .light2 {
    display: none; /* hide glowing lights for smaller screens */
  }
  .bg-light.navbar-toggler.collapsed {
  background: none !important;
  border: none;
}
.navbar-toggler:focus {
  text-decoration: none;
  outline: 0;
  box-shadow: none;
  border: none;
}

}

/* Mobiles */
@media (max-width: 768px) {
  .master-background {
    position: relative;
    min-height: auto;
    margin-top: -60px;
    padding: 18px 18px;
    height: 18rem;
  }
  .heading{
    margin-top: 0;
  }
  .heading h1 {
    font-size: 1.6rem;
    line-height: 1.2;
  }

  .heading p {
    font-size: 0.8rem;
  }
  .form-part {
    margin-top: 0;
    padding: 0 2rem !important;
  }

  .card {
    position: absolute;
    padding: 1rem;
    width: 100%;
    border: none;
    background: linear-gradient(180deg, #ff0000,#ff0000, #edf6f9,#edf6f9);
    left: 0;
    top: 25px;
    box-shadow: 0 0 10px rgba(128, 128, 128, 0.808) !important;
  }

  .form-label {
    display: none;
  }

  input.form-control {
    font-size: 0.85rem;
    padding: 8px;
  }

  .bus-src {
    font-size: 0.9rem;
    padding: 8px;
  }
}

@media (max-width: 1260px) {
  .light1{
    bottom: 30%;
  }
  .light2{
    bottom: 30%;
  }
}
@media (max-width: 1160px) {
  .light1{
    bottom: 32%;
  }
  .light2{
    bottom: 32%;
  }
}
@media (max-width: 1050px) {
  .light1{
    bottom: 34%;
  }
  .light2{
    bottom: 34%;
  }
}

/* --------------------------style for bus search form------------------------------ */
.card{
  background-color: #fffffc75;
}
.form-label{
  color: #070200 !important;
}
input.form-control{
  background-color: #fffffc93;
  font-size: small;
}
input.form-control:focus{
  background-color: #fffffc93;
  border: 1px solid var(--main-color);
  box-shadow: none;
}
.bus-src{
  background: linear-gradient(90deg, #ff0000, #780116);
  border: none; 
  color: white;
  animation: wiggl 1s ease-in-out infinite;
}
@keyframes wiggl {
  0%  { transform: translateX(-3px); }
  50%  { transform: translateX(3px); }
  100%  { transform: translateX(-3px); }
}
.bus-src:hover{
  background: linear-gradient(90deg, #780116, #ff0000);
  color: white;
}

/* ---------------------------------  style for populer routes ------------------------------------ */
.popular-title {
  margin-top: 4rem;
  font-weight: 700;
  font-size: 2.5rem;
  font-family: "El Messiri", sans-serif;
}

.main-card {
  background: var(--section-bg-color);
  min-height: 110px;
  border-radius: 12px;
  border: 1px solid var(--main-color);
  transition: 0.3s ease-in-out;
}
.main-card:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,.35);
  transform: translateY(-4px);
}

.route-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-grow: 1;
  position: relative;
}
.route-line::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 12px;
  right: 12px;
  height: 2px;
  background: #ddd;
  z-index: 0;
}
.start-icon,
.end-icon,
.bus-icon {
  font-size: 1.4rem;
  color: #999;
  z-index: 1;
}
.int {
  display: flex;
  justify-content: space-between;
  margin-right: 1rem;
  font-family: "El Messiri", sans-serif;
  font-size: small;
  color: #999;
}
@media (max-width: 768px) {
  .p-routes {
    padding-top: 11rem;
  }
  .popular-title {
    margin-top: 4rem;
    font-weight: 600;
    font-size: 2rem;
  }
}

/* ---------------------------------  style for all services ------------------------------------ */
.service-col {
  position: relative;
}

.service-card {
  border-radius: 1rem;
  z-index: -1;
  overflow: hidden;
}

.service-img {
  border-radius: 1rem;
  width: 100%;
  height: 20rem !important;
  transition: transform 0.5s ease;
}

.service-card:hover .service-img {
  transform: scale(1.1);
}

.service-ins {
  width: 70%;
  text-align: center;
  height: auto;
  border-radius: 1rem;
  position: absolute;
  bottom: -2%;
  left: 15%;
  background: var(--bg-color);
  padding: 1rem;
  border: 1px solid var(--main-color);
  z-index: 999;
  color: #220901;
  box-shadow: 0 10px 20px rgba(248, 40, 40, 0.317);
}

.service-ins h3 {
  font-family: "El Messiri", sans-serif;
  font-weight: 700;
  color: var(--second-color);
}

.service-ins p {
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  margin: 0;
  color: #555;
}

@media (max-width: 768px) {
  .service-ins {
    width: 80%;
    left: 10%;
    bottom: -8%;
  }
}


    /* ------------------------------Footer style--------------------------------------- */
    .site-footer {
        background: linear-gradient(180deg, var(--second-color), #071021 120%);
        color: var(--text);
        padding: 48px 20px 20px;
        font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    }

    .footer-inner {
        max-width: var(--max-width);
        margin: 0 auto;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: var(--gap);
        align-items: start;
        padding-bottom: 20px;
    }

    /* Column */
    .footer-col {
        background: var(--panel);
        padding: 18px;
        border-radius: var(--radius);
        box-shadow: 0 6px 18px rgba(2, 6, 23, 0.6);
    }

    .brand {
        display: flex;
        gap: 12px;
        align-items: center;
        text-decoration: none;
        color: var(--text);
        font-weight: 600;
    }

    .brand svg {
        color: var(--accent);
        flex-shrink: 0;
    }

    .brand-name {
        font-size: 1.05rem;
        letter-spacing: 0.2px;
    }

    .brand-desc {
        color: var(--muted);
        margin: 12px 0 16px;
        line-height: 1.45;
        font-size: 0.95rem;
    }

    .footer-title {
        font-size: 0.98rem;
        margin: 0 0 12px;
        color: var(--text);
    }

    .footer-list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .footer-list a {
        color: var(--muted);
        text-decoration: none;
        font-size: 0.95rem;
    }

    .footer-list a:hover,
    .footer-list a:focus {
        color: var(--text);
        text-decoration: underline;
        outline: none;
    }

    .social {
        display: flex;
        gap: 8px;
        margin-top: 6px;
    }

    .social-link {
        display: inline-flex;
        width: 36px;
        height: 36px;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        background: var(--glass);
        color: var(--text);
        text-decoration: none;
    }

    .social-link:focus {
        outline: 3px solid rgba(94, 234, 212, 0.18);
    }

    .contact {
        font-style: normal;
        color: var(--muted);
        line-height: 1.6;
    }

    .contact a {
        color: var(--muted);
        text-decoration: none;
    }

    .contact a:hover,
    .contact a:focus {
        color: var(--text);
        text-decoration: underline;
    }

    .subscribe {
        margin-top: 12px;
        display: flex;
        gap: 8px;
        align-items: center;
    }

    .subscribe input {
        flex: 1;
        min-width: 0;
        padding: 10px 12px;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.224);
        background: transparent;
        color: var(--text);
        font-size: 0.95rem;
    }

    .subscribe input::placeholder {
        color: rgba(255, 255, 255, 0.35);
    }

    .btn-subscribe {
        padding: 10px 14px;
        border-radius: 10px;
        border: 0;
        cursor: pointer;
        background-color: #99999971;
        color: var(--muted);
        font-weight: 600;
    }
    .btn-subscribe:hover{
        background: linear-gradient(90deg, #ff0000, #780116);
    }

    .btn:focus {
        outline: 3px solid rgba(94, 234, 212, 0.24);
    }

    .footer-bottom {
        border-top: 1px solid rgba(255, 255, 255, 0.03);
        margin-top: 18px;
        padding-top: 14px;
    }

    .bottom-inner {
        max-width: var(--max-width);
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        padding: 6px 0;
    }

    .bottom-inner small {
        color: var(--muted);
    }

    .legal {
        list-style: none;
        display: flex;
        gap: 14px;
        margin: 0;
        padding: 0;
    }

    .legal a {
        color: var(--muted);
        text-decoration: none;
        font-size: 0.92rem;
    }

    .legal a:hover,
    .legal a:focus {
        color: var(--text);
        text-decoration: underline;
    }

    /* Accessibility helpers */
    .visually-hidden {
        position: absolute !important;
        height: 1px;
        width: 1px;
        overflow: hidden;
        clip: rect(1px, 1px, 1px, 1px);
        white-space: nowrap;
        border: 0;
        padding: 0;
        margin: -1px;
    }

    /* Responsive */
    @media (max-width:1000px) {
        .footer-inner {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width:620px) {
        .footer-inner {
            grid-template-columns: 1fr;
        }

        .bottom-inner {
            flex-direction: column;
            align-items: flex-start;
            gap: 8px;
        }
    }

    a:focus {
        outline-offset: 3px;
    }

/* ---------------------  style for search schedule result ------------------------------------ */
.card {
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-danger {
  background-color: #ff0000 !important;
  border: none;
}

.btn-outline-danger:hover {
  background-color: #ff0000 !important;
  color: #fff !important;
}




/* -------------------------style for ticket---------------------------- */
  .ticket-container {
    background: var(--section-bg-color);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Segoe UI', Roboto, sans-serif;
  }

  .ticket-header {
    text-align: center;
    margin-bottom: 20px;
  }

  .ticket-header img {
    height: 60px;
    margin-bottom: 10px;
  }

  .ticket-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--second-color);
    margin: 0;
  }

  .ticket-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 4px;
  }

  .section-title {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--main-color);
    border-left: 4px solid var(--main-color);
    padding-left: 10px;
    margin-bottom: 12px;
  }

  table.custom-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
    font-size: 0.95rem;
  }

  table.custom-table td {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
  }

  table.custom-table tr td:first-child {
    font-weight: 600;
    width: 35%;
    background: rgba(255, 0, 0, 0.06);
  }

  .qr-box {
    padding: 10px;
    border-radius: 12px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
  }

  .note-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
  }

  .btn-print,
  .btn-download {
    border-radius: 6px;
    font-weight: 600;
    padding: 7px 18px;
  }

  @media print {
    body * {
      visibility: hidden;
    }

    #ticket-area,
    #ticket-area * {
      visibility: visible;
    }

    #ticket-area {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
    }

    button {
      display: none !important;
    }

    @page {
      size: A4;
      margin: 10mm;
    }

    .ticket-container {
      padding: 15px !important;
      font-size: 12px !important;
    }

    table.custom-table td {
      padding: 6px 8px !important;
      font-size: 11px !important;
    }

    .qr-box {
      transform: scale(0.85);
      transform-origin: top right;
    }
  }