﻿@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Barlow+Condensed:wght@400;500;600;700&display=swap');

/* ============================================================
   Everest Software International — facelift stylesheet (v2)
   Enterprise palette: deep navy authority + brand sky (#b4e8ff)
   as accent. All legacy class & id names preserved.
   ============================================================ */

:root {
  /* Deep navy — authority, header, footer, headings */
  --esi-dark:         #0c2d4a;
  --esi-dark-mid:     #143d63;
  --esi-dark-deep:    #082238;

  /* Mid blues for transitions */
  --esi-mid:          #1e5179;
  --esi-mid-light:    #2f7aab;

  /* Brand sky — corporate #b4e8ff, used as accent / highlight */
  --esi-sky:          #b4e8ff;
  --esi-sky-soft:     #d8eff9;
  --esi-sky-deep:     #84d4f5;

  /* Surfaces */
  --esi-bg-top:       #3b5471;
  --esi-bg-bottom:    #243a52;
  --esi-card:         #ffffff;
  --esi-card-soft:    #f7fafc;
  --esi-card-edge:    #f0f5f9;

  /* Borders */
  --esi-border:       #c5d6e2;
  --esi-border-soft:  #e0ecf2;
  --esi-border-card:  rgba(12, 45, 74, 0.10);

  /* Text */
  --esi-text:         #0d1924;
  --esi-text-muted:   #465769;
  --esi-text-on-dark: #ffffff;
  --esi-text-on-dark-muted: #b8c8d4;

  /* CTA — warm, substantial */
  --esi-cta:          #e85d24;
  --esi-cta-deep:     #b8410d;
  --esi-cta-bright:   #ff7a3a;

  /* Legacy red */
  --esi-red:          #d33333;

  /* Shadows — layered for real depth */
  --esi-shadow-card:        0 1px 2px rgba(0,0,0,0.10), 0 10px 28px rgba(0,0,0,0.20);
  --esi-shadow-card-hover:  0 2px 4px rgba(0,0,0,0.14), 0 18px 40px rgba(0,0,0,0.30);
  --esi-shadow-bar:         0 6px 30px rgba(0,0,0,0.30);
  --esi-shadow-cta:         0 4px 14px rgba(184,65,13,0.40);
  --esi-shadow-cta-hover:   0 6px 20px rgba(184,65,13,0.50);
}

/* ---------- Reset & globals ---------- */
html, body { height: auto; min-height: 100%; }

body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(180,232,255,0.16) 0%, rgba(180,232,255,0) 60%),
    radial-gradient(circle at center, rgba(255,255,255,0.045) 1px, transparent 1.5px) 0 0 / 22px 22px,
    linear-gradient(180deg, var(--esi-bg-top) 0%, var(--esi-bg-bottom) 100%);
  background-attachment: fixed;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--esi-text);
}

.x32only {
  position: relative;
  z-index: 1;
  background: url(../images/32bitsOnly.png) no-repeat right top;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 12px 0;
  padding: 0;
  font-family: "Oswald", "Segoe UI", sans-serif;
  font-weight: 700;
  color: var(--esi-dark);
  letter-spacing: -0.012em;
}
h1 { font-size: 36px; line-height: 1.15; }
h2 { font-size: 26px; line-height: 1.22; }
h3 { font-size: 19px; line-height: 1.3; }

p, ol, ul { margin: 0 0 12px 0; line-height: 1.7; }
ul, ol { padding-left: 22px; list-style-type: disc; }
ul li, ol li { margin-bottom: 4px; }

.normal { line-height: 1.5; }
.red-text { color: var(--esi-red) !important; }
strong, b { color: var(--esi-dark); font-weight: 700; }

a {
  color: var(--esi-mid);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--esi-cta); text-decoration: underline; }
a img { border: none; }
img.alignleft  { float: left;  margin-right: 16px; }
img.alignright { float: right; margin-left: 16px; }
img.aligncenter { display: block; margin: 0 auto; }

hr { display: none; }
.clearfix { clear: both; }

