body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background-color: #f9f9fb;
  color: #222;
  margin: 0;
  padding: 0;
  line-height: 1.7;
}

  /* Font block hover effect */
  .font-block span {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.3s ease-in-out;
  }
  .font-block:hover span {
    visibility: visible;
    opacity: 1;
  }

  /* Copy notification box styles */
  .copy-box {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    width: 100%; /* Set full width */
    max-width: 100%; /* Ensure it doesn't exceed 100% */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding-bottom: 8px; /* Add the padding as requested */
    border: none;
    color: #000;
    font-size: 2rem !important;
}

.copy-box.active {
    display: block;
}

/* Responsive design for copy box */
@media (max-width: 640px) {
    .copy-box {
        width: 90%; /* Make it 90% of the viewport width on small screens */
        padding: 15px;
    }
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.header {
  background: #fff;
  border-bottom: 1px solid #ececec;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  padding: 18px 0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo img {
  max-width: 220px;
  height: auto;
}

/* Updated navigation styles */
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links {
  display: flex;
  gap: 15px;
  transition: all 0.3s ease;
}

.nav-button {
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 9px 22px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(37,99,235,0.08);
}

.nav-button:hover {
  background: #1d4ed8;
  box-shadow: 0 4px 16px rgba(37,99,235,0.13);
}

/* Hamburger menu styles */
.hamburger-menu {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1001;
}

.hamburger-icon {
  width: 100%;
  height: 100%;
  position: relative;
}

.hamburger-icon span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: #007bff;
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.hamburger-icon span:nth-child(1) {
  top: 0px;
}

.hamburger-icon span:nth-child(2) {
  top: 10px;
}

.hamburger-icon span:nth-child(3) {
  top: 20px;
}

.hamburger-menu.active .hamburger-icon span:nth-child(1) {
  top: 10px;
  transform: rotate(135deg);
}

.hamburger-menu.active .hamburger-icon span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.hamburger-menu.active .hamburger-icon span:nth-child(3) {
  top: 10px;
  transform: rotate(-135deg);
}

.nav .dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  z-index: 10;
}

.dropdown-menu a {
  display: block;
  padding: 12px 20px;
  color: #007bff;
  text-decoration: none;
}

.dropdown-menu a:hover {
  background-color: #e3f2fd;
}

/* Navigation Dropdown Styles */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  padding: 10px 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-family: inherit;
  white-space: nowrap;
  margin: 5px;
}

.nav-dropdown-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.nav-dropdown-btn .fas {
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-btn .fas {
  transform: rotate(180deg);
}

.nav-dropdown-content {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  min-width: 200px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  padding: 8px 0;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  transform-origin: top center;
}

.nav-dropdown:hover .nav-dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(10px);
  animation: dropdownFadeIn 0.3s ease forwards;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(10px);
  }
}

.nav-dropdown-content a {
  display: block;
  padding: 10px 16px;
  color: #212529;
  transition: all 0.2s ease;
  text-decoration: none;
  text-align: center;
  font-size: 16px;
}

.nav-dropdown-content a {
  display: block;
  padding: 10px 16px;
  color: #212529;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
  font-size: 16px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.nav-dropdown-content a:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(0,123,255,0.1) 0%, rgba(0,123,255,0.05) 100%);
  transition: width 0.3s ease;
  z-index: -1;
}

.nav-dropdown-content a:hover {
  color: #007bff;
}

.nav-dropdown-content a:hover:before {
  width: 100%;
}

