@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  font-family: "Poppins", sans-serif;
}

/* Global Tags */

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: rgb(35, 35, 85);
}

span {
  font-size: 0.9rem;
  color: #757373;
}

h6 {
  font-size: 1.1rem;
  color: rgb(24, 24, 49);
}

/* Navigation */

nav{
  position: fixed;
  display: flex;
  width: 100%;
  background-color: #fff;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 1vw 8vw;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.15 );
  z-index: 999;
  height: 100px;
}

nav img{
  width: 180px;
  height: 250px;
  cursor: pointer;
}
nav .navigation{
  display: flex;
}
#menu-btn{
  width: 30px;
  height: 30px;
  display: none;
}

#menu-close{
  display: none;
}

nav .navigation ul{
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

nav .navigation ul li{
  list-style: none;
  margin-left: 30px;
}

nav .navigation ul li a{
  text-decoration: none;
  color: rgb(21, 21, 100);
  font-size: 16px;
  font-weight: 500;
  transition: 0.3s ease;
}
nav .navigation ul li.active a,nav .navigation ul li a:hover{
  color: #FDC93B;
}

/* Home */

#home {
  background-image: linear-gradient(rgba(9, 5, 54, 0.3), rgba(5, 4, 46, 0.7)), url("/static/images/college.jpg");
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 20px 0; /* added horizontal padding for small screens */
  box-sizing: border-box;
}

#home h2 {
  color: white;
  font-size: 2.2rem;
  letter-spacing: 1px;
  margin-bottom: 15px; /* space under heading */
  max-width: 800px; /* prevent super long lines */
}

#home p {
  width: 50%;
  max-width: 600px; /* limit width on larger screens */
  color: white;
  font-size: 0.95rem;
  line-height: 1.6; /* 25px is fine, 1.6 is more scalable */
  margin: 0 auto 30px;
}

/* Responsive for smaller screens */
@media (max-width: 768px) {
  #home p {
    width: 90%;
    font-size: 0.9rem;
  }

  #home h2 {
    font-size: 1.7rem;
  }
}

#home .btn {
  margin-top: 30px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

#home a {
  text-decoration: none;
  font-size: 0.9rem;
  padding: 13px 35px;
  font-weight: 600;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
  min-width: 120px;
  text-align: center;
  display: inline-block;
}

#home a.blue {
  color: #fff;
  background-color: rgb(21, 21, 100);
}

#home a.blue:hover {
  color: rgb(21, 21, 100);
  background-color: #fff;
}

#home a.yellow {
  color: #fff;
  background-color: #FDC93B;
}

#home a.yellow:hover {
  color: rgb(21, 21, 100);
  background-color: #fff;
}


/* course */
#course {
  padding: 8vw;
  text-align: center;
}

#course .course-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem; /* grid-gap is deprecated, use gap */
  margin-top: 50px;
}

#course .courses {
  text-align: start;
  background: #F9F9FF;
  height: 100%;
  position: relative;
  border-radius: 12px;       /* add rounding */
  box-shadow: 0 4px 10px rgba(0,0,0,0.08); /* subtle shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  overflow: hidden; /* contain the image and border radius */
}

#course .courses:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

#course .courses img {
  width: 100%;
  height: 200px; /* fix to px for consistent look */
  object-fit: cover; /* better than background-size on img */
  background-position: center;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  display: block;
}

#course .courses .details {
  padding: 15px;
}

#course .courses .details i {
  color: #FDC93B;
  font-size: 1rem; /* slightly bigger for visibility */
}

#course .courses .cost {
  background-color: rgb(74, 74, 136);
  color: #fff;
  line-height: 70px;
  width: 70px;
  height: 70px;
  text-align: center;
  border-radius: 50%;
  position: absolute;
  right: 15px;
  bottom: 100px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  user-select: none;
}


/* experts */

#experts {
  padding: 8vw 8vw 8vw 8vw;
  text-align: center;
}

#experts .expert-box{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap:1rem;
  margin-top: 50px;
}
#experts .expert-box .profile {
    background: #fafaf1;
    padding: 30px 10px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#experts .expert-box .profile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

#experts .expert-box .profile img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    background-color: #f5f5f5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

#experts .expert-box .profile img:hover {
    transform: scale(1.05);
}

#experts .expert-box .profile h6 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: rgb(21, 21, 100);
}

#experts .expert-box .profile p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 10px;
}

/*Contributers*/
#contributers {
  padding: 8vw 8vw 8vw 8vw;
  text-align: center;
}

#contributers .contributers-box{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap:1rem;
  margin-top: 50px;
}
#contributers .contributers-box .profile {
    background: #a0e7e5;
    padding: 30px 10px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#contributers .contributers-box .profile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

