/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html{
  scroll-behavior: smooth;
}
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: #2c2c2c;
  background-color: #fafafa;
}

/* Header Banner */
.header-banner {
  background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
  color: white;
  padding: 15px 15px 0;
  position: relative;
  overflow: hidden;
}

.banner-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.1"><circle cx="30" cy="30" r="1"/></g></svg>');
}

.logo-container {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px;
}

.site-logo {
  height: 100px;
  max-height: 200px;
  width: 350px;
  object-fit: cover;

  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.site-tagline {
  font-size: 1.1rem;
  opacity: 0.9;
  font-weight: 400;
}

/* Global Navigation Bar */
.global-navbar {
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  padding: 12px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.nav-home-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #1976d2, #1565c0);
  color: white;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(25, 118, 210, 0.3);
}

.nav-home-btn:hover {
  background: linear-gradient(135deg, #1565c0, #0d47a1);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(25, 118, 210, 0.4);
}

.nav-icon {
  font-size: 16px;
}

.nav-text {
  font-size: 14px;
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: #555;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: #1976d2;
  background-color: #f5f5f5;
}

.nav-link.active {
  color: #1976d2;
  background-color: #e3f2fd;
  font-weight: 600;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background-color: #1976d2;
  border-radius: 50%;
}
/* Hamburger button (hidden on desktop) */
.hamburger {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
}
.close-btn {
  display: none;
  align-self: flex-end;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: #1976d2;
  margin-bottom: 10px;
  position: absolute;
  top:0;
}
@media (max-width: 768px) {
  .navbar-container {
    padding: 0 15px;
  }
  
  .nav-links {
    gap: 12px;
  }
  
  .nav-link {
    padding: 6px 8px;
    font-size: 14px;
  }
  
  .nav-home-btn {
    padding: 8px 12px;
  }

}/* Ad Spaces */
.ad-space {
  background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
  border: 2px dashed #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-weight: 500;
  text-align: center;
  visibility: hidden;
}

.ad-top,
.ad-bottom {
  height: 90px;
  margin: 0;
  /*display: none;*/
}

.ad-sidebar {
  height: 250px;
  width: 200px;
  position: sticky;
  top: 20px;
}

/* Main Layout */
.main-layout {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px;
}

.sidebar-ad {
  display: none;
  flex-shrink: 0;
  width: 200px;
}

.main-content {
  min-height: 600px;
  flex: 1;
  max-width: calc(100% - 220px);
}

/* Welcome Section */
.welcome-section {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
  padding: 48px;
  margin-bottom: 32px;
}
.welcome-header h1{
  margin-bottom: 1rem;
  font-size: 1.5rem;
}
.welcome-header h2 {
  color: #1976d2;
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 50%;
  gap: 40px;
  align-items: start;
}

.welcome-text {
  line-height: 1.7;
}

.welcome-text p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  color: #2c2c2c;
  font-weight: 500;
}

.welcome-text strong {
  color: #1976d2;
}

.how-it-works {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 8px;
  margin: 25px 0;
  border-left: 4px solid #1976d2;
}

.how-it-works h3 {
  color: #1976d2;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.how-it-works ol {
  padding-left: 20px;
}

.how-it-works li {
  margin-bottom: 8px;
  font-weight: 500;
}

.no-signup {
  font-style: italic;
  color: #666;
}

.start-now {
  color: #1976d2;
  font-size: 1.1rem;
}

/* Slideshow */
.slideshow-container {
  position: relative;
}

.slideshow {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.slide {
  display: none;
  position: relative;
  width: 100%;
  height: 100%;
}

.slide.active {
  display: block;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  padding: 25px;
  font-weight: 600;
  font-size: 1.1rem;
  text-align: center;
}

.slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 18px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.slide-nav:hover {
  background: rgba(0, 0, 0, 0.8);
}

.slide-nav.prev {
  left: 15px;
}

.slide-nav.next {
  right: 15px;
}

.slide-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
  background: white;
}

/* State Selection */
.state-selection {
  text-align: center;
  margin: 40px 0;
}

.select-state-btn {
  background: linear-gradient(135deg, #1976d2, #1565c0);
  color: white;
  border: none;
  padding: 22px 44px;
  border-radius: 50px;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 24px rgba(25, 118, 210, 0.35);
}

.select-state-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(25, 118, 210, 0.45);
}

.btn-icon {
  font-size: 1.5rem;
}

.btn-arrow {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.select-state-btn:hover .btn-arrow {
  transform: translateX(5px);
}

/* Quick Tests */
.quick-tests {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
  padding: 48px;
}

.quick-tests h3 {
  color: #1976d2;
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 30px;
}

.test-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.test-card {
  background: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  display: block;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.test-card:hover {
  border-color: #1976d2;
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(25, 118, 210, 0.2);
}

.test-card.coming-soon {
  opacity: 0.6;
  cursor: not-allowed;
}

.test-card.coming-soon:hover {
  transform: none;
  border-color: #e0e0e0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.test-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  display: block;
}

.test-card h4 {
  color: #1976d2;
  font-size: 1.4rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.test-card p {
  color: #444;
  font-size: 1rem;
  font-weight: 500;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
}

.modal-content {
  background: #fefefe;
  margin: 5% auto;
  padding: 0;
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
  background: #1976d2;
  color: white;
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
}

.close-modal {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.states-grid {
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  max-height: 60vh;
  overflow-y: auto;
}

.state-btn {
  background: #ffffff;
  border: 2px solid #e0e0e0;
  padding: 18px 24px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.state-btn:hover {
  background: #1976d2;
  color: white;
  border-color: #1976d2;
}

/* Large Screen Optimization */
@media (min-width: 1200px) {
  .main-content {
    max-width: none;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .main-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }

  .sidebar-ad {
    display: none;
  }

  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .slideshow {
    height: 250px;
  }
}

@media (max-width: 768px) {
  body:has(.nav-container.show){
    overflow: hidden;
  }
  .main-layout {
    flex-direction: column;
    padding: 20px;
  }
  .nav-container {
    display: none;
    flex-direction: column;
    gap: 10px;
    background: white;
    position: fixed;
    top: 60px;
    right: 0px;
    border: 1px solid #ccc;
    padding: 32px 16px 16px;
    border-radius: 0;
    z-index: 999;
    width: 100%;
    height: 100%;
  }
  .main-nav a{
    text-align: start;
    border-radius: 0 !important;
  }
  .nav-container.show {
    display: flex;
    /*align-items: start;*/
    justify-content: stretch;
    text-align: start;
  }

  .hamburger,  .close-btn  {
    display: block;
  }
  .header-banner{
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .logo-container{
    padding: 0;
    margin: 0;
  }
  .sidebar-ad {
    display: none;
  }

  .main-content {
    max-width: 100%;
  }

  .site-logo {
    height: 50px;
    width: 200px;
    max-height: 50px;
    font-size: 2rem;
  }

  .site-tagline {
    font-size: 1rem;
  }

  .welcome-section {
    padding: 25px;
  }

  .welcome-header h2 {
    font-size: 1.8rem;
  }

  .slideshow {
    height: 200px;
  }

  .select-state-btn {
    padding: 15px 30px;
    font-size: 1.1rem;
  }

  .test-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
  }

  .quick-tests {
    padding: 25px;
  }

  /* Mobile Modal Styling */
  .modal {
    background-color: rgba(0, 0, 0, 0.9);
  }

  .modal-content {
    background: #2c2c2c;
    margin: 10% auto;
    width: 95%;
  }

  .modal-header {
    background: #1976d2;
  }

  .states-grid {
    grid-template-columns: 1fr;
    padding: 20px;
    background: #2c2c2c;
  }

  .state-btn {
    background: #3c3c3c;
    border: 2px solid #555;
    color: white;
    padding: 18px 20px;
    font-size: 1.1rem;
  }

  .state-btn:hover {
    background: #1976d2;
    border-color: #1976d2;
  }
}

@media (max-width: 480px) {
  .main-layout {
    padding: 15px;
  }

  .welcome-section {
    padding: 20px;
  }

  .welcome-header h2 {
    font-size: 1.5rem;
  }

  .how-it-works {
    padding: 20px;
  }

  .slideshow {
    height: 180px;
  }

  .select-state-btn {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .quick-tests {
    padding: 20px;
  }

  .test-grid {
    grid-template-columns: 1fr;
  }
}

/* Print Styles */
@media print {
  .ad-space,
  .sidebar-ad,
  .slideshow-container,
  .modal {
    display: none;
  }

  body {
    background: white;
  }

  .main-layout {
    grid-template-columns: 1fr;
  }
}

/* ===================================
   Footer Styles
   ================================= */
.site-footer {
  background: linear-gradient(135deg, #1e1e2e 0%, #2d2d44 100%);
  color: #ffffff;
  margin-top: 60px;
  border-top: 4px solid #1976d2;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px 30px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-section h3 {
  color: #1976d2;
  margin-bottom: 15px;
  font-size: 1.4rem;
  font-weight: 600;
}

.footer-section h4 {
  color: #ffffff;
  margin-bottom: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  border-bottom: 2px solid #1976d2;
  padding-bottom: 8px;
  display: inline-block;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.footer-logo-img {
  height: 50px;
  width: auto;
  filter: brightness(1.1);
}

.footer-description {
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 25px;
  font-size: 0.95rem;
}

.footer-stats {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.stat-item {
  text-align: center;
  padding: 10px;
  background: rgba(25, 118, 210, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(25, 118, 210, 0.3);
  min-width: 70px;
}

.stat-item strong {
  display: block;
  font-size: 1.2rem;
  color: #1976d2;
  font-weight: 700;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #cccccc;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  padding: 5px 0;
  display: block;
}

.footer-links a:hover {
  color: #1976d2;
  padding-left: 10px;
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.copyright {
  color: #cccccc;
  font-size: 0.85rem;
  margin: 0;
}

.disclaimer-text {
  font-style: italic;
  color: #aaaaaa;
}

.footer-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.badge {
  background: #1976d2;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 500;
}

/* ===================================
   Legal Modal Styles
   ================================= */
.legal-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
}

.legal-modal-content {
  background-color: #ffffff;
  margin: 2% auto;
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.legal-modal-header {
  background: linear-gradient(135deg, #1976d2, #1565c0);
  color: white;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.legal-modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.close-legal-modal {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.close-legal-modal:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.legal-modal-body {
  padding: 25px;
  max-height: calc(90vh - 80px);
  overflow-y: auto;
  line-height: 1.6;
}

.legal-modal-body h3 {
  color: #1976d2;
  margin-top: 25px;
  margin-bottom: 15px;
  font-size: 1.2rem;
  font-weight: 600;
}

.legal-modal-body h3:first-child {
  margin-top: 0;
}

.legal-modal-body p {
  margin-bottom: 15px;
  color: #444;
}

.legal-modal-body ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

.legal-modal-body li {
  margin-bottom: 8px;
  color: #555;
}

/* Contact Form Styles */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 25px 0;
}

.contact-method {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #1976d2;
}

.contact-method h3 {
  margin-top: 0 !important;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.contact-form-section {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 8px;
  margin: 25px 0;
}

.contact-form {
  display: grid;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

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

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

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

.form-group small {
  margin-top: 5px;
  color: #666;
  font-size: 0.85rem;
}

.contact-submit-btn,
.report-submit-btn {
  background: linear-gradient(135deg, #1976d2, #1565c0);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-submit-btn:hover,
.report-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(25, 118, 210, 0.4);
}

.contact-faq {
  margin-top: 30px;
  border-top: 1px solid #e0e0e0;
  padding-top: 25px;
}

.faq-item {
  margin-bottom: 15px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 6px;
}

.faq-item strong {
  color: #1976d2;
  display: block;
  margin-bottom: 5px;
}

.report-thanks {
  text-align: center;
  padding: 30px;
  background: #e8f5e8;
  border-radius: 8px;
  border: 2px solid #4caf50;
}

.report-thanks h3 {
  color: #2e7d32 !important;
  margin-bottom: 10px;
}

/* Enhanced Contact Us Section Styles */
.contact-intro {
  text-align: center;
  margin-bottom: 40px;
}

.contact-intro h3 {
  color: #1976d2;
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.contact-intro p {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.6;
}

.contact-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  padding: 40px;
  margin: 30px 0;
  display: flex;
  align-items: center;
  gap: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1976d2, #42a5f5);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(25, 118, 210, 0.15);
}

.contact-icon {
  background: linear-gradient(135deg, #1976d2, #42a5f5);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 15px rgba(25, 118, 210, 0.3);
  flex-shrink: 0;
}

.contact-details h4 {
  color: #1976d2;
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.contact-description {
  color: #666;
  font-size: 1rem;
  margin-bottom: 15px;
  line-height: 1.5;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  background: #1976d2;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(25, 118, 210, 0.3);
}

.contact-email:hover {
  background: #1565c0;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(25, 118, 210, 0.4);
  color: white;
}

.contact-features {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  font-weight: 500;
  color: #333;
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: #e3f2fd;
  border-color: #1976d2;
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 1.2rem;
}

.contact-note {
  background: #e3f2fd;
  border: 1px solid #bbdefb;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  margin-top: 30px;
}

.contact-note p {
  color: #0d47a1;
  margin: 0;
  line-height: 1.6;
}

.contact-note strong {
  color: #1976d2;
}

/* Responsive Design for Contact Section */
@media (max-width: 768px) {
  .contact-card {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
    gap: 20px;
  }

  .contact-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .contact-details h4 {
    font-size: 1.3rem;
  }

  .contact-features {
    gap: 20px;
    flex-direction: column;
    align-items: center;
  }

  .feature-item {
    min-width: 200px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .contact-intro h3 {
    font-size: 1.5rem;
  }

  .contact-intro p {
    font-size: 1rem;
  }

  .contact-card {
    padding: 20px 15px;
  }

  .contact-email {
    padding: 10px 20px;
    font-size: 1rem;
  }

  .contact-note {
    padding: 20px 15px;
  }
}

/* Footer Responsive Design */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px 15px 20px;
  }

  .footer-stats {
    justify-content: center;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .contact-methods {
    grid-template-columns: 1fr;
  }

  .legal-modal-content {
    width: 95%;
    margin: 5% auto;
  }

  .legal-modal-body {
    padding: 20px;
  }
}

/* Resource Sections */
.resource-section {
  background: #ffffff;
  padding: 60px 0;
  margin: 40px 0;
  border-top: 1px solid #e0e0e0;
}

.resource-section:nth-child(even) {
  background: #f8f9fa;
}

.resource-section h2 {
  color: #1976d2;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.resource-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* CDL Study Tips */
.tip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
  justify-items: center;
}

.tip-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

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

.tip-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

.tip-card h3 {
  color: #1976d2;
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.tip-card p {
  color: #555;
  line-height: 1.6;
  font-size: 1rem;
}

/* Requirements Section */
.requirement-info {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.requirement-info h3 {
  color: #1976d2;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.requirement-info > p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 30px;
  color: #444;
}

.requirement-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 30px 0;
}

.requirement-item {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 25px;
  border-left: 4px solid #1976d2;
}

.requirement-item h4 {
  color: #1976d2;
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.requirement-item ul {
  list-style: none;
  padding-left: 0;
}

.requirement-item li {
  padding: 8px 0;
  color: #444;
  line-height: 1.5;
}

.requirement-item strong {
  color: #1976d2;
}

.state-specific-note {
  background: #fff3e0;
  border: 1px solid #ffb74d;
  border-radius: 12px;
  padding: 20px;
  margin-top: 30px;
}

.state-specific-note p {
  margin: 0;
  color: #e65100;
  font-weight: 500;
}

/* Practice Test Guide */
.guide-steps {
  margin: 40px 0;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 25px;
  margin-bottom: 30px;
  background: #ffffff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.step-number {
  background: #1976d2;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  flex-shrink: 0;
}

.step-content h3 {
  color: #1976d2;
  font-size: 1.4rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.step-content p {
  color: #555;
  line-height: 1.6;
  font-size: 1rem;
}

.practice-tips {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 30px;
  margin-top: 40px;
}

.practice-tips h3 {
  color: #1976d2;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.practice-tips ul {
  list-style: none;
  padding-left: 0;
}

.practice-tips li {
  padding: 8px 0;
  color: #444;
  line-height: 1.6;
}

/* Endorsements Guide */
.endorsement-intro {
  font-size: 1.2rem;
  line-height: 1.7;
  text-align: center;
  margin-bottom: 40px;
  color: #444;
}

.endorsement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.endorsement-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

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

.endorsement-code {
  background: #1976d2;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: bold;
  margin: 0 auto 20px;
}

.endorsement-card h3 {
  color: #1976d2;
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.endorsement-card p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 15px;
}

.endorsement-details {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  text-align: left;
  margin-top: 15px;
}

.endorsement-details strong {
  color: #1976d2;
}

.endorsement-note {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 30px;
  margin-top: 40px;
}

.endorsement-note h3 {
  color: #1976d2;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.endorsement-note ul {
  list-style: none;
  padding-left: 0;
}

.endorsement-note li {
  padding: 8px 0;
  color: #444;
  line-height: 1.6;
}

/* FAQ Section */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.faq-item {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-3px);
}

.faq-item h3 {
  color: #1976d2;
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.faq-item p {
  color: #555;
  line-height: 1.6;
  font-size: 1rem;
}

/* Mobile Responsive for Resource Sections */
@media (max-width: 768px) {
  .resource-section {
    padding: 40px 0;
  }

  .resource-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
  }

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

  .tip-card {
    padding: 25px;
  }

  .requirement-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .requirement-item {
    padding: 20px;
  }

  .step-item {
    flex-direction: column;
    text-align: center;
    padding: 25px;
  }

  .step-number {
    margin: 0 auto 15px;
  }

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

  .endorsement-card {
    padding: 25px;
  }

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

  .faq-item {
    padding: 25px;
  }
}

@media (max-width: 480px) {
  .resource-section h2 {
    font-size: 1.8rem;
  }

  .tip-card,
  .endorsement-card,
  .faq-item,
  .step-item {
    padding: 20px;
  }

  .requirement-item {
    padding: 15px;
  }

  .practice-tips,
  .endorsement-note {
    padding: 20px;
  }
}

/* Additional styles for Resources page */
.page-header {
  background: linear-gradient(135deg, #1976d2, #1565c0);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 700;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.page-description {
  font-size: 1.3rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  opacity: 0.95;
  padding: 0 20px;
}

.quick-nav {
  padding: 60px 0;
  background: #f8f9fa;
}

.nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.nav-card:hover {
  transform: translateY(-5px);
  border-color: #1976d2;
  box-shadow: 0 12px 32px rgba(25, 118, 210, 0.2);
}

.nav-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

.nav-card h3 {
  color: #1976d2;
  font-size: 1.4rem;
  margin-bottom: 10px;
  font-weight: 600;
}

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

.main-nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

.main-nav a {
  color: #1976d2;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: #1976d2;
  color: white;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 20px;
}

.header-content.centered-nav {
  justify-content: center;
}

@media (max-width: 768px) {
  .page-header h1 {
    font-size: 2.2rem;
  }

  .page-description {
    font-size: 1.1rem;
  }

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

  .nav-card {
    padding: 25px;
  }

  .header-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    margin: 0;
  }

  .main-nav {
    justify-content: center;
  }
}

/* Fix list formatting in resource sections */
.resource-content ul {
  list-style-type: disc;
  padding-left: 20px;
  margin: 16px 0;
}

.resource-content ol {
  list-style-type: decimal;
  padding-left: 20px;
  margin: 16px 0;
}

.resource-content li {
  margin-bottom: 8px;
  line-height: 1.6;
  color: #444;
}

/* Override specific spacing for lists that already have custom styling */
.requirement-item ul,
.practice-tips ul,
.endorsement-note ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.requirement-item li,
.practice-tips li,
.endorsement-note li {
  margin-bottom: 0;
  padding: 8px 0;
}
