:root {
  --primary-color: #f39f5f;
  --secondary-color: #ffcb05;
  --accent-color: #f39f5f;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --success-color: #28a745;
  --info-color: #f39f5f;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}

/* About Autism Section */
.about-section {
  padding: 100px 0;
  background-color: white;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  width: 60%;
  height: 4px;
  bottom: -10px;
  left: 0;
  background: var(--secondary-color);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--dark-color);
  margin-bottom: 3rem;
  max-width: 800px;
}

.about-card {
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin-bottom: 30px;
  transition: all 0.3s ease;
  height: 100%;
  border-top: 5px solid var(--primary-color);
}

.about-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.about-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.about-card h3 {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.about-card p {
  color: #555;
  line-height: 1.8;
}

/* Facts Section */
.facts-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--accent-color), var(--info-color));
  color: white;
  position: relative;
  overflow: hidden;
}

.facts-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("https://images.unsplash.com/photo-1573497491208-6b1acb260507?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80")
    no-repeat center center/cover;
  opacity: 0.1;
  z-index: 0;
}

.facts-content {
  position: relative;
  z-index: 1;
}

.fact-item {
  text-align: center;
  padding: 30px;
  margin-bottom: 30px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.fact-item:hover {
  transform: scale(1.05);
  background-color: rgba(255, 255, 255, 0.25);
}

.fact-number {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.fact-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.fact-description {
  font-size: 1rem;
  opacity: 0.9;
}

/* Signs & Symptoms Section */
.signs-section {
  padding: 100px 0;
  background-color: #f8f9fa;
}

.sign-tabs {
  margin-bottom: 30px;
}

.nav-pills .nav-link {
  color: var(--dark-color);
  font-weight: 500;
  padding: 12px 25px;
  margin: 0 10px 10px 0;
  border-radius: 50px;
  background-color: white;
  border: 1px solid #ddd;
  transition: all 0.3s ease;
}

.nav-pills .nav-link.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.sign-content {
  background-color: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.sign-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.sign-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.sign-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: 20px;
  flex-shrink: 0;
}

.sign-text h4 {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.sign-text p {
  color: #555;
  line-height: 1.7;
}

/* Resources Section */
.resources-section {
  padding: 100px 0;
  background-color: white;
}

.resource-card {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  transition: all 0.3s ease;
  border: none;
}

.resource-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.resource-img {
  height: 200px;
  object-fit: cover;
}

.resource-body {
  padding: 25px;
}

.resource-category {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--dark-color);
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.resource-title {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.resource-description {
  color: #555;
  margin-bottom: 20px;
  line-height: 1.6;
}

.btn-resource {
  background-color: var(--primary-color);
  color: white;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 50px;
  border: none;
  transition: all 0.3s ease;
}

.btn-resource:hover {
  background-color: #005a9c;
  color: white;
}

/* Animation Keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

/* Section Styling */
.section {
  padding: 80px 0;
}

.section-title {
  position: relative;
  margin-bottom: 50px;
  text-align: center;
  color: var(--primary-color);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
  color: #666;
}

/* Card Styling */
.feature-card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-card .card-img-top {
  height: 200px;
  object-fit: cover;
}

.feature-card .card-body {
  padding: 25px;
}

.feature-card .card-title {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.feature-card .card-text {
  color: #666;
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

/* About Autism Section */
.about-autism {
  background-color: #f8f9fa;
}

.about-content {
  padding-right: 30px;
}

.about-image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

.fact-box {
  background-color: white;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-left: 4px solid var(--secondary-color);
}

.fact-box h4 {
  color: var(--primary-color);
}

.age-group {
  font-weight: 600;
  color: var(--primary-color);
}

/* Therapies Section */
.therapy-card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  margin-bottom: 30px;
  height: 100%;
}

.therapy-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.therapy-card .card-img-top {
  height: 180px;
  object-fit: cover;
}

.therapy-card .card-body {
  padding: 25px;
}

.therapy-card .card-title {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.therapy-card .card-text {
  color: #666;
}

.therapy-badge {
  background-color: var(--secondary-color);
  color: var(--dark-color);
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.8rem;
  display: inline-block;
  margin-bottom: 10px;
}

/* Success Stories Section */
.success-stories {
  background-color: #f8f9fa;
}

.story-card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  background-color: white;
}

.story-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.story-card .card-img-top {
  height: 250px;
  object-fit: cover;
}

.story-card .card-body {
  padding: 25px;
}

.story-card .card-title {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.story-card .card-text {
  color: #666;
}

.quote-icon {
  color: var(--secondary-color);
  font-size: 1.5rem;
  margin-bottom: 15px;
}

/* Parent Guidance Section */
.guidance-item {
  display: flex;
  margin-bottom: 30px;
  background-color: white;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.guidance-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.guidance-icon {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-right: 20px;
  min-width: 50px;
}

.guidance-content h4 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

/* Resources Section */
.resource-card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  margin-bottom: 30px;
  height: 100%;
  background-color: white;
}

.resource-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.resource-card .card-body {
  padding: 25px;
}

.resource-card .card-title {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.resource-card .card-text {
  color: #666;
}

.resource-icon {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.resource-badge {
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.8rem;
  display: inline-block;
  margin-bottom: 10px;
}

/* Events Section */
.event-card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  margin-bottom: 30px;
  height: 100%;
}

.event-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.event-card .card-img-top {
  height: 200px;
  object-fit: cover;
}

.event-card .card-body {
  padding: 25px;
}

.event-card .card-title {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.event-card .card-text {
  color: #666;
}

.event-date {
  background-color: var(--secondary-color);
  color: var(--dark-color);
  font-weight: 600;
  padding: 5px 15px;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 15px;
}

/* Get Involved Section */
.involved-section {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--accent-color) 100%
  );
  color: white;
  padding: 80px 0;
}

.involved-card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 30px;
  height: 100%;
  background-color: white;
  color: var(--dark-color);
  text-align: center;
  padding: 30px 20px;
}

.involved-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.involved-icon {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.involved-card h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.involved-card .btn {
  margin-top: 15px;
  padding: 8px 25px;
  border-radius: 50px;
  font-weight: 600;
}

/* Contact Section */
.contact-section {
  background-color: #f8f9fa;
}

.contact-info {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.contact-info h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  margin-bottom: 20px;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-right: 15px;
  min-width: 30px;
}

.contact-form {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form .form-control {
  border-radius: 5px;
  padding: 12px 15px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
}

.contact-form textarea.form-control {
  min-height: 150px;
}

.contact-form .btn {
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.contact-form .btn:hover {
  background-color: #005a8c;
  border-color: #005a8c;
}

/* Map */
.map-container {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--secondary-color);
  color: var(--dark-color);
  transform: translateY(-5px);
}

/* Modal Styling */
.modal-content {
  border-radius: 15px;
  overflow: hidden;
  border: none;
}

.modal-header {
  background-color: var(--primary-color);
  color: white;
  border-bottom: none;
}

.modal-header .btn-close {
  filter: invert(1);
}

.modal-body {
  padding: 30px;
}

.modal-footer {
  border-top: none;
  background-color: #f8f9fa;
}

@media (max-width: 575.98px) {
  .section-title {
    font-size: 1.8rem;
  }
}

/* Pulse Animation for Important Elements */
.pulse-animation {
  animation: pulse 2s infinite;
}

/* Ribbon for Special Announcements */
.ribbon {
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  overflow: hidden;
}

.ribbon-content {
  position: absolute;
  display: block;
  width: 225px;
  padding: 15px 0;
  background-color: var(--secondary-color);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  color: var(--dark-color);
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  right: -25px;
  top: 30px;
  transform: rotate(45deg);
  z-index: 1;
}

/* Testimonial Carousel */
.testimonial-carousel .carousel-item {
  padding: 30px;
}

.testimonial-card {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  margin: 0 15px;
}

.testimonial-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 3px solid var(--secondary-color);
}

.testimonial-quote {
  font-size: 1.1rem;
  font-style: italic;
  color: #555;
  margin-bottom: 20px;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.testimonial-role {
  color: #777;
  font-size: 0.9rem;
}

.carousel-control-prev,
.carousel-control-next {
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
}

.carousel-control-prev {
  left: -20px;
}

.carousel-control-next {
  right: -20px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 20px;
  height: 20px;
}

/* Progress Bars for Statistics */
.progress-stat {
  margin-bottom: 20px;
}

.progress-stat h5 {
  color: var(--primary-color);
  margin-bottom: 5px;
}

.progress {
  height: 10px;
  border-radius: 5px;
  background-color: #e9ecef;
}

.progress-bar {
  background-color: var(--secondary-color);
}

/* Timeline for Autism Journey */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 6px;
  background-color: var(--secondary-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

.timeline-container {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-container::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 25px;
  right: -17px;
  background-color: white;
  border: 4px solid var(--primary-color);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.left {
  left: 0;
}

.right {
  left: 50%;
}

.left::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  right: 30px;
  border: medium solid var(--secondary-color);
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent var(--secondary-color);
}

.right::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  left: 30px;
  border: medium solid var(--secondary-color);
  border-width: 10px 10px 10px 0;
  border-color: transparent var(--secondary-color) transparent transparent;
}

.right::after {
  left: -16px;
}

.timeline-content {
  padding: 20px 30px;
  background-color: white;
  position: relative;
  border-radius: 6px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

@media screen and (max-width: 600px) {
  .timeline::after {
    left: 31px;
  }

  .timeline-container {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .timeline-container::before {
    left: 60px;
    border: medium solid var(--secondary-color);
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--secondary-color) transparent transparent;
  }

  .left::after,
  .right::after {
    left: 15px;
  }

  .right {
    left: 0%;
  }
}

/* Floating Elements */
.floating {
  animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* Counter for Statistics */
.counter-box {
  text-align: center;
  padding: 30px 20px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  transition: all 0.3s ease;
}

.counter-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.counter-icon {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.counter {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.counter-title {
  font-size: 1.1rem;
  color: #666;
}
