@charset "utf-8";

/* ========= RESET / BASE ========= */
html,
body {
    height: 100%;
    margin: 0;
}

* {
    box-sizing: border-box;
}

body {
    line-height: 1;
    color: #42423d;
    background: #fff url(../images/footer_bg.png) repeat-x center top;
    font: 18px Arial, Helvetica, sans-serif;
}

/* ========= PAGE WRAPPER (centered column) ========= */
/* Used by index and other pages; keeps sticky footer layout */
#top_container,
#top_container_index {
    position: relative;
    width: 100%;
    max-width: 1004px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========= HEADER (fixed height, stable layout) ========= */
#header_wrap {
    background: #002943;
    height: 89px;
    width: 100%;
    position: relative;
    z-index: 10000;

    /* layout: logo left, nav right */
    display: flex;
    align-items: center;
    justify-content: space-between;

    /* inner padding so items breathe on narrow screens */
    padding: 0 16px;
}

/* Logo (kept inside bar; no overflow) */
#logo {
    position: static !important;
    height: 20px;
    /* fits nicely in 89px bar */
    width: auto;
    margin: 0;
}

/* Nav block lives on the right */
#navigation {
    position: static !important;
    margin: 0 !important;

}

/* Horizontal nav list (compatible with your sprites2.css) */
#navigation ul,
#navigation .nav {
    display: flex;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
    top: 20px;
    }

/* Slogan centered inside the blue bar (bottom-aligned) */
#h4 {
    position: absolute !important;
    left: 65%;
    bottom: 60px;
    transform: translateX(-50%);
    margin: 0;
    color: #fff;
    font: 16px Arial, Helvetica, sans-serif;
    white-space: nowrap;
}

/* ========= CAROUSEL (always fills, no gaps) ========= */
/* Width is the same as the column. Height is fixed; images cover it. */
.swiper {
    width: 1004px !important;
    height: 560px !important;
    /* adjust 520–640 to taste */
    margin: 0 auto;
    /* sits directly under header */
    position: relative;
    overflow: hidden;
}

.swiper-wrapper,
.swiper-slide {
    height: 100% !important;
}

.swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    /* fill frame; crop if necessary */
    display: block !important;
}

/* Caption bar */
.slide-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    padding: 10px 14px;
    font-size: 16px;
}

/* ========= FOOTER (full-width bar; inner content centered) ========= */
#ext_footer,
#ext_footer_index {
    width: 100%;
    background: #002943;
    padding: 40px 0 20px;
    text-align: center;
    margin-top: auto;
    /* sticky to bottom of viewport/content */
    clear: both;
}

/* Center footer inner content to 1004px */
#ext_footer>*,
#ext_footer_index>* {
    max-width: 1004px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

#agents {
    height: 76px;
    margin: 0 auto 20px;
    display: block;
    border: none;
}

#footer_line {
    width: 80%;
    height: 1px;
    margin: 0 auto 15px;
    background: #fff;
}

#footer_betweener {
    color: #fff;
    font: 13px Arial, Helvetica, sans-serif;
    margin: 0;
    text-align: center;
}

/* ========= TYPO / LINKS / LISTS ========= */
ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

a,
a:visited {
    color: #42423D;
    text-decoration: none;
}

a:hover,
a:active {
    color: #000;
}

/* ========= KEEP LEGACY PIECES (safe rules retained) ========= */
#abouttextright {
    margin-left: 170px;
}

#header {
    height: 100%;
    overflow: visible;
    position: relative;
    z-index: 1;
}

#story_img,
#story_img_agents {
    visibility: visible;
    border: 1px solid #000;
}

#story_img_agents {
    float: left;
}

#video {
    margin: 25px 0 15px 200px;
}

#contact {
    margin: 25px;
}

#contact_fieldset {
    font: 17px Arial, Helvetica, sans-serif;
    border: 1px solid #CCC;
    position: relative;
    float: left;
    width: 367px;
    height: 320px;
    margin: 10px;
    padding: 5px;
}

