/********** Template CSS **********/
:root {
  --primary: #3B82F6;
  --light: #e1e5e8;
  --dark: #1F2937;
}
/* Universal Responsive Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-size: 16px; /* Base font size */
  line-height: 1.6;
  overflow-x: hidden;   /* Prevent horizontal scrolling */
}
/*this is the hero banner's height*/
.owl-carousel-item {
  height: 600px; /* or 350px or whatever height you want */
  overflow: hidden;
  position: relative;
}

.owl-carousel-item img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}
/*footer width and height*/

.footer {
  width: 100%; /* spans the entire page width */
  height: 400px; /* adjust this to fit your desired height */
  background-color: #1F2937; /* optional: you already have bg-dark from Bootstrap, but you can override */
  overflow: hidden; /* optional: to hide overflowing content */
  position: relative; /* optional: for positioning inner elements if needed */
}

/* Ensure Images and Iframes are Responsive */
img,
iframe {
  max-width: 100%;
  height: auto;
}

/* General Flexbox Adjustments for Responsiveness */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  display: flex;
  height: 700;
  flex-wrap: wrap; /* Allows wrapping on smaller screens */
  gap: 1rem; /* Adds space between items */
}

/* Default Layout for Columns */
.column {
  flex: 1; /* Default equal width */
  min-width: 300px; /* Prevents shrinking too small */
}

/* Responsive Grid Layout */
.grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(300px, 1fr)
  ); /* Dynamic column layout */
  gap: 1rem;
}

/* Navigation Bar Adjustments */
.navbar ul {
  display: flex;
  flex-wrap: wrap; /* Allows nav items to wrap */
  justify-content: space-between;
  gap: 1rem;
}

.navbar ul li {
  flex: 1; /* Adjust sizes dynamically */
}

/* Media Queries for Smaller Screens */
@media (max-width: 768px) {
  .navbar ul {
    flex-direction: column; /* Vertical menu on smaller screens */
  }

  .column {
    flex: 1 1 100%; /* Full width for smaller screens */
  }

  h1,
  h2,
  h3 {
    font-size: 1.9rem; /* Scale down headers */
  }

  body {
    font-size: 14px; /* Adjust base font size */
  }
}

@media (max-width: 480px) {
  .container {
    flex-direction: column; /* Full-stack layout on mobile */
  }

  .grid {
    grid-template-columns: 1fr; /* Single column grid */
  }

  img,
  iframe {
    max-width: 100%;
  }
}

.back-to-top {
  position: fixed;
  display: none;
  right: 45px;
  bottom: 45px;
  z-index: 99;
}

/*** Spinner ***/
#spinner {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
  z-index: 99999;
}

#spinner.show {
  transition: opacity 0.5s ease-out, visibility 0s linear 0s;
  visibility: visible;
  opacity: 1;
}

/*** Button ***/
.btn {
  font-weight: 500;
  transition: 0.5s;
}

.btn.btn-primary {
  color: #ffffff;
}

.btn-square {
  width: 38px;
  height: 38px;
}

.btn-sm-square {
  width: 32px;
  height: 32px;
}

.btn-lg-square {
  width: 48px;
  height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
  border-radius: 50px;
}

/*** Heading ***/
h1,
h2,
h3,
h4,
.h1,
.h2,
.h3,
.h4,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
  font-family: "Lobster Two", cursive;
  font-weight: 700;
}

h5,
h6,
.h5,
.h6 {
  font-weight: 600;
}

.font-secondary {
  font-family: "Lobster Two", cursive;
}

/*** Navbar ***/
.navbar .navbar-nav .nav-link {
  padding: 30px 15px;
  color: var(--dark);
  font-weight: 500;
  outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
  color: var(--primary);
}

.navbar.sticky-top {
  top: -100px;
  transition: 0.5s;
}

.navbar .dropdown-toggle::after {
  border: none;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  vertical-align: middle;
  margin-left: 5px;
  transition: 0.5s;
}

.navbar .dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(-180deg);
}

@media (max-width: 991.98px) {
  .navbar .navbar-nav .nav-link {
    margin-right: 0;
    padding: 10px 0;
  }

  .navbar .navbar-nav {
    margin-top: 15px;
    border-top: 1px solid #eeeeee;
  }
}

@media (min-width: 992px) {
  .navbar .nav-item .dropdown-menu {
    display: block;
    top: calc(100% - 15px);
    margin-top: 0;
    opacity: 0;
    visibility: hidden;
    transition: 0.5s;
  }

  .navbar .nav-item:hover .dropdown-menu {
    top: 100%;
    visibility: visible;
    transition: 0.5s;
    opacity: 1;
  }
}

/*** Header ***/
.header-carousel::before,
.header-carousel::after,
.page-header::before,
.page-header::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 10px;
  top: 0;
  left: 0;
  background: url(../img/bg-header-top.png) center center repeat-x;
  z-index: 1;
}

