/* =====================================================================
   athensairporttaxi.com — Cassiopeia user.css
   Recreates the look of the old J51_Central template.
   Location: media/templates/site/cassiopeia/css/user.css
   Values taken from the old J51_Central settings:
   blue #3366cc, light grey #f0f0f0, footer #04070c / #343a46,
   Times New Roman 17px, 1080px wide, left sidebar ~25%.
   ===================================================================== */

/* Logo font (Economica). Delete this line if you prefer not to load
   Google Fonts (GDPR); the logo then falls back to Times. */
@import url("https://fonts.googleapis.com/css2?family=Economica:wght@400;700&display=swap");

/* ---------- 1. Colours and fonts ------------------------------------ */
:root {
  --taxi-blue: #3366cc;
  --taxi-blue-dark: #264d99;
  --taxi-grey: #f0f0f0;
  --taxi-footer: #04070c;
  --taxi-footer-2: #343a46;
  --taxi-width: 1080px;

  --cassiopeia-color-primary: #3366cc;
  --cassiopeia-color-link: #3366cc;
  --cassiopeia-color-hover: #264d99;
  --cassiopeia-font-family-body: "Times New Roman", Times, serif;
  --cassiopeia-font-family-headings: "Times New Roman", Times, serif;
  --cassiopeia-font-weight-headings: 400;
}

body.site {
  font-family: "Times New Roman", Times, serif;
  font-size: 17px;
  line-height: 1.65;
  color: #000;
  background: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Times New Roman", Times, serif;
  color: #000;
}
h1, h2 { font-weight: 400; }

a { color: var(--taxi-blue); }
a:hover, a:focus { color: var(--taxi-blue-dark); }

/* Links inside articles were bold in the old design */
.com-content-article__body a,
.item-page a { font-weight: 700; }

/* ---------- 2. Header: white bar, text logo left, menu right ------- */
.container-header {
  background: #fff;
  background-image: none;
  color: #000;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .08);
}

.container-header .navbar-brand { margin: 0; padding: 0; }
.container-header .navbar-brand a,
.container-header .brand-logo {
  font-family: "Economica", "Times New Roman", Times, serif;
  font-size: 2.3rem;
  line-height: 1.1;
  color: var(--taxi-blue);
  text-decoration: none;
}
.container-header .site-description { display: none; }

@media (min-width: 992px) {
  .container-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding-inline: max(1rem, calc((100% - var(--taxi-width)) / 2));
  }
  .container-header > .grid-child {
    width: auto;
    max-width: none;
    margin: 0;
    padding: .6rem 0;
  }
  .container-header > .container-nav {
    flex: 1 1 auto;
    justify-content: flex-end;
  }
}

/* Main menu (Collapsible Dropdown layout) */
.container-header .metismenu > li > a,
.container-header .metismenu > li > button {
  color: #000;
  font-family: "Times New Roman", Times, serif;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.container-header .metismenu > li > a:hover,
.container-header .metismenu > li > button:hover,
.container-header .metismenu > li.active > a,
.container-header .metismenu > li.active > button {
  color: var(--taxi-blue);
}
.container-header .metismenu > li.active > a::after,
.container-header .metismenu > li > a:hover::after,
.container-header .metismenu > li > button:hover::after {
  background: var(--taxi-blue);
}

/* Dropdowns */
.container-header .metismenu .mm-collapse {
  background: #fff;
  border-top: 3px solid var(--taxi-blue);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
}
.container-header .metismenu .mm-collapse a,
.container-header .metismenu .mm-collapse button {
  color: #000;
  font-weight: 400;
  text-transform: none;
}
.container-header .metismenu .mm-collapse a:hover,
.container-header .metismenu .mm-collapse .active > a {
  color: var(--taxi-blue);
}

/* Mobile menu button */
.container-header .navbar-toggler {
  color: var(--taxi-blue);
  border-color: var(--taxi-blue);
}

/* ---------- 3. Blue strip under the header (banner position) -------
   Put the Motto modules and Language Selection in position "banner". */
.container-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1rem;
  background: var(--taxi-blue);
  color: #fff;
  padding: .45rem max(1rem, calc((100% - var(--taxi-width)) / 2));
}
.container-banner .motto,
.container-banner h3 {
  margin: 0;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
}
.container-banner .mod-languages { margin-left: auto; }
.container-banner .mod-languages ul {
  display: flex;
  gap: .9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.container-banner .mod-languages img { height: 18px; width: auto; }
.container-banner .mod-languages .lang-active { opacity: 1; }
.container-banner .mod-languages li:not(.lang-active) { opacity: .75; }

/* ---------- 4. Page width and columns ------------------------------ */
.site-grid {
  grid-template-columns:
    [full-start] minmax(1rem, 1fr)
    [main-start] repeat(4, minmax(0, calc(var(--taxi-width) / 4)))
    [main-end] minmax(1rem, 1fr)
    [full-end];
  column-gap: 2rem;
}
.container-component { padding-top: 1.5rem; }

/* ---------- 5. Left sidebar menus ---------------------------------- */
.container-sidebar-left { padding-top: 1.5rem; }
.container-sidebar-left .card {
  background: transparent;
  border: 0;
  box-shadow: none;
  margin-bottom: 1.5rem;
}
.container-sidebar-left .card-header {
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--taxi-footer-2);
  padding: 0 0 .6rem;
  margin: 0 .5rem .6rem;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: #000;
}
.container-sidebar-left .card-body { padding: 0; }
.container-sidebar-left .mod-menu {
  display: block;
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}
.container-sidebar-left .mod-menu li { margin: 0; padding: 0; }
.container-sidebar-left .mod-menu a {
  display: block;
  padding: .45rem .5rem;
  color: #000;
  font-weight: 400;
  text-decoration: none;
}
.container-sidebar-left .mod-menu a:hover { color: var(--taxi-blue); }
.container-sidebar-left .mod-menu .current > a,
.container-sidebar-left .mod-menu .active > a {
  color: var(--taxi-blue);
  font-weight: 700;
}

