html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding: 20px;
  background-color: #f9f9f9;
  color: #333;
}
h1,
h2,
h3 {
  color: #005a87;
}
h1 {
  border-bottom: 3px solid #005a87;
  padding-bottom: 10px;
  margin-bottom: 20px;
}
h2 {
  border-bottom: 2px solid #0074a8;
  padding-bottom: 5px;
  margin-top: 30px;
}
h3 {
  margin-top: 20px;
  color: #006699;
}
ul {
  margin-bottom: 20px;
}

.welcome-header-h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.section-img {
  max-width: 240px;
  display: block;
  margin: 0 auto 20px;
  padding-top: 10px;
}

/* ! General Section Styling */
section {
  scroll-margin-top: 80px;
  padding: 40px;
  text-align: center;
  background-color: #ffffff;
  margin: 20px auto;
  /* max-width: 800px; */
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.helpful-tool {
  color: #0e1b39;
  flex-direction: column;
  text-align: center;
  letter-spacing: 2px;
  font-size: 1.2rem;
  font-family: Georgia, "Times New Roman", Times, serif;
}

/* logo and title side by side */
.welcome-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 0;
}

.welcome-title-first {
  font-size: 3rem;
  color: #0e1b39;
  font-weight: bold;
  letter-spacing: 1.5px;
  margin: 0 20px 10px 0;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-style: italic;
}

/* Style the company logo */
.company-logo {
  max-width: 80px;
  height: auto;
}

/* Section styling */
.company-header {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  /* max-width: 800px; */
  margin: 70px auto;
}

/* ! Welcome content styling */
.welcome-content ul {
  text-align: left;
  list-style: none;
  padding: 0;
  max-width: 600px;
  margin: 0 auto;
  list-style-type: none;
}

.welcome-content li {
  font-size: 1.1rem;
  padding: 8px 0;
  line-height: 1.6;
  list-style: none;
}

/* Health Section */
.health-section {
  margin-top: 20px;
  background: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.health-section h3 {
  color: #2c3e50;
  font-size: 1.8rem;
}

.health-section p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.6;
}

/* Fade-in effect */
.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease-in-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-visual {
  text-align: center;
  margin-top: 80px;
}
.hero-img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 40px;
}

.symbol {
  font-size: 1.1rem;
  color: #1ed3f3;
}

/* ! Mission section  */

/* Enhanced Mission Section */
.mission-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 90, 135, 0.08);
  overflow: hidden;
}

/* Animated border effect */
.mission-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px;
  padding: 3px;
  background: linear-gradient(90deg, #005a87, #b8860b, #005a87);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  background-size: 200% 100%;
  animation: borderFlow 8s linear infinite;
  z-index: 1;
}

@keyframes borderFlow {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 200% 0%;
  }
}

.mission-text {
  max-width: 550px;
  position: relative;
  z-index: 2;
  padding: 20px;
}

.mission-text h2 {
  color: #005a87;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
  text-align: center;
}

/* .mission-text h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #005a87 0%, #b8860b 100%);
  border-radius: 2px;
  animation: pulseWidth 8s ease-in-out infinite;
} */

@keyframes pulseWidth {
  0%,
  100% {
    width: 80px;
  }
  50% {
    width: 120px;
  }
}

.mission-text p {
  color: #4a5568;
  line-height: 1.8;
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}

.mission-text::before,
.mission-text::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  border-color: #005a87;
  border-style: solid;
  border-width: 0;
  z-index: -1;
  opacity: 0.7;
}

.mission-text::before {
  top: 0;
  left: 0;
  border-top-width: 2px;
  border-left-width: 2px;
  animation: drawTopLeft 3s ease-in-out infinite;
}

.mission-text::after {
  bottom: 0;
  right: 0;
  border-bottom-width: 2px;
  border-right-width: 2px;
  animation: drawBottomRight 3s ease-in-out infinite;
}

@keyframes drawTopLeft {
  0%,
  100% {
    width: 30px;
    height: 30px;
    opacity: 0.7;
  }
  50% {
    width: 40px;
    height: 40px;
    opacity: 0.9;
  }
}

@keyframes drawBottomRight {
  0%,
  100% {
    width: 30px;
    height: 30px;
    opacity: 0.7;
  }
  50% {
    width: 40px;
    height: 40px;
    opacity: 0.9;
  }
}

.mission-img {
  max-width: 500px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.mission-img::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 16px;
  border: 1px solid rgba(0, 90, 135, 0.3);
  z-index: -1;
  pointer-events: none;
}

.mission-img::after {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 16px;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(
      circle at 0% 0%,
      rgba(0, 90, 135, 0.7) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 100% 0%,
      rgba(184, 134, 11, 0.7) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 0% 100%,
      rgba(184, 134, 11, 0.7) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 100% 100%,
      rgba(0, 90, 135, 0.7) 1px,
      transparent 1px
    );
  background-size: 20px 20px;
  background-position: 0% 0%, 100% 0%, 0% 100%, 100% 100%;
  background-repeat: no-repeat;
  animation: dotPulse 4s ease-in-out infinite;
}

@keyframes dotPulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.mission-img:hover {
  box-shadow: 0 12px 30px rgba(0, 90, 135, 0.15);
}

.mission-img:hover::before {
  border-color: rgba(184, 134, 11, 0.5);
}

@media (max-width: 768px) {
  .mission-section {
    padding: 40px 15px;
    gap: 30px;
  }

  .mission-text h2 {
    font-size: 2rem;
  }

  .mission-text p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .mission-section {
    padding: 30px 15px;
  }

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

  .mission-text {
    padding: 15px;
  }

  .mission-text::before,
  .mission-text::after {
    display: none;
  }
}

/* ! Case Studies Section Styling */

/* .case-studies-section {
  max-width: 1000px;
  margin: 50px auto;
  padding: 20px;
  text-align: center;
}

.section-title {
  color: #003366;
  margin-bottom: 30px;
  font-size: 2rem;
}

.case-studies-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.case-study-card {
  flex: 1;
  min-width: 280px;
  background-color: #f0f7ff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.case-study-btn {
  width: 100%;
  padding: 15px;
  font-size: 1.1rem;
  background-color: #003366;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.case-study-btn:hover,
.case-study-btn.active {
  background-color: #b8860b;
}

.case-study-info {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
  text-align: left;
  background-color: #ffffff;
}

.case-study-card.active .case-study-info {
  max-height: 300px;
  overflow-y: auto;
  padding: 15px;
}

.case-study-info::-webkit-scrollbar {
  width: 6px;
}

.case-study-info::-webkit-scrollbar-thumb {
  background-color: #003366;
  border-radius: 5px;
}

.case-study-info::-webkit-scrollbar-track {
  background: #e0e0e0;
  border-radius: 5px;
} */

/* ! Enhanced Case Studies Section Styling */
.case-studies-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 40px 20px;
  text-align: center;
  position: relative;
}

.case-studies-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #005a87, #b8860b, #005a87);
  border-radius: 2px;
}

.section-title {
  color: #003366;
  margin-bottom: 20px;
  font-size: 2.5rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #005a87, #b8860b);
  border-radius: 2px;
}

.overview-info-start {
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #4a5568;
  background: rgba(255, 255, 255, 0.7);
  padding: 25px 30px;
  border-radius: 12px;
  border-left: 4px solid #005a87;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.case-studies-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.case-study-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 90, 135, 0.08);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(0, 90, 135, 0.1);
  position: relative;
}

.case-study-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #005a87, #b8860b);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.case-study-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 90, 135, 0.15);
}

.case-study-card:hover::before {
  transform: scaleX(1);
}

.case-study-card.active {
  transform: scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 90, 135, 0.2);
}

.case-study-card.active::before {
  transform: scaleX(1);
}