.header-carousel::after,
.page-header::after {
  height: 19px;
  top: auto;
  bottom: 0;
  background: url(../img/bg-header-bottom.png) center center repeat-x;
}

@media (max-width: 768px) {
  .header-carousel .owl-carousel-item {
    position: relative;
    min-height: 500px;
  }

  .header-carousel .owl-carousel-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .header-carousel .owl-carousel-item p {
    font-size: 16px !important;
    font-weight: 400 !important;
  }

  .header-carousel .owl-carousel-item h1 {
    font-size: 30px;
    font-weight: 600;
  }
}

.header-carousel .owl-nav {
  position: absolute;
  top: 50%;
  right: 8%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
  margin: 7px 0;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: transparent;
  border: 1px solid #ffffff;
  border-radius: 45px;
  font-size: 22px;
  transition: 0.5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.page-header {
  background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
    url(../img/schoolstudents.org-2.png) center center no-repeat;
  background-size: cover;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}

/*** Facility ***/
.facility-item .facility-icon {
  position: relative;
  margin: 0 auto;
  width: 100px;
  height: 100px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.facility-item .facility-icon::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.9);
  transition: 0.5s;
  z-index: 1;
}

.facility-item .facility-icon span {
  position: absolute;
  content: "";
  width: 15px;
  height: 30px;
  top: 0;
  left: 0;
  border-radius: 50%;
}

.facility-item .facility-icon span:last-child {
  left: auto;
  right: 0;
}

.facility-item .facility-icon i {
  position: relative;
  z-index: 2;
}

.facility-item .facility-text {
  position: relative;
  min-height: 250px;
  padding: 30px;
  border-radius: 100%;
  display: flex;
  text-align: center;
  justify-content: center;
  flex-direction: column;
}

.facility-item .facility-text::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.9);
  transition: 0.5s;
  z-index: 1;
}

.facility-item .facility-text * {
  position: relative;
  z-index: 2;
}

.facility-item:hover .facility-icon::before,
.facility-item:hover .facility-text::before {
  background: transparent;
}

.facility-item * {
  transition: 0.5s;
}

.facility-item:hover * {
  color: #ffffff !important;
}

/*** About ***/
.about-img img {
  transition: 0.5s;
}

.about-img img:hover {
  background: var(--primary) !important;
}

/*** Classes ***/
.classes-item {
  transition: 0.5s;
}

.classes-item:hover {
  margin-top: -10px;
}

/*** Team ***/
.team-item .team-text {
  position: absolute;
  width: 250px;
  height: 250px;
  bottom: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #ffffff;
  border: 17px solid var(--light);
  border-radius: 250px;
  transition: 0.5s;
}

.team-item:hover .team-text {
  border-color: var(--primary);
}

/*** Testimonial ***/
.testimonial-carousel {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 576px) {
  .testimonial-carousel {
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

.testimonial-carousel .testimonial-item .border {
  border: 1px dashed rgba(0, 185, 142, 0.3) !important;
}

.testimonial-carousel .owl-nav {
  position: absolute;
  width: 100%;
  height: 45px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  z-index: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
  position: relative;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--primary);
  border-radius: 45px;
  font-size: 20px;
  transition: 0.5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
  background: var(--dark);
}

/*** Footer ***/
.footer {
    position: relative;
  max-width: 1280px;
  width: 95%;
  background: #3b82f6;
  border-radius: 6px;
  margin: 50px auto;
  flex-wrap: wrap;
  height: auto;
}

.footer .footer-row {
  display: flex;
  flex-wrap: wrap;           /* Keeps them in one row */
  justify-content: center;     /* Centered alignment */
  align-items: flex-start;
  gap: 1.5rem;                 /* Small spacing between items */
  padding: 40px;
  overflow-x: auto;            /* Allows horizontal scroll on smaller screens */
}

.footer-col {
   flex: 0 0 30%;                /* Fixed width for each column */
  min-width: 250px;
  max-width: 300px;
  padding: 10px;
  margin: 0;  
}

.footer-col h3,
.footer-col h4 {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-col p {
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}

.footer-col p i {
  width: 20px;
  text-align: center;
}

.footer-col .social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid #ffffff80;
  border-radius: 50%;
  color: #ffffff;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.social-btn i {
  font-size: 18px;
}

.social-btn:hover {
  background-color: #ffffff;
  color: #3b82f6;
}

.footer-col .links {
  list-style: none;
  padding: 0;
}

.footer-col .links li {
  margin-bottom: 12px;
}

.footer-col .links li a {
  text-decoration: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: 0.3s;
}

.footer-col .links li a i {
  font-size: 14px;
}

.footer-col .links li a:hover {
  text-decoration: underline;
  color: #fff;
}

/* Photo gallery section inside footer */
.gallery-footer {
  background-color: #f8f8f8;
  padding: 10px;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 800px;
  margin: 0 auto;
}

.photo-gallery img {
  width: 100%;
  max-width: 80px;
  height: auto;
  border: 1px solid #ffffff;
  border-radius: 8px;
  background-color: #ffffff;
  padding: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .footer .footer-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px;
    gap: 2rem;
  }

  .footer-col {
    margin-bottom: 20px;
  }

  .footer-col .social-icons {
    justify-content: center;
  }

  .photo-gallery {
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
  }

  .photo-gallery img {
    max-width: 65px;
  }
}



