/* ============================================================
   DIGITAL LONDON — SITE-WIDE REDESIGN OVERRIDE  (v3)
   Single stylesheet for header, nav, layout width and content
   styling across every legacy Joomla/K2 page.

   LOAD ORDER: this must be the ONLY custom stylesheet on the
   page, linked in <head> AFTER the inline Joomla <style> block:
     <link rel="stylesheet" href="/digital-london-redesign.css">
   (general.css has been removed — do not re-add it, two
   competing sheets is what caused the earlier layout breakage.)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Sora:wght@600;700;800&display=swap');

:root {
  /* Professional deep-blue palette — replaces the old crimson/navy combo */
  --navy: #0f2540;        /* primary dark — header/footer/hero */
  --navy-2: #16324f;      /* secondary dark surface */
  --blue: #1d4ed8;        /* primary accent — links, active states */
  --blue-2: #2563eb;      /* hover/lighter accent */
  --gold: #c9a227;        /* sparing use — dividers, highlights */
  --ink: #1f2a3c;         /* body text */
  --grey: #5b6675;        /* secondary text */
  --line: #e2e7ee;        /* borders */
  --bg: #f5f7fa;          /* page background */
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px -14px rgba(15,37,64,0.16);
  --max-width: 1360px;
}

#rt-page-surround, #rt-page-surround * { box-sizing: border-box !important; }

html, body, #rt-page-surround {
  background: var(--bg) !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  color: var(--ink) !important;
  line-height: 1.7 !important;
}

#rt-page-surround h1, #rt-page-surround h2, #rt-page-surround h3,
#rt-page-surround .title, #rt-page-surround .module-title .title,
#rt-page-surround .componentheading, #rt-page-surround .contentheading {
  font-family: 'Sora', system-ui, sans-serif !important;
  color: var(--navy) !important;
  font-weight: 700 !important;
}

#rt-page-surround a { color: var(--blue) !important; text-decoration: none !important; transition: color .2s ease; }
#rt-page-surround a:hover { color: var(--navy) !important; }
#rt-page-surround img { max-width: 100% !important; border-radius: 10px; }

/* ============================================================
   1. FLUID LAYOUT — no more fixed-pixel Gantry grid
   ============================================================ */
div.rt-container {
  width: 100% !important;
  max-width: var(--max-width) !important;
  margin: 0 auto !important;
  padding: 0 28px !important;
  display: block !important;
}

div.rt-container [class*="rt-grid-"] {
  width: auto !important;
  float: none !important;
  position: static !important;
}

#rt-header {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--white) !important;
  padding: 18px 0 !important;
  border-bottom: 1px solid var(--line);
}
#rt-header > .rt-grid-7 { flex: 1 1 320px; }
#rt-header > .rt-grid-2 { flex: 0 1 220px; }
#rt-header > .rt-grid-3 { flex: 0 1 260px; }
#rt-header .rt-block, #rt-header .module-content { background: transparent !important; }
#rt-header img { height: 48px !important; width: auto !important; border-radius: 0; }
#rt-header .customtitle1 { background: var(--navy) !important; border-radius: 10px; padding: 10px 14px; }
#rt-header .customtitle1 span { color: #e8d999 !important; font-family: 'Inter', sans-serif !important; }
#rt-header .box2 .rt-block { background: transparent !important; box-shadow: none !important; border: none !important; padding: 0 !important; }

#rt-main .rt-container {
  display: flex !important;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 28px;
  padding: 0 !important;
}
#rt-main .rt-grid-9 { flex: 1 1 640px; min-width: 0; }
#rt-main .rt-grid-3 { flex: 0 1 300px; min-width: 260px; }
#rt-main .rt-grid-9:only-child,
#rt-main .rt-grid-12 { flex: 1 1 100%; }

@media (max-width: 900px) {
  #rt-main .rt-grid-9, #rt-main .rt-grid-3 { flex: 1 1 100%; }
}

/* ============================================================
   2. NAVIGATION
   ============================================================ */