/* ---------- News strip ---------- */
.newsbox {
  background:
    linear-gradient(180deg, #ffffff 0%, var(--esi-card-edge) 100%);
  border: 1px solid var(--esi-border-card);
  border-left: 4px solid var(--esi-sky-deep);
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 14.5px;
  margin: 0 0 22px 0;
  box-shadow: var(--esi-shadow-card);
}
.newsbox h1 { font-size: 21px; margin: 0 0 10px 0; }
.newsbox ul { margin: 4px 0 0 0; padding-left: 22px; }
.newsbox li { margin-bottom: 9px; font-size: 14.5px; line-height: 1.65; }
.newsbox li:last-child { margin-bottom: 0; }
.newsbox a { font-weight: 600; color: var(--esi-mid); }
.newsbox a:hover { color: var(--esi-cta); }

/* ---------- News section (homepage "Latest Innovations") ---------- */
.news-section {
  position: relative;
  padding: 22px 24px 26px 24px;
  border: 1px solid rgba(180,232,255,0.32);
  border-radius: 10px;
  background: rgba(255,255,255,0.045);
  box-shadow: 0 4px 22px rgba(0,0,0,0.20);
  margin: 0 0 26px 0;
}

.news-heading {
  color: #ffffff;
  margin: 0 0 14px 0;
  font-size: 22px;
  font-family: "Oswald", "Segoe UI", sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
}

.news-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px 18px 18px;
  background: linear-gradient(180deg, #ffffff 0%, var(--esi-card-edge) 100%);
  border: 1px solid var(--esi-border-card);
  border-radius: 8px;
  box-shadow: var(--esi-shadow-card);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s, box-shadow 0.18s;
}
.news-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--esi-shadow-card-hover);
  text-decoration: none;
  color: inherit;
}

.news-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--esi-mid-light) 0%, var(--esi-mid) 100%);
  color: #ffffff;
  border-radius: 9px;
  box-shadow:
    0 1px 1px rgba(255,255,255,0.18) inset,
    0 3px 8px rgba(12,45,74,0.22);
}
.news-icon svg {
  width: 24px;
  height: 24px;
}

.news-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-right: 30px; /* room for bulb in bottom-right corner */
}
.news-body h3 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-family: "Barlow Condensed", "Segoe UI", sans-serif;
  font-weight: 700;
  color: var(--esi-dark);
  line-height: 1.22;
  letter-spacing: 0.01em;
}
.news-body p {
  margin: 0 0 10px 0;
  font-size: 13.5px;
  color: var(--esi-text-muted);
  line-height: 1.5;
  flex: 1;
}
.news-cta {
  display: inline-block;
  padding: 6px 14px;
  background: linear-gradient(180deg, var(--esi-mid-light) 0%, var(--esi-mid) 100%);
  color: #ffffff;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 4px;
  font-family: "Barlow Condensed", "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 1px 1px rgba(0,0,0,0.20);
  box-shadow:
    0 1px 1px rgba(255,255,255,0.18) inset,
    0 2px 6px rgba(20,61,99,0.28);
  transition: filter 0.15s, transform 0.15s;
  margin-top: auto;
}
.news-card:hover .news-cta {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* Glowing yellow lightbulb in each card's bottom-right corner */
.news-bulb {
  position: absolute;
  right: 12px;
  bottom: 10px;
  width: 24px;
  height: 24px;
  color: #f5c531;
  filter: drop-shadow(0 0 6px rgba(245, 197, 49, 0.65));
  pointer-events: none;
}
.news-bulb svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}
.news-card:hover .news-bulb {
  color: #ffd84a;
  filter: drop-shadow(0 0 9px rgba(255, 216, 74, 0.85));
}

/* ---------- Wrapper ---------- */
#wrapper, #wrapper-bgtop, #wrapper-bgbtm {
  background: transparent;
  overflow: visible;
}

.container {
  width: auto;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* ============================================================
   TOP BAR — full-bleed dark navy authority
   Contains brand row (logo + motto) + nav row, separated by
   a thin brand-sky accent. Single unified piece.
   ============================================================ */

#menu-wrapper {
  /* Full-bleed dark bar. Note: do NOT set z-index here — dropotron
     pins its top-level dropdown to z-index:1 as a marker, and the
     dropdown is appended to <body>; we need it to render above this
     bar's footprint (otherwise the bar covers the dropdown's top). */
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  background:
    linear-gradient(180deg, var(--esi-dark) 0%, var(--esi-dark-deep) 100%);
  border: none;
  border-radius: 0;
  border-bottom: 2px solid var(--esi-sky);
  box-shadow: var(--esi-shadow-bar);
  position: relative;
  overflow: visible;
}