.case-study-btn {
  width: 100%;
  padding: 22px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  background: linear-gradient(135deg, #005a87 0%, #004670 100%);
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 15px;
}

.case-study-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.case-study-btn:hover::before {
  left: 100%;
}

.case-study-btn:hover,
.case-study-btn.active {
  background: linear-gradient(135deg, #b8860b 0%, #9a7009 100%);
}

.case-study-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.case-study-card.active .case-study-icon {
  background: rgba(255, 255, 255, 0.3);
}

.case-study-text {
  flex-grow: 1;
}

.case-study-arrow {
  font-size: 1rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.case-study-card.active .case-study-arrow {
  transform: rotate(180deg);
}

.case-study-info {
  max-height: 0;
  overflow: hidden;
  padding: 0;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  text-align: left;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  border-top: 1px solid rgba(0, 90, 135, 0.1);
}

.case-study-card.active .case-study-info {
  max-height: 1200px;
  overflow-y: auto;
  padding: 30px;
}

/* Custom scrollbar for case study info */
.case-study-info::-webkit-scrollbar {
  width: 8px;
}

.case-study-info::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #005a87, #b8860b);
  border-radius: 5px;
}

.case-study-info::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 5px;
}

/* Enhanced content styling */
.case-study-info h3 {
  color: #005a87;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid #e2e8f0;
  position: relative;
}

.case-study-info h3::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, #005a87, #b8860b);
}

