/* Client logos vertical centering */
.owl-carousel.customers {
  margin: 30px 0;
}

.owl-carousel.customers .owl-wrapper-outer {
  margin-bottom: 20px;
}

.owl-carousel.customers .owl-wrapper {
  display: flex !important;
}

.owl-carousel.customers .owl-item {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 150px !important;
}

.owl-carousel.customers .item {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100%;
  height: 100%;
  padding: 15px;
}

.owl-carousel.customers .item a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100%;
}

/* Fix image size across all screen sizes */
.owl-carousel.customers .item img {
  width: 120px !important; /* Fixed width */
  height: 60px !important; /* Fixed height */
  object-fit: contain !important;
}

/* Center pagination dots */
.owl-carousel.customers .owl-pagination {
  width: 100%;
  text-align: center;
  position: absolute;
  bottom: -20px;
  left: 0;
  right: 0;
}

.owl-carousel.customers .owl-page {
  display: inline-block;
}

.navbar-default {
  background-color: #171717;
  border-color: #fdfffc;
  border-bottom: none;
}

/* Default navbar styling for all screen sizes */
.navbar {
  min-height: 70px;
}

.navbar-brand {
  padding: 10px 15px;
  height: auto;
  display: flex;
  align-items: center;
}

/* Fix logo size to display properly in navbar */
.navbar-brand img.hidden-xs {
  max-height: 90px;
  width: auto;
}

/* Style for small logo on mobile and tablet */
.navbar-brand img.visible-xs.visible-sm,
.navbar-brand img.visible-xs,
.navbar-brand img.visible-sm {
  max-height: 50px;
  width: auto;
}

/* Hide navbar title by default */
.navbar-title {
  display: none;
  color: #fdfffc;
  font-weight: bold;
  font-size: 18px;
  white-space: nowrap;
}