#contact_label {
    font: 20px Arial, Helvetica, sans-serif;
    margin: 5px 0 5px 50px;
}

#borat {
    border: 1px solid #666;
}

#contact_input {
    right: 130px;
    position: relative;
    margin: 5px;
}

.error {
    color: #C00;
    margin-left: 49px;
}

#contact_fieldset label {
    width: 190px;
}

#contact_fieldset textarea,
#contact_fieldset input {
    border: 1px solid #CED0D0;
    font: 17px Arial, Helvetica, sans-serif;
}

#contact_fieldset input {
    position: absolute;
    right: 13px;
}

#contact_details {
    font: 17px Arial, Helvetica, sans-serif;
    border: 1px solid #CCC;
    position: relative;
    float: left;
    width: 367px;
    height: 320px;
    margin: 10px 10px 10px 13px;
    padding: 5px;
}

#ext_header {
    background: #00375B;
    position: relative;
    z-index: 0;
    margin: 0;
}

#label {
    margin-top: 35px !important;
}

#sidebar1 {
    float: left;
    width: 12em;
    background: #EBEBEB;
    margin: 5px 15px 10px 10px;
    padding: 5px 0;
}

#sidebar1 h3,
#sidebar1 p {
    margin: 0 5px;
}

#bottomContentTab {
    float: left;
    width: 944px;
    background: #EBEBEB;
    margin: 20px;
    padding: 10px;
}

#bottomContent {
    float: left;
    width: 80%;
    background: #EBEBEB;
    margin: 10px 10% 10px;
    padding: 10px;
}

#videoContent {
    width: 60%;
    float: left;
    position: relative;
    min-height: 360px;
    background: url(images/bg4.png) top center;
    margin: 10px 10px 5px;
}

#tabSwitchLimit {
    width: 1004px;
    margin: auto;
}

#tabSwitchExampleArea {
    margin-top: 5px;
}

#maincontent,
#maincontentindex {
    height: 100%;
    background-color: #FFF;
}

.twoColHybLtHdr #footer {
    background: #DDD;
    padding: 0 10px;
}

.twoColHybLtHdr #footer p {
    margin: 0;
    padding: 10px 0;
}

.fltrt {
    float: right;
    margin-left: 8px;
}

.fltlft {
    float: left;
    margin-right: 8px;
}

.clear {
    clear: both;
}

/* ========= SEO H1s right after footer — keep in DOM, hide visually ========= */
#ext_footer+br,
#ext_footer+br+h1#h1,
#ext_footer+br+h1#h1+br,
#ext_footer+br+h1#h1+br+h1#h1,
#ext_footer_index+br,
#ext_footer_index+br+h1#h1,
#ext_footer_index+br+h1#h1+br,
#ext_footer_index+br+h1#h1+br+h1#h1 {
    display: none !important;
}

/* ==== Story image alignment with left padding ==== */
#story_img,
.story-img {
    display: block;
    padding-left: 128px !important;
    margin: 10px 0;
    max-width: 100%;
    height: auto;
}

/* Make the lightbox overlay and holder sit above the fixed header */
.pp_overlay {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.85 !important;
    /* matches JS option */
}

.pp_pic_holder {
    position: fixed !important;
    z-index: 100000 !important;
}

/* ==== prettyPhoto centering override ==== */
.pp_pic_holder {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    z-index: 100000 !important;
}

.pp_overlay {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85) !important;
    z-index: 99999 !important;
}

/* Header fixes */
#header_wrap {
    background: #002943;
    height: 89px;
    width: 100%;
    position: relative;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    box-sizing: border-box;
}

#logo {
    height: 60px;
    width: auto;
    margin: 0;
    flex-shrink: 0;
}

#navigation {
    margin: 0;
    padding: 0;
}

#navigation ul,
#navigation .nav {
    display: flex;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#navigation li {
    display: inline-block;
}

#navigation a {
    color: #fff;
    font: 16px Arial, Helvetica, sans-serif;
    text-decoration: none;
    padding: 4px 0;
}

