/* =========================================
   BASE RESET + GLOBAL
========================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #ffffff;
  font-size: 20px;
  line-height: 26px;
  color: #333;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
}

/* =========================================
   LINKS
========================================= */

a {
  color: #003333;
  text-decoration: none;
}

a:hover {
  color: #cc0000;
  text-decoration: underline;
}

/* =========================================
   HEADINGS
========================================= */

h1 {
  font-size: 26px;
  line-height: 30px;
  color: #990000;
  margin: 0 0 10px;
}

h2 {
  font-size: 16px;
  line-height: 24px;
  font-weight: bold;
  color: #5f5f5f;
  margin: 0 0 10px;
}

h3 {
  font-size: 18px;
  line-height: 22px;
  font-weight: bold;
  color: #666;
  margin: 0 0 10px;
}

p {
  margin: 0 0 1.5em;
}

/* TEXT STYLES */

.ipdintrotextred,
.ipdblueheadings {
  font-family: Arial Black, Arial, sans-serif;
  font-size: 20px;
  line-height: 28px;
  font-weight: 800;
  color: #1066A5;
}

.detailstitle {
  font-family: Arial;
  font-size: 38px;
  line-height: 50px;
  font-weight: normal;
  color: #030423;
  margin: 0;
  padding: 0;
}

.white24Trebucet {
  font-family: Arial;
  font-size: 24px;
  line-height: 32px;
  font-weight: normal;
  color: #FFFFFF;
  margin: 0;
  padding: 0;
}

.white12 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 18px;
  font-weight: normal;
  color: #FFFFFF;
}

.white16 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 20px;
  font-weight: bold;
  color: #FFFFFF;
}

/* LINKS */

a.redlargetextlink {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
  line-height: 28px;
  font-weight: normal;
  color: #990000;
}

/* =========================================
   WRAPPER
========================================= */

.wrapper {
  width: 95%;
  margin: 0 auto;
}

@media (min-width: 920px) {
  .wrapper {
    max-width: 90%;
  }
}

/* =========================================
   GRID SYSTEM (FIXED GUTTERS PROPERLY)
========================================= */

/* IMPORTANT: removes outer indent, keeps internal spacing */
.row {
  margin-left: -15px;
  margin-right: -15px;
}

.row::after {
  content: "";
  display: table;
  clear: both;
}

/* gutters ONLY between columns */
[class^="grid_"] {
  float: left;
  padding: 0 15px;
  margin-bottom: 10px;
  min-height: 1px;
}

/* Desktop widths */
@media (min-width: 920px) {
  .grid_1  { width: 8.333%; }
  .grid_2  { width: 16.666%; }
  .grid_3  { width: 25%; }
  .grid_4  { width: 33.333%; }
  .grid_5  { width: 41.666%; }
  .grid_6  { width: 50%; }
  .grid_7  { width: 58.333%; }
  .grid_8  { width: 66.666%; }
  .grid_9  { width: 75%; }
  .grid_10 { width: 83.333%; }
  .grid_11 { width: 91.666%; }
  .grid_12 { width: 100%; }
}

/* Mobile stack */
@media (max-width: 768px) {
  [class^="grid_"] {
    width: 100% !important;
    float: none !important;
  }
}

/* =========================================
   CONTENT LAYOUT
========================================= */

#content {
  margin: 10px 0;
}

@media (min-width: 920px) {
  #content {
    float: left;
    width: 65%;
  }

  #content.wide-content {
    float: none;
    width: 100%;
  }

  aside {
    float: right;
    width: 30%;
    margin: 40px 0;
  }
}


.navigation {
  padding: 0 15px;
  box-sizing: border-box;
}



/* =========================================
   GALLERY
========================================= */

.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.gallery3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =========================================
   FOOTER GRID
========================================= */

