/* IAOH shared alignment and responsive layout */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: #2f3740; background: #f7f9fb; font-family: "Work Sans", sans-serif; }
a { transition: color .2s ease, background-color .2s ease, opacity .2s ease; }
img { max-width: 100%; height: auto; }
.w-100 { width: 100% !important; }
.pt-20 { padding-top: 20px; }
.pb-20 { padding-bottom: 20px; }
.pd-20 { padding: 20px !important; }

/* Header */
.w3l-top-menu-1 .top-hd { background: #fff !important; }
.iaoh-header-top { padding: 8px 0; background: #fff; }
.iaoh-header-top .navbar-brand { display: flex; justify-content: center; width: 100%; margin: 0; }
.iaoh-header-top .site-logo { display: block; width: 100%; max-width: 1180px; max-height: 150px; object-fit: contain; }
.iaoh-main-nav { position: relative; z-index: 1030; background: var(--theme-color, #006b70); box-shadow: 0 3px 12px rgba(0,0,0,.11); }
.iaoh-main-nav .navbar { padding: 0; background: transparent !important; }
.iaoh-main-nav .navbar-nav { width: 100%; justify-content: center; align-items: stretch; flex-wrap: wrap; }
.iaoh-main-nav .nav-item { display: flex; align-items: stretch; }
.iaoh-main-nav .nav-link { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 10px 12px !important; color: #fff !important; font-size: 14px; font-weight: 600; line-height: 1.25; text-align: center; white-space: nowrap; }
.iaoh-main-nav .nav-link:hover, .iaoh-main-nav .nav-link:focus, .iaoh-main-nav .nav-item.show > .nav-link { color: #fff !important; background: rgba(0,0,0,.16); }
.iaoh-main-nav .dropdown-toggle::after { margin-left: 7px; }
.iaoh-main-nav .dropdown-menu { left: 0 !important; min-width: 280px !important; max-width: 360px; margin: 0; padding: 5px 0 !important; border: 0 !important; border-radius: 0 0 6px 6px; outline: 0 !important; background: #fff; box-shadow: 0 9px 24px rgba(0,0,0,.16); }
.iaoh-main-nav .dropdown-menu li { width: 100%; margin: 0 !important; padding: 0 !important; border: 0 !important; }
.iaoh-main-nav .dropdown-menu > li > a { display: block; min-height: 0 !important; margin: 0 !important; padding: 7px 14px !important; border: 0 !important; outline: 0 !important; color: #26333c; font-size: 14px; line-height: 1.3 !important; white-space: normal; text-decoration: none; box-shadow: none !important; }
.iaoh-main-nav .dropdown-menu > li > a:hover, .iaoh-main-nav .dropdown-menu > li > a:focus { color: #fff; background: var(--theme-color, #006b70); }
.iaoh-main-nav .navbar-toggler { margin: 8px 0 8px auto; padding: 7px 10px; border: 1px solid rgba(255,255,255,.75); color: #fff; }
.iaoh-main-nav .navbar-toggler-icon { width: auto; height: auto; background-image: none; font-size: 22px; line-height: 1; }
.iaoh-main-nav .navbar-toggler:focus { outline: 0; box-shadow: 0 0 0 3px rgba(255,255,255,.22); }
@media (min-width: 992px) {
  .iaoh-main-nav .dropdown:hover > .dropdown-menu { display: block; }
  .iaoh-main-nav .dropdown-menu { max-height: 72vh; overflow-y: auto; }
}
@media (max-width: 1199.98px) and (min-width: 992px) {
  .iaoh-main-nav .nav-link { padding-left: 8px !important; padding-right: 8px !important; font-size: 13px; }
}
@media (max-width: 991.98px) {
  .iaoh-header-top .site-logo { max-height: 110px; }

  .iaoh-main-nav .navbar {
    display: block;
    width: 100%;
    padding: 0 !important;
  }

  .iaoh-main-nav .navbar-toggler {
    display: block;
    margin: 8px 15px 8px auto;
  }

  .iaoh-main-nav .navbar-collapse {
    width: 100%;
    max-height: calc(100vh - 120px);
    overflow-x: hidden;
    overflow-y: auto;
    border-top: 0 !important;
    background: #ffffff !important;
    box-shadow: 0 8px 18px rgba(0,0,0,.12);
  }

  .iaoh-main-nav .navbar-nav {
    display: block;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
  }

  .iaoh-main-nav .nav-item {
    display: block;
    width: 100%;
    margin: 0 !important;
    border-bottom: 1px solid #e2e8ec !important;
    background: #ffffff !important;
  }

  .iaoh-main-nav .nav-item:last-child {
    border-bottom: 0 !important;
  }

  .iaoh-main-nav .nav-link {
    justify-content: space-between;
    width: 100%;
    min-height: 0;
    margin: 0 !important;
    padding: 13px 20px !important;
    color: #062a46 !important;
    background: #ffffff !important;
    text-align: left;
    white-space: normal;
  }

  .iaoh-main-nav .nav-link:hover,
  .iaoh-main-nav .nav-link:focus,
  .iaoh-main-nav .nav-item.show > .nav-link {
    color: #0066a1 !important;
    background: #eef6fb !important;
  }

  .iaoh-main-nav .dropdown-menu {
    position: static !important;
    float: none;
    width: 100%;
    min-width: 0 !important;
    max-width: none;
    margin: 0 !important;
    padding: 4px 0 7px !important;
    transform: none !important;
    border: 0 !important;
    border-radius: 0;
    background: #f4f8fb !important;
    box-shadow: none !important;
  }

  .iaoh-main-nav .dropdown-menu > li {
    border: 0 !important;
    background: transparent !important;
  }

  .iaoh-main-nav .dropdown-menu > li > a {
    padding: 9px 20px 9px 34px !important;
    color: #26333c !important;
    background: transparent !important;
    line-height: 1.35 !important;
  }

  .iaoh-main-nav .dropdown-menu > li > a:hover,
  .iaoh-main-nav .dropdown-menu > li > a:focus {
    color: #0066a1 !important;
    background: #e7f1f7 !important;
  }
}

/* General legacy content alignment */
.container-fluid.pt-20.pb-20 { padding: 32px 15px 45px; }
.container-fluid.pt-20.pb-20 > .row { margin-right: 0; margin-left: 0; }
.container-fluid.pt-20.pb-20 .content { width: 100%; max-width: 1260px; margin: 0 auto; padding: 28px 30px; overflow-x: auto; border-radius: 9px; background: #fff; box-shadow: 0 4px 18px rgba(0,0,0,.06); }
.content p { margin: 0 0 15px; padding: 0 !important; color: #343c43; font-size: 15.5px; line-height: 1.75; }
.content p[align="justify"], .content div[align="justify"] { text-align: justify; }
.content > p:first-child[align="center"], .content > h3.editContent:first-child, .content > h4.editContent:first-child { position: relative; margin: 0 0 28px; padding: 0 0 14px !important; color: #062a46; font-size: 26px; font-weight: 700; line-height: 1.35; text-align: center; }
.content > p:first-child[align="center"]::after, .content > h3.editContent:first-child::after, .content > h4.editContent:first-child::after { content: ""; display: block; width: 68px; height: 3px; margin: 12px auto 0; background: #0066a1; }
.content h3, .content h4 { color: #062a46; font-weight: 700; line-height: 1.35; }
.content ul, .content ol { margin: 0 0 18px; padding-left: 24px; }
.content li { margin-bottom: 7px; line-height: 1.6; }
.content table { width: 100% !important; max-width: 100%; margin: 0 auto 24px; border-collapse: collapse; background: #fff; }
.content table td, .content table th { padding: 10px 12px; line-height: 1.5; vertical-align: top; }
.content table[border="1"] { min-width: 720px; border: 1px solid #d8e0e5 !important; }
.content table[border="1"] td, .content table[border="1"] th { border: 1px solid #d8e0e5 !important; }
.content table[border="1"] > tbody > tr:first-child > td, .content table[border="1"] > tbody > tr:first-child > th { background: #0066a1; color: #fff; font-weight: 700; text-align: center; }
.content table[border="1"] > tbody > tr:nth-child(even) { background: #f7fafc; }
.content table img { display: block; max-width: 230px; height: auto; margin: 0 auto; object-fit: cover; }
.content td[bgcolor="#0066FF"], .content td[bgcolor="#006600"] { background: #0066a1 !important; color: #fff !important; }
.content .style1 { font-weight: 700; }
.table-responsive { -webkit-overflow-scrolling: touch; }

/* Generic card treatment for narrow legacy tables */
.content table[width="48%"], .content table[width="50%"], .content table[width="59%"], .content table[width="70%"], .content table[width="72%"], .content table[width="78%"] { max-width: 920px; }

/* Home page */
.home-page .w3l-main-slider { overflow: hidden; }
.home-page .w3l-index1 .calltoaction-20-content { max-width: 1120px; margin: 0 auto; }
.home-page .w3l-index1 h5 { margin-bottom: 24px; color: #062a46; font-size: 30px; font-weight: 700; }
.home-page .w3l-index1 h4 { margin: 26px 0 10px; color: #0066a1; font-size: 21px; font-weight: 700; }
.home-page .w3l-index1 p { color: #343c43; font-size: 15.5px; line-height: 1.8; text-align: justify; }

/* Contact page */
.contact-page { padding: 35px 0 48px; background: #f7f9fb; }
.contact-page .contact-container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.page-heading { position: relative; margin: 0 0 30px; padding-bottom: 14px; color: #062a46; font-size: 30px; font-weight: 700; line-height: 1.3; text-align: center; }
.page-heading::after { content: ""; display: block; width: 70px; height: 3px; margin: 12px auto 0; background: #0066a1; }
.contact-page .address-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; margin-bottom: 28px; }
.contact-page .address-card, .contact-page .contact-form-card { padding: 26px; border-radius: 10px; background: #fff; box-shadow: 0 4px 18px rgba(0,0,0,.07); }
.contact-page .address-logo { display: flex; align-items: center; justify-content: center; min-height: 90px; margin-bottom: 15px; }
.contact-page .address-logo img { max-width: 360px; max-height: 90px; object-fit: contain; }
.contact-page .address-card h2, .contact-page .contact-form-card h2 { margin: 0 0 14px; color: #0066a1; font-size: 21px; font-weight: 700; text-align: center; }
.contact-page .address-card p { margin: 0; color: #37414a; font-size: 15px; line-height: 1.7; text-align: center; }
.contact-page .contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 18px; margin-top: 18px; }
.contact-page .contact-links a { color: #0066a1; overflow-wrap: anywhere; text-decoration: none; }
.contact-page .contact-links a:hover { text-decoration: underline; }
.contact-page .form-control { min-height: 46px; border: 1px solid #cfd9df; border-radius: 5px; }
.contact-page textarea.form-control { min-height: 140px; resize: vertical; }
.contact-page .btn-theme2 { min-width: 160px; padding: 11px 22px; border: 2px solid var(--theme-color, #006b70) !important; background: var(--theme-color, #006b70) !important; color: #fff; }
.contact-page .btn-theme2:hover { background: #fff !important; color: var(--theme-color, #006b70) !important; }
.contact-page .form-alert { margin-bottom: 18px; padding: 12px 15px; border-radius: 6px; text-align: center; }
.contact-page .form-alert.success { color: #155724; background: #d4edda; }
.contact-page .form-alert.error { color: #721c24; background: #f8d7da; }

/* Events */
.events-page { padding: 35px 0 48px; background: #f7f9fb; }
.events-page .events-container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.events-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.event-card { display: grid; grid-template-columns: minmax(0,1fr) 280px; overflow: hidden; border-radius: 10px; background: #fff; box-shadow: 0 4px 18px rgba(0,0,0,.07); }
.event-card-content { padding: 24px; }
.event-card h2 { margin: 0 0 18px; color: #062a46; font-size: 21px; font-weight: 700; }
.event-meta { display: grid; gap: 10px; }
.event-meta-item { padding: 10px 12px; border-radius: 6px; background: #f3f7fa; }
.event-meta-label { display: block; margin-bottom: 2px; color: #6b7780; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.event-meta-value { color: #26333c; font-size: 14px; font-weight: 600; line-height: 1.45; }
.event-card-image { display: flex; align-items: center; justify-content: center; min-height: 250px; padding: 14px; background: #eef3f6; }
.event-card-image img { width: 100%; max-height: 300px; object-fit: contain; }
.events-grid.past-events { grid-template-columns: 1fr; }
.events-grid.past-events .event-card { grid-template-columns: minmax(0,1fr) 320px; }

/* Simple gallery pages */
.simple-gallery-page { padding: 35px 0 48px; background: #f7f9fb; }
.simple-gallery-page .gallery-container { max-width: 1260px; margin: 0 auto; padding: 0 20px; }
.simple-gallery-page .gallery-meta { max-width: 900px; margin: -10px auto 26px; padding: 16px 18px; border-radius: 8px; background: #fff; color: #34414a; text-align: center; box-shadow: 0 3px 14px rgba(0,0,0,.06); }
.simple-gallery-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.simple-gallery-item { position: relative; display: block; padding: 0; overflow: hidden; border: 0; border-radius: 8px; background: #e8eef2; cursor: pointer; aspect-ratio: 4/3; }
.simple-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.simple-gallery-item:hover img { transform: scale(1.04); }
.simple-gallery-modal .modal-body { padding: 0; background: #111; text-align: center; }
.simple-gallery-modal .modal-body img { display: block; width: auto; max-width: 100%; max-height: 76vh; margin: 0 auto; object-fit: contain; }
.simple-gallery-modal .modal-footer { display: flex; justify-content: space-between; align-items: center; }

/* Coming soon */
.coming-soon-page { display: flex; min-height: 55vh; align-items: center; padding: 40px 15px; background: #f7f9fb; }
.coming-soon-card { width: 100%; max-width: 850px; margin: 0 auto; padding: 28px; border-radius: 10px; background: #fff; text-align: center; box-shadow: 0 4px 18px rgba(0,0,0,.07); }
.coming-soon-card img { display: block; width: 100%; max-width: 700px; margin: 0 auto; }

/* Forms and common buttons */
.btn-theme2 { border: 2px solid var(--theme-color, #006b70) !important; background: var(--theme-color, #006b70) !important; color: #fff; }
.btn-theme2:hover { background: #fff !important; color: var(--theme-color, #006b70) !important; }
.cont-main-top li { list-style: none !important; }
.contact-icons { display: inline-grid; width: 44px; height: 44px; align-items: center; justify-content: center; margin-bottom: 10px; border-radius: 50%; background: #d6e9fa; color: #1977cc; font-size: 20px; }
.wd-hticon1 { width: 360px !important; max-width: 100%; height: auto !important; }

/* Footer */
.w3l-footer-29-main { position: relative; background: #062a46; }
.w3l-footer-29-main .footer-29 { padding: 16px 0; }
.w3l-footer-29-main .footer-content { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.w3l-footer-29-main .copy-footer-29 { margin: 0; color: #fff; font-size: 14px; line-height: 1.5; }
.w3l-footer-29-main .copy-footer-29 a { color: #fff; font-weight: 600; text-decoration: none; }
.w3l-footer-29-main .copy-footer-29 a:hover { text-decoration: underline; }
#movetop { position: fixed; right: 20px; bottom: 20px; z-index: 999; display: none; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: #0066a1; color: #fff; font-size: 22px; line-height: 42px; text-align: center; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.22); }
#movetop:hover, #movetop:focus { background: #004f7d; outline: 0; }

@media (max-width: 991.98px) {
  .events-grid { grid-template-columns: 1fr; }
  .simple-gallery-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 767.98px) {
  .container-fluid.pt-20.pb-20 { padding: 24px 10px 34px; }
  .container-fluid.pt-20.pb-20 .content { padding: 22px 16px; border-radius: 7px; }
  .content p[align="justify"], .content div[align="justify"] { text-align: left; }
  .content > p:first-child[align="center"], .content > h3.editContent:first-child, .content > h4.editContent:first-child, .page-heading { font-size: 23px; }
  .content table td, .content table th { padding: 8px 10px; font-size: 13px; }
  .contact-page .contact-container, .events-page .events-container, .simple-gallery-page .gallery-container { padding: 0 14px; }
  .contact-page .address-grid { grid-template-columns: 1fr; }
  .contact-page .address-card, .contact-page .contact-form-card { padding: 20px 16px; }
  .event-card, .events-grid.past-events .event-card { grid-template-columns: 1fr; }
  .event-card-image { min-height: 0; }
  .simple-gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .w3l-footer-29-main .footer-content { flex-direction: column; justify-content: center; gap: 4px; text-align: center; }
  #movetop { right: 14px; bottom: 14px; width: 38px; height: 38px; font-size: 20px; line-height: 38px; }
}
@media (max-width: 420px) {
  .simple-gallery-grid { grid-template-columns: 1fr; }
}