/* Single-row layout: brand block on left, nav on right */
.bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
  box-sizing: border-box;
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  flex-shrink: 0;
  text-decoration: none;
}
.brand-logo {
  display: block;
  height: 54px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}
.motto {
  margin: 0;
  font-family: "Barlow Condensed", "Oswald", "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.015em;
  color: var(--esi-sky);
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
  white-space: normal;
  max-width: 260px;
  line-height: 1.28;
}

/* Nav slot on the right of the same row */
#menu1 {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  padding: 0;
  width: auto;
  height: auto;
  float: none;
  box-sizing: border-box;
}

#menu {
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: "Oswald", "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--esi-text-on-dark);
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
}
#menu li {
  float: none;
  height: auto;
  padding: 0;
  position: relative;
}
#menu li > a,
#menu li > span {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--esi-text-on-dark);
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
/* Override global `b` color so menu labels render in white (b is used here purely as a wrapper) */
#menu b,
#menu b.arrow {
  color: inherit;
  font-weight: inherit;
}
#menu a:hover,
#menu li:hover > a,
#menu li:hover > span {
  background: rgba(180,232,255,0.14);
  color: var(--esi-sky);
  text-decoration: none;
}
#menu .arrow {
  background: none;
  padding-right: 16px;
  position: relative;
  cursor: pointer;
}
#menu .arrow::after {
  content: "";
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--esi-sky);
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-2px);
  opacity: 0.8;
}
#menu span {
  display: inline-block;
  height: auto;
  padding: 0;
  background: none;
}
#menu li.active > a,
#menu li.active > span,
#menu li.active b {
  background: rgba(180,232,255,0.18);
  color: var(--esi-sky);
}

/* ---------- Dropdown (dropotron) ---------- */
/* Note: dropotron treats z-index:1 as the marker for top-level menus and
   manages z-index itself — do NOT override it here. */
.dropotron {
  width: 260px !important;
  margin: 0;
  padding: 8px 0 !important;
  background: linear-gradient(180deg, #ffffff 0%, #f3f8fb 100%) !important;
  border: 1px solid var(--esi-border-card) !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 28px rgba(0,0,0,0.32) !important;
  line-height: normal;
  list-style: none;
  text-shadow: none;
  font-family: "Barlow Condensed", "Oswald", "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--esi-dark);
}
.dropotron .bgtop { background: transparent !important; }
.dropotron a {
  display: block;
  text-decoration: none;
  color: var(--esi-dark) !important;
  padding: 9px 18px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  border-radius: 0;
}
.dropotron li {
  height: auto !important;
  padding: 0 !important;
  color: var(--esi-dark);
}
.dropotron li:hover { background: transparent !important; }
.dropotron li:hover > a,
.dropotron li:hover > span {
  background: var(--esi-sky);
  color: var(--esi-dark) !important;
}
.dropotron span {
  display: block;
  margin: 0;
  padding: 9px 18px;
  background: transparent !important;
}
.dropotron li:hover > span { background-image: none !important; }

/* Hide unused legacy nodes */
#menu2 { display: none; }
#search { display: none; }

/* Hide the legacy empty #header (no longer used) */
#header { display: none; }

/* Hide #logo legacy block */
#logo { display: none; }

/* ============================================================
   PAGE AREA
   ============================================================ */
#page {
  overflow: visible;
  background: transparent;
  margin: 22px auto 0 auto;
  max-width: 1100px;
}
#page-bgtop, #page-bgbtm { background: transparent; }
#page-bgbtm { padding: 0; }
.homepage #page-bgbtm { padding: 0; }
#page-content { overflow: visible; padding: 0; }

/* ---------- Content / sidebar columns ---------- */
/* Float fallback (legacy browsers) */
#content {
  float: left;
  width: 70%;
  box-sizing: border-box;
  padding-right: 24px;
}
.two-column2 #content { float: right; padding-right: 0; padding-left: 24px; }
#wide-content { display: block; }
#sidebar { float: right; width: 28%; box-sizing: border-box; }
.two-column2 #sidebar { float: left; }

