@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;700&family=Forum&display=swap");

:root{
  --primary-color: #12c2b9;
  --secondary: #dbfffe;
  --black: #141414;
  --white: #fff;
  --box-shadow: 0 .5rem 1rem rgba(0, 0, 0, 0.1);
  --nav: #f0f8ff;
    --bluee: #121cdd;
    --blueee: #4b2cf3;
    --extra-brown: #917826;
    --blue: #79A9F5;
    --indigo: #C45F90;
    --purple: #A16AE8;
    --pink: #FC8BC0;
    --red: #F85C70;
    --orange: #FF8882;
    --yellow: #FAD02C;
    --green: #A3C14A;
    --teal: #20c997;
    --cyan: #47D8E0;
    --gray: #6c757d;
    --gray-dark: #343a40;
    --secondary1: #6c757d;
    --success: #A3C14A;
    --info: #47D8E0;
    --warning: #FF8882;
    --warning: #fcada9e5;
    --danger: #F85C70;
    --light: #f8f9fa;
    --light: #f8f9fa7c;
    --dark: #343a40;
}

*{
  font-family: 'DM Sans', sans-serif;
  margin: 0; padding: 0;
  box-sizing: border-box;
  outline: none; border: none;
  text-decoration: none;
  text-transform: capitalize;
  transition: all .2s linear;
}

html{
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-padding-top: 9rem;
  scroll-behavior: smooth;
}

html::-webkit-scrollbar{
  width: 1rem;
}

html::-webkit-scrollbar-track{
  background: transparent;
}

html::-webkit-scrollbar-thumb{
  background: var(--primary-color);
}

section{
  padding: 5rem 7%;
}

.heading{
  position: relative;
  color: var(--primary-color);
  font-size: 3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4rem;
  text-align: center;
  margin-bottom: 3rem;
}

.heading::after{
  content: url('images/separator.svg');
  display: block;
  width: 10rem;
  margin-inline: auto;
  margin-top: -1rem;
  /* color: #f8f4ecad; */
}

.btn{
  position: relative;
  display: inline-block;
  margin-top: 1rem;
  color: var(--primary-color);
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  max-width: max-content;
  border: .1rem solid var(--primary-color);
  background: var(--secondary);
  padding: 1.2rem 4.5rem;
  overflow: hidden;
  z-index: 1;
  border-radius: .5rem;
  cursor: pointer;
}

.btn::before{
  content: "";
  position: absolute;
  bottom: 100%; left: 50%;
  transform: translateX(-50%);
  width: 200%; height: 200%;
  border-radius: 50%;
  background-color: var(--primary-color);
  transition: 500ms ease;
  z-index: -1;
  cursor: pointer;
}

.btn .text{
  transition: 0.4s ease;
}

.btn .text-2{
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  min-width: max-content;
  color: var(--secondary);
}

.btn:is(:hover, :focus-visible)::before{
  bottom: -50%;
}

.btn:is(:hover, :focus-visible) .text-1{
  transform: translateY(-4rem);
}

.btn:is(:hover, :focus-visible) .text-2{
  top: 50%;
  transform: translate(-50%, -50%);
}

.shine{
  position: relative;
}

.shine::after{
  content: "";
  position: absolute;
  top: 0; left: 0; 
  width: 50%;
  height: 100%;
  background-image: linear-gradient(to right, transparent 90%, #fff6 100%);
  transform: skewX(-0.08turn) translateX(-180%);
}

.shine:is(:hover, :focus-within)::after{
  transform: skewX(-0.08turn) translateX(275%);
  transition: 1000ms ease;
}

/* header */

.header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--box-shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 9%;
}

.header .logo{
  font-size: 2.5rem;
  font-weight: bolder;
  color: var(--yellow);
}

.header .logo i{
  color: var(--primary-color);
  padding-right: .5rem;
}

.header .navbar a{
  font-size: 1.7rem;
  color: var(--black);
  margin: 0 1rem;
  padding-block: 1rem;
}

.header .navbar a:hover{
  color: var(--primary-color);
}

.header .navbar .hover-underline{
  position: relative;
  max-width: max-content;
}

.header .navbar .hover-underline::after{
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: .5rem;
  border-block: .1rem solid var(--primary-color);
  transform: scaleX(0.2);
  opacity: 0;
  transition: 500ms ease;
}

.header .navbar .hover-underline:is(:hover, :focus-visible)::after{
  transform: scaleX(1);
  opacity: 1;
}