#rt-showcase {
  background: var(--white) !important;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.rt-fusionmenu, .rt-menubar { background: transparent !important; }
.rt-menubar { display: flex !important; align-items: center; gap: 12px; padding: 0 !important; }

ul.menutop.level1 {
  all: unset;
  list-style: none !important;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px !important;
  margin: 0 !important;
  padding: 0 !important;
}

ul.menutop.level1 > li {
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  position: relative !important;
}

ul.menutop.level1 > li > a,
ul.menutop.level1 > li > span {
  display: flex !important;
  align-items: center;
  gap: 5px;
  margin: 0 !important;
  padding: 15px 14px !important;
  font-weight: 600 !important;
  font-size: 14.5px !important;
  font-family: 'Inter', sans-serif !important;
  color: var(--ink) !important;
  background: transparent !important;
  border-radius: 8px !important;
  line-height: 1 !important;
  white-space: nowrap;
  cursor: pointer;
  transition: all .2s ease;
}

ul.menutop.level1 > li:hover > a,
ul.menutop.level1 > li:hover > span,
ul.menutop.level1 > li.active > a,
ul.menutop.level1 > li.active-to-top,
ul.menutop.level1 > li.active > span {
  background: var(--bg) !important;
  color: var(--blue) !important;
}

.daddyicon { font-size: 9px !important; opacity: .7; }
.daddyicon::after { content: "▾"; }

.fusion-submenu-wrapper {
  all: unset;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  z-index: 200 !important;
  background: var(--white) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow) !important;
  padding: 10px !important;
  margin-top: 6px !important;
  min-width: 220px !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all .18s ease;
}
ul.menutop.level1 > li:hover > .fusion-submenu-wrapper {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.fusion-submenu-wrapper ul.level2 {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  float: none !important;
  width: 100% !important;
}
.fusion-submenu-wrapper ul.level2 li {
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.fusion-submenu-wrapper ul.level2 li a {
  display: block !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  border-radius: 8px !important;
  color: var(--ink) !important;
  font-weight: 500 !important;
  font-size: 14px !important;
}
.fusion-submenu-wrapper ul.level2 li a:hover {
  background: var(--bg) !important;
  color: var(--blue) !important;
}
.drop-bot { display: none !important; }
.fusion-submenu-wrapper.columns2 { display: flex !important; gap: 6px; min-width: 440px !important; }

.dl-menu-toggle {
  display: none;
  border: none;
  background: var(--navy);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dl-menu-toggle:hover { background: var(--blue); }

@media (max-width: 980px) {
  .rt-menubar { flex-wrap: wrap; }
  .dl-menu-toggle { display: flex; }
  ul.menutop.level1 {
    flex-direction: column;
    align-items: stretch;
    display: none !important;
    width: 100%;
    background: var(--white) !important;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 8px !important;
    margin-top: 8px !important;
  }
  ul.menutop.level1.dl-open { display: flex !important; }
  .fusion-submenu-wrapper {
    position: static !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    display: none;
    width: 100% !important;
    margin: 4px 0 0 !important;
  }
  ul.menutop.level1 > li.dl-sub-open > .fusion-submenu-wrapper { display: block; }
}

/* ============================================================
   3. TITLES — fixed the "wooden plank" look: real padding,
      soft background chip, thin gradient accent instead of a
      heavy flat border slammed against the text.
   ============================================================ */
#rt-mainbody, .box1 .rt-block, .box2 .rt-block, .box4 .rt-block, .box5 .rt-block,
.rt-block.component-block, .component-content {
  background: var(--white) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow) !important;
  padding: 32px !important;
  margin-bottom: 22px !important;
}

.module-title {
  margin: 0 0 26px !important;
  padding: 0 0 4px !important;
}
.module-title .title {
  display: inline-block;
  font-size: 22px !important;
  line-height: 1.35 !important;
  margin: 0 !important;
  padding: 6px 2px 12px !important;
  letter-spacing: -0.01em;
}
.module-title .accent {
  width: 44px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--blue), var(--gold)) !important;
  margin-top: 4px;
}