/* Modern flex layout for content + sidebar pair */
.bgbtm:has(> #content):has(> #sidebar) {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.bgbtm:has(> #content):has(> #sidebar) > #content {
  float: none;
  width: auto;
  flex: 1 1 0;
  min-width: 0;
  padding-right: 0;
  padding-left: 0;
}
.bgbtm:has(> #content):has(> #sidebar) > #sidebar {
  float: none;
  width: auto;
  flex: 0 0 300px;
}
.bgbtm:has(> #content):has(> #sidebar) > .clearfix { display: none; }

/* ============================================================
   CARDS (.box) — substantial, layered shadow
   ============================================================ */
.box {
  background:
    linear-gradient(180deg, #ffffff 0%, var(--esi-card-edge) 100%);
  border: 1px solid var(--esi-border-card);
  border-radius: 8px;
  box-shadow: var(--esi-shadow-card);
  margin: 0 0 22px 0;
  overflow: hidden;
}
.box .bgtop { background: transparent; }
.box .bgbtm {
  overflow: visible;
  background: transparent;
  padding: 28px 32px;
}

#box1, #box2, #box3, #box4, #box5, #box6 { overflow: visible; }
#box1 .bgbtm { background-image: none; padding: 30px 32px; }

#sidebar .box-style1 {
  background: linear-gradient(180deg, #ffffff 0%, var(--esi-card-edge) 100%);
  border: 1px solid var(--esi-border-card);
  border-radius: 8px;
  padding: 22px;
  box-shadow: var(--esi-shadow-card);
  margin-bottom: 22px;
}

/* Section titles */
.box-style1 .title {
  padding: 0 0 14px 0;
  letter-spacing: -0.014em;
  font-size: 26px;
  color: var(--esi-dark);
}
.box-style1 .subtitle {
  padding: 0 0 16px 0;
  letter-spacing: 0;
  font-size: 17px;
  color: var(--esi-text-muted);
  font-weight: 400;
  line-height: 1.45;
}

/* ============================================================
   HERO BANNER (homepage)
   ============================================================ */
#banner {
  position: relative;
  min-height: 320px;
  background:
    linear-gradient(115deg, rgba(8,34,56,0.88) 0%, rgba(12,45,74,0.55) 55%, rgba(12,45,74,0.18) 100%),
    url(../images/bg3_01.jpg);
  background-size: cover;
  background-position: center;
  padding: 48px 56px 52px 56px;
  border-radius: 10px;
  margin: 0 0 24px 0;
  box-shadow:
    0 2px 6px rgba(12,45,74,0.10),
    0 18px 40px rgba(12,45,74,0.20);
  box-sizing: border-box;
  overflow: hidden;
}
#banner::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--esi-sky) 50%, transparent 100%);
  opacity: 0.7;
}
#banner h2 {
  padding: 0 0 18px 0;
  letter-spacing: -0.022em;
  font-size: 40px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  max-width: 64%;
  line-height: 1.1;
}
ul.style2 {
  margin: 0; padding: 0;
  list-style: none;
  letter-spacing: 0;
  font-family: "Oswald", sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.55);
  max-width: 64%;
}
ul.style2 li {
  background: none;
  padding-left: 28px;
  padding-bottom: 10px;
  position: relative;
}
ul.style2 li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  color: var(--esi-sky);
  font-weight: 700;
  font-size: 18px;
}
ul.style2 a { text-decoration: none; color: #ffffff; }

/* ============================================================
   TWO COLUMNS (homepage featured pair) — two real cards now
   ============================================================ */
#two-columns {
  overflow: hidden;
  height: auto;
  margin-bottom: 24px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  gap: 22px;
}
#two-columns #colsA,
#two-columns #colsB {
  flex: 1 1 50%;
  width: auto;
  margin: 0;
  padding: 24px 26px;
  background: linear-gradient(180deg, #ffffff 0%, var(--esi-card-edge) 100%);
  border: 1px solid var(--esi-border-card);
  border-radius: 8px;
  box-shadow: var(--esi-shadow-card);
  box-sizing: border-box;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
#two-columns #colsA::before,
#two-columns #colsB::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--esi-sky) 0%, var(--esi-mid-light) 100%);
}
#two-columns #colsA:hover,
#two-columns #colsB:hover {
  transform: translateY(-2px);
  box-shadow: var(--esi-shadow-card-hover);
}
#two-columns .text1 {
  margin: 0;
  padding: 0 0 4px 0;
  letter-spacing: 0.04em;
  font-family: "Oswald", sans-serif;
  font-size: 13px;
  color: var(--esi-cta-deep);
  font-weight: 700;
  text-transform: uppercase;
}
#two-columns .text2 {
  margin-top: 0;
  padding: 0 0 10px 0;
  letter-spacing: -0.018em;
  font-family: "Oswald", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--esi-dark);
}

