/* General styling to match the dark blue, shaded theme */
:root {
    --primary-blue: #3b82f6;
    --dark-blue: #111827;
    --dark-gray: #1f2937;
    --text-color: #d1d5db;
    --light-text-color: #9ca3af;
    --border-color: #374151;
    --hover-blue: #2563eb;
    --focus-shadow: rgba(59, 130, 246, 0.3);
    
    /* Light mode colors */
    --light-bg: #f9fafb;
    --light-container-bg: #ffffff;
    --light-text: #1f2937;
    --light-text-secondary: #6b7280;
    --light-border: #e5e7eb;
}

/* Keyframe animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Light mode (default) */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
    color: var(--light-text);
    min-height: 100vh;
    padding: 1rem;
}

/* Dark mode styles */
body.dark-mode {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--dark-gray) 100%);
    color: var(--text-color);
}

/* Dark mode toggle button styling */
.dark-toggle {
   
    /* background: #fff !important; */
    border: none;
    cursor: pointer;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    transition: all 0.25s ease;
}

.dark-toggle:hover {
    background: #2563eb;
}
/* For dark mode button background */
body.dark-mode #darkModeToggle {
    background-color: #f6f2f2;  /* Or any other dark color you prefer */
    color: #110505;             /* Optional: white text/icon */
    border: none;               /* Optional: remove border */
  }
  @media (max-width: 768px){
    body.dark-mode #darkModeToggle{
      color:#170d0d;
      /* background-color: white; */
    }
  }
.faq-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    animation: fadeIn 0.8s ease-in-out;
}

/* Dark mode container */
body.dark-mode .faq-container {
    background: var(--dark-gray);
    box-shadow: 0 4px 6px -1px rgba(255, 255, 255, 0.05);
}

.faq-title {
    font-size: 2rem;
    font-weight: bold;
    color: #f3f4f6;
    text-align: center;
    margin-top: 4rem;
    margin-bottom: 2rem;
    animation: fadeIn 1s ease-in-out 0.2s forwards;
    opacity: 0;
}



/* FAQ accordion styling */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
  background: var(--dark-blue);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transform-style: preserve-3d;
  transition: border-color 1.6s ease, box-shadow 0.3s ease, transform 0.3s ease;

}

