/* ==========================================================================
   Courtesy Driving School – Header & Footer
   CSS-only (no JavaScript). Built to sit on top of Bootstrap 3 + Font Awesome 4.
   All classes are prefixed with "cds-" to avoid clashing with the host site.
   ========================================================================== */

:root {
  --cds-yellow: #f6d70d;
  --cds-yellow-dark: #e0c200;
  --cds-gold: #c8a800;
  --cds-maroon: #5d2b37;
  --cds-ink: #111111;
  --cds-line: #e9e9e9;
  --cds-dark: #141414;
  --cds-font: 'Montserrat', Arial, Helvetica, sans-serif;
}

.cds-announce,
.cds-header,
.cds-footer { font-family: var(--cds-font); }

.cds-header *, .cds-header *:before, .cds-header *:after,
.cds-footer *, .cds-footer *:before, .cds-footer *:after { box-sizing: border-box; }

.cds-header ul, .cds-footer ul { list-style: none; margin: 0; padding: 0; }
.cds-header a, .cds-footer a,
.cds-header a:hover, .cds-header a:focus,
.cds-footer a:hover, .cds-footer a:focus { text-decoration: none; }

/* Visually hidden but still keyboard-focusable checkboxes (the CSS "switches") */
.cds-toggle-input,
.cds-sub-check {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   1. ANNOUNCEMENT BAR
   -------------------------------------------------------------------------- */
.cds-announce {
  background: var(--cds-maroon);
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
  padding: 14px 15px;
}
.cds-announce .fa { margin-right: 10px; font-size: 22px; vertical-align: middle; }
.cds-announce span { vertical-align: middle; }

/* --------------------------------------------------------------------------
   2. HEADER – shared (mobile first)
   -------------------------------------------------------------------------- */
.cds-header {
  position: relative;
  z-index: 1000;
  background: #fff;
}
.cds-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}
.cds-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  padding: 10px 0;
}
.cds-logo { display: block; flex: 0 0 auto; }
.cds-logo img { display: block; width: 170px; max-width: 100%; height: auto; }

/* Hamburger (label for the hidden checkbox) */
.cds-burger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0;
  border: 2px solid var(--cds-ink);
  border-radius: 10px;
  color: var(--cds-ink);
  font-size: 22px;
  cursor: pointer;
  user-select: none;
}
.cds-burger .fa-times { display: none; }
.cds-toggle-input:checked + .cds-burger { background: var(--cds-yellow); border-color: var(--cds-yellow); }
.cds-toggle-input:checked + .cds-burger .fa-bars { display: none; }
.cds-toggle-input:checked + .cds-burger .fa-times { display: inline-block; }
.cds-toggle-input:focus + .cds-burger { outline: 3px solid var(--cds-gold); outline-offset: 2px; }

/* Menu links */
.cds-menu > li > a,
.cds-sub-toggle,
.cds-sub a {
  color: var(--cds-ink);
  font-weight: 700;
  transition: color .2s ease, background-color .2s ease;
}
.cds-menu > li > a:hover,
.cds-menu > li > a:focus,
.cds-menu > li.cds-active > a,
.cds-sub a:hover,
.cds-sub a:focus,
.cds-has-sub:hover > .cds-sub-toggle { color: var(--cds-gold); }

/* Student Portal button */
.cds-menu > li.cds-cta > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--cds-yellow);
  color: var(--cds-ink);
  border-radius: 50px;
  padding: 13px 24px;
  font-size: 14px;
  letter-spacing: .3px;
  text-transform: uppercase;
}
.cds-menu > li.cds-cta > a:hover,
.cds-menu > li.cds-cta > a:focus { background: var(--cds-yellow-dark); color: var(--cds-ink); }
.cds-menu > li.cds-cta .fa { font-size: 18px; }

/* Caret label (also the tap target that opens sub menus on touch devices) */
.cds-sub-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-weight: 400;
  cursor: pointer;
}
.cds-sub-toggle .fa { font-size: 16px; line-height: 1; transition: transform .2s ease; }
.cds-sub-check:checked + .cds-sub-toggle .fa { transform: rotate(180deg); }
.cds-sub-check:focus + .cds-sub-toggle { outline: 2px solid var(--cds-gold); outline-offset: -2px; }