/* ============================================================
   THREE COLUMNS (homepage trio)
   ============================================================ */
#three-columns {
  overflow: hidden;
  margin: 0 0 22px 0;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
#three-columns #column1,
#three-columns #column2,
#three-columns #column3 {
  flex: 1 1 28%;
  min-width: 240px;
  float: none;
  width: auto;
  margin: 0;
  background: linear-gradient(180deg, #ffffff 0%, var(--esi-card-edge) 100%);
  border: 1px solid var(--esi-border-card);
  border-radius: 8px;
  padding: 22px;
  box-shadow: var(--esi-shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}
#three-columns #column1:hover,
#three-columns #column2:hover,
#three-columns #column3:hover {
  transform: translateY(-3px);
  box-shadow: var(--esi-shadow-card-hover);
}
#three-columns .title {
  font-size: 20px;
  padding: 0 0 14px 0;
  letter-spacing: -0.005em;
  line-height: 1.25;
}

/* ============================================================
   FOOTER — mirrors header navy, anchors the page
   ============================================================ */
#footer-wrapper-bg {
  background:
    linear-gradient(180deg, var(--esi-dark) 0%, var(--esi-dark-deep) 100%);
  margin-top: 40px;
  color: var(--esi-text-on-dark-muted);
  border-top: 2px solid var(--esi-sky);
}
#footer-wrapper-bgtop { background: transparent; }
#footer-wrapper-bgbtm {
  overflow: hidden;
  padding: 48px 24px 28px 24px;
  background: transparent;
  color: var(--esi-text-on-dark-muted);
  max-width: 1100px;
  margin: 0 auto;
  box-sizing: border-box;
}
#footer-wrapper-bgbtm a { color: var(--esi-sky); }
#footer-wrapper-bgbtm a:hover { color: #ffffff; }
#footer-content h2 {
  padding: 0 0 14px 0;
  letter-spacing: 0;
  font-size: 22px;
  color: #ffffff;
}
#footer-content p { color: var(--esi-text-on-dark-muted); }
#footer-content #colA {
  float: left; width: 60%;
  padding-right: 30px;
  box-sizing: border-box;
}
#footer-content #colB { float: right; width: 38%; }

#footer {
  height: auto;
  padding: 22px 0 20px 0;
  background: var(--esi-dark-deep);
  border-top: 1px solid rgba(255,255,255,0.06);
}
#footer p {
  margin: 0;
  padding: 0;
  text-align: center;
  color: rgba(255,255,255,0.45);
  font-size: 13px;
}

/* ============================================================
   List styles
   ============================================================ */
ul.style1 {
  margin: 0; padding: 0;
  list-style: none;
  text-align: center;
}
ul.style1 li {
  padding: 10px 0;
  border-top: 1px solid var(--esi-border-soft);
}
ul.style1 .first { padding-top: 0; border: none; }
ul.style1 a {
  font-size: 14.5px;
  color: var(--esi-mid);
  text-decoration: none;
  display: block;
  font-weight: 500;
}
ul.style1 a:hover { color: var(--esi-cta); }
ul.style1 img {
  display: block;
  margin: 0 auto 6px auto;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(12,45,74,0.18);
}

ul.style3 {
  margin: 0; padding: 0;
  list-style: none;
}
ul.style3 li {
  background: none;
  padding: 14px 0 14px 28px;
  position: relative;
  font-size: 14.5px;
  font-weight: 400;
  color: var(--esi-text);
  border-bottom: 1px solid var(--esi-border-soft);
  letter-spacing: 0;
}
ul.style3 li:last-child { border-bottom: none; }
ul.style3 li::before {
  content: "▸";
  color: var(--esi-mid-light);
  position: absolute;
  left: 6px; top: 13px;
  font-size: 16px;
}
ul.style3 a { color: var(--esi-mid); font-weight: 600; }
ul.style3 a:hover { color: var(--esi-cta); }
ul.style3 span { color: var(--esi-cta-deep); }

ul.style4 {
  margin: 0; padding: 0;
  list-style: none;
}
ul.style4 li {
  padding: 10px 0;
  border-top: 1px solid var(--esi-border-soft);
}
ul.style4 .first { padding-top: 0; border: none; }
ul.style4 a { font-size: 14.5px; color: var(--esi-mid); }
ul.style4 span {
  font-style: italic;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--esi-mid);
}