#navigation a:hover,
#navigation li.current a {
    border-bottom: 2px solid #fff;
}

#h4 {
    position: absolute;
    left: 70%;
    bottom: 59px;
    transform: translateX(-50%);
    margin: 0;
    color: #fff;
    font: 14px Arial, Helvetica, sans-serif;
    white-space: nowrap;
}
/* ===== MOBILE FIX PACK (put at END of files/style.css) ===== */
@media (max-width: 1024px) {
  html, body { overflow-x: hidden; }             /* stop side-scroll */

  /* Main column should shrink to the phone width */
  #top_container,
  #top_container_index {
    max-width: 100% !important;
    width: 100% !important;
    position: relative !important;
    left: auto !important;
    margin: 0 auto !important;
  }

  /* Header & nav fit inside the bar */
  #header_wrap { padding: 6px 10px !important; height: auto !important; }
  #logo { height: 44px !important; }
  #navigation ul, #navigation .nav {
    flex-wrap: wrap !important;
    gap: 12px !important;
    justify-content: center !important;
  }
  #h4 {
    position: static !important;
    transform: none !important;
    margin: 6px auto 0 !important;
    white-space: normal !important;
    text-align: center !important;
    font-size: 13px !important;
  }

  /* HERO / carousel must not be fixed 1004px */
  .swiper {
    width: 100% !important;
    height: min(65vw, 560px) !important; /* responsive height */
    margin: 0 auto !important;
  }
  .swiper-slide,
  .swiper-wrapper { height: 100% !important; }
  .swiper-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  /* Page banner images */
  #page_banner img { width: 100% !important; height: auto !important; display: block !important; }

  /* Legacy layout that narrows content on mobile */
  #abouttextright { margin-left: 0 !important; }
  .story-img { padding-left: 0 !important; max-width: 100% !important; height: auto !important; }
  .aboutphoto, .aboutphotoleft {
    float: none !important;
    margin: 10px auto !important;
    text-align: center !important;
  }

  /* Wide legacy blocks */
  #tabSwitchLimit,
  #bottomContentTab,
  #bottomContent,
  #videoContent,
  #sidebar1 {
    width: auto !important;
    float: none !important;
    margin: 10px !important;
  }

  /* Footer inner width */
  #ext_footer > *, #ext_footer_index > * { max-width: 94% !important; }
}
/* ===== MOBILE FIX PACK (at END of files/style.css) ===== */
@media (max-width: 1024px) {
  html, body {
    overflow-x: hidden; /* stop side scroll */
  }

  /* Main container adapts */
  #top_container,
  #top_container_index {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
  }

  /* HEADER: stack logo and menu vertically */
  #header_wrap {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    height: auto !important;
    padding: 10px !important;
  }

  #logo {
    height: 40px !important;  /* smaller logo */
    margin-bottom: 10px !important;
  }

  #navigation ul,
  #navigation .nav {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 14px !important;
  }

  #navigation a {
    font-size: 15px !important;
  }

  /* slogan under menu */
  #h4 {
    position: static !important;
    transform: none !important;
    margin: 8px auto 0 !important;
    white-space: normal !important;
    text-align: center !important;
    font-size: 13px !important;
  }

  /* CAROUSEL responsive */
  .swiper {
    width: 100% !important;
    height: auto !important;
    max-height: 65vh !important; /* 65% of screen */
    margin: 0 auto !important;
  }
  .swiper-slide img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
  }

  /* BANNER */
  #page_banner img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* CONTENT blocks auto width */
  #abouttextright,
  #tabSwitchLimit,
  #bottomContentTab,
  #bottomContent,
  #videoContent,
  #sidebar1 {
    margin: 10px auto !important;
    width: auto !important;
    float: none !important;
  }

  /* FOOTER full width */
  #ext_footer,
  #ext_footer_index {
    padding: 20px 10px !important;
  }
  #ext_footer > *,
  #ext_footer_index > * {
    max-width: 100% !important;
  }
}