/* Dark mode for dropdown */
@media (prefers-color-scheme: dark) {
  .nav-dropdown-btn {
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
  }
  
  .nav-dropdown-content {
    background-color: #1e1e1e;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  }
  
  .nav-dropdown-content a {
    color: #e6e6e6;
  }
  
  .nav-dropdown-content a:hover {
    background-color: #0f3460;
    color: #4cc9f0;
  }
}

@media (max-width: 768px) {
  .nav-dropdown {
    width: 100%;
  }
  
  .nav-dropdown-btn {
    width: 80%;
    justify-content: center;
    margin: 10px 0;
    padding: 12px 20px;
  }
  
  .nav-dropdown-content {
    position: static;
    transform: none;
    box-shadow: none;
    background-color: transparent;
    padding: 0;
    margin-top: 0;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
  }
  
  .nav-dropdown.active .nav-dropdown-content {
    opacity: 1;
    visibility: visible;
    max-height: 500px; /* Large enough to fit all items */
    margin-top: 10px;
    margin-bottom: 10px;
  }
  
  .nav-dropdown-content a {
    padding: 12px 20px;
    background-color: rgba(0, 123, 255, 0.1);
    margin-bottom: 8px;
    border-radius: 8px;
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s ease;
  }
  
  .nav-dropdown.active .nav-dropdown-content a {
    transform: translateY(0);
    opacity: 1;
  }
  
  .nav-dropdown.active .nav-dropdown-content a:nth-child(1) {
    transition-delay: 0.1s;
  }
  
  .nav-dropdown.active .nav-dropdown-content a:nth-child(2) {
    transition-delay: 0.2s;
  }
  
  .nav-dropdown.active .nav-dropdown-content a:nth-child(3) {
    transition-delay: 0.3s;
  }
  
  .nav-dropdown.active .nav-dropdown-btn .fas {
    transform: rotate(180deg);
  }
  
  /* Dark mode adjustments for mobile */
  @media (prefers-color-scheme: dark) {
    .nav-dropdown-content a {
      background-color: rgba(67, 97, 238, 0.1);
    }
  }
}

.cool-fonts-button {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
}

.main-section {
  text-align: center;
  padding: 40px 0;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 32px 0 12px 0;
  color: #222;
}

.section-description {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 32px;
}

.symbol-board-controls {
  background-color: #ffffff;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.textarea-container {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.symbol-board-textarea {
  padding: 12px;
  font-size: 24px;
  border: 2px solid #007bff;
  border-radius: 8px;
  width: 100%;
  resize: vertical;
  box-sizing: border-box;
}

.textarea-buttons {
  position: absolute;
  right: 5px;
  top: 1%;
  transform: translateY(-50%);
  display: flex;
  gap: 5px;
}

.textarea-buttons button {
  background-color: #007bff;
  border-radius: 15px;
  box-shadow: 0 9px 15px rgba(0, 0, 0, 0.1);
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.textarea-buttons button:hover {
  background-color: #0056b3;
}

.button-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.button {
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 24px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(37,99,235,0.08);
}

.button:hover {
  background: #1d4ed8;
  box-shadow: 0 4px 16px rgba(37,99,235,0.13);
}

.symbols-container {
  text-align: center;
}

.symbols-title {
  font-size: 24px;
  margin-bottom: 16px;
  color: #0056b3;
}

.symbols {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  text-decoration: none;
}

.symbol {
  font-size: 24px;
  position: relative;
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 60px;
  min-height: 60px;
  margin: 8px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  transition: transform 0.2s;
  text-decoration: none;
}
.related-symbols-container {
  text-align: center;
}

.my-related-symbol {
  font-size: 24px;
  position: relative;
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60px;
  margin: 8px;
  border-radius: 8px;
  transition: transform 0.2s;
  flex-wrap: wrap;
  text-decoration: none;
}
.related-symbol {
  --color: #55758e; /* Base color */
  --hover-color: #3b5c72; /* Hover color */
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  margin:5px;
  padding: 3px 2px 1px 2px;
  background: var(--color);
  border-radius: 8px; /* Slightly rounded corners for a modern look */
  color: #fff !important;
  text-decoration: none !important;
  font-size: 18px;
  font-weight: bold;
  border: 2px solid #fff;
  box-shadow: 0px 2px 4px #ccc;
  transition: all 0.3s ease-in-out; /* Smooth transition */
}

.related-symbol:hover {
  background: var(--hover-color);
  transform: translateY(-3px); /* Lift effect on hover */
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
}

.related-symbol.disabled {
  color: #d3d3d3; 
  pointer-events: none;
  text-decoration: none;
}


.symbol:hover {
  transform: scale(1.1);
}

.additional-symbol-categories {
  margin-top: 50px;
  margin-bottom: 50px;
  text-align: center;
}

.symbol-categories-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.symbol-category {
 appearance: none;
 background-color: #FAFBFC;
 border: 1px solid rgba(27, 31, 35, 0.15);
 border-radius: 6px;
 box-shadow: rgba(27, 31, 35, 0.04) 0 1px 0, rgba(255, 255, 255, 0.25) 0 1px 0 inset;
 box-sizing: border-box;
 color: #24292E;
 cursor: pointer;
 display: inline-block;
 font-family: -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
 font-size: 20px;
 margin: 5px;
 font-weight: 500;
 line-height: 20px;
 list-style: none;
 padding: 6px 16px;
 position: relative;
 transition: background-color 0.2s cubic-bezier(0.3, 0, 0.5, 1);
 user-select: none;
 -webkit-user-select: none;
 touch-action: manipulation;
 vertical-align: middle;
 white-space: nowrap;
 word-wrap: break-word;
}

.symbol-category:hover {
  background-color: #bbdefb;
}

.symbol-category a {
  text-decoration: none;
  color: inherit;
}

.symbol-category a:hover {
  color: #0056b3;
}

  /* Universal Table Styles */
  .thecoolsymbols-about-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    overflow-x: auto;
  }

  .thecoolsymbols-about-table th, .thecoolsymbols-about-table td {
    border: none;
    padding: 14px 10px;
    text-align: center;
    font-size: 1.08rem;
  }

  .thecoolsymbols-about-table th {
    background: #f0f4f8;
    color: #222;
    font-weight: 600;
    letter-spacing: 0.03em;
  }

  .thecoolsymbols-about-table tbody tr:nth-child(even) {
    background: #f7fafd;
  }

  .thecoolsymbols-about-table tbody tr:hover {
    background: #eaf6ff;
    transition: background 0.2s;
  }

  .thecoolsymbols-about-table td.symbol {
    font-family: 'Segoe UI Symbol', 'Arial Unicode MS', sans-serif;
    font-size: 1.3rem;
    cursor: pointer;
    background: #fff;
    border-radius: 6px;
    transition: background 0.2s;
  }

  .thecoolsymbols-about-table td.symbol:hover {
    background: #e0f0ff;
  }

  .about-box {
    width: 100%;
    max-width: 1200px;
    margin: 32px auto 24px auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.08), 0 1.5px 6px rgba(0,0,0,0.04);
    padding: 32px 28px 32px 28px;
    transition: box-shadow 0.2s;
    text-align: left; /* Ensure content aligns left */
  }
  .about-box:hover {
    box-shadow: 0 8px 40px rgba(0,0,0,0.13), 0 2px 8px rgba(0,0,0,0.06);
  }
  .about-box h2, .about-box h3 {
    color: #007bff;
    margin-bottom: 16px;
    text-align: center; /* Keep main headings centered */
  }
  .thecoolsymbols-table-container {
    overflow-x: auto;
    margin-bottom: 24px;
  }
  .thecoolsymbols-about-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fafbfc;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  }
  .thecoolsymbols-about-table th, .thecoolsymbols-about-table td {
    border: none;
    padding: 14px 10px;
    text-align: center;
    font-size: 1.08rem;
  }
  
  .thecoolsymbols-about-table th {
    background: #f0f4f8;
    color: #222;
    font-weight: 600;
    letter-spacing: 0.03em;
  }
  
  .thecoolsymbols-about-table tbody tr:nth-child(even) {
    background: #f7fafd;
  }
  
  .thecoolsymbols-about-table tbody tr:hover {
    background: #eaf6ff;
    transition: background 0.2s;
  }
  
  .thecoolsymbols-about-table td.symbol {
    font-family: 'Segoe UI Symbol', 'Arial Unicode MS', sans-serif;
    font-size: 1.3rem;
    cursor: pointer;
    background: #fff;
    border-radius: 6px;
    transition: background 0.2s;
  }
  
  .thecoolsymbols-about-table td.symbol:hover {
    background: #e0f0ff;
  }

  .about-instructions {
    margin-top: 32px;
    padding: 0 8px;
    text-align: left;
  }
  .about-instructions h4 {
    color: #007bff;
    margin-top: 24px;
    margin-bottom: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    display: block;
    width: 100%;
    text-align: left;
    border-left: 4px solid #007bff;
    padding-left: 10px;
    background: linear-gradient(to right, rgba(0, 123, 255, 0.05), transparent 80%);
    padding-top: 6px;
    padding-bottom: 6px;
    border-radius: 3px;
  }
  .about-instructions ol, .about-instructions ul {
    margin: 0 0 20px 0;
    padding-left: 28px;
    color: #444;
    font-size: 1rem;
    text-align: left;
  }
  .about-instructions li {
    margin-bottom: 7px;
    line-height: 1.7;
  }
