/*-----------------------------------*\
  #style.css
\*-----------------------------------*/

/**
 * copyright 2025 Pyversity
 */

/*-----------------------------------*\
  #CUSTOM PROPERTY
\*-----------------------------------*/

:root {
  /**
   * colors
   */

  --selective-yellow: hsl(42, 94%, 55%);
  --eerie-black-1: hsl(0, 0%, 9%);
  --eerie-black-2: hsl(180, 3%, 7%);
  --quick-silver: hsl(0, 0%, 65%);
  --radical-red: hsl(351, 83%, 61%);
  --light-gray: hsl(0, 0%, 80%);
  --isabelline: hsl(207, 25%, 97%);
  --gray-x-11: hsl(0, 0%, 73%);
  /*  --kappel_15: hsla(170, 75%, 41%, 0.15);*/
  --kappel_15: hsla(207, 51%, 44%, 0.15);
  --platinum: hsl(0, 0%, 90%);
  --gray-web: hsl(0, 0%, 50%);
  --black_80: hsla(0, 0%, 0%, 0.8);
  --white_50: hsla(0, 0%, 100%, 0.5);
  --black_50: hsla(0, 0%, 0%, 0.5);
  --black_30: hsla(0, 0%, 0%, 0.3);
  --kappel: hsl(207, 51%, 44%); /* hsl(170, 75%, 41%); */
  --kappel-darker: hsl(207, 51%, 22%); /* hsl(170, 75%, 20%); */
  --white: hsl(0, 0%, 100%);

  /**
   * gradient color
   */

  /*  --gradient: linear-gradient(-90deg,hsl(151, 58%, 46%) 0%,hsl(170, 75%, 41%) 100%);*/
  --gradient: linear-gradient(
    -90deg,
    hsl(187, 35%, 49%) 0%,
    hsl(207, 51%, 44%) 100%
  );

  /**
   * typography
   */

  --ff-league_spartan: "League Spartan", sans-serif;
  --ff-poppins: "Poppins", sans-serif;

  --fs-1: 4.2rem;
  --fs-2: 3.2rem;
  --fs-3: 2.3rem;
  --fs-4: 1.8rem;
  --fs-5: 1.5rem;
  --fs-6: 1.4rem;
  --fs-7: 1.3rem;

  --fw-500: 500;
  --fw-600: 600;

  /**
   * spacing
   */

  --section-padding: 75px;

  /**
   * shadow
   */

  --shadow-1: 0 6px 15px 0 hsla(0, 0%, 0%, 0.05);
  --shadow-2: 0 10px 30px hsla(0, 0%, 0%, 0.06);
  --shadow-3: 0 10px 50px 0 hsla(220, 53%, 22%, 0.1);

  /**
   * radius
   */

  --radius-pill: 500px;
  --radius-circle: 50%;
  --radius-3: 3px;
  --radius-5: 5px;
  --radius-10: 10px;

  /**
   * transition
   */

  --transition-1: 0.25s ease;
  --transition-2: 0.5s ease;
  --cubic-in: cubic-bezier(0.51, 0.03, 0.64, 0.28);
  --cubic-out: cubic-bezier(0.33, 0.85, 0.4, 0.96);
}

.chat-btn {
  position: fixed;
  right: 10px;
  bottom: 10px;
  z-index: 99997;
}

/*-----------------------------------*\
  #RESET
\*-----------------------------------*/

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

li {
  list-style: none;
}

a,
img,
span,
data,
input,
button,
ion-icon {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  height: auto;
}

input,
button {
  background: none;
  border: none;
  font: inherit;
}

input {
  width: 100%;
}

button {
  cursor: pointer;
}

ion-icon {
  pointer-events: none;
}

address {
  font-style: normal;
}

html {
  font-family: var(--ff-poppins);
  font-size: 10px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--white);
  color: var(--gray-web);
  font-size: 1.6rem;
  line-height: 1.75;
}

:focus-visible {
  outline-offset: 4px;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background-color: hsl(0, 0%, 98%);
}

::-webkit-scrollbar-thumb {
  background-color: hsl(0, 0%, 80%);
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(0, 0%, 70%);
}

/*-----------------------------------*\
  #REUSED STYLE
\*-----------------------------------*/

.container {
  padding-inline: 15px;
}

.section {
  padding-block: var(--section-padding);
}

.shape {
  position: absolute;
  display: none;
}

