* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  letter-spacing: 1pt;
  line-height: 12pt;
  font-size: 12px;
  color: #000000;
  font-family: Arial, helvetica, sans-serif;
  background: url(/image/system/bg.png) repeat-x #370001;
}

img {
  margin: 0;
  max-width: 100%;
  height: auto;
}

a:link, a:visited {
  color: #1683cd;
  text-decoration: none;
}

a:hover {
  color: #cc6666;
}

h1 {
  font-weight: bold;
  font-size: 20px;
  margin: 0;
  padding: 0;
  color: #006400;
}

h2 {
  font-weight: bold;
  font-size: 14px;
  margin: 0;
  color: #2b459b;
  padding: 0;
  padding-top: 5px;
}

h3 {
  font-weight: bold;
  font-size: 13px;
  margin: 0;
  padding-top: 5px;
  color: #FF9900;
}

/* Main Wrapper */
.page-center {
  text-align: center;
}

.main-table {
  width: 980px;
  margin: 0 auto;
  padding: 0;
  border-collapse: collapse;
  display: inline-block;
  text-align: left;
}

/* Header */
.header {
  background: url(/image/system/top-bg.png) repeat-x left top;
  min-height: 95px;
  width: 100%;
}

.header-container {
  width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 95px;
  padding: 0;
}