/* ============================================================
   Image border styles — kept dimensions, added depth
   ============================================================ */
.image-style1 {
  position: relative;
  width: 260px;
  height: 98px;
  margin: 0 0 18px 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(12,45,74,0.10),
    0 4px 14px rgba(12,45,74,0.18);
}
.image-style1 span {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(180deg, transparent 50%, rgba(8,34,56,0.28) 100%);
  pointer-events: none;
}
.image-style1 img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.image-style1a span { background-image: none; }

.image-style2 {
  position: relative;
  float: left;
  width: 64px; height: 64px;
  margin: 4px 20px 8px 0;
}
.image-style2 span { display: none; }
.image-style2 img {
  position: absolute;
  top: 0; left: 0;
  width: 64px; height: 64px;
  border-radius: 5px;
  box-shadow:
    0 1px 2px rgba(12,45,74,0.10),
    0 4px 10px rgba(12,45,74,0.18);
}
.image-style2a span { display: none; }

.image-style3 {
  position: relative;
  float: left;
  width: 312px; height: 192px;
  margin: 4px 24px 8px 0;
}
.image-style3 span { display: none; }
.image-style3 img {
  position: absolute;
  top: 0; left: 0;
  border-radius: 8px;
  box-shadow:
    0 1px 3px rgba(12,45,74,0.12),
    0 8px 22px rgba(12,45,74,0.20);
}
.image-style3a span { display: none; }

.image-style4 {
  position: relative;
  float: left;
  width: 200px; height: 70px;
  margin: 4px 24px 8px 0;
}
.image-style4 span { display: none; }
.image-style4 img { position: absolute; top: 0; left: 0; }

.image-style5 {
  position: relative;
  float: right;
  width: 260px; height: 193px;
  margin: 4px 0 4px 24px;
}

/* ============================================================
   CTA buttons — bright sky-blue brand colour, substantial
   ============================================================ */
.link-style1 a {
  display: inline-block;
  height: auto; width: auto;
  min-width: 200px;
  margin: 18px 8px 6px 0;
  padding: 13px 30px;
  background:
    linear-gradient(180deg, #e0f4ff 0%, var(--esi-sky) 60%, var(--esi-sky-deep) 100%);
  line-height: normal;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(255,255,255,0.45);
  font-size: 17px;
  font-weight: 700;
  font-family: "Oswald", "Segoe UI", sans-serif;
  color: var(--esi-dark);
  border: 1px solid rgba(12,45,74,0.20);
  border-radius: 6px;
  box-shadow:
    0 1px 1px rgba(255,255,255,0.55) inset,
    0 4px 14px rgba(180,232,255,0.35),
    0 2px 6px rgba(0,0,0,0.18);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
  box-sizing: border-box;
}
.link-style1 a:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow:
    0 1px 1px rgba(255,255,255,0.65) inset,
    0 6px 20px rgba(180,232,255,0.50),
    0 3px 10px rgba(0,0,0,0.22);
  color: var(--esi-dark);
  text-decoration: none;
}

.link-style2,
.link-style2a {
  display: inline-block;
  height: auto;
  background: none;
}
.link-style2 a,
.link-style2a a {
  display: inline-block;
  height: auto;
  background: none;
  text-decoration: none;
}
.link-style2 span,
.link-style2a span {
  display: inline-block;
  height: auto;
  padding: 9px 20px;
  background: linear-gradient(180deg, var(--esi-mid-light) 0%, var(--esi-mid) 100%);
  line-height: normal;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 1px 1px rgba(0,0,0,0.22);
  font-size: 15px;
  font-weight: 600;
  font-family: "Oswald", sans-serif;
  color: #ffffff;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 5px;
  box-shadow:
    0 1px 1px rgba(255,255,255,0.18) inset,
    0 3px 10px rgba(20,61,99,0.28);
  transition: filter 0.15s, transform 0.15s;
}
.link-style2 a:hover span,
.link-style2a a:hover span {
  filter: brightness(1.07);
  transform: translateY(-1px);
  color: #ffffff;
}

/* ============================================================
   Misc legacy
   ============================================================ */
#right_of_the_pic_col { margin: 0 0 0 350px; }
#spacer { margin: 6px 0 0 0; clear: both; }