.has-bg-image {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.h1,
.h2,
.h3 {
  color: var(--eerie-black-1);
  font-family: var(--ff-league_spartan);
  line-height: 1;
}

.h1,
.h2 {
  font-weight: var(--fw-600);
}

.h1 {
  font-size: var(--fs-1);
}

.h2 {
  font-size: var(--fs-2);
}

.h3 {
  font-size: var(--fs-3);
  font-weight: var(--fw-500);
}

.section-title {
  /*  --color: var(--radical-red);*/
  --color: var(--selective-yellow);
  text-align: center;
}

.section-title .span {
  display: inline-block;
  color: var(--color);
}

.btn {
  background-color: var(--kappel);
  color: var(--white);
  font-family: var(--ff-league_spartan);
  font-size: var(--fs-4);
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: max-content;
  padding: 10px 20px;
  border-radius: var(--radius-5);
  overflow: hidden;
}

.has-before,
.has-after {
  position: relative;
  z-index: 1;
}

.has-before::before,
.has-after::after {
  position: absolute;
  content: "";
}

.btn::before {
  inset: 0;
  background-image: var(--gradient);
  z-index: -1;
  border-radius: inherit;
  transform: translateX(-100%);
  transition: var(--transition-2);
}

.btn:is(:hover, :focus)::before {
  transform: translateX(0);
}

.img-holder {
  aspect-ratio: var(--width) / var(--height);
  background-color: var(--light-gray);
  overflow: hidden;
}

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-subtitle {
  font-size: var(--fs-5);
  text-transform: uppercase;
  font-weight: var(--fw-500);
  letter-spacing: 1px;
  text-align: center;
  margin-block-end: 15px;
}

.section-text {
  font-size: var(--fs-5);
  text-align: center;
  margin-block: 15px 25px;
}

.grid-list {
  display: grid;
  gap: 30px;
}

.category-card,
.stats-card {
  background-color: hsla(var(--color), 0.1);
}

:is(.course, .blog) .section-title {
  margin-block-end: 40px;
}

/*-----------------------------------*\
  #HEADER
\*-----------------------------------*/

/*.header .btn { display: none; }*/

.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  padding-block: 12px;
  box-shadow: var(--shadow-1);
  z-index: 404;
}

.header.active {
  position: fixed;
}

.header .container,
.header-actions,
.navbar .wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.header-action-btn,
.nav-close-btn {
  position: relative;
  color: var(--eerie-black-1);
  font-size: 24px;
  transition: var(--transition-1);
}

.header .btn {
  padding: 8px 15px; /* Smaller padding for mobile */
  font-size: 14px; /* Smaller font size for mobile */
  white-space: nowrap; /* Prevent text wrapping */
}

@media (max-width: 767px) {
  .header-actions {
    gap: 15px; /* Reduced gap for mobile */
  }

  .header .btn {
    font-size: 12px; /* Even smaller font for very small screens */
    padding: 6px 12px;
  }

  .header .container {
    padding-inline: 15px; /* Smaller padding for mobile */
  }
}

@media (min-width: 768px) {
  .header .container {
    padding-inline: 30px;
  }

  .header .btn {
    padding: 10px 30px; /* Larger padding for desktop */
    font-size: var(--fs-4); /* Original font size for desktop */
  }
}

.header-action-btn:is(:hover, :focus) {
  color: var(--kappel);
}

.header-action-btn .btn-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: var(--kappel);
  color: var(--white);
  font-family: var(--ff-league_spartan);
  font-size: var(--fs-6);
  min-width: 20px;
  height: 20px;
  border-radius: var(--radius-circle);
}

.navbar {
  position: fixed;
  top: 0;
  left: -320px;
  background-color: var(--white);
  width: 100%;
  max-width: 320px;
  height: 100%;
  z-index: 40000004;
  transition: 0.25s var(--cubic-in);
}

.navbar.active {
  transform: translateX(320px);
  transition: 0.5s var(--cubic-out);
  z-index: 40000004;
}

.navbar .wrapper {
  padding: 15px 20px;
  border-block-end: 1px solid var(--platinum);
}

.nav-close-btn {
  background-color: var(--white);
  box-shadow: var(--shadow-2);
  padding: 8px;
  border-radius: var(--radius-circle);
}

.nav-close-btn:is(:hover, :focus) {
  background-color: var(--kappel);
  color: var(--white);
}

.navbar-list {
  padding: 15px 20px;
}

.navbar-item:not(:last-child) {
  border-block-end: 1px solid var(--platinum);
}

.navbar-link {
  padding-block: 8px;
  font-weight: var(--fw-500);
  transition: var(--transition-1);
}

.navbar-link:is(:hover, :focus) {
  color: var(--kappel);
}

.overlay {
  position: fixed;
  inset: 0;
  background-color: var(--black_80);
  pointer-events: none;
  opacity: 0;
  z-index: 1;
  transition: var(--transition-1);
}

.overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Dropdown styles */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  min-width: 200px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  padding: 0;
  border: none;
}