@media (max-width: 700px) {
  .about-box {
    padding: 22px 18px;
  }
  .about-instructions h4 {
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 10px;
    padding-left: 8px;
  }
  .thecoolsymbols-about-table th, .thecoolsymbols-about-table td {
    font-size: 0.98rem;
    padding: 10px 4px;
  }
}
@media (max-width: 480px) {
  .about-box {
    padding: 16px 12px;
    border-radius: 12px;
  }
  .about-instructions h4 {
    font-size: 1.05rem;
    padding-top: 4px;
    padding-bottom: 4px;
  }
  .about-instructions ol, .about-instructions ul {
    padding-left: 20px;
  }
  .thecoolsymbols-about-table th, .thecoolsymbols-about-table td {
    font-size: 0.85rem;
    padding: 7px 2px;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
      background-color: #121212; /* Darker background */
      color: #e0e0e0;
    }
    
    .header, .footer, .symbol-board-controls {
      background-color: #1e1e1e; /* Consistent dark background */
      box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
      border-bottom-color: #333;
    }
    
    .symbol, .about-box {
      background-color: #0f3460;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
      color: #e6e6e6;
    }
    
    .section-title {
      color: #bb86fc; /* Adjusted dark mode accent */
    }
    
    .section-description, p, ul {
      color: #bdbdbd;
    }

    .about-instructions h4 {
      color: #4cc9f0;
      border-left-color: #4cc9f0;
      background: linear-gradient(to right, rgba(76, 201, 240, 0.1), transparent 80%);
    }

    .about-instructions ol, .about-instructions ul {
      color: #bdbdbd;
    }
  }

