/* ========================================
   RESPONSIVE DESIGN - MOBILE FIRST APPROACH
   ======================================== */

/* Base Mobile Styles (320px and up) */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}

/* ========================================
   HEADER RESPONSIVE STYLES
   ======================================== */

.header {
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: transform 0.3s ease;
}

.header .container {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  min-height: 60px;
  width: 100%;
  position: relative;
  flex-wrap: nowrap;
  flex-direction: row;
}

.logo {
  flex-shrink: 0;
  order: 1;
  display: block;
  position: relative;
}

.logo img {
  height: 35px;
  width: auto;
  display: block;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: flex !important;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  flex-shrink: 0;
  order: 3;
  position: relative;
}

.mobile-menu-toggle:hover {
  background-color: rgba(0,0,0,0.05);
  border-radius: 4px;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Navigation */
.nav {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  display: block;
  width: 100%;
  order: 2;
}

/* Mobile Navigation Styles - Force vertical layout */
@media (max-width: 767px) {
  .mobile-menu-toggle {
    display: flex !important;
  }

  .nav {
    position: fixed !important;
    top: 60px !important;
    left: 0 !important;
    right: 0 !important;
    background: white !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    transform: translateY(-100%) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
    z-index: 999 !important;
    display: block !important;
    width: 100% !important;
  }

  .nav.active {
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .nav-list {
    display: block !important;
    flex-direction: column !important;
    padding: 20px 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }
  
  .nav-list li {
    display: block !important;
    width: 100% !important;
    border-bottom: 1px solid #eee !important;
  }
  
  .nav-list li:last-child {
    border-bottom: none !important;
  }
  
  .nav-list a {
    display: block !important;
    padding: 15px 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .submenu {
    display: none !important;
    background: #f8f9fa !important;
    padding-left: 20px !important;
    width: 100% !important;
    position: static !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    min-width: auto !important;
    padding: 0 !important;
  }

  .has-submenu:hover .submenu,
  .has-submenu.active .submenu {
    display: block !important;
  }

  .submenu li {
    border-bottom: none !important;
    width: 100% !important;
  }

  .submenu a {
    padding: 10px 20px !important;
    font-size: 14px !important;
    color: #666 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .member-login-btn {
    display: none !important;
  }
}

.nav.active {
  transform: translateY(0) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.nav-list {
  list-style: none;
  padding: 20px 0;
  margin: 0;
  display: block;
  width: 100%;
  flex-direction: column;
}

.nav-list li {
  border-bottom: 1px solid #eee;
  display: block;
  width: 100%;
}

.nav-list li:last-child {
  border-bottom: none;
}

.nav-list a {
  display: block;
  padding: 15px 20px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.nav-list a:hover {
  color: #597a33;
  background: #f8f9fa;
}

/* Submenu */
.submenu {
  display: none;
  background: #f8f9fa;
  padding-left: 20px;
  width: 100%;
}

.has-submenu:hover .submenu,
.has-submenu.active .submenu {
  display: block;
}

.submenu li {
  border-bottom: none;
  width: 100%;
}

.submenu a {
  padding: 10px 20px;
  font-size: 14px;
  color: #666;
  width: 100%;
  box-sizing: border-box;
}

/* Member Login Button */
.member-login-btn {
  display: none;
  flex-shrink: 0;
  margin-left: auto;
  order: 4;
}

/* ========================================
   HERO SECTION RESPONSIVE STYLES
   ======================================== */

.hero {
  margin-top: 60px;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('assets/header.png') no-repeat center center;
  background-size: cover;
  background-position: center center;
  background-attachment: scroll;
  z-index: -1;
}

/* Fallback for background image */
.hero {
  background-color: #597a33;
  background-image: url('assets/header.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Ensure hero background works on all screen sizes */
@media (min-width: 768px) {
  .hero {
    background-size: cover;
    background-position: center center;
  }
}

@media (min-width: 1024px) {
  .hero {
    background-size: cover;
    background-position: center center;
  }
}

.hero .container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
}

.hero-content {
  text-align: center;
  padding: 40px 20px;
  width: 100%;
  max-width: 100%;
}

.hero-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  margin: 0 0 20px 0;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1rem;
  color: white;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  margin: 0;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   SERVICES SECTION RESPONSIVE STYLES
   ======================================== */

   @media (max-width: 767px) {
  .services {
  padding: 40px 0;
  background: #f8f9fa;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 30px;
  color: #597a33;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  max-width: 600px;
  margin: 0 auto;
}

.service-card {
  background: white;
  padding: 20px 15px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.service-icon img {
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
  object-fit: contain;
  background-color: transparent;
}

.service-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}
}

/* ========================================
   MEDICAL ACCESS SECTION RESPONSIVE STYLES
   ======================================== */

.medical-access {
  padding: 40px 0;
}

.access-subtitle {
  text-align: center;
  font-size: 1rem;
  margin-bottom: 30px;
  color: #666;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 500px;
  margin: 0 auto;
}

.stat-card {
  background: white;
  padding: 25px 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #597a33;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 0.9rem;
  color: #333;
}

.stat-list {
  list-style: none;
  margin-top: 10px;
}

.stat-list li {
  padding: 2px 0;
  font-size: 0.8rem;
  color: #666;
}

/* ========================================
   APP FEATURES SECTION RESPONSIVE STYLES
   ======================================== */

.app-features {
  padding: 40px 0;
  background: #f8f9fa;
}

.features-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
}

.phone-mockup {
  text-align: center;
}

.phone-mockup img {
  max-width: 200px;
  height: auto;
}

.features-text h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: #597a33;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.feature-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: #333;
}

.feature-item p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

/* ========================================
   AFFILIATES SECTION RESPONSIVE STYLES
   ======================================== */

.affiliates {
  padding: 40px 0;
}

.affiliates-subtitle {
  text-align: center;
  font-size: 0.9rem;
  margin-bottom: 30px;
  color: #666;
}

.carousel-container {
  position: relative;
  max-width: 300px;
  margin: 0 auto;
}

.carousel-track {
  display: flex;
  overflow: hidden;
  border-radius: 10px;
}

.affiliate-logo {
  min-width: 100%;
  text-align: center;
  padding: 20px;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.affiliate-logo img {
  max-width: 120px;
  height: auto;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #597a33;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.carousel-btn.prev {
  left: -20px;
}

.carousel-btn.next {
  right: -20px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: background 0.3s ease;
}

.dot.active {
  background: #597a33;
}

.view-all-btn {
  display: block;
  margin: 20px auto;
  background: #597a33;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.view-all-btn:hover {
  background: #3a6249;
}

/* ========================================
   LATEST SECTION RESPONSIVE STYLES
   ======================================== */

.latest {
  padding: 40px 0;
  background: #f8f9fa;
}

.latest-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.latest-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

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

.card-content {
  padding: 20px;
}

.card-logo img,
.card-image img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 15px;
}

.latest-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
}

/* ========================================
   FOOTER RESPONSIVE STYLES
   ======================================== */

.footer {
  background: #333;
  color: white;
  padding: 30px 0 20px;
}

.footer-content {
  text-align: center;
  margin-bottom: 20px;
}

.footer-address p {
  font-size: 0.9rem;
  margin-bottom: 20px;
  color: #ccc;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-link img {
  width: 25px;
  height: 25px;
  transition: opacity 0.3s ease;
}

.social-link:hover img {
  opacity: 0.7;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #555;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: #999;
}

/* ========================================
   TABLET STYLES (768px and up)
   ======================================== */

@media (min-width: 768px) {
  .container {
    max-width: 750px;
    padding: 0 20px;
  }

  .header .container {
    padding: 15px 20px;
    min-height: 70px;
  }

  .logo img {
    height: 45px;
  }

  .mobile-menu-toggle {
    display: none !important;
  }

  .nav {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: none !important;
    background: transparent !important;
    display: block !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: auto !important;
  }

  .nav-list {
    display: flex !important;
    flex-direction: row !important;
    gap: 30px;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
  }

  .nav-list li {
    border-bottom: none !important;
    display: inline-block !important;
    width: auto !important;
  }

  .nav-list a {
    padding: 8px 12px;
    font-size: 0.9rem;
    display: inline-block !important;
    width: auto !important;
  }

  .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 5px;
    min-width: 200px;
    padding: 10px 0;
    display: none;
    z-index: 1000;
  }

  .has-submenu {
    position: relative;
  }

  .has-submenu:hover .submenu {
    display: block;
  }

  .submenu li {
    display: block !important;
    width: 100% !important;
    border-bottom: none !important;
  }

  .submenu a {
    display: block !important;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: #666;
    width: 100% !important;
    box-sizing: border-box;
  }

  .submenu a:hover {
    background: #f8f9fa;
    color: #597a33;
  }

  .member-login-btn {
    display: block !important;
    background: #597a33;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
  }

  .member-login-btn:hover {
    background: #3a6249;
  }

  .hero {
    min-height: 400px;
    margin-top: 70px;
  }

  .hero-content {
    padding: 60px 40px;
  }

  .hero-title {
    font-size: 2.5rem;
    line-height: 1.1;
  }

  .hero-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 900px;
  }

  .service-card {
    padding: 25px 20px;
  }

  .service-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
  }

  .service-card h3 {
    font-size: 1rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 800px;
  }

  .stat-card {
    padding: 30px 25px;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .features-content {
    grid-template-columns: 1fr 1fr;
    gap: 50px;
  }

  .phone-mockup img {
    max-width: 250px;
  }

  .features-text h2 {
    font-size: 1.8rem;
  }

  .carousel-container {
    max-width: 500px;
  }

  .latest-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .latest-card h3 {
    font-size: 1.1rem;
  }
}

/* ========================================
   DESKTOP STYLES (1024px and up)
   ======================================== */

@media (min-width: 1024px) {
  .container {
    max-width: 1000px;
  }

  .header .container {
    padding: 20px;
    min-height: 80px;
  }

  .logo img {
    height: 50px;
  }

  .mobile-menu-toggle {
    display: none !important;
  }

  .nav {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: none !important;
    background: transparent !important;
    display: block !important;
  }

  .nav-list {
    display: flex !important;
    flex-direction: row !important;
    gap: 40px;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
  }

  .nav-list li {
    border-bottom: none !important;
    display: inline-block !important;
    width: auto !important;
  }

  .nav-list a {
    font-size: 1rem;
    display: inline-block !important;
    width: auto !important;
    padding: 8px 12px;
  }

  .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 5px;
    min-width: 200px;
    padding: 10px 0;
    display: none;
    z-index: 1000;
  }

  .has-submenu {
    position: relative;
  }

  .has-submenu:hover .submenu {
    display: block;
  }

  .submenu li {
    display: block !important;
    width: 100% !important;
    border-bottom: none !important;
  }

  .submenu a {
    display: block !important;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: #666;
    width: 100% !important;
    box-sizing: border-box;
  }

  .submenu a:hover {
    background: #f8f9fa;
    color: #597a33;
  }

  .member-login-btn {
    display: block !important;
  }

  .hero {
    min-height: 500px;
    margin-top: 80px;
  }

  .hero-content {
    padding: 80px 60px;
  }

  .hero-title {
    font-size: 3rem;
    line-height: 1.1;
  }

  .hero-subtitle {
    font-size: 1.4rem;
    max-width: 800px;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
  }

  .service-card {
    padding: 30px 20px;
  }

  .service-icon img {
    width: 70px;
    height: 70px;
    object-fit: contain;
  }

  .service-card h3 {
    font-size: 1.1rem;
  }

  .stats-grid {
    gap: 40px;
    max-width: 1000px;
  }

  .stat-card {
    padding: 40px 30px;
  }

  .stat-number {
    font-size: 3rem;
  }

  .stat-label {
    font-size: 1rem;
  }

  .features-content {
    gap: 80px;
  }

  .phone-mockup img {
    max-width: 300px;
  }

  .features-text h2 {
    font-size: 2.2rem;
  }

  .feature-item {
    margin-bottom: 30px;
  }

  .feature-icon {
    width: 50px;
    height: 50px;
  }

  .feature-item h3 {
    font-size: 1.2rem;
  }

  .feature-item p {
    font-size: 1rem;
  }

  .carousel-container {
    max-width: 700px;
  }

  .latest-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }

  .latest-card h3 {
    font-size: 1.2rem;
  }
}