#contributers .contributers-box .profile img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    background-color: #f5f5f5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

#contributers .contributers-box .profile img:hover {
    transform: scale(1.05);
}

#contributers .contributers-box .profile h6 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: rgb(21, 21, 100);
}

#contributers .contributers-box .profile p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 10px;
}


.pro-links {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 8px; /* space between icons */
}

.pro-links a {
    display: inline-flex; /* makes the whole square clickable */
    align-items: center;
    justify-content: center;
    padding: 10px 13px;
    border: 1px solid rgb(21, 21, 100);
    color: rgb(21, 21, 100);
    text-decoration: none; /* remove underline */
    border-radius: 6px; /* optional, softer look */
    transition: 0.3s ease;
}

.pro-links a:hover {
    color: #fff;
    background: rgb(21, 21, 100);
    border-color: rgb(21, 21, 100);
}

.pro-links i {
    font-size: 1rem; /* control icon size */
}


/* footer */

footer{
  padding: 8vw;
  background-color: #101C32;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

footer .footer-col{
  padding-bottom: 40px;

}
footer h3{
  color: rgb(241,240,245);
  font-weight:600 ;
  padding-bottom: 20px;
}
footer li{
  list-style: none;
  color: #7b838a;
  padding: 10px 0;
  font-size: 15px;
  cursor: pointer;
  transition: 0.3s ease;
}
footer li:hover{
  color: rgb(241,240,245);
}

footer p{
  color: #7b838a;

}
footer .subscribe{
  margin-top: 20px;
}
footer input{
  width: 220px;
  padding: 15px 12px;
  background:#334F6C;
  border: none;
  outline: none;
  color: #fff;
}

footer .subscribe a{
  text-decoration: none;
  font-size: 0.9rem;
  padding: 12px 15px;
  background-color: #fff;
  font-weight: 600;
}

footer .subscribe a.yellow{
  color: #2c2c2c;
  background-color: #FDC93B;
  transition: 0.3s ease;
}

footer .subscribe a.yellow:hover{
  color:  rgb(21, 21, 100);
  background-color:#fff;
} 
footer .copyright{
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
}
footer .copyright p{
  color: #fff;
}

footer .copyright .pro-links{
  margin-top: 0px;

}
footer .copyright .pro-links i{
  color: #fff;
}
/* About */

#about-home{
  background-image: linear-gradient(rgba(9, 5, 54, 0.3) , rgba(5,4,46,0.7)), url("/static/images/college.jpg");
  width: 100%;
  height: 60vh;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 40px;
}
#about-home h2{
  color: #fff;
  font-size: 2.2rem;
  letter-spacing: 1px;

}
#about-container{
  display: flex;
  align-items: center;
  padding: 8vw 8vw 2vw 8vw;
}
#about-container .about-img{
  width: 60%;
  padding-right: 60px;
}
#about-container .about-img img{
  width: 100%;
}
#about-container .about-text{
  width: 40%;
}
#about-container .about-text h2{
  color:#29303B ;
  padding-bottom: 15px;
}
#about-container .about-text p{
  color: #686F7A;
  font-weight: 300;
}
#about-container .about-text .about-fe{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 30px;
}
#about-container .about-text .about-fe img{
  width: 50px;
  background-size: cover;
  background-position: center;
  margin-right: 20px;
}
#about-container .about-text .about-fe .fe-text{
  width: 90%;

}
#about-container .about-text .about-fe .fe-text h5{
  font-size: 16px;
  color: #29303B;
}

#trust{
  text-align: center;
  padding: 8vw;
}
#trust .trust-img {
  margin-top: 60px;
  display:flex ;
  justify-content: space-between;
  align-items: center;
}
#trust .trust-img img{
  width: 90px;
  height: auto;
}



/* Blog */

#blog-container{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 8vw;
}

#blog-container .blogs{
   width: 60%;

}
#blog-container .blogs img{
  width: 100%;
  border-radius: 19px;
}
#blog-container .blogs .post {
  padding-bottom: 60px;
}
#blog-container .blogs .post h3{
  color: #29303B;
  padding: 15px 0 10px 0;
}
#blog-container .blogs .post p{
  color: #757373;
  padding-bottom: 20px;
}
#blog-container .blogs .post a{
  text-decoration: none;
  font-size: 0.9rem;
  padding: 13px 35px;
  background-color: rgb(21, 21, 100);
  color: #fff;
  border-radius: 5px;
  font-weight: 600;
}
#blog-container .cate{
  width: 30%;
  
}
#blog-container .cate h2{
  padding-bottom: 7px;
}
#blog-container .cate a{
  text-decoration: none;
  color: #757373;
  line-height: 45px;
  font-weight: 500;
}

#blog-container .blogpost{
  padding-top: 40px;
