/* Custom Responsive Fixes for COR CMS */

/* Footer email links - same color and white on hover */
.main-footer .contact-widget .text a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.main-footer .contact-widget .text a:hover {
  color: #ffffff !important;
}

/* Fix contact page email card hover - make links white when hovering on card */
.contact-details-block .text a {
  transition: all 300ms ease;
}

.contact-details-block:hover .text a,
.contact-details-block:hover .text a:hover,
.contact-details-block:hover .text a:visited {
  color: var(--theme-color-white) !important;
}

/* Prevent horizontal overflow */
body {
  overflow-x: hidden;
}

.main-header {
  width: 100%;
  max-width: 100vw;
}

/* Ensure header buttons are always visible */
.main-header .main-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  max-width: 100%;
  overflow: visible;
  width: 100%;
}

.main-header .logo-box {
  flex-shrink: 0;
  max-width: 200px;
}

.main-header .logo-box img {
  max-width: 100%;
  height: auto;
}

.main-header .outer-box {
  flex-shrink: 0;
  margin-left: auto;
}

.main-header .outer-box .info-box {
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
}

.main-header .nav-outer {
  flex-grow: 0;
  flex-shrink: 1;
  margin: 0 15px;
}

/* Reduce navigation item spacing to make room for buttons */
.main-header .navigation > li {
  margin: 0 12px;
}

@media (max-width: 1366px) {
  .main-header .navigation > li {
    margin: 0 8px;
  }

  .main-header .navigation > li > a {
    font-size: 14px;
  }
}

/* Base button styles - make Login/Register prominent */
.main-header .outer-box .info-box a {
  font-size: 16px !important;
  font-weight: 600 !important;
}

/* Responsive button adjustments */
@media (max-width: 1440px) {
  .main-header .outer-box .info-box a {
    padding: 9px 16px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
  }
}

@media (max-width: 1366px) {
  .main-header .outer-box .info-box a {
    padding: 8px 14px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
  }

  .main-header .navigation > li > a {
    font-size: 14px;
  }
}

@media (max-width: 1280px) {
  .main-header .outer-box .info-box a {
    padding: 8px 12px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
  }

  .main-header .navigation > li {
    margin: 0 6px;
  }
}

@media (max-width: 1199px) {
  .main-header .outer-box .info-box a {
    padding: 7px 10px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
  }
}

/* Hide desktop buttons on mobile, show mobile menu buttons */
@media (max-width: 991px) {
  .main-header .outer-box .info-box {
    display: none !important;
  }
}

/* Mobile Menu Improvements */
.mobile-menu .menu-box {
  max-height: 100vh;
  overflow-y: auto;
}

/* Ensure proper spacing on mobile */
@media (max-width: 767px) {
  .main-header .main-box {
    padding: 15px 20px;
  }

  .main-header .logo-box img {
    max-width: 180px;
  }
}

/* Fix banner text on mobile */
@media (max-width: 767px) {
  .banner-section-four .content-box h1 {
    font-size: 36px !important;
    line-height: 1.2 !important;
  }

  .banner-section-four .content-box h6 {
    font-size: 16px !important;
  }

  .banner-section-four .content-box p {
    font-size: 15px !important;
  }
}

@media (max-width: 575px) {
  .banner-section-four .content-box h1 {
    font-size: 28px !important;
  }

  .banner-section-four .content-box h6 {
    font-size: 14px !important;
    letter-spacing: 1px !important;
  }
}

/* Ensure all sections are mobile-friendly */
@media (max-width: 767px) {
  .pt-120 {
    padding-top: 60px !important;
  }

  .pb-120 {
    padding-bottom: 60px !important;
  }

  .sec-title h2 {
    font-size: 28px !important;
  }

  .sec-title h6 {
    font-size: 14px !important;
  }
}

/* Fix membership section image on mobile */
@media (max-width: 767px) {
  .about-section-four .image1 {
    height: 350px !important;
  }
}

/* Ensure FAQ section is mobile-friendly */
@media (max-width: 767px) {
  .faq-section {
    padding: 40px 15px !important;
  }
}

/* Fix footer on mobile */
@media (max-width: 767px) {
  .main-footer .widgets-section {
    padding: 40px 0 !important;
  }

  .footer-widget {
    margin-bottom: 30px;
  }
}

/* Ensure tables and content don't overflow */
@media (max-width: 767px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  img {
    max-width: 100%;
    height: auto;
  }
}

/* Fix sticky header on smaller screens */
.sticky-header .inner-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}

@media (max-width: 991px) {
  .sticky-header .logo img {
    max-width: 150px;
  }
}