/* 404 Page */

/* Make the 404 number big and bold */
h1.display-1 {
  font-size: 120px;
  font-weight: 800;
  color: #0f172a;
}

/* Description text - responsive fix */
p.mb-4 {
  font-size: 1.125rem; /* 18px */
  color: #64748b;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 1.5rem auto;
  text-align: center;
  padding: 0 15px;
}


/* Style the triangle icon */
.bi-exclamation-triangle {
  font-size: 80px;
  color: #f97316;
  margin-bottom: 20px;
}

/* Style the button */
.btn.btn-primary {
  background-color: #3B82F6;
  border: none;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 30px;
  transition: background-color 0.3s ease;
}

/* Hover effect for button */
.btn.btn-primary:hover {
  background-color: #2164d1; /*change added here.....*/
}
/* 404 Page End */

/* Free Courses Page Start */
/* H3 Heading of free courses page */

h3 {
  text-align:center;
}
.ss-wrap {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 60px 0;
}

/* Hero Banner */
.ss-banner {
  background-color: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 100px 20px;
}

.ss-title {
  font-size: 2.7rem;
  margin-bottom: 1rem;
}

.ss-subtext {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.ss-btn {

  background: var(--white);
  color: var(--primary);
  padding: 10px 20px;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  display: inline-block;
  transition: 0.3s ease;
  margin: 10px;
}

.ss-btn:hover {
  background: #2563eb;
  color: white;
}

/* Course Grid */
.ss-course-grid .ss-wrap {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.ss-course-box {
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.ss-course-box img {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.ss-course-title {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.ss-course-text {
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* Iframe Section */
.ss-live-preview {
  background: var(--white);
}

.ss-section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.ss-preview-box {
  margin-bottom: 40px;
}

.ss-preview-box iframe {
  width: 100%;
  border: none;
  border-radius: var(--radius);
}

/* Callout CTA */
.ss-callout {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 80px 20px;
}

.ss-callout h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.ss-callout p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}





* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.ss-wrap {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 60px 0;
}

.ss-page-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
}

.ss-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.ss-course-card {
  background: var(--white);
  padding: 20px;
  border-radius: 20px !important; /* Added !important to override any conflicting styles */
  box-shadow: var(--shadow);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden; /* This will ensure content doesn't overflow the rounded corners */
}
.ss-course-card img {
  width: 100%;
  border-radius: 8px; /* Added some radius to the images as well */
  margin-bottom: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* This adds the shadow */
  cursor: pointer;
}
.ss-course-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.ss-course-card p {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}
.ss-btn {
  background: var(--primary);
  color: white;
  padding: 10px 18px;
  text-decoration: none;
  border-radius: 8px; /* Specific value rather than var */
  font-weight: 600;
  margin-top: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* This adds the shadow */
  cursor: pointer;
  transition: box-shadow 0.3s ease; /* Smooth shadow transition on hover */
}
.ss-btn:hover {
  background: #2563eb;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* Deeper shadow on hover */
}

  .aydin * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.aydin .logos {
  overflow: hidden;
  padding: 40px 0;
  background: white;
  white-space: nowrap;
  position: relative;
}

@keyframes aydin-slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.aydin .logos-slide {
  display: inline-flex;
  animation: aydin-slide 20s linear infinite;
}

.aydin .logos-slide img {
  height: 70px;
  margin: 0 40px;
}

.zahi {
background: #639cf7;
background: radial-gradient(circle, rgba(99, 156, 247, 1) 0%, rgba(255, 255, 255, 1) 100%);
}
.ain{
   max-width: 90%; /* You can adjust this to your preferred width */
  margin: 10 auto; /* Centers the container */
  text-align: justify;
  
}
.copyright {
  text-align: center;  /* Center the text */
  padding: 10px 0;     /* Vertical padding to give it some space */
  background-color: #3b82f6; /* Same color as footer background */
  color: #ffffff;      /* White text */
  font-size: 1rem;     /* Font size for the copyright text */
  margin-top: 20px;    /* Space between footer and copyright */
  margin-bottom: 20px;
}

.copyright p {
  margin: 0;           /* Remove default margin */
}