width: 60%;
margin: 0 auto;
}
#blog-container .blogpost p{
  padding-bottom: 60px !important;
  text-align: justify;
}

/* Course_inner */

#course-inner{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8vw;
}
#course-inner h3{
  padding: 35px 0 25px 0;
  color: #29303B;
}
#course-inner p{
  color: #64626e;
}
#course-inner hr{
  height: 1px;
  background: rgba(236, 226, 229, 0.5);
  margin-top: 40px;
}
#course-inner .overview{
  width: 70%;
}
#course-inner .overview .course-img{
 width: 100%;
 height: 60vh;
 object-fit: cover;
 border-radius: 12px;
 margin-bottom: 20px;
}
#course-inner .overview .course-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
#course-inner .overview .course-head .c-name{
  width: 70%;

}
#course-inner .overview .course-head .c-name h2{
  color: #29303B;
}

#course-inner .overview .course-head .c-name .star{
 margin: 6px 0;
}
#course-inner .overview .course-head .c-name .star i{
  color: #FDC93B;
  font-size: 0.9rem;
}
#course-inner .overview .course-head .c-name p{
  font-size: 15px;
}
#course-inner .overview .course-head span{
  padding: 16px 22px;
  border-radius: 5px;
  color: #5838fc;
  font-size: 24px;
  font-weight: 700;
  background-color: rgba(88, 56, 252, 0.1);
}

#course-inner .learn p{
  font-size: 15px;
  padding-bottom: 15px;
}
#course-inner .learn p i{
  color: #654ce4;
  font-weight: 700;
  margin-right: 20px;
}

#course-inner .tutor{
  display: flex;

}
#course-inner .tutor img{
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin-right: 20px;
  
}
#course-inner .tutor h5{
  font-size: 15px;
}

#course-inner .enroll{
  width: 300px;
  padding: 0 30px 30px 30px;
  border-radius: 11px;
  box-shadow: 0px 20px 40px 0 rgb(11 2 55 / 8%);
}
#course-inner .enroll h3{
  padding-bottom: 10px;
}
#course-inner .enroll p{
  font-size: 15px;
  color:#64626e ;
  margin: 15px 0;
}
#course-inner .enroll p i{
  color: #654ce4;
  font-weight: 500;
  margin-right: 18px;
  width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
}
#course-inner .enroll .enroll-btn{
  padding: 25px 0 20px 0;
  margin: auto;
  text-align: center;
}
#course-inner .enroll .enroll-btn a{
  text-decoration: none;
  font-size: .8rem;
  padding: 13px 45px;
  border-radius: 5px;
  font-weight: 600;
  color: #fff;
  background: rgb(50, 50, 136);
}

/* contact */

#contact{
  padding: 8vw;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

#contact .getin{
  width: 350px;
}
#contact .getin h2{
 color:#2c234d ;
 font-size: 30px;
 font-weight: 800;
 line-height: .8px;
 margin-bottom: 16px;
}
#contact .getin p{
  color:#686875 ;
  line-height: 24px;
  margin-bottom: 33px;
  padding-bottom: 25px;
  border-bottom: 1px solid #e5e4ed;
 }
 #contact .getin .getin-details div{
  display: flex;
 }

 #contact .getin .getin-details div .get{
   font-size: 16px;
   line-height: 22px;
   color: #5838fc;
   margin-right: 20px;
 }
 #contact .getin h3{
  color:#2c234d ;
  font-size: 16px;
  font-weight: 600;
  line-height: 26px;
  margin-bottom: 15px;
 }

 #contact .getin .getin-details div p{
  font-size: 14px;
 border-bottom: none;
 line-height: 22px;
 margin-bottom: 15px;
 }
 #contact .getin .getin-details .pro-links i{
   margin-right:8px ;
   text-align: center;
 }


 #contact .form {
  width: 60%; 
  background:#f7f6fa ;
  padding: 40px;
  border-radius: 10px;
 }
 #contact .form h4{
  font-size: 24px;
  color:#2c234d ;
  line-height: 30px;
  margin-bottom: 8px;
 }
 #contact .form p{
  color:#686875 ;
  line-height: 24px;
  padding-bottom: 25px;
 }
 #contact .form .form-row{
  display: flex;
  justify-content: space-between;
  width: 100%;
 }
 #contact .form .form-row input{
  width: 48%;
  font-size: 14px;
  font-weight: 400;
  border-radius: 3px;
  border: none;
  background: #fff;
  color: #7e7c87;
  outline: none;
  padding: 20px 30px;
  margin-bottom: 20px;
 }

 #contact .form .form-col input,
 #contact .form .form-col textarea{
  width: 100%;
  font-size: 14px;
  font-weight: 400;
  border-radius: 3px;
  border: none;
  background: #fff;
  color: #7e7c87;
  outline: none;
  padding: 20px 30px;
  margin-bottom: 20px;
 }

 #contact .form button{