/* Modern Text Styles Grid */
.text-styles-grid-section {
  padding: 40px 0;
}

.text-styles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  padding: 20px 0;
}

.text-style-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Center content vertically */
  align-items: center; /* Center content horizontally */
  min-height: 150px; /* Ensure cards have a minimum height */
}

.text-style-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
}

.text-style-card a {
  text-decoration: none;
  color: inherit; /* Inherit text color from parent */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%; /* Make link fill the card */
  width: 100%; /* Make link fill the card */
}

.card-icon {
  font-size: 2.5rem; /* Larger icon */
  margin-bottom: 15px;
  line-height: 1; /* Adjust line height for icons */
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .text-styles-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
  }
  .text-style-card {
    padding: 20px;
    min-height: 130px;
  }
  .card-icon {
    font-size: 2rem;
  }
  .card-title {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .text-styles-grid {
    grid-template-columns: 1fr; /* Single column on very small screens */
    gap: 15px;
  }
   .text-style-card {
    min-height: 100px;
  }
}

/* Dark mode adjustments for text style cards */
@media (prefers-color-scheme: dark) {
  .text-style-card {
    background-color: #0f3460; /* Match other dark mode elements */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }
  .text-style-card:hover {
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.2); /* Use dark mode accent color */
  }
  .card-title {
    color: #e6e6e6; /* Light text for dark background */
  }
}