.dropdown-menu li a {
  padding: 12px 20px;
  color: var(--eerie-black-1);
  font-size: 1.5rem;
  display: block;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.dropdown-menu li a:hover {
  background-color: var(--kappel);
  color: var(--white);
}

/* Dropdown arrow icon */
.navbar-link i {
  font-size: 0.8em;
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.dropdown:hover .navbar-link i {
  transform: rotate(180deg);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background-color: #f8f9fa;
    padding-left: 20px;
    display: none;
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }

  .dropdown-menu li a {
    padding: 10px 15px;
  }
}

/* Animation for dropdown */
@keyframes dropdownAnimation {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-menu {
  animation: dropdownAnimation 0.3s ease;
}

/*-----------------------------------*\
  #HERO
\*-----------------------------------*/

.hero {
  padding-block-start: calc(var(--section-padding) + 80px);
}

.hero .container {
  display: grid;
  gap: 40px;
}

.hero-text {
  color: var(--eerie-black-1);
  font-size: var(--fs-4);
  text-align: center;
  margin-block: 18px 20px;
}

.hero .btn {
  margin-inline: auto;
}

.hero-banner {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  align-items: flex-start;
  gap: 30px;
}

.hero-banner .img-holder.one {
  border-top-right-radius: 70px;
  border-bottom-left-radius: 110px;
}

.hero-banner .img-holder.two {
  border-top-left-radius: 50px;
  border-bottom-right-radius: 90px;
}

/*-----------------------------------*\
  #CATEGORY
\*-----------------------------------*/

/*.category .section-subtitle { color: var(--radical-red); }*/

.category .section-subtitle {
  color: var(--selective-yellow);
}

.category .section-title {
  --color: var(--kappel);
}

.category .section-text {
  margin-block-end: 40px;
}

.category-card {
  padding: 50px 30px;
  text-align: center;
  border-radius: var(--radius-5);
}

.category-card .card-icon {
  background-color: hsla(var(--color), 0.1);
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-circle);
  margin-inline: auto;
  margin-block-end: 30px;
}

.category-card .card-text {
  color: var(--eerie-black-1);
  font-size: var(--fs-5);
  margin-block: 15px 25px;
}

.category-card .card-badge {
  background-color: hsla(var(--color), 0.1);
  color: hsl(var(--color));
  font-size: var(--fs-5);
  font-weight: var(--fw-500);
  padding: 2px 18px;
  max-width: max-content;
  margin-inline: auto;
  border-radius: var(--radius-5);
}

/*-----------------------------------*\
  #ABOUT
\*-----------------------------------*/

.about {
  padding-block-start: 0;
  overflow: hidden;
}

.about .container {
  display: grid;
  gap: 30px;
}

.about-banner {
  position: relative;
  z-index: 1;
}

.about-banner .img-holder {
  border-radius: var(--radius-10);
}

.about-shape-2 {
  display: block;
  bottom: -100px;
  left: -60px;
  animation: bounce 2.5s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-30px);
  }

  60% {
    transform: translateY(-15px);
  }
}

.about :is(.section-subtitle, .section-title, .section-text) {
  text-align: left;
}

.about-item {
  margin-block: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.about-item ion-icon {
  color: var(--selective-yellow);
  font-size: 20px;
  --ionicon-stroke-width: 50px;
}

.about-item .span {
  color: var(--eerie-black-1);
  font-family: var(--ff-league_spartan);
}

/*-----------------------------------*\
  #COURSE
\*-----------------------------------*/

.course {
  background-color: var(--isabelline);
}

.course-card {
  position: relative;
  background-color: var(--white);
  border-radius: var(--radius-5);
  overflow: hidden;
}

.course-card .img-cover {
  transition: var(--transition-2);
}

.course-card:is(:hover, :focus-within) .img-cover {
  transform: scale(1.1);
}

.course-card :is(.abs-badge, .badge) {
  font-family: var(--ff-league_spartan);
  border-radius: var(--radius-3);
}

.course-card .abs-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--selective-yellow);
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 1;
  padding: 6px 8px;
  padding-block-end: 3px;
}

.course-card .abs-badge ion-icon {
  font-size: 18px;
  margin-block-end: 5px;
  --ionicon-stroke-width: 50px;
}

.course-card .card-content {
  padding: 25px;
}

.course-card .badge {
  background-color: var(--kappel_15);
  max-width: max-content;
  color: var(--kappel);
  line-height: 25px;
  padding-inline: 10px;
}

.course-card .card-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-block: 15px 8px;
  transition: var(--transition-1);
}

.course-card .card-title:is(:hover, :focus) {
  color: var(--kappel);
}

.course-card :is(.wrapper, .rating-wrapper, .card-meta-list, .card-meta-item) {
  display: flex;
  align-items: center;
}

.course-card .wrapper {
  gap: 10px;
}

.course-card .rating-wrapper {
  gap: 3px;
}

.course-card .rating-wrapper ion-icon {
  color: var(--selective-yellow);
}

.course-card .rating-text {
  color: var(--eerie-black-1);
  font-size: var(--fs-6);
  font-weight: var(--fw-500);
}

/*.course-card .price {
  color: var(--radical-red);
  font-family: var(--ff-league_spartan);
  font-size: var(--fs-4);
  font-weight: var(--fw-600);
  margin-block: 8px 15px;
}*/

.course-card .price-container {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-block: 8px 15px;
  justify-content: center; /* Added this line to center horizontally */
}

.price {
  font-family: var(--ff-league_spartan);
  font-size: var(--fs-4);
  font-weight: var(--fw-600);
}

.price.original {
  color: #666;
  text-decoration: line-through;
  font-size: calc(var(--fs-4) * 0.9);
}