/* ========================================
   LARGE DESKTOP STYLES (1200px and up)
   ======================================== */

@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }

  .mobile-menu-toggle {
    display: none !important;
  }

  .nav {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: none !important;
    background: transparent !important;
    display: block !important;
  }

  .nav-list {
    display: flex !important;
    flex-direction: row !important;
    gap: 50px;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
  }

  .nav-list li {
    border-bottom: none !important;
    display: inline-block !important;
    width: auto !important;
  }

  .nav-list a {
    display: inline-block !important;
    width: auto !important;
    padding: 8px 12px;
    font-size: 1rem;
  }

  .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 5px;
    min-width: 200px;
    padding: 10px 0;
    display: none;
    z-index: 1000;
  }

  .has-submenu {
    position: relative;
  }

  .has-submenu:hover .submenu {
    display: block;
  }

  .submenu li {
    display: block !important;
    width: 100% !important;
    border-bottom: none !important;
  }

  .submenu a {
    display: block !important;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: #666;
    width: 100% !important;
    box-sizing: border-box;
  }

  .submenu a:hover {
    background: #f8f9fa;
    color: #597a33;
  }

  .member-login-btn {
    display: block !important;
  }

  .hero {
    min-height: 600px;
    margin-top: 80px;
  }

  .hero-content {
    padding: 100px 80px;
  }

  .hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
  }

  .hero-subtitle {
    font-size: 1.6rem;
    max-width: 900px;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
    grid-template-rows: repeat(2, auto);   /* 2 rows */
  }
  
  .service-card {
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #9bb27d; /* vertical divider */
    border-bottom: 1px solid #9bb27d; /* horizontal divider */
  }

  .service-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
  }

  .service-card h3 {
    font-size: 1.2rem;
  }

  .stat-card {
    padding: 50px 40px;
  }

  .stat-number {
    font-size: 3.5rem;
  }

  .features-text h2 {
    font-size: 2.5rem;
  }

  .phone-mockup img {
    max-width: 350px;
  }

  .carousel-container {
    max-width: 800px;
  }

  .latest-grid {
    gap: 50px;
  }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-center {
  text-align: center;
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-30 {
  margin-bottom: 30px;
}

.mb-40 {
  margin-bottom: 40px;
}

.p-20 {
  padding: 20px;
}

.p-30 {
  padding: 30px;
}

.p-40 {
  padding: 40px;
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus {
  outline: 2px solid #597a33;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .service-card,
  .stat-card,
  .latest-card {
    border: 2px solid #333;
  }
}

/* ========================================
   PAGE-SPECIFIC RESPONSIVE STYLES
   ======================================== */

/* Contact Page Styles */
.contact-form {
  max-width: 100%;
  margin: 0 auto;
  padding: 20px;
}

.contact-tabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.contact-tab-btn {
  padding: 12px 20px;
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-tab-btn.active {
  background: #597a33;
  color: white;
  border-color: #597a33;
}

.contact-tab-content {
  display: none;
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-tab-content.active {
  display: block;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #597a33;
}

.submit-btn {
  background: #597a33;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  width: 100%;
}

.submit-btn:hover {
  background: #3a6249;
}

/* Provider Cards */
.provider-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 20px 0;
}

.provider-card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

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

.provider-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 15px;
}

.provider-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

.provider-card p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

/* Testimonial Cards */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 20px 0;
}

.testimonial-card {
  background: white;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 3rem;
  color: #597a33;
  opacity: 0.3;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 20px;
  padding-left: 30px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.author-info p {
  font-size: 0.9rem;
  color: #666;
}

/* News Cards */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 20px 0;
}

.news-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

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

.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-content {
  padding: 20px;
}

.news-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

.news-content p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 15px;
}