/* FAQ Section Styles */
.faq-grid {
  max-width: 1000px;
  margin: 40px auto;
}

.faq-item {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.faq-question {
  padding: 20px 24px;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
  user-select: none;
}

.faq-question h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  transition: color 0.3s ease;
  flex: 1;
  padding-right: 40px;
}

.faq-toggle {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  transition: all 0.3s ease;
}

.faq-toggle:before, .faq-toggle:after {
  content: '';
  position: absolute;
  background-color: #007bff;
  transition: all 0.3s ease;
}

.faq-toggle:before {
  width: 2px;
  height: 12px;
  top: 5px;
  left: 10px;
}

.faq-toggle:after {
  width: 12px;
  height: 2px;
  top: 10px;
  left: 5px;
}

.faq-item.active .faq-toggle:before {
  transform: rotate(90deg);
  opacity: 0;
}

.faq-item.active .faq-question {
  background-color: rgba(0, 123, 255, 0.05);
}

.faq-item.active .faq-question h4 {
  color: #007bff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  transition: all 0.4s ease;
  line-height: 1.6;
  opacity: 0;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 24px 24px;
  opacity: 1;
}

.faq-answer p {
  margin: 0;
  color: #555;
  font-size: 1rem;
}

/* Dark Mode for FAQ */
@media (prefers-color-scheme: dark) {
  .faq-item {
    background-color: #0f3460;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  }
  
  .faq-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  }
  
  .faq-question h4 {
    color: #e0e0e0;
  }
  
  .faq-toggle:before, .faq-toggle:after {
    background-color: #4cc9f0;
  }
  
  .faq-item.active .faq-question {
    background-color: rgba(76, 201, 240, 0.1);
  }
  
  .faq-item.active .faq-question h4 {
    color: #4cc9f0;
  }
  
  .faq-answer p {
    color: #bdbdbd;
  }
}

/* FAQ Responsive Styles */
@media (max-width: 768px) {
  .faq-question {
    padding: 16px 20px;
  }
  
  .faq-question h4 {
    font-size: 1rem;
    padding-right: 30px;
  }
  
  .faq-toggle {
    right: 20px;
    width: 18px;
    height: 18px;
  }
  
  .faq-toggle:before {
    height: 10px;
    top: 4px;
    left: 8px;
  }
  
  .faq-toggle:after {
    width: 10px;
    left: 4px;
    top: 8px;
  }
  
  .faq-answer {
    font-size: 0.95rem;
  }
  
  .faq-item.active .faq-answer {
    padding: 0 20px 20px 20px;
  }
}

@media (max-width: 480px) {
  .faq-question {
    padding: 14px 16px;
  }
  
  .faq-question h4 {
    font-size: 0.95rem;
    padding-right: 24px;
  }
  
  .faq-toggle {
    right: 16px;
    width: 16px;
    height: 16px;
  }
  
  .faq-toggle:before {
    height: 8px;
    top: 4px;
    left: 7px;
  }
  
  .faq-toggle:after {
    width: 8px;
    left: 4px;
    top: 7px;
  }
  
  .faq-item.active .faq-answer {
    padding: 0 16px 16px 16px;
  }
}

/* Footer Styles */
.footer {
  background: #fff;
  border-top: 1px solid #ececec;
  text-align: center;
  padding: 32px 0 18px 0;
  color: #888;
  font-size: 1rem;
  margin-top: 48px;
}

