/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --black-color: hsl(0, 0%, 0%);
  --black-color-light: hsl(220, 24%, 15%);
  --black-color-lighten: hsl(220, 20%, 18%);
  --white-color: #fff;
  --body-color: hsl(220, 100%, 97%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Montserrat", sans-serif;
  --normal-font-size: .938rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-semi-bold: 600;
   --color-primary: #6c63ff;
    --color-success: #00bf8e;
    --color-warning: #f7c94b;
    --color-danger: #f75842;
    --color-danger-variant: rgba(247, 88, 66, 0.4);
    --color-white: #fff;
    --color-light: rgba(0, 0, 0, 0.7);
    --color-black: #000;
    --color-bg: #fff; /* Background color set to white */
    --color-bg1: #f0f0f0; /* Light gray for contrast */
    --color-bg2: #e0e0e0; /* Slightly darker gray for contrast */
    --color-bg3: #FFD700;
    --container-width-lg: 80%;
    --container-width-md: 90%;
    --container-width-sm: 94%;
    --transition: all 400ms ease;
  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1024px) {
  :root {
    --normal-font-size: 1rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
 
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

h1, h2, h3, h4, h5 {
  line-height: 1.2;
}

h1 {
  font-size: 2.4rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.6rem;
}

h4 {
  font-size: 1.3rem;
}
section {
  padding: 6rem 0;
}
/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1300px;
  margin-inline: 1.5rem;
}

.btn {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 1rem 2rem;
  border: 1px solid transparent;
  font-weight: 500;
  transition: var(--transition);
  border-radius: 20px;
}

.btn:hover {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-primary {
  background: var(--color-danger);
  color: var(--color-white);
}
/*=============== HEADER ===============*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white-color);
  box-shadow: 0 2px 16px hsla(220, 32%, 8%, .3);
  z-index: var(--z-fixed);
}

/*=============== NAV ===============*/
.nav {
  height: var(--header-height);
}

.nav__logo, 
.nav__burger, 
.nav__close {
  color: var(--black-color);
}

.nav__data {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  column-gap: .25rem;
  font-weight: var(--font-semi-bold);
}

.nav__logo i {
  font-weight: initial;
  font-size: 1.25rem;
}

.nav__toggle {
  position: relative;
  width: 32px;
  height: 32px;
}

.nav__burger, 
.nav__close {
  position: absolute;
  width: max-content;
  height: max-content;
  inset: 0;
  margin: auto;
  font-size: 1.25rem;
  cursor: pointer;
  transition: opacity .1s, transform .4s;
}

.nav__close {
  opacity: 0;
}

/* Navigation for mobile devices */
@media screen and (max-width: 1118px) {
  .nav__menu {
    position: absolute;
    left: 0;
    top: 2.5rem;
    width: 100%;
    height: calc(100vh - 3.5rem);
    overflow: auto;
    pointer-events: none;
    opacity: 0;
    transition: top .4s, opacity .3s;
  }
  .nav__menu::-webkit-scrollbar {
    width: 0;
  }
}

.nav__link {
  color: black;
  background-color: white;
  font-weight: var(--font-semi-bold);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color .3s;
}


/* Show menu */
.show-menu {
  opacity: 1;
  top: 3.5rem;
  pointer-events: initial;
}

/* Show icon */
.show-icon .nav__burger {
  opacity: 0;
  transform: rotate(90deg);
}
.show-icon .nav__close {
  opacity: 1;
  transform: rotate(90deg);
}

/*=============== DROPDOWN ===============*/
.dropdown__item {
  cursor: pointer;
}

.dropdown__arrow {
  font-size: 1.25rem;
  font-weight: initial;
  transition: transform .4s;
}

.dropdown__link, 
.dropdown__sublink {
  padding: 1.25rem 1.25rem 1.25rem 2.5rem;
  color: var(--white-color);
  background-color: grey;
  display: flex;
  align-items: center;
  column-gap: .5rem;
  font-weight: var(--font-semi-bold);
  transition: background-color .3s;
}

.dropdown__link i, 
.dropdown__sublink i {
  font-size: 1.25rem;
  font-weight: initial;
}

.dropdown__link:hover, 
.dropdown__sublink:hover {
  background-color: var(--black-color);
}

.dropdown__menu, 
.dropdown__submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease-out;
}

/* Show dropdown menu & submenu */
.dropdown__item:hover .dropdown__menu, 
.dropdown__subitem:hover > .dropdown__submenu {
  max-height: 1000px;
  transition: max-height .4s ease-in;
}

/* Rotate dropdown icon */
.dropdown__item:hover .dropdown__arrow {
  transform: rotate(180deg);
}

/*=============== DROPDOWN SUBMENU ===============*/
.dropdown__add {
  margin-left: auto;
}

.dropdown__sublink {
  background-color: var(--black-color-lighten);
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 340px) {
  .container {
    margin-inline: 1rem;
  }

  .nav__link {
    padding-inline: 1rem;
  }
}

/* For large devices */
@media screen and (min-width: 1118px) {
  .container {
    margin-inline: auto;
  }

  .nav {
    height: calc(var(--header-height) + 2rem);
    display: flex;
    justify-content: space-between;
  }
  .nav__toggle {
    display: none;
  }
  .nav__list {
    height: 100%;
    display: flex;
    column-gap: 3rem;
  }
  .nav__link {
    height: 100%;
    padding: 0;
    justify-content: initial;
    column-gap: .25rem;
  }
  .nav__link:hover {
    background-color: transparent;
  }

  .dropdown__item, 
  .dropdown__subitem {
    position: relative;
  }

  .dropdown__menu, 
  .dropdown__submenu {
    max-height: initial;
    overflow: initial;
    position: absolute;
    left: 0;
    top: 6rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, top .3s;
  }

  .dropdown__link, 
  .dropdown__sublink {
    padding-inline: 1rem 3.5rem;
  }

  .dropdown__subitem .dropdown__link {
    padding-inline: 1rem;
  }

  .dropdown__submenu {
    position: absolute;
    left: 100%;
    top: .5rem;
  }

  /* Show dropdown menu */
  .dropdown__item:hover .dropdown__menu {
    opacity: 1;
    top: 5.5rem;
    pointer-events: initial;
    transition: top .3s;
  }

  /* Show dropdown submenu */
  .dropdown__subitem:hover > .dropdown__submenu {
    opacity: 1;
    top: 0;
    pointer-events: initial;
    transition: top .3s;
  }
}
.active-link {
  color: rgb(255, 0, 0);
}

.page-container{
  max-width: 1200px;
  margin: auto;
}

/*About*/

.about {
  position: relative;
  top: 5rem;
  overflow: hidden;
  height: 70vh;
  margin-bottom: 5rem;
}
.about__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 5rem;
  max-width: 1200px;
  margin: auto;
  height: 100%;
}