/* Sub menu items */
.cds-sub a {
  display: block;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.35;
}
.cds-sub .cds-mega-title {
  display: block;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: .4px;
  text-align: left;
  text-transform: uppercase;
  color: var(--cds-ink);
}

/* --------------------------------------------------------------------------
   3. HEADER – mobile / tablet (below 1280px): slide-down panel
   -------------------------------------------------------------------------- */
@media (max-width: 1279px) {
  .cds-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    border-top: 1px solid var(--cds-line);
    box-shadow: 0 14px 24px rgba(0, 0, 0, .14);
  }
  .cds-toggle-input:checked ~ .cds-nav { display: block; }

  .cds-menu > li {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    border-bottom: 1px solid var(--cds-line);
  }
  .cds-menu > li > a { flex: 1 1 0; padding: 15px 20px; font-size: 15px; }
  .cds-sub-toggle { flex: 0 0 58px; border-left: 1px solid var(--cds-line); }

  .cds-sub { display: none; flex: 0 0 100%; background: #faf8e8; padding: 6px 0; }
  .cds-sub-check:checked ~ .cds-sub { display: block; }
  .cds-sub a { padding: 11px 20px 11px 34px; }

  .cds-mega-col { padding-bottom: 6px; }
  .cds-sub .cds-mega-title { padding: 12px 20px 4px; color: var(--cds-gold); }

  .cds-menu > li.cds-cta { display: block; border-bottom: 0; padding: 18px 20px 22px; }
  .cds-menu > li.cds-cta > a { display: flex; width: 100%; padding: 14px 24px; }
}

@media (min-width: 480px) and (max-width: 1279px) {
  .cds-logo img { width: 190px; }
}

/* --------------------------------------------------------------------------
   4. HEADER – desktop (1280px and up): inline menu + hover / focus dropdowns
   -------------------------------------------------------------------------- */
@media (min-width: 1280px) {
  .cds-header-inner { min-height: 90px; }
  .cds-logo img {width: 215px;}
  .cds-burger { display: none; }

  .cds-nav { display: block; }
  .cds-menu { display: flex; align-items: center; }
  .cds-menu > li { position: relative; display: flex; align-items: center; }
  .cds-menu > li > a { display: block; padding: 14px 10px; font-size: 14px; }
  .cds-has-sub > a { padding-right: 2px; }
  .cds-sub-toggle { padding: 14px 8px 14px 3px; }
  .cds-menu > li.cds-cta { margin-left: 14px; }

  /* Dropdown panel */
  .cds-sub {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 50;
    min-width: 240px;
    margin-top: 8px;
    padding: 8px 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .16);
  }
  /* invisible bridge so the menu doesn't close while the pointer crosses the gap */
  .cds-sub:before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
  .cds-sub a { padding: 10px 22px; white-space: nowrap; }
  .cds-sub--wide { min-width: 280px; }

  .cds-has-sub:hover > .cds-sub,
  .cds-has-sub:focus-within > .cds-sub,
  .cds-sub-check:checked ~ .cds-sub { display: block; }

  /* Services mega menu (two columns) */
  .cds-sub--mega { left: 50%; width: 700px; padding: 18px 12px; transform: translateX(-50%); }
  .cds-has-sub:hover > .cds-sub--mega,
  .cds-has-sub:focus-within > .cds-sub--mega,
  .cds-sub-check:checked ~ .cds-sub--mega { display: flex; }
  .cds-mega-col { flex: 1 1 50%; padding: 0 10px; }
  .cds-sub .cds-mega-title { margin: 0 12px 6px; padding: 0 0 10px; white-space: nowrap;  }
  .cds-mega-col .cds-sub-list a { padding: 8px 12px; white-space: normal; }
}

@media (min-width: 1440px) {
  .cds-menu > li > a {font-size: 14px;padding-left: 10px;padding-right: 10px;}
  .cds-has-sub > a { padding-right: 2px; }
  .cds-menu > li.cds-cta > a { font-size: 15px; }
}

/* --------------------------------------------------------------------------
   5. FOOTER
   -------------------------------------------------------------------------- */