font-size: .9rem;
padding: 13px 25px;
background: rgb(21, 21, 100);
border-radius: 5px;
outline: none;
border: none;
font-weight: 600;
cursor: pointer;
color: #fff;
 }

#map {
  width: 100%;
  height: 70vh;
  margin-bottom: 8vw;
}

#map iframe{
  width: 100%;
  height: 70vh;
}



/* responsive Tablet mode */

@media (max-width: 769px) {
  nav{
    padding: 15px 20px;
  }
  nav img{
    width: 130px;
  }
  #menu-btn{
    display: initial;
  }
  #menu-close{
    display: initial;
    font-size: 1.6rem;
    color: #fff;
    padding: 30px 0 20px 20px;
  }
  nav .navigation ul{
    top: 0;
    right: -250px;
    width: 250px;
    background: rgba(17, 20, 104, 0.45);
    backdrop-filter: blur(4.5px);
  border: 1px solid rgba(255, 255, 255, 0.18);
    height: 100vh;
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    transition: 0.3s ease;
  }
  nav .navigation ul.active{
    right: 0;
  }
  nav .navigation ul li{
    padding: 20px 0 20px 40px;
    margin-left: 0;
  }
  nav .navigation ul li a{
    color: #fff;
  }
  #home{
    padding-top: 0px;
  }
  #home p{
    width: 90%;
  }
  #features{
    padding: 8vw 4vw 0 4vw;
  }
  #course{
    padding: 8vw 4vw 0 4vw;
  }
  #registration{
    margin-top: 8vw;
    padding: 6vw 4vw 6vw 4vw ;
  }
  #registration .reminder .time{
    display: flex;
    flex-wrap: wrap;
    margin-top: 40px;
  }
  #experts{
    padding:8vw 8vw 4vw 8vw ;
    text-align: center;
  }
  footer .copyright .pro-links{
    margin-top: 15px;
  }

  /* About */
  #about-container{
    padding: 8vw 4vw 2vw 4vw;
  }
  #about-container .about-img{
    padding-right: 30px;
  }
  #trust .trust-img img{
    width: 50px;
    height: auto;
  }

  /* Blog */

  #blog-container{
    padding: 8vw 4vw;
  }

  #blog-container .blogpost{
    margin-top:30px ;
    width: 100%;
  }
  #blog-container .blogpost img{
    width: 100%;
    height: 50vh;
    object-fit: cover;
  }

  /*Course_inner*/

  #course-inner {
     display: flex;
     flex-direction: column;
     justify-content: center;
     align-items: flex-start;
     padding: 8vw 4vw;
  }
  #course-inner .overview{
    width: 100%;
  }
  #course-inner .overview .course-img{
    width: 100%;
    height: 100%;
  }
  #course-inner .enroll{
    margin-top: 25px;
  }

  #contact{
    padding: 8vw 4vw;
  }
  #contact .getin{
    width: 250px;
  }

}

@media (max-width: 475px) {
  #registration{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  #registration .reminder .time{
    display: flex;
    justify-content:center ;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  /* About */
  #about-container{
    flex-direction: column-reverse;
  }
  #about-container .about-img{
    width: 100%;
    padding-right: 0px;
  }
  #about-container .about-text{
    width: 100%;
    padding-bottom: 20px;
  }
  #trust .trust-img{
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
  }
  #trust .trust-img img{
    width: 60px;
    margin: 10px 15px;
    height: auto;
  }

  /* Blog */
  #blog-container{
    flex-direction: column;
  }
  #blog-container .blogs{
    width: 100%;
  }
  #blog-container .cate{
    width: 100%;
  }
  #blog-container .blogpost{
    margin-top:70px ;
    width: 100%;
  }
  #blog-container .blogpost img{
    width: 100%;
    height: 50vh;
    object-fit: cover;
  }
  #course-inner .overview .course-head .c-name{
    width: 50%;
  }
  #course-inner .overview .course-head .c-name h2{
    font-size: 22px;
  }
  #course-inner .overview .course-head span{
    font-size: 22px;
  }
  #course-inner .enroll{
    width: 100%;
  }

  #contact{
    padding: 8vw 4vw;
    flex-direction: column;
    align-content: flex-start;
    justify-content: flex-start;
  }
  #contact .getin{
    width: 100%;
    margin-bottom: 30px;
  }
  #contact .form{
    width: 100%;
    padding: 40px 30px; 
  }
  #contact .form .form-row{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
  }
  #contact .form .form-row input{
    width: 100%;
  }
}

@media (max-width: 376px){
  footer input{
    width: 100%;
    margin-bottom: 20px;
  }
}