.price.discounted {
  color: var(--radical-red);
}

.course-card .card-meta-list {
  flex-wrap: wrap;
}

.course-card .card-meta-item {
  position: relative;
  gap: 5px;
}

.course-card .card-meta-item:not(:last-child)::after {
  content: "|";
  display: inline-block;
  color: var(--platinum);
  padding-inline: 10px;
}

.course-card .card-meta-item ion-icon {
  color: var(--quick-silver);
  --ionicon-stroke-width: 50px;
}

.course-card .card-meta-item .span {
  color: var(--eerie-black-1);
  font-size: var(--fs-7);
}

.course .btn {
  margin-inline: auto;
  margin-block-start: 60px;
}

/*-----------------------------------*\
  #VIDEO
\*-----------------------------------*/

.video {
  background-size: contain;
  background-position: center top;
}

.video-banner {
  position: relative;
  border-top-right-radius: 80px;
  border-bottom-left-radius: 120px;
}

.video .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--radical-red);
  font-size: 30px;
  padding: 16px;
  color: var(--white);
  border-radius: var(--radius-circle);
  box-shadow: 0 0 0 0 var(--white_50);
  z-index: 1;
  animation: pulse 3s ease infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 var(--white_50);
  }
  100% {
    box-shadow: 0 0 0 20px transparent;
  }
}

.video-banner::after {
  inset: 0;
  background-color: var(--black_30);
}

/*-----------------------------------*\
  #STATS
\*-----------------------------------*/

.stats-card {
  text-align: center;
  padding: 25px;
  border-radius: var(--radius-10);
}

.stats-card :is(.card-title, .card-text) {
  font-family: var(--ff-league_spartan);
}

.stats-card .card-title {
  color: hsl(var(--color));
  font-size: var(--fs-2);
  line-height: 1.1;
}

.stats-card .card-text {
  color: var(--eerie-black-1);
  text-transform: uppercase;
}

/*-----------------------------------*\
  #BLOG
\*-----------------------------------*/

.blog-card .card-banner {
  border-radius: var(--radius-10);
}

.blog-card .card-banner .img-cover {
  transition: var(--transition-2);
}

.blog-card .card-banner::after {
  inset: 0;
  background-color: var(--black_50);
  opacity: 0;
  transition: var(--transition-1);
}

.blog-card:is(:hover, :focus-within) .card-banner .img-cover {
  transform: scale(1.1);
}

.blog-card:is(:hover, :focus-within) .card-banner::after {
  opacity: 1;
}

.blog-card .card-content {
  position: relative;
  margin-inline: 15px;
  background-color: var(--white);
  padding: 20px;
  border-radius: var(--radius-10);
  box-shadow: var(--shadow-3);
  margin-block-start: -100px;
  z-index: 1;
}

.blog-card .card-btn {
  position: absolute;
  top: -40px;
  right: 30px;
  background-color: var(--kappel);
  color: var(--white);
  font-size: 20px;
  padding: 20px;
  border-radius: var(--radius-circle);
  transition: var(--transition-1);
  opacity: 0;
}

.blog-card .card-btn:is(:hover, :focus) {
  background-color: var(--radical-red);
}

.blog-card:is(:hover, :focus-within) .card-btn {
  opacity: 1;
  transform: translateY(10px);
}

.blog-card :is(.card-meta-item, .card-text, .card-subtitle) {
  font-size: var(--fs-5);
}

.blog-card .card-subtitle {
  text-transform: uppercase;
}

.blog-card .card-title {
  margin-block: 10px 15px;
  transition: var(--transition-1);
}

.blog-card .card-title:is(:hover, :focus) {
  color: var(--kappel);
}

.blog-card :is(.card-meta-list, .card-meta-item) {
  display: flex;
}

.blog-card .card-meta-list {
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-block-end: 20px;
}

.blog-card .card-meta-item {
  gap: 10px;
  align-items: center;
  color: var(--eerie-black-1);
}

.blog-card .card-meta-item ion-icon {
  color: var(--kappel);
  font-size: 18px;
  --ionicon-stroke-width: 40px;
}

/*-----------------------------------*\
  #FOOTER
\*-----------------------------------*/

.footer {
  background-repeat: no-repeat;
  background-color: var(--eerie-black-2);
  color: var(--gray-x-11);
  font-size: var(--fs-5);
}

.footer-top {
  display: grid;
  gap: 30px;
}

.footer-brand-text {
  margin-block: 20px;
}

.footer-brand .wrapper {
  display: flex;
  gap: 5px;
}

.footer-brand .wrapper .span {
  font-weight: var(--fw-500);
}

.footer-link {
  transition: var(--transition-1);
}

.footer-link:is(:hover, :focus) {
  color: var(--kappel);
}

.footer-list-title {
  color: var(--white);
  font-family: var(--ff-league_spartan);
  font-size: var(--fs-3);
  font-weight: var(--fw-600);
  margin-block-end: 10px;
}

.footer-list .footer-link {
  padding-block: 5px;
}

