/* Default (Desktop) */
#hero-slider .slide-content {
  background-size: cover;
  background-position: center;
  height: 70vh; /* Reduced from 85vh */
}

/* Tablet */
@media (max-width: 991px) {
  #hero-slider .slide-content {
    height: 60vh;
  }
  #hero-slider h1 {
    font-size: 1.8rem;
  }
  #hero-slider p {
    font-size: 1rem;
  }
}

/* Mobile */
@media (max-width: 576px) {
  #hero-slider .slide-content {
    height: 50vh; /* Perfect mobile height */
    padding: 10px;
  }
  #hero-slider h1 {
    font-size: 1.3rem;
    line-height: 1.5;
  }
  #hero-slider p {
    font-size: 0.9rem;
  }
  #hero-slider a.btn {
    padding: 6px 14px;
    font-size: 0.85rem;
  }
}

/* Indicators */
.carousel-indicators [data-bs-target] {
  background-color: white;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* Controls */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: brightness(0) invert(1);
}
/* About us Css */


  /* Full background with moving gradient and floating particles */
  #about {
    position: relative;
    overflow: hidden;
    color: #0b2545;
  }

  .beautiful-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(14,165,233,0.35), transparent 70%),
                radial-gradient(circle at 80% 60%, rgba(147,51,234,0.25), transparent 70%),
                linear-gradient(120deg, #0ea5e9, #22d3ee, #3b82f6, #9333ea);
    background-size: 400% 400%;
    animation: gradientFlow 12s ease infinite;
    filter: blur(20px);
    opacity: 0.75;
    z-index: 0;
  }

  @keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }

  /* Elegant animated floating particles */
  #about::before, #about::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 9s ease-in-out infinite;
    z-index: 1;
  }
  #about::before {
    top: -50px;
    left: 15%;
    animation-delay: 2s;
  }
  #about::after {
    bottom: -60px;
    right: 10%;
  }

  @keyframes float {
    0%,100% { transform: translateY(0); opacity: 0.7; }
    50% { transform: translateY(30px); opacity: 1; }
  }

  /* Box Styling */
  .about-box {
    max-width: 950px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    position: relative;
    z-index: 3;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
  }

  .about-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(14,165,233,0.25);
  }

  /* Button hover animation */
  .hover-zoom:hover {
    transform: scale(1.05);
    transition: 0.3s;
  }

  /* Text improvements */
  .about-box p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #f3f4f6;
  }

  /* Responsiveness */
  @media (max-width: 992px) {
    .about-box {
      padding: 1.8rem;
      margin: 0 1rem;
    }
    .about-box p { font-size: 1rem; }
    #about h2 { font-size: 1.8rem; }
  }

  @media (max-width: 576px) {
    .about-box {
      padding: 1.2rem 1.3rem;
      border-radius: 1rem;
    }
    .about-box p { font-size: 0.95rem; line-height: 1.6; }
    #about h4 { font-size: 1rem; }
  }


  /* Our Stoty Css */
  #our-story {
    overflow: hidden;
  }

  /* Video box styling */
  .video-box {
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
  }
  .video-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
  }

  /* Content box */
  .content-box {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: #1f2937;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .content-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  }

  /* Accordion button */
  .accordion-button {
    background: #f3f4f6;
    color: #111827;
    font-style: italic;
    border-radius: 0.75rem;
  }
  .accordion-button:focus {
    box-shadow: none;
  }

  /* Mobile adjustments */
  @media (max-width: 991px) {
    .content-box {
      display: none; /* hide desktop version */
    }
    .accordion {
      margin-top: 0.5rem;
    }
    .video-box {
      margin-bottom: 0; /* eliminate gap */
    }
  }

  @media (min-width: 992px) {
    .accordion {
      display: none; /* hide dropdown on desktop */
    }
  }
  
/* Our Impact  */

  #our-impact {
    overflow: hidden;
  }

  /* Impact Boxes */
  .impact-box {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    width: 240px;
    padding: 1.5rem 1rem;
    transition: all 0.4s ease;
    cursor: pointer;
    flex-shrink: 0;
  }

  .impact-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 25px rgba(14, 165, 233, 0.2);
  }

  .impact-box.active {
    background: linear-gradient(135deg, #0ea5e9 0%, #22d3ee 100%);
    color: white !important;
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.3);
  }

  .impact-box.active p {
    color: white !important;
  }

  .counter {
    font-size: 1.8rem;
    margin-bottom: 0.4rem;
  }

  /* Continuous Scrolling Animation */
  .impact-slider {
    width: max-content;
  }

  .impact-track {
    animation: slideImpact 16s linear infinite;
  }

  @keyframes slideImpact {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }

  /* Responsive Adjustments */
  @media (max-width: 991px) {
    .impact-track {
      animation: slideImpact 16s linear infinite;
    }
    .impact-box {
      width: 220px;
    }
  }


  /* precedent css */

   /* Section Base */
  #president-section {
    overflow: hidden;
  }

  /* Image Styling */
  .president-img {
    border: 4px solid #fff;
    transition: all 0.4s ease;
    max-width: 230px;
    height: auto;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  }

  .president-img:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.25);
  }

  /* Modal */
  .elegant-modal {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    animation: smoothPop 0.4s ease;
  }

  @keyframes smoothPop {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }

  .modal-img {
    border: 3px solid white;
    box-shadow: 0 0 25px rgba(14, 165, 233, 0.2);
    width: 160px;
    height: 160px;
  }

  /* Buttons */
  .btn-outline-primary {
    border-color: #0ea5e9;
    color: #0ea5e9;
  }

  .btn-outline-primary:hover {
    background-color: #0ea5e9;
    color: #fff;
    transform: translateY(-2px);
  }

  /* Responsive Adjustments */
  @media (max-width: 991px) {
    #president-section {
      padding-top: 2rem;
      padding-bottom: 2rem;
    }

    .president-img {
      max-width: 180px;
      margin-bottom: 1rem;
    }

    h2 {
      font-size: 1.2rem;
      text-align: center;
    }

    p {
      font-size: 0.85rem !important;
      text-align: justify;
    }

    .btn {
      font-size: 0.85rem;
    }

    .modal-img {
      width: 130px;
      height: 130px;
    }
  }


  /* Activitys */
    .underline {
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #0ea5e9 0%, #38bdf8 50%, #0ea5e9 100%);
    border-radius: 10px;
    animation: slideLine 2s ease-in-out infinite alternate;
  }

  @keyframes slideLine {
    0% { transform: scaleX(0.6); opacity: 0.8; }
    100% { transform: scaleX(1); opacity: 1; }
  }

  .initiative-item {
    font-weight: 600;
    color: #1e293b;
    background: #ffffff;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    position: relative;
  }

  .initiative-item:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #e0f2fe, #ffffff);
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.2);
    color: #0ea5e9;
  }

  /* Dropdown Description */
  .initiative-description {
    display: none;
    margin-top: 0.7rem;
    font-weight: 400;
    font-size: 0.85rem;
    color: #475569;
    background-color: #f8fafc;
    padding: 0.6rem;
    border-radius: 10px;
    border-left: 3px solid #0ea5e9;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
    animation: fadeIn 0.4s ease;
  }

  @keyframes fadeIn {
    from {opacity: 0; transform: translateY(-5px);}
    to {opacity: 1; transform: translateY(0);}
  }

  /* Responsive */
  @media (max-width: 767px) {
    .initiative-item {
      font-size: 0.85rem;
      padding: 0.9rem;
      border-radius: 10px;
    }
    .initiative-description {
      font-size: 0.8rem;
    }
  }


  /* Footer */

   .footer-section {
    position: relative;
    color: #fff;
    background: url('https://images.unsplash.com/photo-1603574670812-d24560880210?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
    overflow: hidden;
  }

  .footer-section .overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
  }

  .footer-section .container {
    position: relative;
    z-index: 2;
  }

  .footer-links a {
    color: #f1f5f9;
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.4rem;
    transition: color 0.3s ease, transform 0.3s ease;
  }

  .footer-links a:hover {
    color: #38bdf8;
    transform: translateX(5px);
  }

  .footer-email {
    position: relative;
    display: flex;
    align-items: center;
  }

  .footer-email input {
    padding-right: 2.5rem;
  }

  .footer-email .email-btn {
    position: absolute;
    right: 10px;
    background: #0ea5e9;
    border: none;
    color: white;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease;
  }

  .footer-email .email-btn:hover {
    background: #38bdf8;
  }

  @media (max-width: 767px) {
    .footer-section {
      text-align: center;
    }
    .footer-email {
      justify-content: center;
    }
    .footer-email input {
      max-width: 250px;
      margin: 0 auto;
    }
  }