.about__left p {
  margin: 1rem 0 2.4rem;
  text-align: justify;
}
/* Media Query for screens up to 480px */
@media (max-width: 480px) {
  .about {
    height: auto;
    top: 2rem;
    margin-bottom: 2rem;
  }

  .about__container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0 1rem;
  }

  .about__left p {
    margin: 1rem 0 1.5rem;
    font-size: 0.9rem;
  }

  .about__right img {
    width: 100%;
    height: auto;
  }
}

/* Media Query for screens up to 762px */
@media (max-width: 762px) {
  .about {
    height: auto;
    top: 3rem;
    margin-bottom: 3rem;
  }

  .about__container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: 0 2rem;
  }

  .about__left p {
    margin: 1rem 0 2rem;
    font-size: 1rem;
  }

  .about__right img {
    width: 100%;
    height: auto;
  }
}


/* Teaching Methodology */

.teach-section {
  padding: 20px;
}

.teach-container {
  max-width: 1200px;
  margin: 0 auto;
}

.text-image-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center; /* Center items vertically */
  margin-bottom: 20px;
  padding: 0 20px; /* Padding on left and right for spacing */
}

.text-image-block .teach-text {
  flex: 1;
  min-width: 300px;
  padding: 20px;
  margin-left: 20px; /* Space between image and text */
}

.text-image-block .teach-text h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.text-image-block .teach-text p {
  font-size: 16px;
  line-height: 1.5;
}