.newsletter-form {
  margin-block: 20px 35px;
}

.newsletter-form .input-field {
  background-color: var(--white);
  padding: 12px;
  border-radius: var(--radius-5);
  margin-block-end: 20px;
}

.newsletter-form .btn {
  min-width: 100%;
  justify-content: center;
}

.social-list {
  display: flex;
  gap: 25px;
}

.social-link {
  font-size: 20px;
}

.footer-bottom {
  border-block-start: 1px solid var(--eerie-black-1);
  padding-block: 30px;
}

.copyright {
  text-align: center;
}

.copyright-link {
  color: var(--kappel);
  display: inline-block;
}

/*-----------------------------------*\
  #BACK TO TOP
\*-----------------------------------*/

.back-top-btn {
  position: fixed;
  bottom: 40px;
  right: 30px;
  background-color: var(--kappel);
  color: var(--white);
  font-size: 20px;
  padding: 15px;
  border-radius: var(--radius-circle);
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-1);
}

.back-top-btn.active {
  transform: translateY(10px);
  opacity: 1;
  pointer-events: all;
}

/*-----------------------------------*\
  #MEDIA QUERIES
\*-----------------------------------*/

/**
 * responsive for large than 575px screen
 */

@media (min-width: 575px) {
  /**
   * REUSED STYLE
   */

  .container {
    max-width: 520px;
    width: 100%;
    margin-inline: auto;
  }

  .grid-list {
    grid-template-columns: 1fr 1fr;
  }

  :is(.course, .blog) .grid-list {
    grid-template-columns: 1fr;
  }

  /**
   * HEADER
   */

  .header .container {
    max-width: unset;
  }

  .header-actions {
    gap: 30px;
  }

  /**
   * HERO
   */

  .hero-banner {
    grid-template-columns: 1fr 0.9fr;
  }

  /**
   * VIDEO
   */

  .video .play-btn {
    padding: 25px;
  }

  /**
   * STATS
   */

  .stats-card {
    padding: 40px 30px;
  }

  /**
   * FOOTER
   */

  .footer-brand,
  .footer-list:last-child {
    grid-column: 1 / 3;
  }

  .newsletter-form {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .newsletter-form .input-field {
    margin-block-end: 0;
  }

  .newsletter-form .btn {
    min-width: max-content;
  }
}

/**
 * responsive for large than 768px screen
 */

@media (min-width: 768px) {
  /**
   * CUSTOM PROPERTY
   */

  :root {
    /**
     * typography
     */

    --fs-1: 4.6rem;
    --fs-2: 3.8rem;
  }

  /**
   * REUSED STYLE
   */

  .container {
    max-width: 720px;
  }

  .btn {
    padding: 15px 30px;
  }

  :is(.course, .blog) .grid-list {
    grid-template-columns: 1fr 1fr;
  }

  /**
   * HEADER
   */

  .header .container {
    padding-inline: 30px;
  }

  .header .btn {
    display: flex;
    padding: 10px 30px;
    margin-inline: 20px;
  }

  /**
   * HERO
   */

  .hero {
    padding-block-start: calc(var(--section-padding) + 90px);
  }

  .hero .container {
    gap: 50px;
  }

  .hero-text {
    margin-block-end: 30px;
  }

  .hero-banner {
    position: relative;
    z-index: 1;
  }

  .hero-banner .img-holder {
    max-width: max-content;
  }

  .hero-banner .img-holder.one {
    justify-self: flex-end;
  }

  .hero-banner .img-holder.two {
    margin-block-start: 100px;
  }

  .hero-shape-1 {
    display: block;
    position: absolute;
    bottom: -40px;
    left: -10px;
  }

  /**
   * ABOUT
   */

  .about {
    padding-block-start: 50px;
  }

  .about-banner {
    padding: 60px;
    padding-inline-end: 0;
  }

  .about-banner .img-holder {
    max-width: max-content;
    margin-inline: auto;
  }

  .about-shape-1 {
    display: block;
    top: -40px;
    right: -70px;
  }

  /**
   * FOOTER
   */

  .footer-brand,
  .footer-list:last-child {
    grid-column: auto;
  }

  .newsletter-form .btn {
    padding-block: 10px;
  }
}

/**
 * responsive for large than 992px screen
 */

@media (min-width: 992px) {
  /**
   * CUSTOM PROPERTY
   */

  :root {
    /**
     * typography
     */

    --fs-1: 5.5rem;
    --fs-2: 4.5rem;
  }

  /**
   * REUSED STYLE
   */

  .container {
    max-width: 960px;
  }

  .grid-list {
    grid-template-columns: repeat(4, 1fr);
  }

  :is(.course, .blog) .grid-list {
    grid-template-columns: repeat(3, 1fr);
  }

  /**
   * HERO
   */

  .hero .container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .hero .section-title,
  .hero-text {
    text-align: left;
  }

  .hero .btn {
    margin-inline: 0;
  }

  /**
   * ABOUT
   */

  .about .container {
    grid-template-columns: 1fr 0.6fr;
    align-items: center;
    gap: 60px;
  }

  /**
   * VIDEO
   */

  .video-banner {
    max-width: 75%;
    margin-inline: auto;
  }

  /**
   * FOOTER
   */

  .footer .grid-list {
    grid-template-columns: 1fr 0.6fr 0.6fr 1.2fr;
  }
}

/**
 * responsive for large than 1200px screen
 */

@media (min-width: 1200px) {
  /**
   * CUSTOM PROPERTY
   */

  :root {
    /**
     * typography
     */

    --fs-1: 6.5rem;

    /**
     * spacing
     */

    --section-padding: 120px;
  }

  /**
   * REUSED STYLE
   */

  .container {
    max-width: 1185px;
  }

  .shape {
    display: block;
  }

  .about-content,
  .video-card,
  .blog {
    position: relative;
  }

  /**
   * HEADER
   */

  .header-action-btn:last-child,
  .navbar .wrapper,
  .overlay {
    display: none;
  }

  .header.active {
    transform: translateY(-100%);
    animation: slideIn 0.5s ease forwards;
  }

  @keyframes slideIn {
    0% {
      transform: translateY(-100%);
    }
    100% {
      transform: translateY(0);
    }
  }

  .navbar,
  .navbar.active {
    all: unset;
  }

  .navbar-list {
    display: flex;
    gap: 50px;
    padding: 0;
  }

  .navbar-item:not(:last-child) {
    border-block-end: none;
  }

  .navbar-link {
    color: var(--eerie-black-1);
    padding-block: 20px;
  }

  .header .btn {
    margin-inline-end: 0;
  }

  /**
   * HERO
   */

  .hero {
    padding-block-start: calc(var(--section-padding) + 120px);
  }

  .hero .container {
    gap: 80px;
  }

  .hero-shape-2 {
    top: -80px;
    z-index: -1;
  }

  /**
   * ABOUT
   */

  .about .container {
    gap: 110px;
  }

  .about-banner .img-holder {
    margin-inline: 0;
  }

  .about-shape-3 {
    top: -20px;
    left: -100px;
    z-index: -1;
  }

  .about-content {
    z-index: 1;
  }

  .about-shape-4 {
    top: 30px;
    right: -60px;
    z-index: -1;
  }

  /**
   * VIDEO
   */

  .video-shape-1 {
    top: -50px;
    left: 0;
  }

  .video-shape-2 {
    top: -80px;
    right: 120px;
    z-index: 1;
  }

  /**
   * BLOG
   */

  .blog-shape {
    top: 0;
    left: 0;
  }
}

body {
  user-select: none;
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
}

/*body, html {
    height: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0;
    font-family: Arial, sans-serif;
}*/

body,
html {
  justify-content: center;
  align-items: center;
}

.login-container {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 350px;
  margin: 0 auto; /* This centers it horizontally */
}
form {
  display: flex;
  flex-direction: column;
}
input {
  margin-bottom: 1rem;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}
button {
  padding: 0.5rem;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  align-self: center;
}
button:hover {
  background-color: #0056b3;
}

.section.course1 {
  padding: 4em 0; /* Add top and bottom padding */
  background-color: #f9f9f9; /* Light background for contrast */
}

.grid-list1 {
  display: grid; /* Use grid layout */
  grid-template-columns: repeat(2, 2fr); /* Two columns */
  gap: 2em; /* Space between cards */
}

.course-card1 {
  background: white; /* Card background */
  border-radius: 8px; /* Rounded corners */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  overflow: hidden; /* Hide overflow for rounded corners */
  transition: transform 0.3s ease; /* Smooth transition on hover */
  width: 500px; /* Increased width */
  height: 450px; /* Increased height */
}

.card-banner1 {
  width: 100%; /* Full width */
  height: 250px; /* Increased fixed height for the banner */
  overflow: hidden; /* Hide overflow for rounded corners */
}

.card-banner1 img {
  width: 100%; /* Make image responsive */
  height: 100%; /* Fill the height */
  object-fit: cover; /* Cover the area while preserving aspect ratio */
}

.card-content1 {
  padding: 1em; /* Padding inside the card */
}

/* Responsive Grid */
.grid-list1 {
  display: grid;
  grid-template-columns: repeat(
    auto-fill,
    minmax(400px, 1fr)
  ); /* Adjusted to accommodate larger cards */
  gap: 1.5em; /* Reduced space between cards */
}

/* Ensure cards stack correctly on smaller screens */
@media (max-width: 768px) {
  .grid-list1 {
    grid-template-columns: 1fr; /* Stack cards on smaller screens */
  }
  .course-card1 {
    background: white; /* Card background */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    overflow: hidden; /* Hide overflow for rounded corners */
    transition: transform 0.3s ease; /* Smooth transition on hover */
    width: 370px; /* Increased width */
    height: 450px; /* Increased height */
    padding-right: 15px;
  }
}

.section.course1 {
  padding: 4em 0;
  background-color: #f9f9f9;
}

.grid-list1 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 2em;
}