.faq-item:hover {
  border-color: var(--primary-blue);
   border-width: 3px;
  box-shadow:
    0 30px 20px rgba(0, 0, 0, 0.3),
    0 0 9px var(--focus-shadow),
    0 0 20px #a0dfff;
  transform: translateY(-6px) scale(1.02);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.8rem;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.faq-question h3 {
    font-size: 1.1rem;
    color: #357abd !important;
    margin: 0;
}

/* Dark mode FAQ question headings */
body.dark-mode .faq-question h3 {
    color: #60a5fa !important; /* Lighter blue for better visibility in dark mode */
}

.question-paragraph{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.para{
  text-align: center;
  background-color: rgba(123, 162, 226, 0.3);
  padding: 0.8rem;
  border-radius: 25px;
  font-style: italic;
  font-weight: 500;
}

/* Dark mode para styling */
body.dark-mode .para {
  background-color: rgba(59, 130, 246, 0.2);
  color: var(--text-color);
}

.question-paragraph i {
  font-weight: 600;
  font-size: 4vh;
  margin-bottom: 3vh;
  display: inline-block;
  animation: bounceIcon 1.2s ease-in-out infinite;
}

@keyframes bounceIcon {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.faq-question i {
  background: radial-gradient(circle at center, #87daf8 0%, #026eea 100%);
  padding: 3px;
  color: white;
  border-radius: 50%;
  font-size: 1em;
  transition: transform 0.3s ease;
  box-shadow:
    0 0 6px #6bc4f1,
    0 0 12px #5cbff1,
    0 0 18px #d6d6d680;
}


.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px; /* Adjust as needed */
    padding: 1rem 1.5rem 1.5rem;
}

.faq-answer p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--light-text-color);
}

/* Dark mode FAQ answer text */
body.dark-mode .faq-answer p {
    color: var(--text-color);
}

/* Responsive design */
@media (max-width: 768px) {
    body.dark-mode {
        padding: 1rem;
    }
    .faq-container {
        padding: 1.5rem;
    }
    .faq-title {
        font-size: 1.5rem;
    }
    .faq-question {
        padding: 0.8rem 1rem;
    }
    .faq-question h3 {
        font-size: 1rem;
    }
    .faq-answer p {
        font-size: 0.9rem;
    }
}

 .modern-footer {
  width: 100vw; /* Full viewport width */
  margin-left: calc(-50vw + 50%); /* Center it if inside a constrained container */
  background: linear-gradient(135deg, #1f3c88, #2c5aa0);
  color: #fff;
  padding: 60px 20px 20px;
  border-radius: 25px 25px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  overflow-x: hidden;
}


    .footer-top {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 2rem;
      margin-bottom: 30px;
    }

    .footer-brand h2 {
      font-size: 1.8rem;
      margin-bottom: 10px;
      display: flex;
      align-items: center;
    }

    .footer-brand h2 i {
      margin-right: 10px;
      font-size: 1.6rem;
      vertical-align: middle;
    }

    .footer-brand p {
      font-size: 1rem;
      line-height: 1.5;
      opacity: 0.9;
    }

    .footer-links-section h4 {
      font-size: 1.1rem;
      margin-bottom: 10px;
      border-bottom: 2px solid rgba(255, 255, 255, 0.3);
      padding-bottom: 5px;
    }

    .footer-links-section ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .footer-links-section ul li {
      margin-bottom: 8px;
    }

    .footer-links-section ul li a {
      color: rgba(255, 255, 255, 0.8);
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: 8px;
      transition: 0.3s;
    }

    .footer-links-section ul li a:hover {
      color: #fff;
      transform: translateX(5px);
    }

    .social-icons {
      display: flex;
      gap: 10px;
      margin-top: 5px;
    }

    .social-icons a {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 50%;
      color: #fff;
      transition: 0.3s;
    }

    .social-icons a:hover {
      background: #fff;
      color: #2c5aa0;
      transform: scale(1.1);
    }

    .footer-bottom {
      text-align: center;
      border-top: 1px solid rgba(255, 255, 255, 0.2);
      padding-top: 15px;
      font-size: 0.9rem;
      opacity: 0.8;
    }
    .footer-card {
      flex: 1 1 200px;
      background: rgba(255,255,255,0.1);
      border-radius: 12px;
      padding: 20px;
      min-width: 200px;
    }
 .footer-card ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .footer-card ul li {
      margin-bottom: 8px;
    }

    .footer-card ul li a {
      color: rgba(255, 255, 255, 0.8);
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: 8px;
      transition: 0.3s;
      
      padding: 5px;
      padding-left: 20px;
    }

    .footer-card ul li a:hover {
      color: #fff;
      transform: translateX(5px);
    }

    @media (max-width: 768px) {
      .footer-top {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 3rem;
      }

      .footer-brand h2 {
        font-size: 1.5rem;
      }

      .footer-links-section h4 {
        font-size: 1rem;
      }

      .footer-links-section ul li a {
        font-size: 0.95rem;
      }

      .social-icons a {
        width: 35px;
        height: 35px;
      }
    }

     @media (max-width: 756px) and (min-width: 730px),
       (max-width: 601px) and (min-width: 540px) {
  .footer-card {
    gap: 4rem;
  }
}

    @media (max-width: 480px) {
      .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
      }

      .social-icons {
        justify-content: center;
      }

      .footer-links-section ul li a {
        justify-content: center;
      }
    }
    .footer-bottom .heart {
  color: inherit;  
}

/* Light Mode Styles */
body:not(.dark-mode) .faq-title {
    color: var(--light-text);
}

/* Dark mode FAQ title */
body.dark-mode .faq-title {
    color: #f3f4f6;
}

body:not(.dark-mode) .faq-item {
    border-color: var(--light-border);
    background: var(--light-container-bg);
}

body:not(.dark-mode) .faq-item:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

body:not(.dark-mode) .faq-question h3 {
    color: var(--light-text);
}

body:not(.dark-mode) .faq-answer p {
    color: var(--light-text-secondary);
}

/* Dark mode FAQ items */
body.dark-mode .faq-item {
    background: var(--dark-gray);
    border-color: var(--border-color);
}

body.dark-mode .faq-item:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Dark mode navbar compatibility */
body.dark-mode .navbar {
    background: transparent;
    background: linear-gradient(90deg, #1f2937, #111827);
    color: var(--text-light);
    box-shadow: 0 4px 6px -1px rgba(255, 255, 255, 0.05);
}

body.dark-mode .nav-item {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--text-light);
}

body.dark-mode .nav-item:hover {
    background: linear-gradient(135deg, #63b3ed, #4299e1);
    color: #1a202c;
}

/* Dark Mode Footer Styles */
body.dark-mode .modern-footer {
background: linear-gradient(135deg, #1a202c, #2d3748);
}

body.dark-mode .footer-section h3,
body.dark-mode .footer-section h4 {
color: #e0e0e0;
}

body.dark-mode .footer-section h4 {
border-bottom-color: rgba(224, 224, 224, 0.2);
}

body.dark-mode .footer-links a {
color: rgba(224, 224, 224, 0.8);
}

body.dark-mode .footer-links a:hover {
color: #90cdf4;
}

body.dark-mode .social-links a {
background: rgba(224, 224, 224, 0.1);
color: #e0e0e0;
}

body.dark-mode .social-links a:hover {
background: rgba(144, 205, 244, 0.2);
color: #90cdf4;
}

body.dark-mode .footer-bottom {
background: rgba(0, 0, 0, 0.3);
border-top-color: rgba(224, 224, 224, 0.1);
}