.header .icons div, .apply{
  font-size: 2.5rem;
  margin-left: 1.7rem;
  color: var(--dark);
  cursor: pointer;
}

.header .icons div, .apply{
  font-size: 1.6rem;
}

.header .icons .apply{
  color: #12c2b9;
}

.header .icons div, .pply:hover{
  color: var(--primary-color);
}

#menu-btn{
  display: none;
}

@media (max-width: 991px) {
  .header {
    padding: 2rem;
  }

  #menu-btn {
    display: inline-block;
    font-size: 2.8rem;
  }

  .header .navbar {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    display: none;
  }

  .header .navbar.active {
    display: flex;
  }

  .header .navbar a {
    display: block;
    font-size: 2rem;
    margin: 1rem 0;
  }

  .header .icons {
    display: flex;
    align-items: center;
  }
}



/* Hide hamburger on desktop */
#menu-btn {
  display: none;
  cursor: pointer;
}

/* Desktop navbar */
@media (min-width: 769px) {
  .navbar {
    display: flex !important;
    position: static;
    background: transparent;
  }
  #menu-btn {
    display: none;
  }
  .header .icons #login-btn a.apply {
    display: inline-block;
  }
}

/* Mobile navbar */
@media (max-width: 768px) {
  #menu-btn {
    display: inline-block;
    color: var(--primary-color);
    font-size: 2.5rem;
  }

  /* Navbar hidden by default */
  .navbar {
    position: fixed;
    top: 60px; /* below header (adjust if header height changes) */
    left: 0;
    width: 100%;
    background: var(--primary-color); /* Your brand color */
    flex-direction: column;
    display: none;
    z-index: 1500; /* Higher than header */
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  }

  /* Navbar visible when active */
  .navbar.active {
    display: flex;
  }

  .navbar a {
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: white;
    font-size: 1.6rem;
    text-align: center;
  }

  /* Hide "Apply Now!" text on mobile */
  .header .icons #login-btn a.apply {
    display: none;
  }
}




/* Base Hero Section Styles */
.home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(
      rgba(35, 43, 112, 0.85),
      rgba(170, 74, 105, 0.7)
    ),
    url('images/trifo-new.jpg') no-repeat center center/cover;
  color: var(--white);
}

.home .content {
  padding-top: 30px;
  max-width: 900px;
  text-align: center;
}

.home .content h3 {
  font-size: 3rem;
  color: var(--yellow);
  line-height: 1.2;
  font-weight: 700;
  word-spacing: 1.1rem;
}

.home .content p {
  font-size: 1.5rem;
  line-height: 1.8;
  color: var(--white);
  padding: 1rem 0;
  font-weight: 500;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .home {
    padding: 2rem 1rem;
    background-position: center;
  }

  .home .content h3 {
    font-size: 2.4rem;
    text-align: center;
  }

  .home .content p {
    margin-top: 2rem;
    font-size: 1.2rem;
    text-align: center;
  }

.home .content {
  padding-top: 6rem;
  display: flex;
  flex-direction: column;
  align-items: center; 
}

  .home .content a.btn {
  display: inline-block;
  margin-top: 2rem;
  text-align: center;
  align-self: center;
}

}

@media (max-width: 480px) {
  .home .content h3 {
    font-size: 2rem;
  }

  .home .content p {
    font-size: 1.1rem;
  }
}


/* about */
.about .container{
  display: flex;
  flex-direction: row;
  /* flex-wrap: wrap; */
  padding-top: 2px;
}

.about .container .about-image{
  position: relative;
  flex: 1 1 40rem;
  padding-right: 10;
  border-radius: 20px;
}

.about .container .about-image img{
  width: 70%;
  border-radius: 20px;
}

.about .container .about-image .about-img{
  position: relative;
  bottom: -12rem;
  right: -0.2rem;
  width: 50rem;
  padding-block: 5rem;
  border-radius: 20px;
  border-bottom-right-radius: 150px;

}

.about .container .about-content{
  flex: 1 1 50rem;
  padding-left: 7rem;
  padding-top: 8rem;
}

.about .container .about-content h3{
  font-size: 3rem;
  color: var(--yellow);
}

.about .container .about-content p{
  font-size: 1.6rem;
  color: #444;
  padding: 1rem 0;
  line-height: 1.8;
}