.footer .container {
  max-width: 960px; /* Limit container width for better readability */
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2; /* Above the glow effect */
}

.footer-text {
  margin: 0 0 20px 0;
  font-size: 1.05em; /* Slightly larger for better readability */
  letter-spacing: 0.5px;
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 25px; /* More space below nav links */
}

.footer-link {
  color: #2563eb;
  text-decoration: none;
  margin: 0 12px;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* Modern hover effect with glow */
.footer-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(to right, #3498db, #2ecc71); /* Gradient underline */
  transition: width 0.4s ease;
  box-shadow: 0 0 8px rgba(52, 152, 219, 0.8), 0 0 16px rgba(46, 204, 113, 0.4); /* Glow effect */
}

.footer-link:hover {
  color: #ffffff; /* Pure white on hover */
  transform: translateY(-3px); /* More pronounced lift */
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5); /* Text glow on hover */
}

.footer-link:hover::after {
  width: 100%;
}

/* Social Icons with glow effect */
.footer-social-icons {
  margin-top: 25px;
}

.footer-social-icons a {
  color: #f8f9fa; /* Match footer text color */
  font-size: 1.6rem;
  margin: 0 12px;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}

.footer-social-icons a:hover {
  color: #ffffff; /* Pure white on hover */
  transform: translateY(-3px) scale(1.15);
  text-shadow: 0 0 10px rgba(52, 152, 219, 0.9), 0 0 20px rgba(52, 152, 219, 0.6); /* Stronger glow for icons */
}

@media (max-width: 768px) {
  .footer {
    padding: 35px 0;
    font-size: 1rem; /* Adjusted tablet font size */
  }
  .footer-nav {
    gap: 16px;
  }
  .footer-link {
    padding: 7px 10px;
  }
}

@media (max-width: 480px) {
  .footer {
    font-size: 0.95rem; /* Slightly smaller on mobile but still readable */
    padding: 30px 0;
  }
  .footer-text {
    font-size: 1em; /* Relative to footer's font size */
    margin-bottom: 18px;
  }
  .footer-nav {
    flex-direction: column; /* Stack links vertically on small screens */
    gap: 12px;
    margin-bottom: 20px;
  }
  .footer-link {
    font-size: 1.05em; /* Slightly larger than footer base to ensure readability */
    display: inline-block;
    padding: 8px 15px;
  }
  .footer-social-icons a {
    font-size: 1.5rem;
    margin: 0 10px;
  }
}

/* Dark mode adjustments for footer with enhanced glow */
@media (prefers-color-scheme: dark) {
  .footer {
    background: #1e1e1e; /* Darker gradient */
    color: #e8e8e8; /* Increased brightness for better readability */
    border-top: 1px solid #333; /* Brighter gradient border */
  }
  
  .footer::before {
    background: linear-gradient(90deg, transparent, rgba(76, 161, 236, 0.8), rgba(46, 204, 113, 0.8), rgba(76, 161, 236, 0.8), transparent);
    box-shadow: 0 0 15px rgba(76, 161, 236, 0.7), 0 0 25px rgba(76, 161, 236, 0.5), 0 0 35px rgba(76, 161, 236, 0.3);
  }
  
  .footer-link {
    color: #e8e8e8; /* Match new dark mode footer text color */
  }
  
  .footer-link:hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6); /* Enhanced text glow */
  }
  
  .footer-link::after {
    background: linear-gradient(to right, #4ca1ec, #2ecc71); /* Brighter gradient */
    box-shadow: 0 0 10px rgba(76, 161, 236, 0.9), 0 0 20px rgba(46, 204, 113, 0.5); /* Stronger glow */
  }
  
  .footer-social-icons a {
    color: #e8e8e8; /* Match new dark mode footer text color */
  }
  
  .footer-social-icons a:hover {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(76, 161, 236, 1), 0 0 24px rgba(76, 161, 236, 0.7); /* Extra strong glow for icons */
  }
}