/* =========================
   Coach Driving School CSS
   Clean file (no brace errors)
   Brand: Navy + Orange
   ========================= */

/* Base */
:root{
  --navy:#0A2D5C;
  --orange:#F7941D;
  --white:#ffffff;

  --bg:#f4f6fa;
  --text:#0c1b2a;
  --muted:#6b7a90;

  --border:#e6ecf5;
  --shadow: 0 14px 36px rgba(10,45,92,.12);
  --radius: 18px;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }

/* Prevent accidental horizontal scroll (often shows up at browser zoom levels) */
html, body{ width:100%; overflow-x: clip; }

/* Media elements never overflow their containers */
img, svg, video, canvas{ max-width:100%; height:auto; }

/* Allow grid/flex children to shrink (prevents overflow) */
.hero-grid > *, .grid > *, .header-inner > *{ min-width: 0; }
body{
  font-family: Arial, sans-serif;
  color: var(--text);
  background: var(--white);
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }

/* NOTE: removed custom .container sizing to avoid clashing with Bootstrap.
   Use Bootstrap .container / .container-fluid, or apply .cs-container for old sizing. */
.cs-container{
  width: 90%;
  max-width: 1100px;
  margin: auto;
}
/* Header */
.header{
  background: var(--navy);
  padding: 12px 0;
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

/* Round logo (professional) */
.logo{
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  padding: 6px;
  box-shadow: 0 10px 20px rgba(0,0,0,.08);
}

/* Nav */
.nav a{
  color:#fff;
  margin-left:10px;
  text-decoration:none;
  font-weight: 700;
  opacity: .95;
}
.nav a:hover{
  opacity: 1;
  text-decoration: underline;
}

/* Buttons */
.btn{
  background: var(--orange);
  color: var(--navy);
  padding: 12px 20px;
  border-radius: 25px;
  display:inline-block;
  font-weight: 800;
  border: 2px solid var(--orange);
}
.btn:hover{ filter: brightness(.98); text-decoration:none; }

.btn-outline{
  background: transparent;
  border: 2px solid rgba(255,255,255,.45);
  color: #fff;
}
.btn-outline:hover{ filter: brightness(.98); }

.btn-full{
  width:100%;
  text-align:center;
  border-radius: 14px;
}

/* Hero */
.hero{
  padding: 56px 0;
  background: var(--bg);
}

.hero-grid{
  display:grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(340px, .8fr);
  gap: 28px;
  align-items: start;
}

.pill{
  display:inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(10,45,92,.15);
  color: var(--navy);
  background: #fff;
  font-weight: 800;
  font-size: 13px;
}

.hero-left h1{
  margin: 10px 0 10px;
  color: var(--navy);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.05;
}

.hero-sub{
  margin: 0 0 16px;
  color: #51657e;
  font-size: 16px;
  line-height: 1.6;
}

.hero-actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0 18px;
}