.logo {
  width: 350px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.logo h1 {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.logo img {
  height: 70px;
  display: block;
}

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex: 1;
  max-width: 630px;
}

.social-icons {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.social-icons a {
  display: block;
}



/* Navigation */
.nav-desktop {
  display: flex;
  align-items: center;
  height: 40px;
}

.nav-desktop a {
  color: #ffffff;
  font-size: 10pt;
  font-weight: bold;
  padding: 0 20px;
  background: url(/image/system/menu-top-bg.png) repeat-x left top;
  height: 40px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.nav-separator {
  width: 3px;
  height: 40px;
  background: url(/image/system/horizontal2.png);
}

.nav-separator.first {
  width: 2px;
  background: url(/image/system/horizontal1.png);
}

.nav-separator.last {
  width: 2px;
  background: url(/image/system/menu-top-bg.png) repeat-x left top;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: #4F0000;
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 18px;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.mobile-nav {
  display: none;
  background: #4F0000;
}

.mobile-nav a {
  display: block;
  color: white;
  padding: 12px 20px;
  border-bottom: 1px solid #6F0000;
  font-weight: bold;
}

.mobile-nav .submenu {
  display: none;
  background: #5F0000;
}

.mobile-nav .submenu a {
  padding-left: 40px;
  font-weight: normal;
}

.mobile-nav .has-submenu > a::after {
  content: '\25BC';
  float: right;
  font-size: 10px
}

.mobile-nav .has-submenu.open > a::after {
  content: '\25B2';
}

.mobile-nav .has-submenu.open .submenu {
  display: block;
}

/* Banner */
.banner {
  text-align: center;
  background: #000;
}

.banner img {
  width: 980px;
  height: 240px;
  display: block;
  object-fit: cover;
}

/* Content Area */
.content-row {
  background: #ffffff;
  display: flex;
  width: 100%;
}

.content-inner {
  display: flex;
  width: 100%;
}

/* Left Sidebar */
.left-sidebar {
  width: 220px;
  flex-shrink: 0;
  padding-top: 10px;
}

.sidebar-box {
  background: url(/image/system/bg-menu-left2.png) repeat-y left top;
  border-top: 9px solid transparent;
  border-image: url(/image/system/bg-menu-left1.png) 9 0 0 0;
  padding: 10px;
  width: 220px;
}

.sidebar-divider {
  width: 200px;
  height: 2px;
  background: url(/image/system/horizontal4.png);
  margin: 7px auto;
}

.sidebar-title {
  text-align: center;
  color: #FFFF00;
  font-size: 12pt;
  font-weight: bold;
  margin: 0;
}

.sidebar-text {
  color: #FFFFFF;
  font-family: Verdana;
  font-size: 12px;
  font-style: italic;
  text-align: justify;
  margin: 10px 0;
}

.sidebar-box iframe {
  width: 100%;
  height: 210px;
  border: 0;
}

.sidebar-box img {
  width: 100%;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 10px 8px 0 8px;
}

.content-box {
  background: url(/image/system/menu-home-bg2.png) repeat-y left top;
  padding: 0;
  width: 540px;
}

.content-box-header {
  background: url(/image/system/menu-home-bg1.png) no-repeat left top;
  padding: 10px;
  margin: 0;
}

.content-box-header h1 {
  font-size: 12pt;
  color: #4F0000;
  margin: 0;
  padding: 0;
}

.content-box-body {
  padding: 5px 7px;
  background: url(/image/system/menu-home-bg2.png) repeat-y left top;
}

.content-bottom {
  background: url(/image/system/menu-home-bg3.png) no-repeat left top;
  height: 27px;
  text-align: right;
  padding-right: 10px;
  line-height: 27px;
  width: 540px;
}

.content-bottom a {
  color: #ffffff;
  font-weight: bold;
}

/* Right Sidebar */
.right-sidebar {
  width: 200px;
  flex-shrink: 0;
  text-align: center;
  padding-top: 10px;
}

.right-sidebar embed {
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

/* Tagline */
.tagline {
  text-align: center;
  padding: 10px;
  background: #ffffff;
}

/* Footer */
.footer {
  background: url(/image/system/bottom-bg.jpg) no-repeat left top;
  background-size: cover;
  min-height: 150px;
  padding: 20px;
  text-align: center;
  color: #FFFFFF;
}

.footer a {
  color: #FFFFFF;
  font-weight: bold;
}

.footer-links {
  font-family: Verdana;
  font-size: 13px;
  margin-bottom: 10px;
}

.footer hr {
  color: #959595;
  border: 2px solid #959595;
  margin: 10px 0;
}

.footer-info {
  font-family: Verdana;
  font-size: 11px;
  color: #959595;
  line-height: 1.6;
}

/* Responsive Table Styles */
.responsive-table {
  width: 100%;
  border-collapse: collapse;
}

.responsive-table td {
  width: 50%;
  vertical-align: top;
  padding: 10px;
}

.section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-title {
  font-weight: bold;
  font-size: 18px;
  text-align: center;
  padding: 8px;
}

.section-image {
  text-align: center;
}

.section-image img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.section-links {
  padding: 0 10px;
  text-align: left;
  font-size: 15px;
}

.section-links DIV {
  text-align: left;
}

/* Responsive Styles */
@media (max-width: 980px) {
  .main-table {
    width: 100%;
  }

  .header-container {
    width: 100%;
    flex-direction: column;
    padding: 10px;
  }

  .header {
    flex-direction: column;
    height: auto;
    padding: 0;
  }

  .logo {
    width: 100%;
    text-align: center;
  }

  .logo img {
    max-width: 90%;
  }

  .header-right {
    width: 100%;
    align-items: center;
    margin-top: 10px;
  }

  .nav-desktop {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .banner img {
    width: 100%;
    height: auto;
  }

  .content-row {
    flex-direction: column;
  }

  .content-inner {
    flex-direction: column;
  }

  .left-sidebar,
  .main-content,
  .right-sidebar {
    width: 100%;
    padding: 10px;
    max-width: 100%;
  }

  .left-sidebar,
  .right-sidebar {
    overflow: hidden;
  }

  .left-sidebar img,
  .right-sidebar img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  /* Fix for iframe in mobile */
  .sidebar-box iframe {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  /* Fix for embed elements in mobile */
  .left-sidebar embed,
  .right-sidebar embed {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }

  .sidebar-box {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    background: #4a0000;
    border: none;
    border-image: none;
    border-top: none;
  }
  
  .sidebar-box a {
    display: block;
    max-width: 100%;
  }
  
  .sidebar-box a img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
  }

  .sidebar-divider {
    width: 100%;
    background-size: 100% 100%;
    background-repeat: no-repeat;
  }

  .content-box,
  .content-box-header,
  .content-box-body,
  .content-bottom {
    width: 100%;
  }

  /* Make backgrounds extend to full width on mobile */
  .content-box-header {
    background-size: 100% 100%;
  }

  .content-box-body {
    background-size: 100% auto;
  }

  .content-bottom {
    background-size: 100% 100%;
  }

  .footer {
    background-size: cover;
    background-position: center;
  }
  
  .footer img[src="/images/bottomlogo.png"] {
    max-width: 100%;
    width: auto;
    height: auto;
  }

  /* Mobile responsive table - keep 2 columns */
  .responsive-table td {
    padding: 5px;
  }

  .section-links {
    padding: 0 5px;
  }
}

@media (max-width: 480px) {
  .section-links {
    padding: 0 5px;
  }
  
  .section-title {
    font-size: 15px;
    padding: 6px;
  }
}