.componentheading, .contentheading, h1.contentheading, h2.contentheading {
  font-size: 30px !important;
  line-height: 1.3 !important;
  padding: 4px 0 18px !important;
  margin: 0 0 26px !important;
  border-bottom: none !important;
  position: relative;
}
.componentheading::after, .contentheading::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  margin-top: 14px;
}

/* K2 category listing titles — same treatment, lighter weight */
.itemListCategoriesBlock .module-title { margin-bottom: 24px !important; }

/* ============================================================
   4. CONTENT CARDS
   ============================================================ */
#k2Container, .itemList { background: transparent !important; }
.itemContainer {
  width: 100% !important;
  background: var(--white) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  padding: 24px !important;
  margin-bottom: 18px !important;
  transition: box-shadow .2s ease, transform .2s ease;
}
.itemContainer:hover { box-shadow: var(--shadow) !important; transform: translateY(-2px); }
.catItemHeader { margin-bottom: 10px; padding-bottom: 0 !important; }
.catItemTitle, .catItemTitle a {
  font-family: 'Sora', sans-serif !important;
  font-size: 19px !important;
  line-height: 1.4 !important;
  color: var(--navy) !important;
  font-weight: 700 !important;
}
.catItemIntroText {
  color: var(--grey) !important;
  font-size: 15px !important;
  line-height: 1.75 !important;
  margin-top: 10px;
}
.catItemIntroText a { font-weight: 600; }
.catItemImageBlock { text-align: center; margin-bottom: 16px; }
.catItemImageBlock img { border-radius: 10px; margin: 0 auto; }
.catItemReadMore { margin-top: 16px; }
.k2ReadMore {
  display: inline-block !important;
  padding: 9px 18px !important;
  background: var(--blue) !important;
  color: #fff !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
}
.k2ReadMore:hover { background: var(--navy) !important; color: #fff !important; }
.catItemExtraFields { margin-top: 14px; font-size: 13px; color: var(--grey); }
.catItemExtraFields ul { list-style: none; padding: 0; margin: 0; }
.catItemExtraFieldsValue { color: var(--grey) !important; font-size: 12px !important; }

.k2Pagination { margin-top: 24px; text-align: center; }
.k2Pagination ul { list-style: none; display: inline-flex; gap: 6px; padding: 0; margin: 0 0 8px; }
.k2Pagination li, .k2Pagination .pagenav {
  display: inline-block;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.k2Pagination li:hover, .k2Pagination .pagenav:hover { background: var(--bg); color: var(--blue); }

/* ---------- Sidebar ---------- */
#rt-sidebar-b .rt-block, #rt-sidebar-a .rt-block {
  background: var(--white) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow) !important;
  padding: 24px !important;
}
.custombox1 img { border-radius: 8px; }

/* ---------- Bottom / Organised by ---------- */
#rt-bottom { background: var(--navy-2) !important; padding: 42px 0 !important; }
#rt-bottom .title { color: #fff !important; }
#rt-bottom .rt-block { background: transparent !important; box-shadow: none !important; border: none !important; }
#rt-bottom .accent { background: linear-gradient(90deg, var(--gold), var(--blue-2)) !important; }
#rt-bottom .rt-container { display: block !important; }

/* ---------- Footer ---------- */
#rt-footer-surround { background: var(--navy) !important; color: #c9d3e0 !important; }
#rt-footer-surround .rt-container { display: flex !important; align-items: center; justify-content: space-between; }
#rt-copyright { padding: 20px 0 !important; }
#rt-copyright a, #rt-footer-surround a { color: #fff !important; }
#rt-copyright a:hover, #rt-footer-surround a:hover { color: var(--gold) !important; }
#gantry-totop {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
}
#gantry-totop:hover { background: var(--blue) !important; border-color: var(--blue) !important; }

/* ---------- Buttons / read-on links ---------- */
.readon, .readon span, .readon .button {
  background: var(--blue) !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 10px 20px !important;
  font-weight: 600 !important;
}
.readon:hover { background: var(--navy) !important; }