.text-image-block .teach-image2 {
  flex: 1;
  min-width: 300px;
  padding: 20px;
}

.text-image-block .teach-image2 img {
  width: 450px; /* Responsive width */
  height: 300px; /* Maintain aspect ratio */
  border-radius: 8px;
}

.section-divider {
  border: 0;
  border-top: 1px solid #ccc;
  margin: 40px 0;
}

/* Media Query for screens up to 480px */
@media (max-width: 480px) {
  .text-image-block {
    flex-direction: column; /* Stack items vertically */
    padding: 0; /* Remove horizontal padding */
  }

  .text-image-block .teach-text {
    margin-left: 0; /* Remove space between image and text */
    padding: 10px; /* Reduce padding */
  }

  .text-image-block .teach-text h2 {
    font-size: 20px; /* Reduce heading size */
  }

  .text-image-block .teach-text p {
    font-size: 14px; /* Reduce paragraph size */
  }

  .text-image-block .teach-image2 {
    padding: 10px; /* Reduce padding */
  }

  .text-image-block .teach-image2 img {
    width: 100%; /* Make image full width */
    height: auto; /* Maintain aspect ratio */
  }
}

/* Media Query for screens up to 762px */
@media (max-width: 762px) {
  .text-image-block {
    flex-direction: column; /* Stack items vertically */
    padding: 0 10px; /* Reduce horizontal padding */
  }

  .text-image-block .teach-text {
    margin-left: 0; /* Remove space between image and text */
    padding: 15px; /* Reduce padding */
  }

  .text-image-block .teach-text h2 {
    font-size: 22px; /* Reduce heading size */
  }

  .text-image-block .teach-text p {
    font-size: 15px; /* Reduce paragraph size */
  }

  .text-image-block .teach-image2 {
    padding: 15px; /* Reduce padding */
  }

  .text-image-block .teach-image2 img {
    width: 100%; /* Make image full width */
    height: auto; /* Maintain aspect ratio */
  }
}


/* ======================== ACHIEVEMENTS ======================== */

.about__achievements {
  margin-top: 3rem;
}

.about__achievements-container {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 5rem;
}

.about__achievements-right > p{
  margin: 1.6rem 0 2.5rem;
}

.achievements__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.achievement__card {
  background: var(--color-bg1);
  padding: 1.6rem;
  border-radius: 1rem;
  text-align: center;
  transition: var(--transition);
}

.achievement__card:hover {
  background: var(--color-bg2);
  box-shadow: 0 3rem 3rem rgba(0, 0, 0, 0.3);
}

.achievement__icon {
  background: var(--color-danger);
  padding: 0.6rem;
  border-radius: 1rem;
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.achievement__card:nth-child(2) .achievement__icon {
  background: var(--color-success);
}

.achievement__card:nth-child(3) .achievement__icon {
  background: var(--color-primary);
}

.achievement__card p {
  margin-top: 1rem;
}

/* Media Query for screens up to 480px */
@media (max-width: 480px) {
  .about__achievements-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .teach-image2 img {
    width: 100%; /* Make the image full width */
    height: auto; /* Maintain aspect ratio */
  }

  .achievements__cards {
    display: flex; /* Use flexbox for the cards container */
    flex-direction: column; /* Stack cards vertically */
    gap: 1rem;
  }

  .achievement__card {
    padding: 1rem;
    border-radius: 1rem; /* Consistent with other styles */
    text-align: center;
  }

  .achievement__icon {
    font-size: 1.5rem;
    padding: 0.5rem;
  }

  .about__achievements-right > p {
    font-size: 0.9rem;
    padding: 20px;
  }
  .about__achievements-right h2 {
    text-align: center;
  }
}


/* Media Query for screens up to 762px */
@media (max-width: 762px) {
  .about__achievements-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
  }

  .achievements__cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }

  .achievement__card {
    padding: 1.2rem;
  }

  .achievement__icon {
    font-size: 1.8rem;
    padding: 0.5rem;
  }

  .about__achievements-right > p {
    font-size: 1rem;
  }
}


/* ========================================== CATEGORIES ========================================== */