.CellGrey   { background-color: #eef4f8; }
.CellCentre { text-align: center; }

#highlighted {
  color: var(--esi-cta-deep);
  font-size: 16px;
  font-weight: 700;
  background:
    linear-gradient(180deg, #fff7f1 0%, #ffe5d4 100%);
  border: 1px solid #f5cdb2;
  border-left: 4px solid var(--esi-cta);
  border-radius: 6px;
  padding: 14px 18px;
  margin: 14px 0;
}

/* ---------- Forms ---------- */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  font-family: inherit;
  font-size: 14.5px;
  color: var(--esi-text);
  background: #ffffff;
  border: 1px solid var(--esi-border);
  border-radius: 5px;
  padding: 9px 11px;
  margin: 0;
  box-sizing: border-box;
  max-width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
  border-color: var(--esi-mid-light);
  box-shadow: 0 0 0 3px rgba(47,122,171,0.22);
  outline: none;
}
textarea { font-family: inherit; }

input[type="submit"],
button {
  display: inline-block;
  background:
    linear-gradient(180deg, #e0f4ff 0%, var(--esi-sky) 60%, var(--esi-sky-deep) 100%);
  color: var(--esi-dark);
  border: 1px solid rgba(12,45,74,0.20);
  border-radius: 6px;
  padding: 12px 28px;
  font-family: "Oswald", "Segoe UI", sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-shadow: 0 1px 0 rgba(255,255,255,0.45);
  box-shadow:
    0 1px 1px rgba(255,255,255,0.55) inset,
    0 4px 14px rgba(180,232,255,0.35),
    0 2px 6px rgba(0,0,0,0.18);
  transition: transform 0.15s, filter 0.15s, box-shadow 0.15s;
}
input[type="submit"]:hover, button:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow:
    0 1px 1px rgba(255,255,255,0.65) inset,
    0 6px 20px rgba(180,232,255,0.50),
    0 3px 10px rgba(0,0,0,0.22);
}

table { border-collapse: collapse; }
table.newsbox { display: table; }

/* ============================================================
   Spry Tabbed Panels — modern override
   ============================================================ */
