@import url('https://fonts.googleapis.com/css?family=Montserrat:500&display=swap');
@import url('https://fonts.googleapis.com/css?family=Dancing+Script&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans&display=swap');
/* General Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Open Sans', sans-serif;
}
/*SCROLLBAR Styling*/
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-thumb {
  background: #8ab92d;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #8ab92d; 
}
/* Navbar Container */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: #fff;
  box-shadow: 1px 1px 10px rgba(0,0,0,0.1);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 999;
}

/* Logo */
.logo img {
  height: 45px;
  width: auto;
  cursor: pointer;
  transition: all 0.3s ease;
}
.logo img:hover {
  opacity: 0.8;
}

/* Navigation Links */
.nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav ul li a {
  font-size: 14px;
  font-weight: 500;
  color: #2E3D49;
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: color 0.3s;
}

.nav ul li a:hover {
  color: #8ab92d;
}

.nav ul li img.icon {
  width: 20px;
  margin-right: 8px;
}
/* Hamburger Icon */
.switch-tab {
  display: none;
  cursor: pointer;
}
.switch-tab img {
  width: 28px;
  height: 28px;
}
/* Basic styles */
.hamburger {
  font-size: 24px;
  cursor: pointer;
  display: none; /* hidden on desktop */
}

/* Mobile view: show hamburger, hide menu */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    background: #fff;
    padding: 10px;
  }
  .nav-links.active {
    display: flex;
  }
}

/* MOBILE STYLES */
@media only screen and (max-width: 768px) {
  .nav {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  /* Show hamburger on mobile */
  .switch-tab {
    display: block;
  }

  /* Hide menu by default */
  .nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #fff;
    margin-top: 15px;
    padding: 10px 0;
    border-top: 1px solid #eee;
  }

  /* Show when active */
  .nav ul.active {
    display: flex;
  }

  .nav ul li {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
  }
  .nav ul li:last-child {
    border-bottom: none;
  }
}
/* MOBILE MENU */
@media (max-width: 768px) {
  #list-switch {
    display: none;
    flex-direction: column;
    background: #fff;
    padding: 10px;
  }
  #list-switch.active {
    display: flex;
  }
}

/* SEARCH BOX TOGGLE */
#search-box {
  display: none;
}
#search-box.show {
  display: block;
}


/*TITLE*/
.title {
	margin-top: 100px;
	text-align: center;
	justify-content: center;
	font-size: 30px;
	font-weight: bold;
	margin-bottom: 10px;
}

/*Quick Links*/
.course {
	display: grid;
	justify-content: center;
}

.cbox {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
}
.cbox .det {
	height: 60px;
	margin: 10px;
	background: #fff;
	cursor: pointer;
	border-radius: 50px;
}
.cbox .det a{
	justify-content: space-around;
	width: 100%;
	padding: 20px;
	border-radius: 50px;
	border: 1px solid #8ab92d;
	font-size: 15px;
	color: #272529;
	font-family: inherit;
	text-decoration: none;
}