@media (max-width: 780px) {
  .about .container {
      flex-direction: column; /* Stack elements vertically */
      align-items: center;
      text-align: center;
  }

  .about .about-image {
      max-width: 100%; /* Full width for image */
      margin-bottom: 2rem; /* Add spacing */
  }

  .about .about-img {
      max-width: 100%; /* Ensure image scales to container */
      height: auto;
  }

  .about .about-content {
      max-width: 90%; /* Ensure text isn't too wide */
  }
}

/* Mobile view (480px and below) */
@media (max-width: 480px) {
  .about .container {
    display: flex;
    flex-direction: column; /* Stack elements vertically */
      align-items: center;
      text-align: center;
    
  }


  .about .about-image {
      width: 100%;
      margin-bottom: 1.5rem;
      
  }

  .about .container .about-image .about-img {
      width: 100%;
      height: auto;
      /* border-top-right-radius: 60px;
      /* border-start-end-radius: 60; */
      /* border-top-left-radius: 120px; */
      /* border-bottom-left-radius: 60px; */ 
      border-bottom-right-radius: 150px;
  }

  .about .about-content {
      font-size: 3rem; /* Adjust font size for readability */
      max-width: 100%;
  }

  .about .btn {
      font-size: 1.2rem; /* Adjust button size */
  }
}

/* ends */

/* subjects */

.subjects .box-container{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 2rem;
}

.subjects .box-container .box{
  padding: 3rem 2rem;
  text-align: center;
  border: .1rem solid var(--primary-color);
  background: var(--secondary);
  cursor: pointer;
}

.subjects .box-container .box:hover{
  background: var(--primary-color);
}

.subjects .box-container .box img{
  height: 10rem;
  margin-bottom: .7rem;
}

.subjects .box-container .box h3{
  font-size: 1.7rem;
  color: #444;
  padding: .5rem 0;
  text-transform: capitalize;
}

.subjects .box-container .box:hover h3{
  color: #fff;
}

.subjects .box-container .box p{
  font-size: 1.5rem;
  line-height: 2;
  color: #777;
}

.subjects .box-container .box:hover p{
  color: #eee;
}

/* end */

/* courses */

.courses .box-container{
  display: grid;
  /* grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr)); */
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.courses .box-container .box .image{
  height: 25rem;
  overflow: hidden;
  position: relative;
}

.courses .box-container .box .image img{
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.courses .box-container .box:hover .image img{
  transform: scale(1.1);
}

.courses .box-container .box .image h3{
  font-size: 1.5rem;
  color: #444;
  position: absolute;
  top: 1rem; left: 1rem;
  padding: .5rem 1.5rem;
  background: var(--white);
}

.courses .box-container .box .content{
  padding: 2rem;
  position: relative;
  border: 0.1rem solid var(--primary-color);
}

.courses .box-container .box .content h4{
  position: absolute;
  background: var(--primary-color);
  color: var(--secondary);
  top: -3rem; right: 1.5rem;
  width: 6rem; 
  height: 6rem;
  line-height: 6rem;
  text-align: center;
  font-size: 1.4rem;
  border-radius: 50%;
}

.courses .box-container .box .content p{
  font-size: 1.4rem;
  color: #444;
  line-height: 2;
}

.courses .box-container .box .content h3{
  font-size: 2rem;
  color: #444;
}

.courses .box-container .box .content .stars{
  padding: 1rem 0;
}

.courses .box-container .box .content .stars i{
  font-size: 1.7rem;
  color: var(--primary-color);
}

.courses .box-container .box .content .stars span{
  font-size: 1.4rem;
  color: #777;
  margin-left: .5rem;
}

.courses .box-container .box .content .icons{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 0.1rem solid var(--primary-color);
}

.courses .box-container .box .content .icons span{
  font-size: 1.5rem;
  color: #444;
}

.courses .box-container .box .content .icons span i{
  color: var(--primary-color);
  padding-right: .5rem;
}

/* ends */
/* SUBJECTS RESPONSIVE */
@media (max-width: 780px){
  .courses .box-container {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping to next row */
    flex-direction: row; /* Horizontal layout */
    justify-content: space-between; /* Space between the boxes */
}

.courses .box-container .box {
    width: 48%; /* Set width to fit two in a row with some gap */
    margin-bottom: 2rem; /* Add spacing between rows */
}
  .courses .heading{
    font-size: 3rem;
  }
 
.courses .box-container .box .image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-top-left-radius: 2rem;
  border-top-right-radius: 2rem;
}
}

@media (max-width: 480px){
  .courses .box-container {
    display: flex;
    flex-direction: column;
}
  .courses .heading{
    font-size: 3rem;
  }
  .courses .box-container .box {
    height: 100%;
    width: 95%;
    
    align-items: center;
    justify-content: center;
    margin-left: 1.3rem;
}
.courses .box-container .box .image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-top-left-radius: 2rem;
  border-top-right-radius: 2rem;
}

}