.case-study-info p {
  color: #4a5568;
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.case-study-info ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.case-study-info li {
  position: relative;
  padding: 12px 0 12px 35px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 10px;
  border-left: 4px solid #005a87;
  color: #4a5568;
  line-height: 1.6;
  transition: all 0.3s ease;
}

.case-study-info li:hover {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  transform: translateX(5px);
}

.case-study-info li::before {
  content: "→";
  position: absolute;
  left: 15px;
  top: 12px;
  color: #005a87;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Case study tags */
.case-study-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.case-study-tag {
  display: inline-block;
  padding: 6px 12px;
  background: linear-gradient(135deg, #f0f7ff 0%, #e6f0fd 100%);
  color: #005a87;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(0, 90, 135, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .case-studies-section {
    padding: 30px 15px;
    margin: 40px auto;
  }

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

  .overview-info-start {
    padding: 20px;
    font-size: 1rem;
  }

  .case-studies-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .case-study-btn {
    padding: 18px 20px;
    font-size: 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .case-study-card.active .case-study-info {
    padding: 20px;
  }

  .case-study-info h3 {
    font-size: 1.3rem;
  }

  .case-study-info li {
    padding-left: 30px;
  }

  .case-study-info li::before {
    left: 12px;
  }
}

/* Animation for cards appearing */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.case-study-card {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.case-study-card:nth-child(1) {
  animation-delay: 0.1s;
}
.case-study-card:nth-child(2) {
  animation-delay: 0.2s;
}
.case-study-card:nth-child(3) {
  animation-delay: 0.3s;
}
.case-study-card:nth-child(4) {
  animation-delay: 0.4s;
}
.case-study-card:nth-child(5) {
  animation-delay: 0.5s;
}
.case-study-card:nth-child(6) {
  animation-delay: 0.6s;
}

.service-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.brief-overview {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e3a5f;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.brief-overview::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #3498db, #2980b9);
  border-radius: 2px;
}

.service-card {
  background: white;
  border-radius: 16px;
  margin-bottom: 2.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #3498db 0%, #2980b9 50%, #1abc9c 100%);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
}

.service-card > h2 {
  background: linear-gradient(135deg, #2c5aa0 0%, #1e3a5f 100%);
  color: white;
  font-size: 1.8rem;
  font-weight: 600;
  padding: 2rem 2.5rem;
  margin: 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.service-card > h2::before {
  content: "";
  position: absolute;
  top: 0;
  right: -50%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  transform: skewX(-15deg);
  transition: right 0.6s ease;
}

.service-card:hover > h2::before {
  right: 150%;
}

.service-card h3 {
  color: #2c5aa0;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 2rem 2.5rem 1rem 2.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e8f4f8;
  position: relative;
}

.service-card h3::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #3498db, #1abc9c);
}

.service-card p {
  margin: 1rem 2.5rem;
  color: #5a6c7d;
  font-size: 1rem;
  line-height: 1.7;
}

.service-card ul {
  margin: 1rem 2.5rem 2rem 2.5rem;
  padding: 0;
  list-style: none;
}

.service-card li {
  position: relative;
  padding: 0.75rem 0 0.75rem 2.5rem;
  color: #5a6c7d;
  line-height: 1.6;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.service-card li:last-child {
  border-bottom: none;
}

.service-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.service-card li:hover {
  background: rgba(52, 152, 219, 0.02);
  padding-left: 2.8rem;
}

.service-card li:hover::before {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.service-card:nth-child(2)::before {
  background: linear-gradient(90deg, #e74c3c 0%, #c0392b 50%, #8e44ad 100%);
}

.service-card:nth-child(2) > h2 {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.service-card:nth-child(2) h3::before {
  background: linear-gradient(90deg, #e74c3c, #8e44ad);
}

.service-card:nth-child(2) li::before {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.service-card:nth-child(3)::before {
  background: linear-gradient(90deg, #f39c12 0%, #e67e22 50%, #d35400 100%);
}

.service-card:nth-child(3) > h2 {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.service-card:nth-child(3) h3::before {
  background: linear-gradient(90deg, #f39c12, #d35400);
}

.service-card:nth-child(3) li::before {
  background: linear-gradient(135deg, #f39c12, #e67e22);
  box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
}

.service-card:nth-child(4)::before {
  background: linear-gradient(90deg, #27ae60 0%, #229954 50%, #1e8449 100%);
}

.service-card:nth-child(4) > h2 {
  background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

.service-card:nth-child(4) h3::before {
  background: linear-gradient(90deg, #27ae60, #1e8449);
}

.service-card:nth-child(4) li::before {
  background: linear-gradient(135deg, #27ae60, #229954);
  box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

@media (max-width: 768px) {
  .service-section {
    padding: 0 1rem;
  }

  .brief-overview {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .service-card > h2 {
    font-size: 1.5rem;
    padding: 1.5rem 1.5rem;
  }

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

  .service-card p {
    margin: 1rem 1.5rem;
  }

  .service-card ul {
    margin: 1rem 1.5rem 1.5rem 1.5rem;
  }

  .service-card li {
    font-size: 0.9rem;
    padding-left: 2.2rem;
  }
}

@media (max-width: 480px) {
  .brief-overview {
    font-size: 1.75rem;
  }

  .service-card > h2 {
    font-size: 1.3rem;
    padding: 1.25rem 1rem;
  }

  .service-card h3 {
    font-size: 1.1rem;
    margin: 1.25rem 1rem 0.5rem 1rem;
  }

  .service-card p,
  .service-card ul {
    margin-left: 1rem;
    margin-right: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-card,
  .service-card li,
  .service-card li::before,
  .service-card > h2::before {
    transition: none;
  }

  .service-card:hover {
    transform: none;
  }
}

@media (prefers-contrast: high) {
  .service-card {
    border: 2px solid #000;
  }

  .service-card li::before {
    border: 1px solid #000;
  }
}

/* ! Guardianship Section */
.guardianship {
  background: linear-gradient(135deg, #f8fbff 0%, #f1f7ff 100%);
  padding: 60px 40px;
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 90, 135, 0.12);
  text-align: center;
  margin: 30px auto;
  max-width: 1000px;
  position: relative;
  overflow: hidden;
}

.guardianship::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #005a87 0%, #b8860b 100%);
}

.guardianship-header {
  margin-bottom: 40px;
}

.guardianship-header h2 {
  color: #005a87;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

.header-divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #005a87 0%, #b8860b 100%);
  margin: 0 auto 25px;
  border-radius: 2px;
}

.section-description {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #4a5568;
  max-width: 800px;
  margin: 0 auto 30px;
  font-weight: 400;
}

.image-container {
  margin-bottom: 20px;
}

.section-img {
  width: 64px;
  height: 64px;
  opacity: 0.8;
  margin-bottom: 10px;
}

.click-prompt {
  font-size: 1rem;
  color: #6b7280;
  font-style: italic;
  margin: 0;
}

.guardianship-options {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.guardian-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 90, 135, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 90, 135, 0.08);
}

.guardian-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 90, 135, 0.15);
}

.guardian-card.active {
  border-color: #005a87;
  box-shadow: 0 8px 35px rgba(0, 90, 135, 0.2);
}

.guardian-btn {
  width: 100%;
  background: linear-gradient(135deg, #005a87 0%, #004670 100%);
  color: white;
  font-size: 1.2rem;
  padding: 20px 25px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
  overflow: hidden;
}

.guardian-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.guardian-btn:hover::before {
  left: 100%;
}

.guardian-btn:hover {
  background: linear-gradient(135deg, #b8860b 0%, #9a7009 100%);
  transform: translateY(-1px);
}

.guardian-card.active .guardian-btn {
  background: linear-gradient(135deg, #b8860b 0%, #9a7009 100%);
}

.btn-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.btn-text {
  font-weight: 600;
  font-size: 1.3rem;
  flex-grow: 1;
  text-align: left;
}

.btn-subtitle {
  font-size: 0.95rem;
  opacity: 0.9;
  font-weight: 400;
  font-style: italic;
}

.expand-arrow {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.guardian-card.active .expand-arrow {
  transform: rotate(180deg);
}

.guardian-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease-out;
  background: white;
}

.guardian-card.active .guardian-content {
  max-height: 800px;
  overflow-y: auto;
}

.content-inner {
  padding: 30px;
}

.guardian-content::-webkit-scrollbar {
  width: 8px;
}

.guardian-content::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #005a87 0%, #b8860b 100%);
  border-radius: 10px;
}

.guardian-content::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

.content-section {
  margin-bottom: 35px;
}

.content-section:last-child {
  margin-bottom: 0;
}

.content-section h3 {
  color: #005a87;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e2e8f0;
  position: relative;
}

.content-section h3::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #005a87 0%, #b8860b 100%);
}

.content-section p {
  color: #4a5568;
  line-height: 1.7;
  font-size: 1rem;
  margin-bottom: 15px;
}

.alternatives-intro {
  font-weight: 500;
  color: #2d3748;
  margin-bottom: 20px;
}

.process-list,
.feature-list,
.type-list,
.alternatives-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.process-list li,
.feature-list li,
.type-list li,
.alternatives-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 3px solid #005a87;
  color: #4a5568;
  line-height: 1.6;
  transition: all 0.2s ease;
}

.process-list li:hover,
.feature-list li:hover,
.type-list li:hover,
.alternatives-list li:hover {
  background: #f1f5f9;
  transform: translateX(3px);
}

.step-icon {
  background: linear-gradient(135deg, #005a87 0%, #b8860b 100%);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-icon,
.type-icon,
.alt-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.application-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step-counter;
}

.application-steps li {
  counter-increment: step-counter;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 18px;
  padding: 15px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 10px;
  border-left: 4px solid #005a87;
  color: #4a5568;
  line-height: 1.6;
  position: relative;
  transition: all 0.3s ease;
}

.application-steps li:hover {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0, 90, 135, 0.1);
}

.step-number {
  background: linear-gradient(135deg, #005a87 0%, #b8860b 100%);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 2px;
  box-shadow: 0 2px 8px rgba(0, 90, 135, 0.3);
}

@media screen and (max-width: 768px) {
  .guardianship {
    padding: 40px 20px;
    margin: 20px auto;
  }

  .guardianship-header h2 {
    font-size: 2rem;
  }

  .section-description {
    font-size: 1rem;
  }

  .guardian-btn {
    padding: 15px 20px;
    font-size: 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .btn-text {
    font-size: 1.1rem;
  }

  .btn-subtitle {
    font-size: 0.85rem;
  }

  .content-inner {
    padding: 20px;
  }

  .content-section h3 {
    font-size: 1.2rem;
  }

  .process-list li,
  .feature-list li,
  .type-list li,
  .alternatives-list li,
  .application-steps li {
    padding: 10px;
    font-size: 0.9rem;
  }

  .step-icon {
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
  }

  .step-number {
    width: 25px;
    height: 25px;
    font-size: 0.8rem;
  }
}

/* ! Communcation Goal Section  */
.communication-goal {
  background: linear-gradient(135deg, #f8fbff 0%, #f1f7ff 100%);
  padding: 60px 40px;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 90, 135, 0.08);
  margin: 50px auto;
  max-width: 1100px;
  position: relative;
  overflow: hidden;
}

.communication-goal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #005a87 0%, #2980b9 50%, #1abc9c 100%);
}

.communication-goal .container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.goal-header {
  text-align: center;
  margin-bottom: 40px;
}

.communication-goal h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e3a5f;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 15px;
}

.communication-goal h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #3498db, #2980b9);
  border-radius: 2px;
}

.section-img {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  display: block;
  opacity: 0.8;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.goal-intro {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #4a5568;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  background: rgba(255, 255, 255, 0.7);
  padding: 25px 30px;
  border-radius: 12px;
  border-left: 4px solid #3498db;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.goal-example {
  background: white;
  border-radius: 16px;
  padding: 0;
  margin-top: 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.goal-main {
  background: linear-gradient(135deg, #2c5aa0 0%, #1e3a5f 100%);
  color: white;
  padding: 30px 40px;
  position: relative;
  overflow: hidden;
}

.goal-main::before {
  content: "";
  position: absolute;
  top: 0;
  right: -50%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  transform: skewX(-15deg);
  transition: right 0.6s ease;
}

.goal-example:hover .goal-main::before {
  right: 150%;
}

.goal-main h3 {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 15px 0;
  color: white;
  border: none;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.goal-statement {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid rgba(255, 255, 255, 0.3);
}

.goal-content {
  padding: 40px;
}

.goal-section {
  margin-bottom: 35px;
}

.goal-section:last-child {
  margin-bottom: 0;
}

.goal-section h3 {
  color: #2c5aa0;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e8f4f8;
  position: relative;
}

.goal-section h3::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, #3498db, #1abc9c);
}

.goal-section p {
  color: #4a5568;
  line-height: 1.7;
  font-size: 1.05rem;
  margin-bottom: 15px;
}

.objectives-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.objectives-list li {
  position: relative;
  padding: 20px 20px 20px 60px;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 10px;
  border-left: 4px solid #3498db;
  color: #4a5568;
  line-height: 1.6;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.objectives-list li:hover {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.1);
}

.objectives-list li::before {
  content: counter(objective-counter);
  counter-increment: objective-counter;
  position: absolute;
  left: 15px;
  top: 20px;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.objectives-list {
  counter-reset: objective-counter;
}

.data-collection-list,
.interpretation-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.data-collection-list li,
.interpretation-list li {
  position: relative;
  padding: 15px 15px 15px 45px;
  margin-bottom: 12px;
  background: rgba(52, 152, 219, 0.02);
  border-radius: 8px;
  border-left: 3px solid #3498db;
  color: #4a5568;
  line-height: 1.6;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.data-collection-list li:hover,
.interpretation-list li:hover {
  background: rgba(52, 152, 219, 0.05);
  padding-left: 50px;
}

.data-collection-list li::before,
.interpretation-list li::before {
  content: "•";
  position: absolute;
  left: 15px;
  top: 15px;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(52, 152, 219, 0.2);
}

.compliance-badge {
  background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
  color: white;
  padding: 15px 25px;
  border-radius: 25px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 30px;
  box-shadow: 0 4px 15px rgba(39, 174, 96, 0.2);
}

.compliance-badge::before {
  content: "✓";
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.timeframe-highlight {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  color: white;
  padding: 20px 25px;
  border-radius: 10px;
  margin: 20px 0;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(243, 156, 18, 0.2);
}

@media (max-width: 768px) {
  .communication-goal {
    padding: 40px 20px;
    margin: 30px 15px;
  }

  .communication-goal h2 {
    font-size: 2rem;
  }

  .goal-intro {
    font-size: 1rem;
    padding: 20px 25px;
  }

  .goal-main,
  .goal-content {
    padding: 25px 20px;
  }

  .goal-section h3 {
    font-size: 1.2rem;
  }

  .objectives-list li {
    padding-left: 50px;
    font-size: 0.95rem;
  }

  .objectives-list li::before {
    width: 25px;
    height: 25px;
    font-size: 0.8rem;
    left: 12px;
    top: 15px;
  }

  .data-collection-list li,
  .interpretation-list li {
    padding-left: 40px;
    font-size: 0.95rem;
  }

  .compliance-badge {
    font-size: 0.9rem;
    padding: 12px 20px;
  }
}

@media (max-width: 480px) {
  .communication-goal h2 {
    font-size: 1.75rem;
  }

  .goal-intro {
    font-size: 0.95rem;
    padding: 18px 20px;
  }

  .goal-main,
  .goal-content {
    padding: 20px 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .objectives-list li,
  .data-collection-list li,
  .interpretation-list li,
  .goal-main::before {
    transition: none;
  }

  .objectives-list li:hover,
  .data-collection-list li:hover,
  .interpretation-list li:hover {
    transform: none;
  }

  .goal-example:hover .goal-main::before {
    right: -50%;
  }
}

@media (prefers-contrast: high) {
  .goal-example {
    border: 2px solid #000;
  }

  .objectives-list li,
  .data-collection-list li,
  .interpretation-list li {
    border: 1px solid #000;
  }
}

.activities-section {
  max-width: 1000px;
  margin: 50px auto;
  padding: 20px;
  text-align: center;
}

.section-title {
  color: #003366;
  margin-bottom: 30px;
  font-size: 2rem;
}

.activities-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.activity-card {
  flex: 1;
  min-width: 280px;
  background-color: #f0f7ff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.activity-btn {
  width: 100%;
  padding: 15px;
  font-size: 1.1rem;
  background-color: #003366;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.activity-btn:hover,
.activity-btn.active {
  background-color: #b8860b;
}

.activity-info {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
  text-align: left;
  background-color: #ffffff;
}

.activity-info ul {
  padding: 10px 0;
  list-style: disc inside;
  color: #333;
}

.activity-info ul li {
  margin: 8px 0;
}

.activity-card.active .activity-info {
  max-height: 400px;
  padding: 15px;
}

/* ! Human Rights here  */
.human-rights-section {
  background: linear-gradient(135deg, #f8fbff 0%, #f1f7ff 100%);
  padding: 60px 20px;
  margin: 50px auto;
  max-width: 1200px;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 90, 135, 0.08);
  position: relative;
  overflow: hidden;
}

.human-rights-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #005a87 0%, #2980b9 50%, #e74c3c 100%);
}

.rights-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e3a5f;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 15px;
}

.header-divider {
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, #3498db, #e74c3c);
  margin: 0 auto 30px;
  border-radius: 2px;
}

.rights-hero-image {
  max-width: 700px;
  width: 90%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.section-intro {
  max-width: 900px;
  margin: 0 auto;
}

.overview-info {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #4a5568;
  background: rgba(255, 255, 255, 0.8);
  padding: 30px 40px;
  border-radius: 12px;
  border-left: 4px solid #3498db;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.rights-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto;
}

.rights-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.rights-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.card-header {
  background: linear-gradient(135deg, #2c5aa0 0%, #1e3a5f 100%);
  color: white;
  padding: 25px 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card-header::before {
  content: "";
  position: absolute;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  transform: skewX(-15deg);
  transition: right 0.6s ease;
}

.card-header:hover::before {
  right: 100%;
}

.card-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.card-title-content {
  flex: 1;
}

.card-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.card-subtitle {
  font-size: 1rem;
  opacity: 0.9;
  margin: 0;
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
}

.expand-indicator {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.rights-card.active .expand-indicator {
  transform: rotate(180deg);
}

.card-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease-out;
  background: white;
}

.rights-card.active .card-content {
  max-height: 2000px;
  overflow-y: auto;
}

.content-inner {
  padding: 40px 30px;
}

.rights-highlight,
.compliance-section,
.quality-section {
  margin-bottom: 35px;
  padding-bottom: 25px;
  border-bottom: 2px solid #f1f5f9;
}

.rights-highlight:last-child,
.compliance-section:last-child,
.quality-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.rights-highlight h4,
.compliance-section h4,
.quality-section h4 {
  color: #2c5aa0;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon {
  font-size: 1.2em;
}

.rights-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.rights-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px 15px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 8px;
  border-left: 3px solid #3498db;
  transition: all 0.2s ease;
}

.rights-list li:hover {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  transform: translateX(3px);
}

.check-icon {
  color: #27ae60;
  font-weight: bold;
  font-size: 1.1rem;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(39, 174, 96, 0.1);
  border-radius: 50%;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 10px;
  border-left: 4px solid #3498db;
  transition: all 0.3s ease;
}

.step-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.1);
}

.step-number {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.support-resources {
  background: linear-gradient(135deg, #f1f9ff 0%, #e8f5ff 100%);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid rgba(52, 152, 219, 0.1);
}

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

.resource-item {
  background: white;
  padding: 20px;
  border-radius: 8px;
  border-left: 3px solid #3498db;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.resource-item strong {
  color: #2c5aa0;
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.role-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.role-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 20px;
  border-radius: 10px;
  border-left: 4px solid #e74c3c;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.role-card h5 {
  color: #2c5aa0;
  font-size: 1.2rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.role-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.role-card li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  color: #4a5568;
}

.role-card li:last-child {
  border-bottom: none;
}

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

.training-item {
  background: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.training-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.training-item strong {
  color: #2c5aa0;
  display: block;
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.accountability-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.accountability-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 15px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 8px;
  border-left: 3px solid #f39c12;
}

.bullet {
  color: #f39c12;
  font-weight: bold;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.progress-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 10px;
  border-left: 4px solid #27ae60;
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(39, 174, 96, 0.1);
}

.feature-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(39, 174, 96, 0.1);
  border-radius: 10px;
  color: #27ae60;
}

.feature-content h5 {
  color: #2c5aa0;
  font-size: 1.2rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.survey-areas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.survey-category {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 25px;
  border-radius: 10px;
  border-left: 4px solid #8e44ad;
}

.survey-category h5 {
  color: #2c5aa0;
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.survey-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.survey-category li {
  padding: 8px 0;
  color: #4a5568;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.survey-category li:last-child {
  border-bottom: none;
}

.improvement-commitment {
  margin-top: 30px;
}

.commitment-badge {
  background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
  color: white;
  padding: 25px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 4px 15px rgba(39, 174, 96, 0.2);
}

.badge-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.badge-content h5 {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.badge-content p {
  margin: 0;
  line-height: 1.6;
  opacity: 0.95;
}

/* Additional Enhancement Styles */
.rights-footer-section {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 2px solid #e2e8f0;
}

.emergency-contact-card {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border: 2px solid #ef4444;
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.15);
}

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

.emergency-icon {
  font-size: 2.5rem;
  background: #ef4444;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.emergency-header h3 {
  color: #991b1b;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
}

.emergency-contact-card > p {
  color: #7f1d1d;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 25px;
  line-height: 1.6;
}

.emergency-actions {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.emergency-action {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: rgba(255, 255, 255, 0.8);
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid #ef4444;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.action-number {
  background: #ef4444;
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.action-content strong {
  color: #991b1b;
  display: block;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.action-content p {
  margin: 0;
  color: #7f1d1d;
  line-height: 1.5;
}

.action-content a {
  color: #dc2626;
  font-weight: bold;
  text-decoration: none;
  font-size: 1.1rem;
}

.action-content a:hover {
  text-decoration: underline;
}

.rights-resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.resource-card {
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.resource-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #3498db, #e74c3c, #f39c12);
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.resource-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 12px;
  display: inline-block;
  width: 100%;
  box-sizing: border-box;
}

.resource-card h4 {
  color: #2c5aa0;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
}

.contact-list,
.document-list,
.summary-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li,
.document-list li,
.summary-list li {
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
  color: #4a5568;
  line-height: 1.5;
  position: relative;
  padding-left: 20px;
}

.contact-list li:last-child,
.document-list li:last-child,
.summary-list li:last-child {
  border-bottom: none;
}

.contact-list li::before {
  content: "📞";
  position: absolute;
  left: 0;
  top: 12px;
}

.document-list li::before {
  content: "📄";
  position: absolute;
  left: 0;
  top: 12px;
}

.summary-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 12px;
  color: #27ae60;
  font-weight: bold;
  background: rgba(39, 174, 96, 0.1);
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.contact-list strong,
.document-list strong,
.summary-list strong {
  color: #2c5aa0;
}

.compliance-statement {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 16px;
  padding: 30px;
  border: 2px solid #0ea5e9;
  text-align: center;
}

.compliance-badge-large {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.compliance-icon {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: white;
  font-size: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.compliance-text {
  text-align: left;
}

.compliance-text h4 {
  color: #0c4a6e;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 10px 0;
}

.compliance-text p {
  color: #0e7490;
  margin: 0;
  line-height: 1.6;
  font-size: 1rem;
}

.update-date {
  font-weight: 600;
  color: #0c4a6e;
}

/* Enhanced Responsive Design for Footer Section */
@media (max-width: 768px) {
  .rights-footer-section {
    margin-top: 30px;
    padding-top: 30px;
  }

  .emergency-contact-card {
    padding: 20px;
    margin-bottom: 30px;
  }

  .emergency-header {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .emergency-icon {
    width: 50px;
    height: 50px;
    font-size: 2rem;
  }

  .emergency-header h3 {
    font-size: 1.5rem;
  }

  .emergency-action {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
  }

  .action-number {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }

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

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

  .resource-icon {
    font-size: 2.5rem;
    padding: 15px;
  }

  .compliance-badge-large {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

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

  .compliance-text h4 {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .emergency-contact-card {
    padding: 15px;
  }

  .emergency-header h3 {
    font-size: 1.3rem;
  }

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

  .resource-card h4 {
    font-size: 1.2rem;
  }

  .compliance-statement {
    padding: 20px;
  }

  .compliance-text h4 {
    font-size: 1.2rem;
  }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
  .resource-card,
  .emergency-action,
  .rights-card {
    transition: none;
  }

  .resource-card:hover,
  .rights-card:hover {
    transform: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .emergency-contact-card,
  .resource-card,
  .compliance-statement {
    border: 2px solid #000;
  }

  .emergency-icon,
  .compliance-icon,
  .action-number {
    border: 2px solid #000;
  }
}

/* Print styles */
@media print {
  .human-rights-section {
    box-shadow: none;
    background: white;
    border: 1px solid #000;
  }

  .card-header {
    background: #f5f5f5 !important;
    color: #000 !important;
  }

  .rights-card .card-content {
    max-height: none !important;
    overflow: visible !important;
  }

  .emergency-contact-card {
    background: #f9f9f9 !important;
    border: 2px solid #000;
  }
}
@media (max-width: 768px) {
  .human-rights-section {
    padding: 40px 15px;
    margin: 30px 10px;
  }

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

  .overview-info {
    font-size: 1rem;
    padding: 25px 20px;
  }

  .card-header {
    padding: 20px 15px;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .card-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .card-title {
    font-size: 1.3rem;
  }

  .content-inner {
    padding: 25px 15px;
  }

  .resource-grid,
  .role-cards,
  .training-grid,
  .survey-areas {
    grid-template-columns: 1fr;
  }

  .feature-item,
  .commitment-badge {
    flex-direction: column;
    text-align: center;
  }

  .step-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.75rem;
  }

  .overview-info {
    font-size: 0.95rem;
    padding: 20px 15px;
  }

  .card-title {
    font-size: 1.2rem;
  }

  .content-inner {
    padding: 20px 10px;
  }
}

/* ! FAQ Section  */
/* --- DDS/MassHealth FAQ (namespaced) --- */
.ddsfaq-wrap {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 12px;
}

.ddsfaq-header {
  text-align: center;
  margin-bottom: 10px;
}

.ddsfaq-title {
  font-size: 2rem;
  color: #005a87;
  margin: 0 0 6px 0;
  border: 0;
}

.ddsfaq-sub {
  font-size: 0.95rem;
  color: #5a6c7d;
  margin: 0 0 18px 0;
}

.ddsfaq-grid {
  display: grid;
  gap: 18px;
}

.ddsfaq-item {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(0, 90, 135, 0.12);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.ddsfaq-q {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: linear-gradient(135deg, #005a87 0%, #00476f 100%);
  color: #fff;
  border: none;
  padding: 16px 18px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
}

.ddsfaq-q .ddsfaq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 700;
}

.ddsfaq-a {
  display: none;
  padding: 16px 18px;
  text-align: left;
  line-height: 1.7;
  color: #394b59;
  border-left: 4px solid #b8860b;
}

.ddsfaq-a p {
  margin: 0 0 10px 0;
}

.ddsfaq-a ul {
  margin: 8px 0 0 18px;
}

.ddsfaq-sources {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
  font-size: 0.92rem;
  color: #5a6c7d;
}

.ddsfaq-sources a {
  color: #0d6efd;
  text-decoration: none;
}

.ddsfaq-sources a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .ddsfaq-title {
    font-size: 1.6rem;
  }
  .ddsfaq-q {
    font-size: 1rem;
    padding: 14px 16px;
  }
  .ddsfaq-a {
    font-size: 0.98rem;
  }
}

/* ! Partnership & Ads  */
.partnership-section {
  background: #f8f9fa;
  border-left: 5px solid #005a87;
  padding: 20px;
  margin: 40px auto;
  max-width: 900px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.partnership-section h2 {
  color: #005a87;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.partnership-section p {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.6;
}

.partnership-section a {
  color: #b8860b;
  font-weight: bold;
  text-decoration: none;
}

.partnership-section a:hover {
  text-decoration: underline;
}

/* ! Contact & Legal Card Styling */
#contact-legal-card {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 600px;
  margin: 40px auto;
}

#contact-legal-card h2 {
  color: #003366;
  margin-bottom: 15px;
}

.button-group {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.info-button {
  background-color: #003366;
  color: white;
  padding: 12px 18px;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.info-button:hover {
  background-color: #b8860b;
}

/* ! Checklist Page  */
.checklist-section {
  background: #ffffff;
  padding: 40px 20px;
  border-left: 5px solid #005a87;
  margin: 40px auto;
  max-width: 900px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.checklist-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
  text-align: left;
}

.checklist-content.active {
  max-height: 600px;
  overflow-y: auto;
  padding: 20px;
  background-color: #ffffff;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.checklist-content::-webkit-scrollbar {
  width: 8px;
}

.checklist-content::-webkit-scrollbar-thumb {
  background-color: #005a87;
  border-radius: 5px;
}

.checklist-content::-webkit-scrollbar-track {
  background: #e0e0e0;
  border-radius: 5px;
}

.checklist-section h2 {
  font-size: 2rem;
  color: #003366;
  text-align: center;
  margin-bottom: 20px;
}

.checklist-section p {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.checklist-container ul {
  list-style: none;
  padding-left: 0;
}

.checklist-container li {
  background: #f0f7ff;
  margin-bottom: 10px;
  padding: 10px 15px;
  border-radius: 6px;
  border-left: 5px solid #005a87;
  font-size: 1rem;
}

.download-btn {
  display: block;
  width: fit-content;
  margin: 20px auto 0;
  padding: 12px 20px;
  background-color: #003366;
  color: #ffffff;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease-in-out;
}

.download-btn:hover {
  background-color: #b8860b;
}

/* ! ABA and BCBA section  */
.aba-section {
  background-color: #fdfdfd;
  padding: 40px 20px;
  border-left: 5px solid #005a87;
  margin: 50px auto;
  max-width: 950px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.aba-dropdown-container {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.aba-dropdown-card {
  border: 1px solid #ccd;
  border-radius: 8px;
  background-color: #fff;
  overflow: hidden;
}

.aba-toggle {
  width: 100%;
  background-color: #e0e6f7;
  color: #333;
  font-size: 1.1em;
  font-weight: bold;
  padding: 0.8em;
  text-align: center;
  cursor: pointer;
  border: none;
  outline: none;
  transition: background 0.3s ease;
}

.aba-toggle:hover {
  background-color: #d0d8f0;
}

.aba-dropdown {
  display: none;
  padding: 1em;
  background-color: #fcfcff;
  font-size: 0.96em;
  line-height: 1.5em;
  text-align: center;
}

.aba-dropdown li {
  list-style: none;
}

.aba-dropdown.show {
  display: block;
}

.aba-disclaimer {
  margin-top: 1.5em;
  font-size: 0.9em;
  color: #555;
  text-align: center;
}

/* === ABA v2 (distinct look) === */
.aba-v2-header {
  text-align: center;
  margin-bottom: 1.25rem;
}
.aba-lede {
  max-width: 820px;
  margin: 0.5rem auto 0;
  font-size: 1.05rem;
  color: #333;
}

.aba-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 18px 0 8px;
}
.aba-card {
  background: #ffffff;
  border: 1px solid #d9e3ef;
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.aba-card h3 {
  margin: 0 0 8px;
  color: #003366;
  font-size: 1.15rem;
}
.aba-card ul {
  margin: 0;
  padding-left: 18px;
}
.aba-card li {
  margin: 8px 0;
}

.aba-perspectives {
  margin-top: 10px;
}
.aba-faq {
  border: 1px solid #d9e3ef;
  border-radius: 10px;
  background: #f8fbff;
  margin: 10px 0;
  overflow: hidden;
}
.aba-faq > summary {
  cursor: pointer;
  padding: 12px 16px;
  font-weight: 600;
  list-style: none;
  outline: none;
}
.aba-faq > summary::-webkit-details-marker {
  display: none;
}
.aba-faq[open] > summary {
  background: #eaf2fb;
}
.faq-body {
  padding: 10px 16px 14px;
}
.qa-list {
  margin: 0;
  padding-left: 18px;
}
.qa-list li {
  margin: 8px 0;
}

.aba-sources {
  margin-top: 18px;
}
.aba-sources h3 {
  text-align: center;
  color: #003366;
  margin-bottom: 10px;
}
.source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.source-grid a {
  display: block;
  background: #fff;
  border: 1px solid #d9e3ef;
  border-radius: 8px;
  padding: 10px 12px;
  text-decoration: none;
}
.source-grid a:hover {
  background: #f1f6fd;
}
.aba-footnote {
  text-align: center;
  font-size: 0.9rem;
  color: #555;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .aba-compare {
    grid-template-columns: 1fr;
  }
}

/* ! Audit Section */
.audit-section {
  background-color: #fdfdfd;
  padding: 40px 20px;
  border-left: 5px solid #005a87;
  margin: 50px auto;
  max-width: 950px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.audit-card {
  background: #f0f7ff;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin: 20px 0;
  overflow: hidden;
}
.audit-btn {
  width: 100%;
  padding: 15px;
  background: #005a87;
  color: white;
  font-size: 1.2rem;
  border: none;
  text-align: left;
  cursor: pointer;
}
.audit-btn:hover {
  background: #b8860b;
}
.audit-content {
  max-height: 0;
  overflow: hidden;
  background: #ffffff;
  padding: 0;
  transition: all 0.4s ease-in-out;
}
.audit-content ul {
  list-style: none;
  padding: 15px 20px;
}
.audit-content li {
  margin-bottom: 10px;
}

.audit-box {
  background: #f0f7ff;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 20px;
  margin: 20px 0;
}

.audit-box h3 {
  color: #003366;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.audit-box ul {
  list-style-type: disc;
  list-style: none;
  padding-left: 20px;
}

.audit-summary {
  font-style: italic;
  font-size: 1rem;
  color: #444;
  margin-top: 20px;
}

/* ! New England State Services  */
/* .dds-region-ranking {
  background-color: #fefefe;
  padding: 2em;
  border-top: 1px solid #ddd;
}

.dds-ranking-container {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
}

.dds-ranking-card {
  background-color: #fff;
  border: 1px solid #ccc;
  border-left: 5px solid #425785;
  border-radius: 4px;
  overflow: hidden;
}

.dds-btn {
  width: 100%;
  text-align: left;
  font-weight: 700;
  padding: 1em;
  background-color: #425785;
  color: white;
  font-size: 1.2em;
  border: none;
  cursor: pointer;
}

.dds-btn:hover {
  background-color: #2f3e63;
}

.dds-content {
  padding: 1em;
  display: none;
  background-color: #fdfdfd;
  border-top: 1px solid #ccc;
}

.dds-ranking-card.active .dds-content {
  display: block;
} */

/* ================================
   New England DDS Rankings (scoped)
   ================================ */
.dds-region-ranking {
  --dds-blue: #005a87;
  --dds-blue-2: #1e3a5f;
  --dds-gold: #b8860b;
  --dds-ink: #4a5568;
  --dds-bg: #f8fbff;
  --dds-card: #ffffff;
  --dds-muted: #5a6c7d;
  --dds-border: rgba(0, 90, 135, 0.12);
  --dds-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  --dds-shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.06);
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 8px;
  --pad-lg: 28px;
  --pad-md: 18px;
  --pad-sm: 12px;
}

/* section shell */
.dds-region-ranking.section {
  max-width: 1100px;
  background: linear-gradient(135deg, #f8fbff 0%, #f1f7ff 100%);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 90, 135, 0.08);
  padding: 50px 30px;
  position: relative;
  overflow: hidden;
}
.dds-region-ranking.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--dds-blue) 0%, var(--dds-gold) 100%);
}
.dds-region-ranking > h2 {
  color: var(--dds-blue);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin: 0 0 10px 0;
  text-align: center;
}
.dds-region-ranking > p {
  max-width: 900px;
  margin: 0 auto 22px auto;
  color: var(--dds-muted);
  line-height: 1.7;
  text-align: center;
}

/* intro + legend */
.dds-region-ranking .ranking-intro {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
  margin: 22px auto 28px;
  align-items: stretch;
  max-width: 1000px;
}
.dds-region-ranking .ranking-intro-text {
  background: #ffffff;
  border: 1px solid var(--dds-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--dds-shadow-soft);
  padding: var(--pad-lg);
  text-align: left;
}
.dds-region-ranking .ranking-intro-text h3 {
  margin: 0 0 8px 0;
  color: var(--dds-blue);
  font-size: 1.25rem;
}
.dds-region-ranking .ranking-intro-text p {
  margin: 0;
  color: var(--dds-ink);
  line-height: 1.7;
}
.dds-region-ranking .ranking-legend {
  background: #ffffff;
  border: 1px solid var(--dds-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--dds-shadow-soft);
  padding: var(--pad-md);
  display: grid;
  gap: 10px;
  height: 100%;
}
.dds-region-ranking .legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-left: 3px solid var(--dds-blue);
  color: var(--dds-ink);
}
.dds-region-ranking .legend-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--dds-blue) 0%, var(--dds-gold) 100%);
  color: #fff;
  font-weight: 700;
}

/* cards container */
.dds-region-ranking .dds-ranking-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 6px auto 28px;
  max-width: 1000px;
}

/* card shell */
.dds-region-ranking .dds-ranking-card {
  background: var(--dds-card);
  border: 1px solid var(--dds-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--dds-shadow);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.dds-region-ranking .dds-ranking-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 90, 135, 0.25);
}

/* button (accordion trigger) */
.dds-region-ranking .dds-btn {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--dds-blue) 0%, #004670 100%);
  color: #fff;
  border: none;
  padding: 18px 22px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.dds-region-ranking .dds-btn::before {
  content: "";
  position: absolute;
  inset: 0 0 0 -120%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.12),
    transparent
  );
  transition: inset 0.5s ease;
}
.dds-region-ranking .dds-btn:hover::before {
  inset: 0 -120% 0 120%;
}
.dds-region-ranking .dds-ranking-card.active .dds-btn {
  background: linear-gradient(135deg, var(--dds-gold) 0%, #9a7009 100%);
}

/* collapsible content */
.dds-region-ranking .dds-content {
  max-height: none; /* usable without JS */
  overflow: visible;
  transition: max-height 0.5s ease;
  background: #fff;
}
.dds-region-ranking .dds-ranking-card .dds-content {
  padding: var(--pad-lg);
}
.dds-region-ranking .dds-ranking-card.active .dds-content {
  /* if your JS toggles .active (like guardianship/case studies), 
     this will animate open/close gracefully */
  max-height: 1200px;
  overflow: hidden;
}

/* state header row */
.dds-region-ranking .state-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.dds-region-ranking .state-rank {
  font-weight: 800;
  font-size: 0.95rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--dds-blue) 0%, var(--dds-gold) 100%);
  color: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}
.dds-region-ranking .state-name {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--dds-blue-2);
}

/* content blocks */
.dds-region-ranking .state-overview,
.dds-region-ranking .state-strengths,
.dds-region-ranking .state-weaknesses,
.dds-region-ranking .lobbying-info,
.dds-region-ranking .state-resources {
  margin-top: 18px;
  text-align: left;
}
.dds-region-ranking h4 {
  color: var(--dds-blue);
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  padding-bottom: 8px;
  border-bottom: 2px solid #e2e8f0;
  position: relative;
}
.dds-region-ranking h4::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 46px;
  height: 2px;
  background: linear-gradient(90deg, var(--dds-blue) 0%, var(--dds-gold) 100%);
}
.dds-region-ranking p {
  color: var(--dds-ink);
  line-height: 1.7;
  margin: 0 0 8px 0;
}

/* links row */
.dds-region-ranking .source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.dds-region-ranking .source-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--dds-border);
  color: #0d6efd;
  text-decoration: none;
  font-weight: 600;
}
.dds-region-ranking .source-link:hover {
  text-decoration: underline;
}

/* lists (strengths/weaknesses) */
.dds-region-ranking ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.dds-region-ranking .state-strengths li,
.dds-region-ranking .state-weaknesses li {
  position: relative;
  padding: 10px 10px 10px 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-left: 3px solid var(--dds-blue);
  color: var(--dds-ink);
  margin: 8px 0;
}
.dds-region-ranking .strength-icon,
.dds-region-ranking .weakness-icon {
  position: absolute;
  left: 10px;
  top: 10px;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
}
.dds-region-ranking .strength-icon {
  background: linear-gradient(135deg, #27ae60, #229954);
  color: #fff;
}
.dds-region-ranking .weakness-icon {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff;
}

/* advocacy steps */
.dds-region-ranking .lobbying-steps {
  display: grid;
  gap: 12px;
}
.dds-region-ranking .step-item {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--dds-border);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--dds-shadow-soft);
}
.dds-region-ranking .step-number {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--dds-blue) 0%, var(--dds-gold) 100%);
  box-shadow: 0 2px 8px rgba(0, 90, 135, 0.3);
}

/* resources grid */
.dds-region-ranking .resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.dds-region-ranking .resource-item {
  background: #fff;
  border: 1px solid var(--dds-border);
  border-radius: var(--radius-md);
  padding: var(--pad-md);
  box-shadow: var(--dds-shadow-soft);
}
.dds-region-ranking .resource-item strong {
  display: block;
  color: var(--dds-blue-2);
  margin-bottom: 6px;
}
.dds-region-ranking .resource-item ul li {
  padding: 6px 0;
  border-bottom: 1px dashed #e2e8f0;
}
.dds-region-ranking .resource-item ul li:last-child {
  border-bottom: 0;
}

/* regional comparison table */
.dds-region-ranking .regional-comparison {
  margin-top: 30px;
  background: #fff;
  border: 1px solid var(--dds-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--dds-shadow-soft);
  padding: var(--pad-lg);
}
.dds-region-ranking .regional-comparison h3 {
  margin: 0 0 10px 0;
  color: var(--dds-blue-2);
  text-align: left;
}
.dds-region-ranking .comparison-table {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  border: 1px solid #e5eaf0;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.dds-region-ranking .table-header,
.dds-region-ranking .table-row {
  display: contents;
}
.dds-region-ranking .header-cell,
.dds-region-ranking .row-cell {
  padding: 12px 14px;
  border-bottom: 1px solid #ecf0f4;
  background: #fff;
  text-align: left;
  font-size: 0.98rem;
  color: var(--dds-ink);
}
.dds-region-ranking .header-cell {
  font-weight: 800;
  background: linear-gradient(135deg, var(--dds-blue) 0%, var(--dds-gold) 100%);
  color: #fff;
}
.dds-region-ranking .table-row:nth-child(even) .row-cell {
  background: #fafcff;
}
.dds-region-ranking .rating-high {
  font-weight: 800;
  color: #1d8348;
}
.dds-region-ranking .rating-medium {
  font-weight: 700;
  color: #b9770e;
}
.dds-region-ranking .rating-low {
  font-weight: 700;
  color: #c0392b;
}

/* methodology */
.dds-region-ranking .methodology {
  margin-top: 22px;
  background: #ffffff;
  border: 1px solid var(--dds-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--dds-shadow-soft);
  padding: var(--pad-lg);
  text-align: left;
}
.dds-region-ranking .methodology h3 {
  margin: 0 0 10px 0;
  color: var(--dds-blue-2);
}
.dds-region-ranking .methodology p {
  color: var(--dds-ink);
  line-height: 1.7;
  margin: 0 0 8px 0;
}

/* links inside content */
.dds-region-ranking a {
  color: #0d6efd;
  text-decoration: none;
}
.dds-region-ranking a:hover {
  text-decoration: underline;
}

/* responsive */
@media (max-width: 900px) {
  .dds-region-ranking .ranking-intro {
    grid-template-columns: 1fr;
  }
  .dds-region-ranking .resource-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dds-region-ranking .comparison-table {
    grid-template-columns: 1fr 1fr;
  }
  .dds-region-ranking .header-cell:nth-child(n + 3),
  .dds-region-ranking .row-cell:nth-child(n + 3) {
    display: none; /* simplify on small screens */
  }
}
@media (max-width: 600px) {
  .dds-region-ranking.section {
    padding: 36px 18px;
  }
  .dds-region-ranking > h2 {
    font-size: 1.75rem;
  }
  .dds-region-ranking .resource-grid {
    grid-template-columns: 1fr;
  }
  .dds-region-ranking .dds-ranking-card .dds-content {
    padding: var(--pad-md);
  }
}
@media (prefers-reduced-motion: reduce) {
  .dds-region-ranking .dds-btn::before,
  .dds-region-ranking .dds-ranking-card,
  .dds-region-ranking .dds-content {
    transition: none;
  }
}

/* ! Resources  */
/* Verified Badge */
.verified-resource-badge {
  background-color: #eaf5ea;
  padding: 1rem;
  margin-top: 2rem;
  border-top: 2px solid #83b683;
  border-radius: 8px;
  text-align: center;
}
.verified-label {
  font-weight: bold;
  color: #336633;
}
.verified-subtext {
  color: #4a6b4a;
  font-size: 0.9rem;
}

.reference-section {
  background-color: #f7f7fc;
  padding: 2em;
  margin-top: 3em;
  border-top: 2px solid #ccddee;
}
.reference-section h2 {
  font-size: 1.8rem;
  color: #223355;
  margin-bottom: 1rem;
}
.reference-container {
  margin-top: 1rem;
}
.scrollable-reference {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #ddd;
  padding: 1rem;
  background-color: #ffffff;
  border-radius: 6px;
}
.scrollable-reference ul {
  list-style-type: none;
  padding-left: 1.2rem;
}
.scrollable-reference li {
  margin-bottom: 0.7rem;
}
.scrollable-reference a {
  color: #004488;
  text-decoration: none;
}
.scrollable-reference a:hover {
  text-decoration: underline;
}

/* ! About Section  */
.about-section {
  background-color: #f8fbff;
  padding: 3em 1.5em;
  border-top: 3px solid #004c99;
  border-bottom: 3px solid #004c99;
  font-family: "Georgia", serif;
  color: #222;
  line-height: 1.7;
  box-shadow: inset 0 0 10px rgba(0, 76, 153, 0.05);
}

.about-section h2 {
  font-size: 2rem;
  text-align: center;
  color: #004c99;
  font-weight: 600;
  margin-bottom: 1em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid #004c99;
  display: inline-block;
  padding-bottom: 0.25em;
}

.about-section p {
  max-width: 800px;
  margin: 0 auto 1.5em auto;
  font-size: 1.05rem;
  text-align: justify;
}

.about-section strong {
  color: #003366;
  font-weight: bold;
}

.about-section a {
  color: #004c99;
  font-weight: 600;
  text-decoration: underline;
}

.about-section a:hover {
  color: #002244;
  text-decoration: none;
}

.about-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2em;
  max-width: 1200px;
  margin: 0 auto;
}

.about-image-container {
  flex: 1 1 380px;
  text-align: center;
}

.about-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 76, 153, 0.15);
}

.about-text {
  flex: 1 1 500px;
  min-width: 320px;
}

.overview-info {
  margin-bottom: 30px;
}

/* ! Footer Styling */
.site-footer {
  background-color: #003366;
  color: #ffffff;
  padding: 20px;
  text-align: center;
  font-size: 0.95rem;
  margin-top: 50px;
  border-radius: 7px;
}

.footer-content p {
  margin: 0 0 10px 0;
}

.footer-nav a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: #b8860b;
}

/* ! Under construction banner */
.under-construction {
  font-size: 1.1rem;
  font-weight: bold;
  color: #fcb6b6;
}

/* Legal Links Section */
.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25em 2em;
  list-style: none;
  padding: 1.5em 1em;
  margin: 0 auto;
  max-width: 1000px;
  text-align: center;
}

/* Universal styling for all link items */
.legal-links li {
  font-size: 0.95rem;
}

/* All links */
.legal-links a {
  color: #f0f0f0;
  text-decoration: none;
  border-bottom: 1px dotted #f0f0f0;
  transition: color 0.3s, border-color 0.3s;
}

.legal-links a:hover {
  color: #ffffff;
  border-bottom: 1px solid #ffffff;
}

@media (max-width: 768px) {
  .legal-links {
    flex-direction: column;
    align-items: center;
    gap: 0.75em;
    padding: 1em;
  }
}

/* !Privacy & Terms links */
.privacyLink,
.termsLink .contactLink {
  display: inline-block;
  margin: 0 0.75em;
  font-size: 0.95rem;
  list-style: none;
  text-align: center;
}

.privacyLink a,
.termsLink a,
.contactLink a {
  color: #f0f0f0;
  text-decoration: none;
  border-bottom: 1px dotted #f0f0f0;
  transition: color 0.3s, border-color 0.3s;
}

.privacyLink a:hover,
.termsLink a:hover,
.contactLink a:hover {
  color: #ffffff;
  border-bottom: 1px solid #ffffff;
}

/* Responsive adjustment */
@media (max-width: 600px) {
  .privacyLink,
  .termsLink {
    display: block;
    margin: 0.5em 0;
  }
}

/* === Base === */
body {
  font-family: "Arial", sans-serif;
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background: #f9f9f9;
  color: #222;
}

/* === Layout Wrapper for Consistent Centering === */
.main-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* === Header / Navbar === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, #1e3a5f 0%, #2c5aa0 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
  background: rgba(30, 58, 95, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.nav-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
  z-index: 1001;
}

.nav-logo:hover {
  transform: scale(1.02);
}

.nav-logo-img {
  height: 45px;
  width: 45px;
  border-radius: 50%;
  object-fit: cover;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.nav-logo-img:hover {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.logo-text {
  margin-left: 12px;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  position: relative;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 12px 18px;
  border-radius: 6px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  white-space: nowrap;
  letter-spacing: 0.3px;
  display: block;
}

.nav-link::before {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #64b5f6, #42a5f5);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 1px;
}

.nav-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.nav-link:hover::before {
  width: 70%;
}

.nav-link.active {
  color: white;
  background: rgba(255, 255, 255, 0.15);
}

.nav-link.active::before {
  width: 70%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.3s ease;
  z-index: 1001;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: white;
  margin: 5px 0;
  transition: all 0.3s ease;
  border-radius: 3px;
}

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

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

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

.nav-link:focus,
.nav-toggle:focus,
.nav-logo:focus {
  outline: 2px solid #64b5f6;
  outline-offset: 2px;
}

@media screen and (max-width: 1024px) {
  .nav-container {
    padding: 0 1.5rem;
  }

  .nav-menu {
    gap: 0;
  }

  .nav-link {
    padding: 12px 12px;
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 900px) {
  .nav-container {
    padding: 0 1rem;
  }

  .nav-toggle {
    display: block;
  }

  .logo-text {
    font-size: 1rem;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5aa0 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideDown 0.3s ease-out;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
  }

  /* Custom scrollbar for mobile menu */
  .nav-menu::-webkit-scrollbar {
    width: 6px;
  }

  .nav-menu::-webkit-scrollbar-track {
    background: transparent;
  }

  .nav-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
  }

  .nav-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
  }

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

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

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

  .nav-link {
    padding: 18px 2rem;
    text-align: left;
    width: 100%;
    border-radius: 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    min-height: 54px;
  }

  .nav-link::before {
    display: none;
  }

  .nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: none;
    padding-left: 2.5rem;
  }

  .nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    border-left: 4px solid #64b5f6;
  }
}

@media screen and (max-width: 768px) {
  .nav-container {
    height: 60px;
    padding: 0 1rem;
  }

  .nav-logo-img {
    height: 35px;
    width: 35px;
  }

  .logo-text {
    font-size: 0.95rem;
  }

  .nav-menu {
    max-height: calc(100vh - 60px);
  }

  .nav-link {
    padding: 16px 1.5rem;
    font-size: 0.95rem;
    min-height: 50px;
  }

  .nav-link:hover {
    padding-left: 2rem;
  }
}

@media screen and (max-width: 480px) {
  .nav-container {
    height: 55px;
    padding: 0 0.75rem;
  }

  .nav-logo-img {
    height: 30px;
    width: 30px;
  }

  .logo-text {
    font-size: 0.9rem;
    margin-left: 8px;
  }

  .nav-toggle {
    padding: 6px;
  }

  .nav-toggle span {
    width: 20px;
    height: 2px;
    margin: 4px 0;
  }

  .nav-menu {
    max-height: calc(100vh - 55px);
  }

  .nav-link {
    padding: 14px 1rem;
    font-size: 0.9rem;
    min-height: 46px;
  }

  .nav-link:hover {
    padding-left: 1.5rem;
  }
}

@media screen and (max-width: 380px) {
  .logo-text {
    display: none;
  }

  .nav-container {
    padding: 0 0.5rem;
  }
}

/* Demo content for visualization */
.demo-content {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.demo-section {
  background: white;
  padding: 2rem;
  margin: 1rem 0;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.demo-section h2 {
  color: #1e3a5f;
  margin-bottom: 1rem;
}

.demo-section p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
  overflow: hidden;
}

@media screen and (max-width: 900px) {
  body.menu-open {
    overflow: hidden;
  }
}