.cds-footer {
  position: relative;
  color: #fff;
  background: var(--cds-dark) url("../images/footer-bg.png") center center / cover no-repeat;
  padding: 50px 0 0;
  font-size: 15px;
  line-height: 1.5;
}
.cds-footer a {color: #cbcbcb;transition: color .2s ease, background-color .2s ease;}
.cds-footer a:hover, .cds-footer a:focus { color: var(--cds-yellow); }

.cds-footer-col { margin-bottom: 34px; }
.cds-footer-logo { display: inline-block; margin-bottom: 26px; }
.cds-footer-logo img { display: block; width: 250px; max-width: 100%; height: auto; }

.cds-btn {
  display: inline-block;
  background: var(--cds-yellow);
  color: var(--cds-ink) !important;
  font-family: var(--cds-font);
  font-weight: 700;
  border-radius: 50px;
  line-height: 1.2;
  transition: background-color .2s ease;
}
.cds-btn:hover, .cds-btn:focus { background: var(--cds-yellow-dark); color: var(--cds-ink) !important; }
.cds-btn--lg { font-size: 15px; padding: 14px 28px; }
.cds-btn--sm { font-size: 14px; font-weight: 500; border-radius: 4px; padding: 11px 17px; }

.cds-footer-contact .cds-btn { margin-bottom: 26px; }
.cds-footer-contact .cds-btn:hover {
    background: #fff;
}
.cds-footer-phone {
  display: block;
  margin-bottom: 20px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}
.cds-footer-email {
  display: inline-block;
  margin-top: 4px;
  font-size: 18px;
  font-weight: 700;
  word-break: break-word;
}

.cds-footer-title {
  margin: 0 0 14px;
  color: #fff;
  font-family: var(--cds-font);
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
}
.cds-footer-links li { margin-bottom: 8px; }
.cds-footer-links a { font-weight: 400; font-size: 15px; }
.cds-footer-links li.cds-active a { color: var(--cds-yellow); }

.cds-footer-bottom {
  margin-top: 6px;
  padding: 30px 0 34px;
  border-top: 1px solid rgba(255, 255, 255, .75);
}
.cds-footer-copy { margin: 0 0 22px; color: #d9d9d9; font-size: 16px; }
.cds-footer-notify { text-align: center; }
.cds-footer-notify p { margin: 0 0 16px; color: #d9d9d9; font-size: 16px; font-weight: 700; }

@media (min-width: 768px) {
  .cds-footer-copy { margin-bottom: 0; padding-top: 6px; }
}
@media (min-width: 992px) {
  .cds-footer { padding-top: 60px; }
  .cds-footer-col { margin-bottom: 40px; }
}
@media (max-width: 767px) {
  .cds-footer-phone { font-size: 24px; }
  .cds-footer-email { font-size: 16px; }
  .cds-footer-notify { text-align: left; }
}

/* --------------------------------------------------------------------------
   Demo only – delete when embedding in the live site
   -------------------------------------------------------------------------- */
.cds-demo-content { min-height: 280px; padding: 60px 0; color: #555; font-family: var(--cds-font); }



 
@media (min-width: 1024px) {
a.cds-mega-title.mgtitle1 {
    font-family: "manier", sans-serif !important;
    font-weight: 700 !important;
    font-size: 20px !important;
    line-height: 1.3 !important;
    display: block !important;
    font-style: normal;
    color: #000000;
    padding: 0px 0!important;
    text-transform: none;
    font-family: "manier", sans-serif !important;
    max-width: 226px;
    white-space: normal;
    border: 0;
}

li.cds-mega-col.mega-menu-col--right {
    justify-content: center;
    padding: 30px 0;
}
    .mega-menu-col--left {
        justify-content: center !important;
        border-left: 4px solid #f4d50c !important;
        border-right: 1px solid #e0e0e0 !important;
        border-top: 1px solid #e0e0e0 !important;
        border-bottom: 1px solid #e0e0e0 !important;
        border-radius: 6px 0 0 6px !important;
        margin: 16px 0 16px 16px !important;
        padding: 16px 0;
    }
}

a.cds-footer-phone, a.cds-footer-phone, a.cds-footer-email {color:#fff}