/* ===========================
   Custom Styling for Website
   =========================== */

/* Navbar Styling */
.navbar-nav .nav-link {
    color: rgb(22, 112, 184) !important; /* Navbar links color */
    padding: 5px 10px; /* Add padding to make the outline look better */
    transition: all 0.3s ease-in-out; /* Smooth transition */
    border: 2px solid transparent; /* Initially no border */
    border-radius: 4px; /* Optional: Slightly rounded corners */
}

.navbar-nav .nav-link:hover {
    font-weight: bold;
    color: rgb(15, 90, 150) !important; /* Navbar links hover effect */
    border-color: rgb(15, 90, 150); /* Outline color on hover */
}

.navbar-nav .nav-item {
    margin-right: 20px; /* Adjust spacing as needed */
}

.navbar-nav .nav-item:last-child {
    margin-right: 0; /* Remove margin from the last item for clean alignment */
}

/* Navbar Brand (Logo) */
.navbar-brand:hover img {
    filter: brightness(1) contrast(2) saturate(0.2); /* Logo hover effect */
}

/*for fixed navbar*/
body {
    padding-top: 80px; /* Adjust based on navbar height */
    background-color: rgb(250, 255, 240); /* Light paper background */
}

html {
    scroll-behavior: smooth; /* for smooth scroll to internal links*/
}

/*for changing navbar color*/
.custom-navbar {
    background-color: rgba(199, 237, 253, 0.8) !important; /* Your custom color */
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.navbar.scrolled {
    background-color: rgba(233, 236, 239, 1) !important; /* Light gray on scroll */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Adds shadow */
}



/* ===========================
   Background & Text Colors
   =========================== */
.bg-custom {
    background-color: rgb(51, 159, 205); /* Background color for footer */
}

.text-custom {
    color: rgb(25, 145, 195); /* Custom text color */
}

@font-face {
    font-family: 'bohemian';
    src: url('fonts/Bohemian.otf') format('opentype');
}

@font-face {
    font-family: 'crustaceans';
    src: url('fonts/Crustaceans.otf') format('opentype');
}

@font-face {
    font-family: 'pencilant';
    src: url('fonts/Pencilant.otf') format('opentype');
}

@font-face {
    font-family: 'greatvibes';
    src: url('fonts/Greatvibes.ttf') format('truetype');
}

@font-face {
    font-family: 'hultog';
    src: url('fonts/Hultog.ttf') format('truetype');
}

@font-face {
    font-family: 'jacielle';
    src: url('fonts/Jacielle.ttf') format('truetype');
}

.custom-font-bohemian {
    font-family: 'bohemian', sans-serif;
}

@font-face {
    font-family: 'aptos';
    src: url('fonts/Aptos.ttf') format('truetype');
}

@font-face {
    font-family: 'aptos-semi';
    src: url('fonts/Aptos-SemiBold.ttf') format('truetype');
}



/* ===========================
   Footer Styling
   =========================== */
.footer-logo {
    filter: brightness(0) invert(1); /* Converts the logo to pure white */
    width: 150px; /* Adjust size as needed */
}

/* ===========================
   Lines Between Sections Styling
   =========================== */

.section-divider {
    width: 80%;
    height: 2px; /* Adjust thickness */
    background-color: rgb(51, 159, 205);
    margin: 0 auto 20px auto; /* Centering the divider */
}

/* ===========================
   Problem Statement Section
   =========================== */
.problem-statement {
    padding: 50px 0; /* Adds spacing above and below problem statement */
}

.problem-statement .lead {
    font-size: 20px;
    font-weight: 350; /* Try 500, 600, or bold */
}

.intro-text {
    max-width: 1000px;
    margin: 0 auto; /* Restrict width of problem statement and center it */
}

.row h3 {
    color: white;
    font-weight: bold;/* White headings */
}

.row h4 {
    color: rgb(45, 145, 195);
    font-weight: bold;
}

.row {
    display: flex;               /* Use flexbox for layout */
    flex-direction: row;         /* Align children in a row (side by side) */
    align-items: center;         /* Vertically center items */
    justify-content: center;     /* Horizontally center items */
}

/* ===========================
   Vision-Mission Section
   =========================== */
.vision-mission {
    padding: 50px 0; /* Adds spacing above and below problem statement */
}


/* ===========================
   Our Programs Section
   =========================== */

.our-programs {
    padding: 20px 0;
}

.our-programs h2 {
    margin-bottom: 20px; /* Add space below heading */
}

.program-card {
    position: relative;
    overflow: visible;
    border-radius: 0px;
    display: block; /* Remove flex and use block for natural flow */
    width: 80%; /* Set a smaller fixed width */
    height: auto; /* Adjust height automatically */
    padding: 0; /* Reduce internal padding */
    margin: auto; /* Centers the card within the column */
}

.program-img {
    width: 100%; /* Take up full width of container */
    max-width: 400px;
    height: auto;
    transition: transform 0.2s ease-in-out;
    /*box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3); /* Creates the shadow */
    border-radius: 0;
    transform: scale(1);
    border-radius: 10px;
}


.program-card:hover .program-img {
    transform: scale(1.12); /* Zoom effect */
    /*box-shadow: 8px 8px 20px rgba(0, 0, 0, 0.4); /* Stronger shadow on hover */
}

/* ===========================
    Programs 1 to 6 Section
   =========================== */

.program-section {
    padding: 20px 0;
    /*border-bottom: 2px solid #ddd;*/
    scroll-margin-top: 100px; /* Adjust based on navbar height */
}

.section-title {
    color: rgb(45, 145, 195);
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
}


/* ===========================
   Smooth (Dynamic) Scroll Effect
   =========================== */
   .section-scroll {
    opacity: 0;
    transform: translateY(50px); /* Moves it down initially */
    transition: opacity 1s ease-in-out, transform 0.8s ease-in-out; /* Slower effect */
    /*transition-delay: 0.2s; /* Delays movement to prevent overlapping */
}

.section-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

/*for smooth scrolling, so the navbar doesn't hide the section title*/

#about-us {
    scroll-margin-top: 150px; /* Adjust this value based on your navbar height */
}