/* Desktop navbar (992px and above) */
@media (min-width: 992px) {
  /* Adjust navbar height to accommodate logo */
  .navbar {
    min-height: 100px;
  }

  /* Vertically center the navigation items */
  .navbar-nav > li > a {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  /* Adjust brand padding */
  .navbar-brand {
    padding: 5px 15px;
    height: auto;
  }
}

/* Specific mobile adjustments (phones) */
@media (max-width: 767px) {
  .navbar {
    min-height: 60px;
  }

  .navbar-brand {
    height: 60px;
  }

  .navbar-toggle {
    margin-top: 13px;
  }
}

/* Force hamburger menu for screens smaller than 992px */
@media (max-width: 991px) {
  .navbar-header {
    float: none;
    position: relative;
  }

  .navbar-toggle {
    display: block;
    margin-right: 15px;
    margin-top: 18px;
  }

  .navbar-collapse {
    border-top: 1px solid transparent;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  .navbar-collapse.collapse {
    display: none !important;
  }

  .navbar-nav {
    float: none !important;
    margin: 7.5px -15px;
    text-align: right;
  }

  .navbar-nav > li {
    float: none;
  }

  .navbar-nav > li > a {
    padding-top: 10px;
    padding-bottom: 10px;
    padding-right: 15px;
  }

  .navbar-collapse.collapse.in {
    display: block !important;
  }

  .collapsing {
    overflow: hidden !important;
  }
  
  /* Right-align dropdown menus in mobile view */
  .navbar-nav .dropdown-menu {
    text-align: right;
    float: right;
    left: auto;
    right: 0;
  }

  /* Display title when hamburger menu is visible */
  .navbar-title {
    display: inline-block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 20px;
    z-index: 1030;
  }
  
  /* Ensure title stays fixed when menu is expanded */
  .navbar-collapse.collapse.in ~ .navbar-title,
  .navbar-collapse.collapsing ~ .navbar-title {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
  }
}

/* Tablet-specific adjustments (768px-991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .navbar-brand {
    height: 70px;
  }
}

:root {
  --primary-accent: #fd7401;
  --navbar-border-top: #fd7401;
  --button-border: #8a4c24;
  --link-focus: #ffa734;
  --form-shadow: rgba(56, 167, 187, 0.6);
  --pagination-bg: #a7dbe5;
  --link-hover-bg: #feab66;
  --navbar-focus: #ffc799;
}

.navbar-default .navbar-nav > li > a {
  color: #fdfffc;
}

.home-carousel {
  background: url("/img/photogrid.jpg") center center repeat;
}

.bar.background-black {
  background: #171717;
}

.bar.background-image-fixed-2 {
  background: url("/img/sponsors/lespecs-banner.jpg") center top no-repeat;
  background-attachment: fixed;
  background-size: cover;
}

.sponsor-image-text {
  position: relative;
  overflow: hidden;
  text-align: center;
  margin: 15px 0;
}
.sponsor-image-text .top {
  position: relative;
  margin-bottom: 10px;
}
.sponsor-image-text .top .bg {
  position: absolute;
  top: auto;
  bottom: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  filter: alpha(opacity=0);
  background: var(--primary-accent);
}
.sponsor-image-text .top .name {
  position: absolute;
  width: 100%;
  height: 50%;
  bottom: 0;
  -webkit-transform: translate(0, 100%);
  -ms-transform: translate(0, 100%);
  -o-transform: translate(0, 100%);
  transform: translate(0, 100%);
  -webkit-transition: all 0.2s ease-out;
  -moz-transition: all 0.2s ease-out;
  transition: all 0.2s ease-out;
  color: #fff;
  padding: 0 20px;
}
.sponsor-image-text .top .name h3 {
  color: #fff;
  text-transform: uppercase;
  font-size: 18px;
  letter-spacing: 0.08em;
}
.sponsor-image-text .top .name h3 a {
  color: #fff;
  text-decoration: none;
}
.sponsor-image-text .top .text {
  position: absolute;
  width: 100%;
  height: 50%;
  top: 0;
  -webkit-transform: translate(0, -150%);
  -ms-transform: translate(0, -150%);
  -o-transform: translate(0, -150%);
  transform: translate(0, -150%);
  -webkit-transition: all 0.2s ease-out;
  -moz-transition: all 0.2s ease-out;
  transition: all 0.2s ease-out;
  color: #fff;
  padding: 0 20px;
}
.sponsor-image-text .content h3,
.sponsor-image-text .content h4 {
  text-transform: uppercase;
  line-height: 1.5;
  color: #555555;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.sponsor-image-text .content p {
  color: #999999;
}
.sponsor-image-text:hover .bg {
  opacity: 0.7;
  filter: alpha(opacity=70);
}
.sponsor-image-text:hover .name {
  position: absolute;
  -webkit-transform: translate(0, -75%);
  -ms-transform: translate(0, -75%);
  -o-transform: translate(0, -75%);
  transform: translate(0, -75%);
}
.sponsor-image-text:hover .text {
  position: absolute;
  -webkit-transform: translate(0, 100%);
  -ms-transform: translate(0, 100%);
  -o-transform: translate(0, 100%);
  transform: translate(0, 100%);
}

.sponsor-image-text .image {
  min-height: 270px;
  max-height: 270px;
}

.sponsors-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.sponsors-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.sponsor-card {
  flex: 0 0 calc(33.333% - 2rem);
  background-color: #fff;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s ease;
}

.sponsor-card:hover {
  transform: translateY(-5px);
}

.sponsor-logo {
  width: 180px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.sponsor-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.sponsor-title {
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  line-height: 1.5;
  color: #555555;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.sponsor-summary {
  font-size: 14px;
  color: #7d8491;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.sponsor-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #0066cc;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.sponsor-link:hover {
  background-color: #0052a3;
}

@media (max-width: 992px) {
  .sponsor-card {
    flex: 0 0 calc(50% - 2rem);
  }
}

@media (max-width: 576px) {
  .sponsor-card {
    flex: 0 0 100%;
  }
}

/* Responsive video container */
.video-feature {
  position: relative;
  width: 100%;
  padding-bottom: 20px;
}

.video-feature iframe {
  width: 100%;
  height: 450px;
  max-width: 800px;
}

@media (min-width: 992px) {
  .video-feature iframe {
    width: 800px;
    height: 450px;
  }
}

@media (max-width: 991px) {
  .video-feature iframe {
    width: 100%;
    height: 400px;
  }
}

@media (max-width: 767px) {
  .video-feature iframe {
    width: 100%;
    height: 350px;
  }
}

@media (max-width: 480px) {
  .video-feature iframe {
    height: 250px;
  }
}

body {
  font-family: "Inter";
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-family: "Inter";
}

.btn {
  font-family: "Inter";
}

#intro .item {
  font-family: "Inter";
}

.panel.sidebar-menu ul.nav.category-menu li a {
  font-family: "Inter";
}

.ribbon .theribbon {
  font-family: "Inter";
}

#blog-post .comment .reply {
  font-family: "Inter";
}