.ipdfooter {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .ipdfooter {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================================
   SEARCH
========================================= */

.search-form {
  display: flex;
  align-items: center;
  max-width: 400px;
  width: 100%;
}

.search-box {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px 0 0 4px;
}

.search-btn {
  padding: 8px 14px;
  border: none;
  background: #c1131d;
  color: #fff;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

.search-btn:hover {
  background: #a50f18;
}

/* =========================================
   NAV HEADER
========================================= */

.ipd-main-header {
  background: #0f3d59;
  padding: 6px 0;
}

.ipd-main-header .wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu {
  display: none;
  flex-direction: column;
}

#menu-toggle:checked ~ .menu {
  display: flex;
}

@media (min-width: 1024px) {
  .menu {
    display: flex !important;
    flex-direction: row;
  }

  .burger {
    display: none;
  }
}

.menu li a {
  padding: 8px 16px;
  color: #fff;
}

.menu li a:hover {
  background: #9c0f17;
}

/* =========================================
   UTILITY BAR
========================================= */

.ipd-utility-bar {
  background: #4a7abc;
  font-size: 13px;
  color: #fff;
  padding: 5px 0;
}

.ipd-utility-bar a {
  color: #fff;
}

/* =========================================
   SECTION
========================================= */

.section {
  width: 100%;
  padding: 40px 0;
  background: #fff;
}

/* =========================================
   TABLET FIX
========================================= */

@media (min-width: 769px) and (max-width: 995px) {
  .white24Trebucet {
    font-size: 20px;
    line-height: 26px;
  }

  table {
    width: 100%;
    table-layout: fixed;
  }

  td {
    word-wrap: break-word;
  }

  img {
    max-width: 100%;
    height: auto;
  }
}

/* LOGO HOVER */

.ipd-logo-wrap {
  position: relative;
  display: inline-block;
}

.ipd-logo-hover {
  position: absolute;
  top: 110%;
  left: 0;
  background: #fff;
  color: #333;
  padding: 8px 12px;
  border: 1px solid #ddd;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1000;
}

.ipd-logo-wrap:hover .ipd-logo-hover {
  opacity: 1;
}

@media (hover: none) and (pointer: coarse) {
  .ipd-logo-hover {
    display: none !important;
  }
}

/* BUTTON */

.list-button {
  background-color: #ff4c3b;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  margin-left: 4px;
}

.list-button:hover {
  background-color: #e04333;
}

/* MOBILE / DESKTOP */

.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block !important;
  }
}




@media (max-width: 768px) {

  .search-btn,
  .list-button {
    width: 100%;
    display: block;
    box-sizing: border-box;
    text-align: center;

    /* critical: prevents overflow */
    white-space: normal;
    word-break: break-word;
  }

}




@media (max-width: 768px) {

  .search-form {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 8px;
  }

  .search-btn {
    width: 100%;
    border-radius: 4px;
  }

}













/* =========================================
   CTA BUTTON GROUP (fallback section)
========================================= */

.cta-button-wrap {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
}

/* Base button style */
.cta-button-wrap a {
  flex: 1;
  display: inline-block;
  padding: 14px 18px;
  text-align: center;
  font-weight: bold;
  color: #ffffff;
  text-decoration: none;
  border-radius: 4px;
  transition: color 0.2s ease, opacity 0.2s ease;
}

/* Primary (990000) */
.cta-button-primary {
  background: #990000;
}

/* Secondary (0F3D59) */
.cta-button-secondary {
  background: #0F3D59;
}

/* Hover effect (yellow text) */
.cta-button-wrap a:hover {
  color: #FFD700;
}

/* Mobile stacking */
@media (max-width: 768px) {
  .cta-button-wrap {
    flex-direction: column;
  }
}


















@media (max-width: 768px) {

  /* Hide utility bar completely */
  .ipd-utility-bar {
    display: none !important;
  }

  /* Hide long tagline under nav */
  .ipd-main-header .wrapper > nav + div {
    display: none !important;
  }

@media (max-width: 768px) {

  /* Keep submenu hidden by default */
  .submenu {
    display: none;
  }

  /* ONLY show when checkbox is checked */
  #drop1:checked ~ .submenu,
  #drop2:checked ~ .submenu,
  #drop3:checked ~ .submenu,
  #drop4:checked ~ .submenu {
    display: block;
  }

}

  /* Optional: simplify burger menu area spacing */
  .ipd-main-header .wrapper {
    padding: 6px 10px;
  }

  /* Logo stays but slightly tighter */
  .logo img {
    max-height: 40px;
  }
}





