/* =========================================================
   DA GROUP — GLOBAL MODERN STYLESHEET
   Compatible with the existing table-based page structure.
   ========================================================= */

/* ---------- Reset & global defaults ---------- */
* {
  box-sizing: border-box;
}

html {
  background: #eef3f0;
}

body {
  margin: 0 !important;
  padding: 32px 16px 44px !important;
  min-width: 320px;
  background:
    radial-gradient(circle at top right, rgba(112, 139, 84, 0.14), transparent 30%),
    linear-gradient(135deg, #f5f7f3 0%, #e7ece5 100%) !important;
  color: #2f352b;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
}

a {
  color: #596f3f;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #25351c;
  text-decoration: none;
}

/* ---------- Main 770px site wrapper ---------- */
body > table {
  width: min(100%, 1040px) !important;
  margin: 0 auto !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

body > table > tbody > tr > td:first-child,
body > table > tbody > tr > td:last-child {
  display: none;
}

body > table > tbody > tr > td[width="770"] {
  width: 100% !important;
  display: block;
  padding: 0 !important;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #dbe3d5;
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(39, 54, 29, 0.12);
}

/* =========================================================
   HEADER AND MAIN NAVIGATION
   Replaces blurry image navigation with readable text links.
   ========================================================= */

body > table > tbody > tr > td[width="770"] > table:first-child {
  width: 100% !important;
  min-height: 112px;
  background: #26371e;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

body > table > tbody > tr > td[width="770"] > table:first-child > tbody > tr:first-child > td:first-child {
  width: 110px !important;
  background: #9daf74;
}

body > table > tbody > tr > td[width="770"] > table:first-child > tbody > tr:first-child > td:first-child img {
  width: 58px !important;
  height: auto !important;
  padding: 3px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

/* Remove old transparent layout images from the header */
body > table > tbody > tr > td[width="770"] > table:first-child img[src*="clear.gif"] {
  display: none !important;
}

/* Keep the header spacing rows without relying on old clear.gif images */
body > table > tbody > tr > td[width="770"] > table:first-child > tbody > tr:first-child,
body > table > tbody > tr > td[width="770"] > table:first-child > tbody > tr:last-child {
  height: 22px;
}

/* Menu row */
body > table > tbody > tr > td[width="770"] > table:first-child > tbody > tr:nth-child(2) {
  height: 62px;
}

/* Hide the unnecessary empty spacer cells in the navigation */
body > table > tbody > tr > td[width="770"] > table:first-child > tbody > tr:nth-child(2) > td:nth-child(2),
body > table > tbody > tr > td[width="770"] > table:first-child > tbody > tr:nth-child(2) > td:last-child {
  display: none !important;
}

/* Reset all menu cells */
body > table > tbody > tr > td[width="770"] > table:first-child > tbody > tr:nth-child(2) > td {
  width: auto !important;
  padding: 5px 4px !important;
  text-align: center !important;
  vertical-align: middle !important;
}

body > table > tbody > tr > td[width="770"] > table:first-child > tbody > tr:nth-child(2) > td:first-child {
  padding-left: 24px !important;
}

body > table > tbody > tr > td[width="770"] > table:first-child > tbody > tr:nth-child(2) > td:nth-child(8) {
  padding-right: 24px !important;
}

/* Hide old navigation image labels only */
body > table > tbody > tr > td[width="770"] > table:first-child > tbody > tr:nth-child(2) > td a img {
  display: none !important;
}

/* Build clean, readable navigation links */
body > table > tbody > tr > td[width="770"] > table:first-child > tbody > tr:nth-child(2) > td a {
  display: inline-flex;
  min-width: 72px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #ffffff !important;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px !important;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
  text-shadow: none;
  white-space: nowrap;
}

/* Restore each menu label as accessible, readable text */
body > table > tbody > tr > td[width="770"] > table:first-child > tbody > tr:nth-child(2) > td:nth-child(1) a::after {
  content: "Home";
}

body > table > tbody > tr > td[width="770"] > table:first-child > tbody > tr:nth-child(2) > td:nth-child(3) a::after {
  content: "About";
}

body > table > tbody > tr > td[width="770"] > table:first-child > tbody > tr:nth-child(2) > td:nth-child(4) a::after {
  content: "News";
}

body > table > tbody > tr > td[width="770"] > table:first-child > tbody > tr:nth-child(2) > td:nth-child(5) a::after {
  content: "Products";
}

body > table > tbody > tr > td[width="770"] > table:first-child > tbody > tr:nth-child(2) > td:nth-child(6) a::after {
  content: "Services";
}

body > table > tbody > tr > td[width="770"] > table:first-child > tbody > tr:nth-child(2) > td:nth-child(7) a::after {
  content: "Investors";
}

body > table > tbody > tr > td[width="770"] > table:first-child > tbody > tr:nth-child(2) > td:nth-child(8) a::after {
  content: "Contact";
}

body > table > tbody > tr > td[width="770"] > table:first-child > tbody > tr:nth-child(2) > td a:hover,
body > table > tbody > tr > td[width="770"] > table:first-child > tbody > tr:nth-child(2) > td a:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff !important;
  outline: none;
}

/* Highlight the active Home link on the homepage */
body > table > tbody > tr > td[width="770"] > table:first-child > tbody > tr:nth-child(2) > td:first-child a {
  background: #9daf74;
  border-color: #b8ca91;
  color: #203018 !important;
}

/* ---------- Main page shell ---------- */
body > table > tbody > tr > td[width="770"] > table:not(:first-child) {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

body > table > tbody > tr > td[width="770"] > table:not(:first-child) > tbody > tr > td:first-child {
  width: 110px !important;
  background: #f3f6f0;
  border-right: 1px solid #dfe7d9;
}

body > table > tbody > tr > td[width="770"] > table:not(:first-child) > tbody > tr > td:first-child img[src*="txt-logo"] {
  width: 28px !important;
  height: auto !important;
  margin-top: 30px;
}

body > table > tbody > tr > td[width="770"] > table:not(:first-child) > tbody > tr > td:first-child img[src*="vert-strapline"] {
  opacity: 0.62;
}

body > table > tbody > tr > td[width="770"] > table:not(:first-child) > tbody > tr > td[bgcolor="#e5e5e5"] {
  width: 1px !important;
  background: #dfe7d9 !important;
}

/* ---------- Sidebar ---------- */
body > table > tbody > tr > td[width="770"] > table:not(:first-child) > tbody > tr > td[width="154"] {
  width: 210px !important;
  padding: 28px 20px !important;
  background: #f3f6f0 !important;
  vertical-align: top;
}

body > table > tbody > tr > td[width="770"] > table:not(:first-child) > tbody > tr > td[width="154"] table {
  width: 100% !important;
  height: auto !important;
  background: transparent !important;
}

body > table > tbody > tr > td[width="770"] > table:not(:first-child) > tbody > tr > td[width="154"] td {
  background: transparent !important;
}

body > table > tbody > tr > td[width="770"] > table:not(:first-child) > tbody > tr > td[width="154"] img[src*="clear.gif"] {
  display: none;
}

body > table > tbody > tr > td[width="770"] > table:not(:first-child) > tbody > tr > td[width="154"] .txt10pxblackBold {
  display: block;
  margin: 18px 0 7px;
  color: #2b3c21;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

body > table > tbody > tr > td[width="770"] > table:not(:first-child) > tbody > tr > td[width="154"] .txt10pxblackBold:first-of-type {
  margin-top: 0;
}

body > table > tbody > tr > td[width="770"] > table:not(:first-child) > tbody > tr > td[width="154"] .txt10pxgrey,
body > table > tbody > tr > td[width="770"] > table:not(:first-child) > tbody > tr > td[width="154"] .txt10pxgrey a {
  color: #64705d;
  font-size: 12px;
  line-height: 1.8;
}

body > table > tbody > tr > td[width="770"] > table:not(:first-child) > tbody > tr > td[width="154"] .txt10pxgrey a:hover {
  color: #456132;
}

/* ---------- Content area ---------- */
body > table > tbody > tr > td[width="770"] > table:not(:first-child) > tbody > tr > td:not(:first-child):not([width="154"]):not([bgcolor="#e5e5e5"]) {
  padding: 38px 42px !important;
  background: #ffffff;
  vertical-align: top;
}

body > table > tbody > tr > td[width="770"] > table:not(:first-child) p {
  margin: 0 0 16px;
  color: #515a4d;
  font-size: 13px;
  line-height: 1.75;
  text-align: justify;
}

body > table > tbody > tr > td[width="770"] > table:not(:first-child) .txt10pxblackBold,
body > table > tbody > tr > td[width="770"] > table:not(:first-child) .txt10pxgreyBold {
  color: #2b3c21;
  font-weight: bold;
}

body > table > tbody > tr > td[width="770"] > table:not(:first-child) .txt10pxred,
body > table > tbody > tr > td[width="770"] > table:not(:first-child) .txt10pxredBold {
  color: #668247;
}

body > table > tbody > tr > td[width="770"] > table:not(:first-child) .txt10pxredBold {
  font-weight: bold;
}

body > table > tbody > tr > td[width="770"] > table:not(:first-child) .txt10pxgrey,
body > table > tbody > tr > td[width="770"] > table:not(:first-child) .txt9pxgrey {
  color: #687263;
}

body > table > tbody > tr > td[width="770"] > table:not(:first-child) img:not([src*="clear.gif"]) {
  border-radius: 10px;
}

body > table > tbody > tr > td[width="770"] > table:not(:first-child) img[src*="mainleft"],
body > table > tbody > tr > td[width="770"] > table:not(:first-child) img[src*="mainright"] {
  box-shadow: 0 10px 24px rgba(41, 59, 31, 0.14);
}

/* ---------- Latest News ---------- */
body > table > tbody > tr > td[width="770"] table[bgcolor="#7F7F7F"],
body > table > tbody > tr > td[width="770"] td[bgcolor="#7F7F7F"] {
  background: #2d4023 !important;
  border-radius: 12px;
  overflow: hidden;
}

body > table > tbody > tr > td[width="770"] table[bgcolor="#7F7F7F"] td,
body > table > tbody > tr > td[width="770"] td[bgcolor="#7F7F7F"] td {
  background: transparent !important;
}

.txt10pxwhiteBold {
  color: #ffffff;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.04em;
}

.txt10pxwhite,
.txt10pxwhite a {
  color: #edf4e8;
  font-size: 11px;
  line-height: 1.65;
}

.txt10pxwhite a:hover {
  color: #c9e19a;
}

/* ---------- Footer ---------- */
body > table > tbody > tr > td[width="770"] > table:last-child {
  background: #26371e;
  color: #dbe7d3;
}

body > table > tbody > tr > td[width="770"] > table:last-child td {
  background: #26371e !important;
  color: #dbe7d3 !important;
}

body > table > tbody > tr > td[width="770"] > table:last-child .txt9pxgrey,
body > table > tbody > tr > td[width="770"] > table:last-child .txt10pxgrey {
  color: #dbe7d3 !important;
}

body > table > tbody > tr > td[width="770"] > table:last-child a {
  color: #ffffff;
  font-weight: bold;
}

body > table > tbody > tr > td[width="770"] > table:last-child a:hover {
  color: #c9e19a;
}

/* ---------- Responsive layout ---------- */
@media screen and (max-width: 760px) {
  body {
    padding: 12px !important;
  }

  body > table > tbody > tr > td[width="770"] {
    border-radius: 12px;
  }

  body > table > tbody > tr > td[width="770"] > table:first-child {
    min-height: 148px;
  }

  body > table > tbody > tr > td[width="770"] > table:first-child > tbody > tr:first-child > td:first-child {
    width: 72px !important;
  }

  body > table > tbody > tr > td[width="770"] > table:first-child > tbody > tr:first-child > td:first-child img {
    width: 44px !important;
  }

  body > table > tbody > tr > td:first-child > tbody > tr:nth-child(2) {
    height: auto;
  }

  body > table > tbody > tr > td[width="770"] > table:first-child > tbody > tr:nth-child(2) > td {
    display: inline-block;
    padding: 3px !important;
  }

  body > table > tbody > tr > td[width="770"] > table:first-child > tbody > tr:nth-child(2) > td:first-child,
  body > table > tbody > tr > td[width="770"] > table:first-child > tbody > tr:nth-child(2) > td:nth-child(8) {
    padding: 3px !important;
  }

  body > table > tbody > tr > td[width="770"] > table:first-child > tbody > tr:nth-child(2) > td a {
    min-width: 0;
    min-height: 34px;
    padding: 7px 8px;
    font-size: 12px !important;
  }

  body > table > tbody > tr > td[width="770"] > table:not(:first-child) > tbody > tr > td:first-child {
    display: none;
  }

  body > table > tbody > tr > td[width="770"] > table:not(:first-child) > tbody > tr > td[width="154"] {
    display: block;
    width: 100% !important;
    padding: 20px 24px !important;
    border-bottom: 1px solid #dfe7d9;
  }

  body > table > tbody > tr > td[width="770"] > table:not(:first-child) > tbody > tr > td:not(:first-child):not([width="154"]):not([bgcolor="#e5e5e5"]) {
    display: block;
    width: 100% !important;
    padding: 28px 24px !important;
  }

  body > table > tbody > tr > td[width="770"] > table:not(:first-child) img[src*="mainleft"],
  body > table > tbody > tr > td[width="770"] > table:not(:first-child) img[src*="mainright"] {
    width: 100% !important;
    height: auto !important;
    margin: 8px 0;
  }
}