#productMain .sizes a {
  font-family: "Inter";
}

.breadcrumb {
  font-family: "Inter";
}

.label {
  font-family: "Inter";
}

.pager {
  font-family: "Inter";
}

.pagination {
  font-family: "Inter";
}

/* Fix sub-menu text color in hamburger menu for better readability */
@media (max-width: 991px) {
  .navbar-default .navbar-nav .open .dropdown-menu > li > a {
    color: #fdfffc;
  }
}

.bar {
  padding: 30px 0;
}

#footer {
  padding: 25px 0;
}

/* Governance Page Table Styling */
#post-content h2 + table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  border-spacing: 0;
  background-color: transparent;
}

#post-content h2 + table img {
  width: 150px;
  height: 150px;
  max-height: 250px;
  margin: 0 auto 0.5rem auto;
  display: block;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  object-fit: cover;
  border-radius: 5%;
}

#post-content h2 + table th,
#post-content h2 + table td {
  padding: 1rem;
  vertical-align: top;
  text-align: center;
  border: none;
}

#post-content h2 + table strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.1em;
}

/* Add after existing navbar-related styles */
html {
  scroll-padding-top: 110px; /* Default for desktop */
  scroll-behavior: smooth;
}

@media (max-width: 991px) {
  html {
    scroll-padding-top: 60px; /* Adjusted for mobile/tablet */
  }
}

/* Styling for the contact form */
#contactForm {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#contactForm label {
  margin-bottom: 8px;
  font-weight: bold;
  color: #333;
}

#contactForm input,
#contactForm select,
#contactForm textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  font-size: 16px;
  box-sizing: border-box;
  display: block;
}

#contactForm button {
  background-color: #ffa734;
  color: #fff;
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#contactForm button:hover {
  background-color: #fd7401;
}

#contactForm textarea {
  resize: vertical;
  min-height: 100px;
}

/* Add visual indicator for required fields */
#contactForm label.required::after {
  content: " *";
  color: red;
  font-weight: bold;
}

.radio-group {
  display: flex;
  gap: 1em;
  margin-bottom: 1em;
}
.custom-radio {
  position: relative;
  padding-left: 28px;
  cursor: pointer;
  font-size: 1em;
  user-select: none;
}
.custom-radio input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}
.radio-mark {
  position: absolute;
  left: 0;
  top: 2px;
  height: 18px;
  width: 18px;
  background-color: #eee;
  border-radius: 50%;
  border: 2px solid #bbb;
  transition: border-color 0.2s;
}
.custom-radio input:checked ~ .radio-mark {
  background-color: #fd7401;
  border-color: #fd7401;
}
.radio-mark:after {
  content: "";
  position: absolute;
  display: none;
}
.custom-radio input:checked ~ .radio-mark:after {
  display: block;
}
.custom-radio .radio-mark:after {
  left: 2px;
  top: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: white;
  position: absolute;
  content: "";
}