.categories {
  background: var(--color-bg1);
  height: 32rem;
}

.categories h1 {
  line-height: 1;
  margin-bottom: 3rem;
}

.categories__container {
  display: grid;
  grid-template-columns: 40% 60%;
}

.categories__left {
  margin-right: 4rem;
}

.categories__left p {
  margin: 1rem 0 3rem;
}

.categories__right {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.category {
  background: #f9ec37;
  padding: 2rem;
  border-radius: 2rem;
  transition: var(--transition);
}

.category:hover {
  box-shadow: 0 3rem 3rem rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.category:nth-child(2) .category__icon {
  background: var(--color-danger);
}

.category:nth-child(3) .category__icon {
  background: var(--color-success);
}

.category:nth-child(4) .category__icon {
  background: var(--color-warning);
}

.category:nth-child(5) .category__icon {
  background: var(--color-success);
}

.category__icon {
  background: var(--color-primary);
  padding: 0.7rem;
  border-radius: 0.9rem;
}

.category h5 {
  margin: 2rem 0 1rem;
}

.category p {
  font-size: 0.85rem;
}

/* Media Query for screens up to 480px */
@media (max-width: 480px) {
  .categories {
    height: auto;
    padding: 2rem 0;
  }

  .categories__container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0 1rem;
  }

  .categories__left {
    margin-right: 0;
  }

  .categories__left p {
    margin: 1rem 0 2rem;
    font-size: 0.9rem;
  }

  .categories__right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .category {
    padding: 1.5rem;
  }

  .category__icon {
    padding: 0.5rem;
    font-size: 1.5rem;
  }

  .category h5 {
    font-size: 1rem;
  }

  .category p {
    font-size: 0.75rem;
  }
}

/* Media Query for screens up to 762px */
@media (max-width: 762px) {
  .categories {
    height: auto;
    padding: 2rem 0;
  }

  .categories__container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: 0 2rem;
  }

  .categories__left {
    margin-right: 0;
  }

  .categories__left p {
    margin: 1rem 0 2.5rem;
    font-size: 1rem;
  }

  .categories__right {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .category {
    padding: 1.8rem;
  }

  .category__icon {
    padding: 0.6rem;
    font-size: 1.8rem;
  }

  .category h5 {
    font-size: 1.1rem;
  }

  .category p {
    font-size: 0.8rem;
  }
}



/* Footer styling */
.main-footer {
  margin-top: 80px;
  background-color: #2c2c2c; /* Dark background for contrast */
  color: #f5f5f5; /* Light text for readability */
  padding: 40px 20px; /* Padding around the footer content */
}

.main-footer .container {
  max-width: 1250px; /* Limit the container's width */
  margin: auto; /* Center the container */
}
.footer-content {
  background-size: cover; /* Ensure it covers the entire div */
  background-repeat: no-repeat; /* No repeating */
  background-position: center; /* Center the image */
  padding: 10px 20px; /* Padding around the content */
}

/* Footer row with flex layout */
.footer-content .row {
  display: flex; /* Use flexbox for alignment */
  justify-content: space-between; /* Distribute columns evenly */
  flex-wrap: wrap; /* Allow columns to wrap on smaller screens */
  gap: 20px; /* Space between columns */
}

/* Footer column styling */
.footer-column {
  padding: 20px; /* Padding for each column */
  flex: 1; /* Allow each column to grow equally */
}

/* Styling for the logo widget */
.logo-widget .logo-box {
  margin-bottom: 20px; /* Space below the logo */
}

.logo-widget .text {
  font-size: 1em; /* Standard font size */
  line-height: 1.5; /* Improve readability */
}

/* Social media icons */
.social-icons {
  display: flex; /* Horizontal layout for icons */
  gap: 10px; /* Space between icons */
}

.social-icons a {
  color: #ffcc00; /* Default color */
  font-size: 1.2rem; /* Larger font size for visibility */
  transition: color 0.3s; /* Smooth hover effect */
}

.social-icons a:hover {
  color: #ff9d2d; /* Hover effect */
}

/* Service widget styling */
.service-widget .footer-title {
  font-size: 1.2em; /* Title font size */
  margin-bottom: 15px; /* Space below the title */
}

.service-widget .list {
  list-style: none; /* No bullet points */
  padding: 0; /* No padding */
}

.service-widget .list li {
  margin-bottom: 10px; /* Space between list items */
}

.service-widget .list a {
  text-decoration: none; /* No underline */
  color: #f5f5f5; /* Default link color */
  transition: color 0.3s; /* Smooth hover effect */
}

.service-widget .list a:hover {
  color: #ff9d2d; /* Hover effect */
}

/* Contact widget styling */
.contact-widget .footer-title {
  font-size: 1.2em; /* Title font size */
  margin-bottom: 15px; /* Space below the title */
}

.contact-widget .text {
  font-size: 1em; /* Standard font size */
  line-height: 1.5; /* Improve readability */
}
.footer-bottom {
  background-color: #ffcc00; /* Slightly darker than the main footer */
  padding: 20px; /* Padding for the bottom section */
}

.footer-bottom .footer-container {
  max-width: 1250px; /* Center the container */
  margin: auto; /* Center horizontally */
}

.footer-bottom .row {
  display: flex; /* Use Flexbox for alignment */
  justify-content: center; /* Center the content horizontally */
  align-items: center; /* Center the content vertically */
}

/* Centered copyright text */
.copyright {
  font-size: 1rem; /* Standard font size */
  font-weight: bold;
  text-align: center; /* Center the text */
  color: #000000; /* Light text for visibility */
}

.copyright a {
  text-decoration: none; /* No underline */
  color: #000000; /* Default link color */
  transition: color 0.3s; /* Smooth hover effect */
}

.copyright a:hover {
  color: #ff9d2d; /* Hover color for links */
}
.contact-widget .text a {
  text-decoration: none; /* No underline */
  color: #f5f5f5; /* Default link color */
  transition: color 0.3s; /* Smooth hover effect */
}

.contact-widget .text a:hover {
  color: #ff9d2d; /* Hover color */
}

/* Media Query for screens up to 480px */
@media (max-width: 480px) {
  .main-footer {
    padding: 20px 10px; /* Reduce padding on smaller screens */
  }

  .footer-content .row {
    flex-direction: column; /* Stack columns vertically */
    gap: 10px; /* Reduce space between columns */
  }

  .footer-column {
    padding: 10px; /* Reduce padding for each column */
  }

  .social-icons {
    margin-top: 10px; /* Add space above the social icons */
  }

  .social-icons a {
    font-size: 1.2rem; /* Adjust icon size */
    margin: 0 5px; /* Reduce space between icons */
  }

  .footer-bottom {
    padding: 15px; /* Reduce padding for the bottom section */
  }

  .footer-bottom .row {
    justify-content: center; /* Center the content horizontally */
  }
  .copyright{
    font-size: 14px;
  }
}


.back-top-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: hsl(351, 83%, 61%); /* Change to your desired color */
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 1000;
}

/* Show the button when needed */
.back-top-btn.show {
  opacity: 1;
  visibility: visible;
}

/* Hover effect */
.back-top-btn:hover {
  background-color: hsl(351, 77%, 54%);
  box-shadow: 0 1rem 1rem rgba(0, 0, 0, 0.5); /* Change to your desired hover color */
}

/* Style for the icon */
.back-top-btn ion-icon {
  font-size: 24px;
}

@media (max-width:992px){
  .nav__logo img{
    height:auto; 
    max-width:180px;
  }
}


/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 340px) {
  .container {
    margin-inline: 1rem;
  }

  .nav__link {
    padding-inline: 1rem;
  }
}

/* For large devices */
@media screen and (min-width: 1118px) {
  .container {
    margin-inline: auto;
  }

  .nav {
    height: calc(var(--header-height) + 2rem);
    display: flex;
    justify-content: space-between;
  }
  .nav__toggle {
    display: none;
  }
  .nav__list {
    height: 100%;
    display: flex;
    column-gap: 3rem;
  }
  .nav__link {
    height: 100%;
    padding: 0;
    justify-content: initial;
    column-gap: .25rem;
  }
  .nav__link:hover {
    background-color: transparent;
  }

 
}