#our-programs {
    scroll-margin-top: 150px; /* Adjust this value based on your navbar height */
}

#program-1 {
    scroll-margin-top: 150px; /* Adjust this value based on your navbar height */
}
#program-2 {
    scroll-margin-top: 150px; /* Adjust this value based on your navbar height */
}
#program-3 {
    scroll-margin-top: 150px; /* Adjust this value based on your navbar height */
}
#program-4 {
    scroll-margin-top: 150px; /* Adjust this value based on your navbar height */
}
#program-5 {
    scroll-margin-top: 150px; /* Adjust this value based on your navbar height */
}
#program-6 {
    scroll-margin-top: 150px; /* Adjust this value based on your navbar height */
}


/* ===========================
   Navbar Drop-down
   =========================== */

/* Custom dropdown background */
/* Custom dropdown background */
.dropdown-menu {
    background-color: rgb(51, 159, 205); /* Your custom background color */
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, visibility 0.3s;
    display: block; /* Ensures dropdown exists but stays hidden */
    
    /*centering the dropdown so it doesn't get cut*/
    right: 50% !important;  /* Forces dropdown to stay inside screen */
    transform: translateX(50%) !important;
    left: auto !important; /* Avoids default right alignment */
    
}

/* Show dropdown on hover */
.nav-item.dropdown:hover .dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.navbar .dropdown-toggle::after {
    display: none !important;
}

/* Custom dropdown text color */
.dropdown-menu .dropdown-item {
    color: white; /* Change text color */
}

/* Change dropdown item color on hover */
.dropdown-menu .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.2); /* Slight white overlay */
}

/* Add white borders between dropdown items */
.dropdown-menu .dropdown-item {
    color: white; /* Keep text white */
    border-bottom: 1px solid rgba(255, 255, 255, 0.8); /* White separator lines */
    padding: 10px 15px; /* Adjust padding for better spacing */
}

@media (max-width: 991px) {
    .navbar .dropdown-menu {
        position: absolute !important;
        top: 100%;
        left: 0;
        width: auto;
        display: none; /* Hide initially */
    }

    /* Show dropdown on hover for desktop */
    .navbar .nav-item.dropdown:hover .dropdown-menu {
        display: block;
    }

    /* Show dropdown when clicked for mobile */
    .navbar .nav-item.dropdown.show .dropdown-menu {
        display: block;
    }
}