.news-date {
  font-size: 0.8rem;
  color: #999;
}

/* Career Cards */
.career-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 20px 0;
}

.career-card {
  background: white;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

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

.career-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

.career-card .location {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 15px;
}

.career-card .description {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 20px;
}

.career-card .requirements {
  margin-bottom: 20px;
}

.career-card .requirements h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

.career-card .requirements ul {
  list-style: none;
  padding: 0;
}

.career-card .requirements li {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 5px;
  padding-left: 20px;
  position: relative;
}

.career-card .requirements li::before {
  content: '•';
  color: #597a33;
  position: absolute;
  left: 0;
}

.apply-btn {
  background: #597a33;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.apply-btn:hover {
  background: #3a6249;
}

/* Image Optimization */
img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Image loading fallbacks */
img[src*="assets/"] {
  /* background-color: #f8f9fa;8f9fa; */
  border-radius: 4px;
}

img:not([src]) {
  background-color: #e9ecef;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

img:not([src])::after {
  content: "Image not found";
  color: #6c757d;
  font-size: 0.8rem;
}

/* Debug styles for image loading (remove in production) */
img {
  transition: opacity 0.3s ease;
}

img[src=""] {
  opacity: 0.5;
}

/* Ensure all service icons load properly */
.service-icon img,
.card-logo img,
.card-image img,
.affiliate-logo img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* Responsive Images */
.responsive-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Hero Images */
.hero-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Tablet Styles for Page Content */
@media (min-width: 768px) {
  .contact-tabs {
    flex-direction: row;
    gap: 0;
  }
  
  .contact-tab-btn {
    border-radius: 0;
    border-right: none;
  }
  
  .contact-tab-btn:first-child {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
  }
  
  .contact-tab-btn:last-child {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    border-right: 1px solid #ddd;
  }
  
  .provider-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  .career-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  .provider-card img {
    height: 200px;
  }
  
  .news-card img {
    height: 250px;
  }
}

/* Desktop Styles for Page Content */
@media (min-width: 1024px) {
  .provider-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
  
  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
  
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
  
  .career-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  
  .provider-card img {
    height: 250px;
  }
  
  .news-card img {
    height: 300px;
  }
}

/* Large Desktop Styles for Page Content */
@media (min-width: 1200px) {
  .provider-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
  }
  
  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
  }
  
  .news-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
  }
  
  .career-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
  }
}

/* Print styles */
@media print {
  .header,
  .mobile-menu-toggle,
  .carousel-btn,
  .view-all-btn {
    display: none;
  }
  
  .hero {
    margin-top: 0;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .provider-card,
  .testimonial-card,
  .news-card,
  .career-card {
    break-inside: avoid;
    margin-bottom: 20px;
  }
}