/* On phones the sidebar drops below the article */
@media (max-width: 991.98px) {
  .container-sidebar-left { border-top: 1px solid #ddd; }
}

/* ---------- 6. Headings with the thin line and bookmark icon ------- */
.page-header {
  text-align: center;
  padding-bottom: 10px;
  margin-bottom: 1.2rem;
}
.page-header h1,
.page-header h2 {
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.25;
  margin: 0;
}
.page-header::after {
  content: "";
  display: block;
  width: 100%;
  height: 30px;
  margin: 10px auto 0;
  background: url("data:image/png;base64,iVBORw0KGgoAAAANSUh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1NzgxN0FDQ0MyMEUzMyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PhnT0MEAAAGFSURBVHja7NzBK4NhHMDxZ5pR2uuslIM/YTnKyYU/QTmRcuDiMEWRIgcXxUmtlL/JSZkTdttSZqvXOy3JQeHFoz6fWs/a2u/wOzx9L+8KaZoGAOJULiUT2THyjRGN1lOzYZMAcSpaAUC0IZ5Mz0yPbW5VvzxjbnZ+qBfktgkgxgH4gizIv/PzIRsEiNeAFQAAgBgHAAAxDgAAiHEAABDjAABAvoqDw2VbAIjQcCjkMsc9DxBxjGevSWsAiE+nkJZyGuWeB4g4xq+sASA+g2khyY7RHEa55wFijfHOY8sWACJULiW5zHHPA8TLA5wAACDGAfiM+7v7sL938HIC8D8VrQDg/6md1cLa6no3e3t7U78ZX15ZCpWpisUAiHEAfinEL1tPzYdyKWmH/j+mCHIAMQ7AD9nZ3g1Hh0evId77LDsb/Yc9BTmAGAfgB0P8oR/i3bffCXIAMQ7AH4S4IAcQ4wDkr12/rofqRjWcHJ9+GOLvg/zi/GJiYXGhd8c3rREgXs8CDADRr3B1K4F/PwAAAABJRU5ErkJggg==") no-repeat 50% 50%;
  background-size: contain;
}

/* ---------- 7. Tables and buttons ---------------------------------- */
.com-content-article__body table.table td,
.com-content-article__body table.table th,
.item-page table.table td,
.item-page table.table th {
  border-color: #e3e3e3;
  padding: .45rem .5rem;
  vertical-align: middle;
}

.btn-primary,
.btn-success {
  background-color: var(--taxi-blue);
  border-color: var(--taxi-blue);
  color: #fff;
  border-radius: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: .5rem 1.25rem;
}
.btn-primary:hover, .btn-primary:focus,
.btn-success:hover, .btn-success:focus {
  background-color: var(--taxi-blue-dark);
  border-color: var(--taxi-blue-dark);
  color: #fff;
}

/* ---------- 8. Footer ---------------------------------------------- */
.container-footer {
  background: var(--taxi-footer);
  background-image: none;
  color: #bbb;
  font-size: .95rem;
}
.container-footer .grid-child {
  max-width: var(--taxi-width);
  margin-inline: auto;
  padding: 1.5rem 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.container-footer a { color: #ddd; font-weight: 400; }
.container-footer a:hover { color: #fff; }
.container-footer .mod-menu {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* "Back to top" button colour */
.back-to-top-link {
  background-color: var(--taxi-blue);
  border-color: var(--taxi-blue);
}

/* ---------- 9. Mobile fixes ---------------------------------------- */
@media (max-width: 991.98px) {
  /* Header: logo and menu button on one row */
  .container-header .grid-child { padding: .5rem 1rem; }
  .container-header .navbar-brand a,
  .container-header .brand-logo { font-size: 1.8rem; }

  /* Blue strip: smaller, no wrapping mess */
  .container-banner { padding: .4rem 1rem; }
  .container-banner .motto,
  .container-banner h3 { font-size: .95rem; }

  /* Headings smaller, like the old template's mobile settings */
  .page-header h1, .page-header h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  /* Content edge spacing */
  .container-component { padding-inline: .25rem; }
}

/* Never let wide content push the page sideways */
.com-content-article__body img,
.item-page img { max-width: 100%; height: auto; }

.com-content-article__body table,
.item-page table {
  display: block;
  width: 100% !important;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Old inline widths (e.g. style="width:65%") break on phones */
@media (max-width: 767.98px) {
  .com-content-article__body [style*="width"],
  .item-page [style*="width"] { width: auto !important; max-width: 100%; }
  .com-content-article__body table td,
  .item-page table td { white-space: normal; font-size: .95rem; }
}

/* Ads must not overflow */
ins.adsbygoogle { max-width: 100%; overflow: hidden; }


/* ---------- 10. Stop sideways scrolling on phones ------------------ */
html, body { overflow-x: clip; max-width: 100%; }

/* Embedded maps/videos (often have width="600" etc.) */
.com-content-article__body iframe,
.item-page iframe,
.com-content-article__body embed,
.com-content-article__body video,
.com-content-article__body object { max-width: 100% !important; }

/* Long URLs or words must wrap instead of widening the page */
.com-content-article__body,
.item-page { overflow-wrap: anywhere; }

/* Modules in sidebar/banner (ads, custom HTML) */
.container-sidebar-left, .container-banner, .container-footer { min-width: 0; }
.container-sidebar-left *, .container-banner * { max-width: 100%; }

/* ---------- 11. Mobile header: burger next to the logo ------------- */
@media (max-width: 991.98px) {
  .container-header:not(.position-sticky) { position: relative; }
  .container-header .container-nav .navbar { position: static; width: 100%; padding: 0; }
  .container-header .container-nav { padding: 0 1rem; }
  
/* Burger button: top-right, same line as the logo */
  .container-header .navbar-toggler {
    position: absolute;
    top: .65rem;
    right: 1rem;
    z-index: 5;
    padding: .3rem .55rem;
    font-size: 1.3rem;
    line-height: 1;
    color: var(--taxi-blue);
    background: #fff;
    border: 2px solid var(--taxi-blue);
    border-radius: 6px;
  }
  .container-header .navbar-toggler:hover,
  .container-header .navbar-toggler:focus {
    background: var(--taxi-blue);
    color: #fff;
  }

  /* Remove the empty row the button used to sit in */
  .container-header .container-nav,
  .container-header .container-nav .navbar { padding-top: 0; padding-bottom: 0; }

  /* Leave room so a long logo text doesn't run under the button */
  .container-header .navbar-brand { padding-right: 3.5rem; }

  /* Opened menu: full-width list under the logo */
  .container-header .navbar-collapse { width: 100%; }
  .container-header .metismenu > li { border-top: 1px solid #eee; }
  .container-header .metismenu > li > a,
  .container-header .metismenu > li > button { padding: .7rem .25rem; }
}

/* ---------- 12. Blue strip: motto left, flags right ---------------- */
.container-banner > :has(.mod-languages),
.container-banner > .mod-languages { order: 2; margin-left: auto; }
.container-banner .mod-languages li,
.container-banner .mod-languages .lang-active {
  background: transparent;
  padding: 0;
}
.container-banner .mod-languages .lang-active img {
  outline: 2px solid rgba(255, 255, 255, .8);
  outline-offset: 2px;
}