.cbox .det a:hover{
	background: linear-gradient(to right, #8ab92d, #8ab92d);
	color: white;
}

.inbt {
	padding: 10px;
	font-family: 'Open Sans', sans-serif;
	font-size: 30px;
	font-weight: bold;
	color: #000000;
	margin: 100px;
	margin-bottom: 50px;
	margin-top: 20px;
}

/*COURSES AVAILABLE*/
.ccard {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
}
.ccard a {
  color: inherit;           /* Use the text color of parent (white) */
  text-decoration: none;    /* Remove underline */
  cursor: pointer;          /* Pointer cursor on hover */
}

.ccard a:hover {
  color: #000000;           /* Brand cyan color on hover */
}
.ccardbox {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.dcard {
	margin: 10px;
	width: 300px;
	height: 200px;
	background: linear-gradient(to right, #8ab92d, #8ab92d);
	border-radius: 10px;
	box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

.dcard .fpart {
	width: inherit;
	height: 150px;
	color: #000;
	text-align: left;
	overflow: hidden;
}
.dcard .fpart img {
	width: 100%;
	height: 100%;
}

.dcard .spart {
  display: flex;                    /* make it flex container */
  justify-content: space-between;  /* text left, arrow right */
  align-items: center;              /* vertically center items */
  padding: 10px 15px 10px 10px;       /* padding: top-right-bottom-left */
  color: #fff;
  cursor: pointer;
}

.dcard .spart img {
  width: 20px;
  margin-left: 0;                  /* remove big margin */
  cursor: pointer;
}


.dcard:hover .fpart img{
	transition: .8s ease;
	transform: scale(1.2);
}

@media only screen and (max-width: 768px) {
  /* QUICK LINKS */
  .course {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0 10px;
  }

  .cbox {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .cbox .det {
    width: 90%;
    height: auto;
    margin: 8px 0;
  }

  .cbox .det a {
    font-size: 14px;
    padding: 14px 20px;
    display: block;
    text-align: center;
  }

  .inbt {
    font-size: 22px;
    margin: 50px 20px 30px;
    text-align: center;
  }

  /* COURSES AVAILABLE */
  .ccard {
    flex-direction: column;
    padding: 0 10px;
  }

  .ccardbox {
    flex-direction: column;
    width: 100%;
    align-items: center;
  }

  .dcard {
    width: 90%;
    height: auto;
  }

  .dcard .fpart {
    height: 180px;
  }

  .dcard .spart {
    font-size: 14px;
    padding: 15px;
    text-align: left;
  }

  .dcard .spart img {
    width: 20px;
    margin-left: 0;
    display: block;
  }
}

/*Small Titles for  Topics*/

.title2 span{
	font-weight: bold;
	font-family: 'Open Sans', sans-serif;
	font-size: 30px;
	color: #000000;
	margin-top: 100px;
	margin-bottom: 10px;
}
.title2 .shortdesc2 {
	padding: 10px;
	font-family: 'Open Sans', sans-serif;
	font-size: 15px;
	color: #2E3D49;
	margin-bottom: 10px;
}

/*Videos Section*/
.ccardbox2 {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
}

.dcard2 {
	margin: 20px;
	width: 300px;
	height: 160px;
	background: linear-gradient(to right, #8ab92d, #8ab92d);
	border-radius: 10px;
}
.dcard2:hover .fpart2 img {
	display: none;
}
.dcard2 .fpart2 { 
	width: inherit;
	height: 180px;
	background: #000;
	color: #000;
	text-align: left;
	border-top-right-radius: 100px;
	transform: translateY(-19px);
	box-shadow: 0 0 20px rgba(0,0,0,0.4);
	overflow: hidden;
}
.dcard2 .tag {
	position: relative;
	margin-left: 270px;
	top: 10px;
	color: #fff;
}
.dcard2 .fpart2 img {
	width: 100%;
	height: 100%;
}
.fpart2 iframe {
	height: inherit;
	width: inherit;
}

/*Watch Full Playlist*/
.click-me {
	justify-content: center;
	display: flex;
}
.click-me a {
	color: #8ab92d;
	text-decoration: none;
	transition-duration: .5s;
	padding: 10px;
	margin-bottom: 25px;
}
.click-me a:hover {
	background: #8ab92d;
	color: #fff;
}
@media only screen and (max-width: 768px) {
  .click-me {
    flex-direction: column;
    align-items: center;
    padding: 0 10px;
  }

  .click-me a {
    font-size: 12px;
    padding: 10px 20px;
    width: 100%;
    max-width: 280px;
    text-align: center;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0px 2px 6px rgba(0,0,0,0.1);
  }
}

/*PROJECTS*/
.project-panel {
	/*background: #000;*/
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
}
.project-card {
	width: 250px;
	/*height: 220px;*/
	background: #fff;
	margin-right: 10px;
	margin-bottom: 10px;
	border-radius: 5px;
	cursor: pointer;
	box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}
.project-card img {
	width: inherit;
	/*height: 140px;*/
}
.project-card:hover {
	transform: scale(1.2);
	transition: .5s ease;
}
.project-card:hover .download a{
	visibility: visible;
}
.project-card .info {
	padding: 10px;
}
.project-card .info h4 {
	color: #2E3D49;
}
.project-card .info p {
	font-size: 12px;
}
.download {
	margin-top: 10px;
	display: flex;
	justify-content: center;
}
.download a{
	padding: 5px 10px;
	color: #8ab92d;
	font-size: .8em;
	visibility: hidden;
}
.download:hover a{
	transition: .5s ease;
	background: #8ab92d;
	color: #fff;
}


/*Sample Papers*/

.sample {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: space-around;
}
.lastSample {
	margin-bottom: 100px;
}
.sample ul {
	margin: 20px;
}

.sample ul li{
	padding: 28px;
	list-style: none;
}

.sample ul li a {
	color: #8ab92d;
	width: 300px;
	font-size: 20px;
}
@media only screen and (max-width: 768px) {
  .sample {
    flex-direction: column;
    align-items: center;
    padding: 0 10px;
  }

  .sample ul {
    width: 100%;
    max-width: 350px;
    margin: 15px 0;
    padding: 0;
  }

  .sample ul li {
    padding: 16px 10px;
    border-bottom: 1px solid #eee;
    text-align: center;
  }

  .sample ul li:last-child {
    border-bottom: none;
  }

  .sample ul li a {
    font-size: 16px;
    width: 100%;
    display: block;
    color: #8ab92d;
    transition: 0.3s;
  }

  .sample ul li a:hover {
    background-color: #8ab92d;
    color: #fff;
    border-radius: 5px;
    padding: 8px;
  }

  .lastSample {
    margin-bottom: 60px;
  }
}

/*FOOTER*/
footer {
  color: #e5e8ef;
  background: #000d;
  padding: 50px 0;
}
footer .footer-container {
  max-width: 1300px;
  margin: auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap-reverse;
}
footer .social-media img {
  width: 22px;
}
footer .logo {
  width: 180px;
  color: #fff;
}
footer .social-media a {
  margin-right: 10px;
  font-size: 22px;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.social-media a img {
  width: 30px; /* Set consistent size */
  height: 30px;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.social-media a:hover img {
  transform: scale(1.2); /* Slight zoom */
  filter: brightness(1.2) drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2)); /* Glow */
  cursor: pointer;
}
footer .right-col h1 {
  font-size: 26px;
}
.footer-container p a {
  color: #ffffff;
  text-decoration: none;
  margin-left: 6px;
}

.footer-container p a:hover {
  color: #8ab92d;
  text-decoration: underline;
}

.footer-container p img {
  vertical-align: middle;
  width: 18px;
  margin-right: 6px;
}

footer .border {
  width: 100px;
  height: 4px;
  background: linear-gradient(to right, #8ab92d, #8ab92d);
  margin: 2px;
}
footer .newsletter-form {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
footer input::placeholder {
  color: white !important;
}
footer .txtb {
  flex: 1;
  padding: 18px 40px;
  font-size: 16px;
  background: #343a40;
  border: none;
  font-weight: 700;
  outline: none;
  border-radius: 5px;
  min-width: 260px;
  margin-top: 20px;
  color: white;
}
footer .btn {
  margin-top: 20px;
  padding: 18px 40px;
  font-size: 16px;
  color: #f1f1f1;
  background: linear-gradient(to right, #8ab92d, #8ab92d);
  border: none;
  font-weight: 700;
  outline: none;
  border-radius: 5px;
  margin-left: 20px;
  cursor: pointer;
  transition: opacity 0.3s linear;
}
footer .btn:hover {
  opacity: 0.7;
}

.developer {
  text-align: center;
  color: #e5e8ef;
  margin-top: 30px;
  font-size: 1.2rem;
}
.rishav-name {
  font-weight: bold;
  color: #b0a8a8;
}

.rishav-name {
  color: #b0a8a8;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  cursor: pointer;
}

.rishav-name:hover {
  color: #8ab92d;
  text-decoration: underline;
}

@media only screen and (max-width: 768px) {
  footer {
    text-align: center;
    padding: 30px 0;
  }

  footer .footer-container {
    flex-direction: column;
    align-items: center;
  }

  footer .left-col,
  footer .right-col {
    width: 100%;
    margin-bottom: 30px;
  }

  footer .logo {
    margin: 0 auto 20px;
  }

  footer .social-media {
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  footer .social-media a {
    margin-right: 0;
  }

  .footer-container p {
    text-align: center;
    line-height: 1.6;
  }

  .footer-container p a {
    display: inline-block;
    margin: 5px 0;
  }

  footer .newsletter-form {
    flex-direction: column;
  }

  footer .txtb,
  footer .btn {
    width: 90%;
    margin: 10px auto 0;
    text-align: center;
  }

  footer .btn {
    margin-left: 0;
  }

  .developer {
    font-size: 1rem;
    padding: 0 20px;
    line-height: 1.4;
  }
}


/*For Responsive Website*/
@media screen and (max-width: 960px) {
	.footer-container {
		max-width: 600px;
	}
	.right-col {
		width: 100%;
		margin-bottom: 60px;
	}
	.left-col {
		width: 100%;
		text-align: center;
	}
	.social-media {
		display: flex;
		justify-content: center;
	}
}

@media screen and (max-width: 700px) {
	footer .btn{
		margin: 0;
		width: 100%;
		margin-top: 20px;
	}
}

.hamburger {
  display: none;
  font-size: 26px;
  cursor: pointer;
  color: #333;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    text-align: center;
    box-shadow: 0px 4px 6px rgba(0,0,0,0.1);
  }
  .nav-links.show {
    display: flex;
    animation: slideDown 0.3s ease-in-out;
  }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