/* teacher */

.teacher .box-container{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 2rem;
}

.teacher .box-container .box{
  background: var(--white);
  box-shadow: var(--box-shadow);
  border-radius: .5rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.teacher .box-container .box .image{
  position: relative;
  overflow: hidden;
}

.teacher .box-container .box .image img{
  background: var(--secondary);
  width: 100%;
}

.teacher .box-container .box:hover .image .share{
  bottom: 0;
}

.teacher .box-container .box .image .share{
  position: absolute;
  bottom: -10rem; 
  left: 0; right: 0;
  padding: 2rem;
}

.teacher .box-container .box .image .share a{
  height: 4rem;
  width: 4rem;
  line-height: 4rem;
  font-size: 2rem;
  margin: 0 1rem;
  color: var(--secondary);
  background: var(--primary-color);
  border-radius: .5rem;
}

.teacher .box-container .box .image .share a:hover{
  color: var(--primary-color);
  background: var(--secondary);
}

.teacher .box-container .box .content{
  padding: 2rem;
  padding-top: 1rem;
  align-items: center;
}

.teacher .box-container .box .content h3{
  font-size: 2rem;
  color: var(--gray);
}

.teacher .box-container .box .content span{
  font-size: 1.5rem;
  line-height: 2;
  color: var(--primary-color);
}

/* ends */

/* contact */

.contact {
  text-align: center; /* Center align the contents */
}

.contact .row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.contact .row form {
  width: 100%;
  max-width: 60rem; /* Limit maximum width */
  border: 0.1rem solid var(--primary-color);
  padding: 2rem;
}

.contact .row form h3 {
  font-size: 2.5rem;
  color: #444;
  padding-bottom: 1rem;
}

.contact .row form .box {
  width: calc(100% - 2.0rem); /* Adjust width to account for padding */
  font-size: 1.6rem;
  padding: 1rem 1rem;
  border: 0.1rem solid var(--primary-color);
  margin: 0.7rem 1.0rem;
}

.contact .row form .box:focus {
  color: var(--primary-color);
}

.contact .row form textarea {
  height: 15rem;
  width: calc(100% - 2.8rem); /* Adjust width to account for padding */
  resize: none;
}

.contact .btn {
  cursor: pointer;
}


/* ends */

/* footer */

.footer{
  background: var(--secondary);
  text-align: center;
}

.footer .box-container{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 2rem;
}

.footer .box-container .box h3{
  font-size: 2.2rem;
  color: var(--primary-color);
  padding: 1rem 0;
}

.footer .box-container .box p{
  font-size: 1.5rem;
  color: var(--black);
  line-height: 2;
  padding: 1rem 0;
}

.footer .box-container .box .share{
  margin-top: 1rem;
}

.footer .box-container .box .share a{
  height: 4.5rem;
  width: 4.5rem;
  line-height: 4.5rem;
  border-radius: 10%;
  font-size: 1.7rem;
  border: .1rem solid var(--primary-color);
  color: var(--primary-color);
  margin-right: .3rem;
  text-align: center;
}

.footer .box-container .box .share a:hover{
  background: var(--primary-color);
  color: var(--white);
}

.footer .box-container .box .link{
  font-size: 1.7rem;
  line-height: 2;
  color: var(--black);
  padding: .5rem 0;
  display: block;
}

.footer .box-container .box .link:hover{
  color: var(--primary-color);
  text-decoration: underline;
}

.footer .credit{
  font-size: 2rem;
  margin-top: 3rem;
  padding-top: 3rem;
  text-align: center;
  color: var(--black);
  border-top: .1rem solid var(--primary-color);
}

.footer .credit span{
  color: var(--primary-color);
}
.footer .btn {
  display: inline-block;
  background-color: #d7282f; /* Airtel's red color */
  color: #fff;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
  text-decoration: none;
  text-align: center;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

.footer .btn:hover {
  background-color: #b12229;
}


/* ends */