/* Cards */
.card, .box, .price{
  background:#fff;
  padding:20px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

/* Make enquiry form NOT too wide */
.hero-form-wrap{
  display:flex;
  justify-content:flex-end;
  flex-wrap: wrap;
}

.form-card{
width: min(420px, 100%);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  max-width: 100%;
}

/* Prevent enquiry card from collapsing (common at browser zoom) */
.hero-form-wrap{ width: 100%; }
.form-card{ min-width: 280px; }
.form-card, .form-card *{ word-break: normal; overflow-wrap: normal; }
@media (min-width: 992px){
  .form-card{ min-width: 340px; }
}

.card-head h3{
  margin:0;
  color: var(--navy);
}

.card-head p{
  margin:6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* Form */
.form input,
.form select,
.form textarea,
form input,
form select,
form textarea{
  width:100%;
  padding: 10px;
  margin-bottom:10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  background: #fff;
}

.form textarea{ min-height: 120px; }

.form input:focus,
.form select:focus,
.form textarea:focus,
form input:focus,
form select:focus,
form textarea:focus{
  border-color: rgba(10,45,92,.35);
  box-shadow: 0 0 0 4px rgba(10,45,92,.08);
}

.success{
  margin-top: 10px;
  font-weight: 800;
  color: #0f7a3a;
}

.form-note{
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
}

/* Grid sections */
.section{ padding: 56px 0; }
.alt{ background: var(--bg); }

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.highlight{
  border: 2px solid var(--orange);
}

/* ===== Slider (Customer Satisfaction) ===== */
.slider-card{
  margin-top: 24px;
  background:#fff;
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 14px 36px rgba(10,45,92,.12);
  padding: 22px;

  /* IMPORTANT */
  width: 100%;
  max-width: 100%;
}


.slider-head h3{
  margin:0;
  color: var(--navy);
}
.slider-head p{
  margin:6px 0 10px;
  color: var(--muted);
  font-size: 14px;
}

.slider{
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
}

.slider-track{
  display:flex;
  gap:10px;
  overflow:auto;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
  padding-bottom: 6px;
}
.slider-track::-webkit-scrollbar{ display:none; }

/* Smaller, professional slide size */
.slide{
  scroll-snap-align: start;
  min-width: 300px;     /* wider cards */
  max-width: 600px;
  background:#fff;
  border:1px solid var(--border);
  border-radius: 18px;
  overflow:hidden;
}

.slide img{
  width:100%;
  height: 300px;        /* 👈 taller images */
  object-fit: cover;
  display:block;
}


.slide-caption{
  padding: 14px;
  font-weight: 800;
  color: var(--navy);
  font-size: 15px;
  text-align: center;
}


.slider-btn{
  width: 44px;
  height: 44px;
  font-size: 24px;
  border-radius: 999px;
  border: 1px solid rgba(10,45,92,.18);
  background:#fff;
  color: var(--navy);
  cursor:pointer;
  box-shadow: 0 10px 18px rgba(10,45,92,.08);
}
.slider-btn:hover{ filter: brightness(.98); }

.slider-dots{
  display:flex;
  gap:8px;
  justify-content:center;
  margin-top: 10px;
}

.dot{
  width:10px;
  height:10px;
  border-radius:999px;
  border:0;
  background: rgba(10,45,92,.25);
  cursor:pointer;
}
.dot.active{ background: var(--orange); }

/* Footer */
.footer{
  background: var(--navy);
  color:#fff;
  text-align:center;
  padding: 15px;
}

/* Responsive */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-form-wrap{ justify-content:flex-start; }
  .grid{ grid-template-columns: 1fr; }
}

@media (max-width: 768px){
  .slide{
    min-width: 180px;
    max-width: 180px;
  }
  .slide img{
    height: 115px;
  }
}

/* =========================
   MOBILE FIXES
   Put at bottom of CSS
   ========================= */

@media (max-width: 900px){
  /* Bootstrap handles .container responsive widths. */
/* Stack hero columns */
  .hero-grid{
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Reduce hero spacing */
  .hero{
    padding: 28px 0 !important;
  }

  .hero-left h1{
    font-size: 32px !important;
    line-height: 1.12 !important;
  }

  .hero-sub{
    font-size: 14px !important;
  }

  /* Buttons wrap nicely */
  .hero-actions{
    gap: 10px !important;
  }

  .hero-actions .btn{
    width: 100%;
    text-align: center;
  }

  /* Make enquiry form full width on mobile */
  .hero-form-wrap{
    justify-content: flex-start !important;
  }

  .form-card{
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px !important;
    border-radius: 16px !important;
  }

  /* Slider fills width, no huge empty space */
  .slider-card{
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px !important;
    border-radius: 16px !important;
  }

  .slider{
    gap: 8px !important;
  }

  .slider-btn{
    width: 36px !important;
    height: 36px !important;
    font-size: 20px !important;
  }

  /* Slides: one strong card per view (clean look) */
  .slide{
    min-width: 85% !important;   /* shows 1 card (professional carousel look) */
    max-width: 85% !important;
    border-radius: 16px !important;
  }

  .slide img{
    height: 180px !important;
  }

  .slide-caption{
    font-size: 14px !important;
    padding: 12px !important;
  }

  /* Services & packages should be 1 column */
  .grid{
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .section{
    padding: 36px 0 !important;
  }

  /* Header spacing */
  .header{
    padding: 10px 0 !important;
  }

  .nav a{
    margin-left: 10px !important;
    font-size: 13px !important;
  }

  .logo{
    width: 52px !important;
    height: 52px !important;
  }
}



/* Hardening: keep slider/carousel from creating page-level overflow */
.slider, .slider-card, .slider-track{ max-width: 100%; }
.slider-track{ overscroll-behavior-x: contain; }

/* =========================
   PATCH v3 (Fix narrow Quick Enquiry at zoom / prevent grid squeeze)
   ========================= */

/* Let left column content shrink instead of forcing grid to squeeze the form */
.hero-grid > * { min-width: 0; } /* critical for CSS grid items */
.hero-left, .slider-card, .slider, .slider-track { min-width: 0; max-width: 100%; }

/* Give the right column a real minimum so the enquiry card never collapses */
.hero-grid{
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
}

/* Ensure the aside and form can’t shrink below usable width on desktop */
.hero-form-wrap{
  min-width: 360px;
}
.form-card{
  min-width: 360px;
}

/* At smaller widths, stack as before */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-form-wrap, .form-card{ min-width: 0; }
}

/* Prevent long labels/words from forcing weird wraps */
.form-card, .form-card *{
  word-break: normal;
  overflow-wrap: normal;
}

/* If any element still causes page-level horizontal scroll, this clips it safely */
html, body{ overflow-x: clip; }
.service-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px 28px;
    border: 1px solid #e6eefc;
    transition: all 0.25s ease;
    height: 100%;
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #0b2545;
}

.service-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #5f6f86;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(11, 37, 69, 0.08);
}
.slider-card {
  width: 100%;
}

.slider {
  width: 100%;
  position: relative;
}

.slider-track {
  display: flex;
  width: 100%;
  overflow: hidden;
}

.slide {
  flex: 0 0 100%;
  width: 100%;
}

.slide img {
  width: 100%;
  height: 420px;      /* adjust */
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