/*opens drop down towards the left


/*This is the styling for the popup modal that says diangostics module is not available*/

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4); /* Dim background */
  overflow: hidden; /* Prevent scroll inside modal */
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Perfect centering */
  background-color: white;
  padding: 20px;
  border: 5px solid rgb(51, 159, 205);
  border-radius: 10px;
  width: 80%;
  max-width: 400px;
  color: rgb(51, 159, 205);
  text-align: center;
  font-family: Arial, sans-serif;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.ok-btn {
  margin-top: 20px;
  width: 20%;
  min-width: 80px; /* optional: prevents it from getting too small on tiny screens */
  padding: 8px 16px;
  background-color: rgb(51, 159, 205);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.ok-btn:hover {
  background-color: rgb(40, 140, 185);
}


/* this is for the program-grid , for mobile optimization */
@media (max-width: 768px) {
  .program-grid {
    display: grid;
    grid-template-columns: 1fr; /* One card per row */
    grid-auto-flow: column; /* Fill column first */
    max-height: none;
  }

  .program-grid > div {
    width: 100%;
  }
}

@media (min-width: 769px) {
  .program-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }

  .program-grid > div {
    flex: 0 0 calc(100% / 4); /* 3 cards per row + spacing */
    max-width: calc(100% / 4);
  }
}


/* This is for the footer contact form styling */

/* Contact Section Background */
.contact-section {
  background-color: rgb(51, 159, 205);
  padding: 50px 20px;
}

/* Title */
.contact-title {
  text-align: center;
  color: white;
  margin-bottom: 30px;
  font-size: 28px;
}

/* Form Container */
.contact-form {
  max-width: 900px;
  margin: 0 auto;
}

/* 2x2 Grid for First 4 Fields */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

/* Fields and Textarea */
.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: white;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  background-color: white;
  border: none;
  border-radius: 4px;
  box-sizing: border-box;
}

/* For full-width items (textarea, button, captcha) */
.full-width {
  grid-column: 1 / -1;
  margin-bottom: 20px;
}

/* Submit Button */
.contact-button {
  background-color: rgb(25, 145, 195);
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  font-weight: bold;
  border: 2px solid white; /* White border added */
}

.contact-button:hover {
  background-color: rgb(216, 245, 255); /* Lighter on hover */
  color: rgb(25, 145, 195);
}


/*for sweet alert styling*/

.my-swal-popup {
  background-color: white !important;
  border: 5px solid rgb(51, 159, 205) !important;
  border-radius: 10px !important;
  width: 80% !important;
  max-width: 400px !important;
  color: rgb(51, 159, 205) !important;
  font-family: Arial, sans-serif !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
  text-align: center !important;
}

.my-swal-title {
  color: rgb(51, 159, 205) !important;
  font-weight: bold !important;
  font-size: 1.5rem !important;
  margin-bottom: 0.5em !important;
}

.my-swal-content {
  color: rgb(51, 159, 205) !important;
  font-size: 1rem !important;
  margin-bottom: 1em !important;
}

.my-swal-confirm-button {
  background-color: rgb(51, 159, 205) !important;
  color: white !important;
  border: none !important;
  border-radius: 5px !important;
  padding: 8px 16px !important;
  font-size: 16px !important;
  cursor: pointer !important;
  min-width: 80px !important;
  transition: background-color 0.3s ease !important;
  margin: 0 auto !important;
  display: block !important;
  text-align: center !important;
}

.my-swal-confirm-button:hover {
  background-color: rgb(40, 140, 185) !important;
}


/*for the testimonials section*/

.testimonials-section {
  text-align: center;
  padding: 60px 20px;
  background-color: transparent;
  position: relative;
}

.testimonial-slider {
  width: 90%;              /* responsive: takes up 90% of screen */
  max-width: 800px; 
  margin: 0 auto;
  position: relative;
}

.testimonial {
  display: none;
  animation: fade 0.5s ease-in-out;
}

.testimonial.active {
  display: block;
}

.testimonial-photo {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto 20px;
  border: 5px solid rgb(45, 145, 195);
}

blockquote {
  font-style: italic;
  font-size: 1.2rem;
  color: #333;
  max-width: 600px;
  margin: 0 auto;
  font-family: "Segoe UI", "Calibri", sans-serif;
  color: #666;
}

.dots {
  margin-top: 20px;
}

.dot {
  height: 14px;
  width: 14px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.dot.active {
  background-color: rgb(45, 145, 195);
}

@keyframes fade {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

.arrow {
  cursor: pointer;
  position: absolute;
  top: 35%;
  transform: translateY(-50%);
  font-size: 62px; /* increased size */
  color: #2d91c3;
  background: none;
  border: none;
  padding: 12px; /* larger clickable area */
  user-select: none;
  transition: color 0.3s ease;
  z-index: 10;
}

.arrow:hover {
  color: #1f6d94;
}

.left-arrow {
  left: 5%; /* move away from content */
}

.right-arrow {
  right: 5%; /* move away from content */
}