.course-card1 {
  background: transparent;
  width: 500px;
  height: 450px;
  perspective: 1000px;
}

.card-inner {
  position: absolute;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  cursor: pointer;
}

.card-inner.is-flipped {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.card-front {
  background: white;
}

.card-back {
  background: var(--kappel);
  color: #fff;
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.card-banner1 {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.card-banner1 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content1 {
  padding: 1em;
}

@media (max-width: 768px) {
  .grid-list1 {
    grid-template-columns: 1fr;
  }

  .course-card1 {
    width: 100%;
    height: 450px;
  }

  /*.card-front, .card-back {
        position: absolute;
        width: 400px;
        height: 100%;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        overflow: hidden;
    }
    .card-inner.is-flipped {
      transform: rotateY(180deg);
      position: absolute;
    }*/
}

/*@media (min-width: 600px) and (max-width: 768px) {
  .card-front, .card-back {
    position: absolute;
    width: 700px;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}
.course-card1 {
  width: 100%;
  height: 500px;
}
}*/

.messages {
  list-style: none;
  padding: 0;
}
.messages li {
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 4px;
}
.messages .error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}
.messages .success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}
.form-group {
  margin-bottom: 15px;
}
.error {
  color: #dc3545;
  font-size: 0.875em;
  margin-top: 5px;
}

/*left nav bar for course*/

/*.left-nav {
    margin-top: 100px;
    width: 250px;
    background-color: #f0f0f0;
    padding: 20px;
    overflow-y: auto;
    max-height: 100%;
}*/

/*.left-nav {
    margin-top: 100px;
    width: 250px;
    background-color: #f0f0f0;
    padding: 20px;
    overflow-y: auto;
    max-height: 100%;
}*/



/*.left-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    overflow-y: auto;
    background-color: #f8f9fa;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 100;
    display: block !important;
    transform: none !important;
    transition: left 0.3s ease;
}*/

/*.left-nav2 {
  margin-top: 100px;
  width: 250px;
  background-color: #f0f0f0;
  padding: 20px;
  overflow-y: auto;
  max-height: 100%;
}*/



/* Toggle button styles */
.nav-toggle-btn {
  position: fixed;
  top: 25px;
  left: 75px;
  background-color: #007bff;
  color: white;
  border: none;
  padding: 8px 13px;
  border-radius: 5px;
  cursor: pointer;
  z-index: 405; /* Ensure above the nav */
  display: block;
}

/* Optional hover effect */

.nav-toggle-btn:hover {
  background-color: #0056b3;
}

/* Always visible on larger screens */
@media (min-width: 992px) {
  .nav-toggle-btn {
    display: none; /* Hide toggle button */
  }
}



/*@media (max-width: 768px) {
  .left-nav2{
    display: none;
  }
  
}*/

/*.left-nav a:hover,
.left-nav a.active {
    background-color: var(--kappel);
    color: var(--white);
}*/

.content {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
}
.nav-item {
  margin-bottom: 10px;
}
.nav-item a {
  text-decoration: none;
  color: #333;
  padding: 5px;
}
.nav-item a:hover,
.nav-item a.active {
  background-color: var(--kappel);
  color: #fff;
}

/*.nav-item a:hover {
    color: #007bff;
}*/
.module {
  font-weight: bold;
}
.content-item {
  margin-left: 15px;
}
.assignment {
  margin-left: 30px;
  font-style: italic;
}
.course-container {
  display: flex;
  flex-grow: 1;
  overflow: hidden; /* Prevents scrolling on the container */
}

.language-form {
  margin: 0;
  padding: 0;
}

.language-form select {
  background: transparent;
  border: none;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: bold;
  cursor: pointer;
  padding: 5px 10px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
}

/* Custom dropdown arrow */
.language-form {
  position: relative;
}

.language-form {
  margin-top: 18px;
}

.language-form::after {
  content: "\25BC";
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 0.8em;
  color: inherit;
}

/* Remove default focus outline and add custom focus style */
.language-form select:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3); /* Subtle focus indicator */
}