.TabbedPanels {
  overflow: visible;
  margin: 22px 0 0 0;
  padding: 0;
  clear: both;
  width: 100%;
}
.TabbedPanelsTabGroup {
  margin: 0;
  padding: 0;
  font-size: 15px;
  border-bottom: 2px solid var(--esi-border-card);
  display: flex;
  flex-wrap: wrap;
}
.TabbedPanelsTab {
  position: relative;
  top: 0;
  float: none;
  padding: 11px 20px;
  margin: 0 4px -2px 0;
  font: 600 15px/1.2 "Oswald", "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #f4f8fb 0%, #e6eef4 100%);
  color: var(--esi-dark);
  list-style: none;
  border: 1px solid var(--esi-border-card);
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.TabbedPanelsTab:hover {
  background: linear-gradient(180deg, var(--esi-sky-soft) 0%, var(--esi-sky) 100%);
}
.TabbedPanelsTabSelected,
.TabbedPanelsTab.TabbedPanelsTabSelected {
  background: #ffffff;
  color: var(--esi-dark);
  border-bottom-color: #ffffff;
}
.TabbedPanelsTabHover { background: linear-gradient(180deg, var(--esi-sky-soft) 0%, var(--esi-sky) 100%); }
.TabbedPanelsContentGroup {
  clear: both;
  border: 1px solid var(--esi-border-card);
  border-top: none;
  background: #ffffff;
  border-radius: 0 6px 6px 6px;
}
.TabbedPanelsContent {
  overflow: hidden;
  padding: 22px 24px;
  line-height: 1.7;
}
.TabbedPanelsContentVisible { display: block; }

/* ============================================================
   Spry CollapsiblePanel
   ============================================================ */
.CollapsiblePanel {
  margin: 0 0 10px 0;
  padding: 0;
  border-left: 0;
  background: #ffffff;
  border: 1px solid var(--esi-border-card);
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.15s;
}
.CollapsiblePanel:hover { box-shadow: var(--esi-shadow-card); }
.CollapsiblePanelTab {
  background: linear-gradient(180deg, #f6fafd 0%, #e9f0f5 100%);
  color: var(--esi-dark);
  font: 600 16px/1.2 "Oswald", "Segoe UI", sans-serif;
  padding: 13px 20px;
  border-bottom: none;
  margin: 0;
  cursor: pointer;
  outline: none;
  user-select: none;
}
.CollapsiblePanelOpen .CollapsiblePanelTab {
  background: linear-gradient(180deg, var(--esi-sky-soft) 0%, var(--esi-sky) 100%);
  color: var(--esi-dark);
}
.CollapsiblePanelTabHover,
.CollapsiblePanelOpen .CollapsiblePanelTabHover {
  background: linear-gradient(180deg, var(--esi-sky-soft) 0%, var(--esi-sky) 100%);
}
.CollapsiblePanelContent {
  margin: 0;
  padding: 15px 20px;
  font-size: 14.5px;
  line-height: 1.7;
  background: #ffffff;
  border-top: 1px solid var(--esi-border-soft);
}
.CollapsiblePanelFocused .CollapsiblePanelTab {
  background: linear-gradient(180deg, var(--esi-sky-soft) 0%, var(--esi-sky) 100%);
}

/* ============================================================
   Spry Accordion
   ============================================================ */
.Accordion {
  border: 1px solid var(--esi-border-card);
  border-radius: 6px;
  overflow: hidden;
  margin: 0 0 18px 0;
  background: #ffffff;
  box-shadow: var(--esi-shadow-card);
}
.AccordionPanel { margin: 0; padding: 0; }
.AccordionPanelTab {
  background: linear-gradient(180deg, #f6fafd 0%, #e9f0f5 100%);
  border-bottom: 1px solid var(--esi-border-soft);
  margin: 0;
  padding: 13px 20px;
  cursor: pointer;
  user-select: none;
  font: 600 16px/1.2 "Oswald", "Segoe UI", sans-serif;
  color: var(--esi-dark);
}
.AccordionPanelOpen .AccordionPanelTab {
  background: linear-gradient(180deg, var(--esi-sky-soft) 0%, var(--esi-sky) 100%);
  color: var(--esi-dark);
}
.AccordionPanelTabHover,
.AccordionPanelOpen .AccordionPanelTabHover {
  background: linear-gradient(180deg, var(--esi-sky-soft) 0%, var(--esi-sky) 100%);
}
.AccordionPanelContent {
  overflow: auto;
  margin: 0;
  padding: 15px 20px;
  background: #ffffff;
  line-height: 1.7;
  height: auto !important;
}
.AccordionFocused .AccordionPanelTab {
  background: linear-gradient(180deg, var(--esi-sky-soft) 0%, var(--esi-sky) 100%);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .motto { font-size: 14px; max-width: 220px; }
  #menu { font-size: 15px; }
  #menu li > a, #menu li > span { padding: 9px 10px; }
  .bar-inner { gap: 18px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .container { padding: 0 14px; }

  .bar-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 14px 16px 10px 16px;
  }
  .brand { align-items: center; }
  .brand-logo { height: 48px; }
  .motto { text-align: center; font-size: 14px; white-space: normal; max-width: none; }
  #menu1 { justify-content: center; width: 100%; }
  #menu { justify-content: center; }
  #menu li > a, #menu li > span { padding: 8px 10px; font-size: 14.5px; }

  .box .bgbtm { padding: 22px 18px; }
  #banner {
    height: auto;
    padding: 32px 24px;
  }
  #banner h2 { font-size: 28px; max-width: 100%; }
  ul.style2 { max-width: 100%; font-size: 15.5px; }
  #content, #sidebar { float: none; width: 100%; padding: 0; }
  .bgbtm:has(> #content):has(> #sidebar) {
    flex-direction: column;
    gap: 18px;
  }
  .bgbtm:has(> #content):has(> #sidebar) > #content,
  .bgbtm:has(> #content):has(> #sidebar) > #sidebar {
    flex: 1 1 auto;
    width: 100%;
  }
  #two-columns { flex-direction: column; }
  #three-columns { flex-direction: column; }
  .news-grid { grid-template-columns: 1fr; }
  #footer-content #colA, #footer-content #colB {
    float: none; width: 100%; padding: 0 0 18px 0;
  }
  #right_of_the_pic_col { margin-left: 0; }
  .image-style3 {
    float: none;
    width: 100%; max-width: 312px;
    height: auto;
    margin: 0 auto 16px auto;
    aspect-ratio: 312 / 192;
  }
  .image-style3 img { position: static; max-width: 100%; height: auto; }
  table { display: block; overflow-x: auto; }
}