/* Style for dropdown options */
.language-form select option {
  background-color: #333; /* Dark background for dropdown */
  color: white; /* Light text for readability */
}

/* Hover effect for options */
.language-form select option:hover {
  background-color: #555;
}

/* New Style for nav bar */

/* Container styles */
.course-container {
  padding-left: 250px; /* Match the width of left-nav */
  min-height: 100vh;
  position: relative;
}


/* Module item styling */
/*.nav-item.module {
    border-bottom: 1px solid #e9ecef;
    padding: 10px 0;
    margin-bottom: 5px;
}*/

.nav-item.module > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  padding: 5px 5px;
  cursor: pointer;
}

.nav-item.module > a:hover {
  color: #fff;
}

.nav-item.module > a::after {
  content: "▼";
  font-size: 0.8em;
  transition: transform 0.3s ease;
  margin-left: 10px;
}

.nav-item.module.collapsed > a::after {
  transform: rotate(-90deg);
}

/* Module subitems styling */
/*.module-subitems {
    padding-left: 20px;
    margin-top: 10px;
    display: block;
    overflow: hidden;
    max-height: 1000px;
    transition: max-height 0.3s ease-out;
}

.nav-item.module.collapsed .module-subitems {
    max-height: 0;
    margin-top: 0;
}*/

/* Content and assignment items styling */
.nav-item.content-item,
.nav-item.assignment {
  padding: 5px 0;
  font-size: 0.9em;
}

.nav-item.content-item a,
.nav-item.assignment a {
  color: #666;
  text-decoration: none;
  display: block;
  padding: 5px 0;
  transition: color 0.2s ease;
}

.nav-item.content-item a:hover,
.nav-item.assignment a:hover {
  color: #fff;
}

/* Active state styling */
.nav-item.module > a.active,
.nav-item.content-item a.active,
.nav-item.assignment a.active {
  color: #fff;
  font-weight: 600;
}

/* Responsive design */
/*@media (max-width: 768px) {
    .course-container {
        padding-left: 0;
    }
    
    .left-nav {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        display: block;
    }
    
    .left-nav.visible { 
        transform: translateX(0);
    }
}*/



/* Add styles for desktop */
@media (min-width: 769px) {
  .course-container {
    padding-left: 250px; /* Add padding to account for fixed nav */
  }

  /*.left-nav {
        transform: translateX(0);
    }*/
}

/* Module subitems styling */
.module-subitems {
  padding-left: 20px;
  margin-top: 10px;
  display: block;
  overflow: hidden;
  max-height: 1000px;
  transition: max-height 0.3s ease-out;
}

/* Only collapse the subitems, not the entire module */
.nav-item.module.collapsed .module-subitems {
  max-height: 0;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
}

/* Module item styling - ensure it's always visible */
.nav-item.module {
  border-bottom: 1px solid #e9ecef;
  padding: 10px 0;
  margin-bottom: 5px;
  display: block; /* Ensure module titles are always visible */
}



/* Module item styling - ensure it's always visible */
.nav-item.module {
  border-bottom: 1px solid #e9ecef;
  padding: 10px 0;
  margin-bottom: 5px;
  display: block; /* Ensure module titles are always visible */
}


.left-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100vh;
  background-color: #f8f9fa;
  padding: 20px;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  z-index: 100;
  transform: translateX(-100%);
  opacity: 0;
  transition: all 0.3s ease-in-out;
  overflow-y: auto;
  margin-top: 80px; /* Add space for header */
}

/* Visible state */
.left-nav.visible {
  transform: translateX(0);
  opacity: 1;
}
@media (min-width: 769px) {
  .course-container {
    padding-left: 250px;
  }
  
  .left-nav {
    transform: translateX(0);
    opacity: 1;
  }
  
  #nav-toggle-btn {
    display: block;
    left: 10px;
    margin-left:100px ;
  }
  
}

/* Mobile styles (portrait) */
@media (max-width: 768px) {
  .course-container {
    padding-left: 0;
  }
  
  .left-nav {
    transform: translateX(-100%);
    margin-top: 80px; /* Smaller margin for mobile */
    
  }
  
  #nav-toggle-btn {
    display: block;
    margin-right: 100px;
  }
}

/* Mobile landscape specific styles */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .left-nav {
    position: fixed;
    top: 0;
    height: 100%;
    margin-top: 80px;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    display: block;
  }
  
  .left-nav.visible {
    transform: translateX(0);
    
  }
  .nbtn{
    padding-right: 10px;
  }
  .course-container {
    padding-left: 0;
  }
  
  .nav-toggle-btn {
    
    margin-right: 100pc;
  }
  
  /* Improve scrolling in landscape */
  .left-nav {
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
  }
}

/* Handle iOS Safari bottom bar */
@supports (-webkit-touch-callout: none) {
  @media screen and (orientation: landscape) {
    .left-nav {
      height: calc(100vh - 80px);
    }
  }
}


.nbtn{
  display: none;
}
@media screen and (max-height: 500px) and (orientation: landscape) {
  .nbtn{
    margin-right: 350px;
    display: block;
  }
}
@media (max-width: 768px) {
  .nbtn{
    margin-right: 40px;
    display: block;
  }
}


/* iPad Air and iPad Pro responsiveness */
@media only screen and (min-width: 820px) and (max-width: 1366px) and (orientation: portrait),
       only screen and (min-width: 1180px) and (max-width: 1366px) and (orientation: landscape) {
    
    .grid-list1 {
        display: grid;
        grid-template-columns: repeat(2, minmax(300px, 1fr)); /* Two equal columns */
        gap: 20px; /* Adjust spacing between items */
        justify-content: center;
        align-items: stretch; /* Ensure equal card height */
        padding: 10px;
    }

    .course-card1 {
        max-width: 100%; /* Ensure cards take full width of grid cell */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 15px;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
        border-radius: 10px;
    }

    .course-card1 h3,
    .course-card1 p {
        text-align: center; /* Center the text */
        width: 100%;
    }
}