/* Elora Tech Institute - style.css */

/* 
  🌟 Color Palette & Usage Guide 🌟  
  - Primary: Key actions (buttons, links, important headings)
  - Secondary: Accents (borders, icons, underlines, hover effects)
  - Tertiary: Subtle elements (text, backgrounds, dividers)
  - Background: Dominant space (white/light or dark mode)
*/

/* 🎨 Light Mode */
:root {
  --primary-color: #4169e1;
  --secondary-color: #ffd700;
  --tertiary-color: #a0b7b8;
  --background-color: white;
  --text-color: black;
  --shadow-light: rgba(0, 0, 0, 0.2);
  --p-color1: #555;
  --p-color2: #333;
}

/* 🌙 Dark Mode */
body.dark {
  --primary-color: #668fff;
  --secondary-color: #e6c200;
  --tertiary-color: #b8d1d2;
  --background-color: #121212;
  --text-color: white;
  --shadow-light: rgba(255, 255, 255, 0.2);
  --p-color1: #aaa;
  --p-color2: #ccc;
}

/* ========================================================================= */
/* Global Styles */
* {
  transition: all 0.3s ease;
}

h1 {
  font-family: Georgia, Times, "Times New Roman", serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol";
}

h2,
h3 {
  font-family: "montserrat", "Helvetica", serif;
}

.price,
[class*="price"],
.has-price {
  font-family: "inter";
  font-weight: 800;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: "poppins", sans-serif;
  margin: 0;
  padding: 0;
  text-align: center;
  overflow-x: hidden;
}

/* ========================================================================= */
/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  box-shadow: 2px 5px 15px var(--shadow-light);
  position: sticky;
  top: 0;
  background: var(--background-color);
  z-index: 1000;
  animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(0);
  }
}

nav.hidden {
  transform: translateY(-100%);
}

nav.scrolled {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
  -webkit-backdrop-filter: blur(12px);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-color);
  padding: 10px;
}

#nav-link li a:focus,
.dropdown li a:focus,
.menu-toggle:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

#logo {
  height: 70px;
  width: 70px;
  transition: transform 0.3s ease;
}

#logo img {
  height: 100%;
  width: 100%;
  border-radius: 50%;
}

#logo:hover {
  transform: scale(1.1);
}

#nav-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#nav-link li {
  list-style-type: none;
  padding: 0;
  font-size: 20px;
  font-weight: 700;
}

#nav-link li.nb {
  margin: 20px;
}

#nav-link li a {
  text-decoration: none;
  color: var(--text-color);
  position: relative;
}

#nav-link li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 3px;
  background: var(--secondary-color);
  left: 0;
  bottom: -5px;
  transition: width 0.3s ease;
}

#nav-link li:hover a::after {
  width: 100%;
}

.dropdown-parent.main {
  position: relative;
}

.dropdown li a::after {
  display: none;
}

.dropdown1 {
  position: absolute;
  border-radius: 5px;
  border: 1px solid var(--tertiary-color);
  padding: 8px 0;
  display: none;
  z-index: 1000;
  min-width: 300px;
  height: 500px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  margin: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(12px);
}

#nav-link li:hover .dropdown1,
#nav-link li.active .dropdown1 {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

ul.dropdown {
  padding-inline-start: 0;
}

#nav-link ul.dropdown li {
  font-size: 15px;
  font-weight: 600;
  padding: 10px 20px;
}

.dropdown ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dropdown li {
  padding: 15px 0;
  font-size: 17px;
  font-weight: 300;
  margin: 5px 0;
  text-align: left;
  transition: background 0.3s ease, padding-left 0.2s ease;
}

.dropdown li:hover {
  background: var(--tertiary-color);
}

.dropdown li:hover::before {
  opacity: 0;
  display: none;
}

.dropdown li::before {
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.2s ease;
  display: none;
}

.dropdown li a {
  text-decoration: none;
  color: var(--text-color);
  display: block;
  width: 100%;
  transition: color 0.3s ease;
}

.dropdown li:hover a {
  color: var(--primary-color);
}

.dropdown2 {
  position: absolute;
  left: 98%;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 5px;
  border: 1px solid var(--tertiary-color);
  padding: 8px 0;
  display: none;
  min-width: 280px;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(15px);
  min-height: 500px;
}

.dropdown li:hover .dropdown2,
.dropdown li.active .dropdown2 {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

.dropdown1,
.dropdown2 {
  transition: all 0.3s ease-in-out;
}

.enroll-btn {
  margin: 0 20px;
  display: none;
}

.enroll-btn .btn {
  display: inline-block;
  margin: 0;
}

.btn {
  background-color: var(--primary-color);
  border: none;
  padding: 10px 25px;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-5px);
}

.btn:active {
  transform: scale(0.95);
}

nav .btn {
  margin: 10px 20px 10px 10px;
}

#toggle {
  position: absolute;
  top: 40px;
  right: 10px;
}

#toggle i {
  font-size: 18px;
  transition: transform 0.3s ease;
}

#toggle i:hover {
  color: var(--secondary-color);
  transform: rotate(-80deg);
}

/* Navigation: Mobile Responsiveness */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    margin-right: 25px;
    position: absolute;
    right: 10px;
    top: 20px;
    z-index: 1001;
  }

  #nav-link {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--background-color);
    flex-direction: column;
    padding: 20px 0;
    box-shadow: 2px 5px 15px var(--shadow-light);
    max-height: 80vh;
    overflow-y: auto;
  }

  #nav-link.active {
    display: flex;
  }

  #nav-link li {
    margin: 10px 0;
    width: 100%;
    text-align: left;
    padding: 0 20px;
  }

  .dropdown-parent>a {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .dropdown-parent>a i.fa-chevron-down {
    font-size: 16px;
    margin-left: 10px;
    transition: transform 0.3s ease;
  }

  .dropdown-parent.active>a i.fa-chevron-down {
    transform: rotate(180deg);
  }

  .dropdown1,
  .dropdown2 {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    position: static;
    width: 100%;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.05);
    padding: 0;
  }

  .dropdown-parent.active .dropdown1,
  .dropdown-parent.active .dropdown2 {
    max-height: 1000px;
    /* Increased to accommodate more items */
    padding: 10px 20px;
  }

  .dropdown li {
    padding: 10px 15px;
    font-size: 16px;
  }

  .enroll-btn {
    margin: 20px 0;
    padding: 0 20px;
    display: block;
    text-align: center;
  }

  .enroll-btn .btn {
    display: block;
    width: 80%;
    margin: 0 auto;
  }

  .btn.big {
    margin: 20px auto;
    display: none;
  }

  #toggle {
    top: 43px;
    right: 10px;
  }
}

@media (max-width: 400px) {
  #nav-link li {
    font-size: 16px;
    padding: 8px 15px;
  }

  .dropdown li {
    font-size: 14px;
    padding: 8px 15px;
  }

  #logo {
    height: 50px;
    width: 50px;
  }

  .menu-toggle {
    font-size: 20px;
    padding: 8px;
  }

  .enroll-btn .btn {
    font-size: 16px;
    padding: 8px 20px;
  }

  .dropdown-parent>a i.fa-chevron-down {
    font-size: 14px;
  }
}

/* ========================================================================= */
/* Hero Section */
#hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 30px;
  height: 75vh;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

#hero .hero-text {
  text-align: left;
  margin-left: 70px;
  line-height: 0.8;
  animation: fadeInLeft 1s ease-out;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-150px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

#hero .hero-text h2 {
  font-size: 80px;
  font-weight: 800;
  position: relative;
}

#hero .hero-text h2 span {
  color: var(--tertiary-color);
  display: inline-block;
  animation: bounce 2s infinite;
}

@keyframes bounce {

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

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

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

#hero .hero-text p {
  font-family: "poppins";
  font-size: 25px;
  margin-top: 20px;
  color: var(--text-color);
  animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#hero .hero-text .hero-btn {
  margin-top: 60px;
}

#hero .btn {
  margin-right: 30px;
}

#hero .btn:first-child {
  background-color: var(--background-color);
  border: 3px solid var(--secondary-color);
  color: var(--text-color);
}

#hero .btn:first-child:hover {
  background-color: var(--secondary-color);
}

#hero .hero-img {
  width: 55%;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

#hero .hero-img img {
  width: 100%;
  border-radius: 0 0 50% 50%;
  transition: transform 0.5s ease;
}

#hero .hero-img:hover img {
  transform: scale(1.05);
}

/* ========================================================================= */
/* Why Choose Us Section */
#wcu h2 {
  font-weight: 700;
  font-size: 18px;
  animation: fadeInLeft 1s ease-out;
}

#wcu h2 span {
  color: var(--tertiary-color);
  font-size: 25px;
}

#wcu p {
  font-size: 25px;
  animation: fadeInUp 1.2s ease-out;
}

.wcu-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30%, 1fr));
  gap: 40px;
  padding: 40px 20px;
  text-align: center;
}

.wcu-container .box {
  background: var(--tertiary-color);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px var(--shadow-light);
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease;
  color: #333;
}

.wcu-container .box.show {
  opacity: 1;
  transform: translateY(0);
}

.wcu-container .box:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px var(--shadow-light);
}

.wcu-container .box i {
  font-size: 40px;
  color: var(--primary-color);
  margin-bottom: 5px;
  transition: transform 0.3s ease;
}

.wcu-container .box:hover i {
  transform: scale(1.2);
}

.wcu-container h3 {
  font-size: 18px;
  margin-bottom: 3px;
}

#wcu .wcu-container .box p {
  font-size: 15px;
}

/* ========================================================================= */
/* Featured Courses Section */
#featured-courses h2 {
  font-weight: 700;
  font-size: 18px;
  animation: fadeInLeft 1s ease-out;
}

#featured-courses h2 span {
  color: var(--tertiary-color);
  font-size: 25px;
}

#featured-courses p {
  font-size: 25px;
  animation: fadeInUp 1.2s ease-out;
}

#featured-courses .featured-courses-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  align-items: center;
}

#featured-courses .fcc-item {
  width: calc(30% - 30px);
  box-shadow: 10px 15px 50px var(--shadow-light);
  border-radius: 15px;
  text-align: left;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

#featured-courses .fcc-item:hover {
  transform: translateY(-15px);
  box-shadow: 15px 20px 60px var(--tertiary-color);
}

#featured-courses .fcc-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: top center;
  border-radius: 20px 20px 0 0;
}

#featured-courses .fcc-item .fcc-info {
  margin: 20px 30px;
}

#featured-courses .fcc-item .fcc-info h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

#featured-courses .fcc-item .fcc-info p {
  font-size: 16px;
  color: var(--tertiary-color);
  margin-bottom: 10px;
}

#featured-courses .fcc-item .fcc-info .pd {
  display: flex;
  justify-content: space-between;
  color: var(--p-color2);
  font-size: 18px;
  margin-bottom: 0;
}

#featured-courses .fcc-item .fcc-info .pd p {
  color: var(--p-color2);
  font-weight: 700;
}

#featured-courses .fcc-item .fcc-info .pd i {
  color: var(--primary-color);
  font-size: 20px;
  margin-right: 10px;
}

#featured-courses .fcc-item .fcc-info .sr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--p-color2);
  font-size: 20px;
  margin-bottom: 0;
}

#featured-courses .fcc-item .fcc-info .sr .star i {
  color: var(--secondary-color);
  font-size: 14px;
}

#featured-courses .fcc-item .fcc-info .sr .star p {
  color: #738485;
  font-size: 15px;
  display: inline-block;
  margin-left: 20px;
}

#featured-courses .fcc-item .fcc-info .rmbtn {
  font-weight: 700;
  font-size: 16px;
}

#featured-courses .fcc-item .fcc-info .rmbtn a {
  color: var(--p-color2);
  text-transform: uppercase;
  position: relative;
}

#featured-courses .fcc-item .fcc-info .rmbtn a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  left: 0;
  bottom: -5px;
  transition: width 0.3s ease;
}

#featured-courses .fcc-item .fcc-info .rmbtn a:hover::after {
  width: 100%;
}

#featured-courses .fcc-item .fcc-info .rmbtn a:hover {
  text-decoration: none;
  color: var(--primary-color);
}

#featured-courses .fcc-item .fcc-info .rmbtn a i {
  font-size: 18px;
  margin-left: 20px;
  transition: transform 0.3s ease;
}

#featured-courses .fcc-item .fcc-info .rmbtn a:hover i {
  transform: translateX(10px);
}

/* ========================================================================= */
/* Testimonials Section */
swiper-container {
  width: 100%;
  height: 50vh;
  overflow: hidden;
  position: relative;
  margin: 50px 0;
}

.swiper-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
}

swiper-slide {
  text-align: center;
  font-size: 18px;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

swiper-slide.swiper-slide-active {
  opacity: 1;
  transform: scale(1);
}

.content {
  box-shadow: 10px 15px 50px var(--shadow-light);
  border-radius: 15px;
  width: 40%;
  height: 300px;
  margin: 20px auto;
  padding: 50px 20px;
  position: relative;
  overflow: hidden;
}

.content::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, var(--secondary-color), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
  animation: shine 2s infinite;
}

.content:hover::before {
  opacity: 0.2;
}

@keyframes shine {
  0% {
    transform: translateX(-100%);
  }

  50% {
    transform: translateX(200%);
  }

  100% {
    transform: translateX(-100%);
  }
}

.content img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  transition: transform 0.4s ease;
}

.content:hover img {
  transform: rotate(360deg);
}

.content h3 {
  color: var(--text-color);
  font-size: 25px;
  animation: fadeInUp 0.8s ease-out;
}

.content h3 span {
  color: var(--tertiary-color);
}

.content p {
  font-size: 17px;
  width: 80%;
  line-height: 1.3;
  margin: 0 auto;
  animation: fadeInUp 1s ease-out;
}

.content p i {
  color: var(--primary-color);
  padding: 0 20px;
  transform: scale(1.8);
}

/* Mobile Devices (up to 768px) */
@media (max-width: 768px) {
  /* Hero Section */
  #hero {
    flex-direction: column;
    height: auto;
    margin: 0 15px;
    padding: 20px 0;
  }

  #hero .hero-text {
    margin-left: 0;
    text-align: center;
    line-height: 1;
  }

  #hero .hero-text h2 {
    font-size: 40px;
  }

  #hero .hero-text p {
    font-size: 18px;
    margin-top: 15px;
  }

  #hero .hero-text .hero-btn {
    margin-top: 30px;
  }

  #hero .btn {
    margin-right: 15px;
    padding: 10px 20px;
  }

  #hero .hero-img {
    width: 80%;
    margin-top: 20px;
  }

  #hero .hero-img img {
    border-radius: 0 0 30% 30%;
  }

  /* Why Choose Us Section */
  .wcu-container {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 10px;
  }

  #wcu h2 {
    font-size: 16px;
  }

  #wcu h2 span {
    font-size: 20px;
  }

  #wcu p {
    font-size: 18px;
  }

  .wcu-container .box {
    padding: 15px;
  }

  .wcu-container h3 {
    font-size: 16px;
  }

  .wcu-container .box p {
    font-size: 14px;
  }

  /* Featured Courses Section */
  #featured-courses .featured-courses-container {
    flex-direction: column;
    gap: 20px;
  }

  #featured-courses .fcc-item {
    width: 90%;
  }

  #featured-courses .fcc-item img {
    height: 200px;
  }

  #featured-courses .fcc-item .fcc-info {
    margin: 15px 20px;
  }

  #featured-courses .fcc-item .fcc-info h3 {
    font-size: 18px;
  }

  #featured-courses .fcc-item .fcc-info p {
    font-size: 14px;
  }

  #featured-courses .fcc-item .fcc-info .pd,
  #featured-courses .fcc-item .fcc-info .sr {
    font-size: 16px;
  }

  #featured-courses h2 {
    font-size: 16px;
  }

  #featured-courses h2 span {
    font-size: 20px;
  }

  #featured-courses p {
    font-size: 18px;
  }

  /* Testimonials Section */
  swiper-container {
    height: auto;
    margin: 30px 0;
  }

  .content {
    width: 90%;
    height: auto;
    padding: 30px 15px;
  }

  .content img {
    width: 100px;
    height: 100px;
  }

  .content h3 {
    font-size: 20px;
  }

  .content p {
    font-size: 15px;
    width: 90%;
  }
}

/* Tablet Devices (768px–1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  /* Hero Section */
  #hero {
    height: 60vh;
    margin: 0 20px;
  }

  #hero .hero-text {
    margin-left: 30px;
  }

  #hero .hero-text h2 {
    font-size: 60px;
  }

  #hero .hero-text p {
    font-size: 20px;
  }

  #hero .hero-text .hero-btn {
    margin-top: 40px;
  }

  #hero .hero-img {
    width: 50%;
  }

  /* Why Choose Us Section */
  .wcu-container {
    grid-template-columns: repeat(auto-fit, minmax(45%, 1fr));
    gap: 30px;
    padding: 30px 15px;
  }

  #wcu h2 {
    font-size: 17px;
  }

  #wcu h2 span {
    font-size: 22px;
  }

  #wcu p {
    font-size: 22px;
  }

  /* Featured Courses Section */
  #featured-courses .featured-courses-container {
    flex-wrap: wrap;
  }

  #featured-courses .fcc-item {
    width: calc(45% - 30px);
  }

  #featured-courses .fcc-item img {
    height: 220px;
  }

  /* Testimonials Section */
  .content {
    width: 60%;
    padding: 40px 20px;
  }

  .content img {
    width: 120px;
    height: 120px;
  }

  .content h3 {
    font-size: 22px;
  }

  .content p {
    font-size: 16px;
  }
}

/* Large Desktop (above 1024px) */
@media (min-width: 1025px) {
  /* Hero Section */
  #hero {
    margin: 0 50px;
  }

  #hero .hero-text h2 {
    font-size: 80px;
  }

  #hero .hero-text p {
    font-size: 25px;
  }

  #hero .hero-img {
    width: 55%;
  }

  /* Why Choose Us Section */
  .wcu-container {
    grid-template-columns: repeat(auto-fit, minmax(30%, 1fr));
  }

  /* Featured Courses Section */
  #featured-courses .fcc-item {
    width: calc(30% - 30px);
  }

  /* Testimonials Section */
  .content {
    width: 40%;
  }
}

/* ========================================================================= */
/* CTA Section */
#cta {
  position: relative;
  padding: 100px 20px;
  text-align: center;
  background: url("../images/DALL·E\ \ a\ young\ woman\ with\ glasses\ working\ on\ a\ laptop.webp") no-repeat center/cover;
  overflow: hidden;
  margin: 50px 0 0;
}

#cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  z-index: 1;
}

#cta h2,
#cta p,
#cta .btn {
  position: relative;
  z-index: 2;
}

#cta h2 {
  font-size: 40px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  animation: fadeInDown 1s ease-out;
}

#cta h2 span {
  color: var(--secondary-color);
  display: inline-block;
  transition: transform 0.3s ease;
}

#cta:hover h2 span {
  transform: scale(1.1);
}

#cta p {
  font-family: "poppins", sans-serif;
  font-size: 22px;
  color: var(--tertiary-color);
  margin-bottom: 30px;
  animation: fadeInUp 1.2s ease-out;
}

#cta .btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#cta .btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

#cta .btn:hover::before {
  width: 400px;
  height: 400px;
}

#cta .btn:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

#cta .btn:active {
  transform: scale(0.95);
}

/* CTA: Responsive Adjustments */
@media (max-width: 768px) {
  #cta h2 {
    font-size: 30px;
  }

  #cta p {
    font-size: 18px;
  }

  #cta .btn {
    padding: 12px 30px;
    font-size: 18px;
  }
}

/* ========================================================================= */
/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--tertiary-color);
  position: relative;
  overflow: hidden;
  padding-bottom: 5px;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  z-index: 0;
  pointer-events: none;
}

footer .info {
  display: flex;
  justify-content: space-between;
  padding: 30px 30px 10px;
  text-align: left;
  animation: fadeInUp 1s ease-out;
}

.info .about {
  flex-basis: 40%;
}

.info .about h2 {
  color: #fff;
  font-size: 25px;
  margin-bottom: 10px;
  position: relative;
}

.info .about h2::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 2px;
  background: var(--secondary-color);
  bottom: -5px;
  left: 0;
  transition: width 0.3s ease;
}

.info .about:hover h2::after {
  width: 100%;
}

.info .about p {
  color: #ddd;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.info .about .sm {
  display: flex;
  padding: 0;
  margin-top: 20px;
}

.info .about .sm li {
  list-style: none;
  margin: 0 15px;
  background-color: #333;
  padding: 10px;
  border-radius: 50%;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

footer .info .about .sm li:hover {
  transform: scale(1.2) rotate(10deg);
  background-color: var(--secondary-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.info .about .sm li:first-child {
  margin-left: 0;
}

.info .about .sm a {
  color: #fff;
  text-decoration: none;
}

.info .about .sm a i {
  font-size: 30px;
  transition: color 0.3s ease;
}

.info .about .sm li:hover a i {
  color: var(--primary-color);
}

.info .quick-links {
  flex-basis: 25%;
}

.info .quick-links h2 {
  color: #fff;
  font-size: 20px;
  font-family: "montserrat", "Helvetica", serif;
  margin-bottom: 15px;
  position: relative;
}

.info .quick-links h2::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 2px;
  background: var(--secondary-color);
  bottom: -5px;
  left: 0;
  transition: width 0.3s ease;
}

.info .quick-links:hover h2::after {
  width: 100%;
}

.info .quick-links ul {
  list-style: none;
  padding: 0;
}

.info .quick-links ul li {
  margin: 10px 0;
}

.info .quick-links ul li a {
  color: #ddd;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  font-family: "poppins", sans-serif;
  position: relative;
  transition: color 0.3s ease;
}

.info .quick-links ul li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  background: var(--secondary-color);
  bottom: -3px;
  left: 0;
  transition: width 0.3s ease;
}

.info .quick-links ul li:hover a {
  color: var(--secondary-color);
}

.info .quick-links ul li:hover a::after {
  width: 100%;
}

.info .apply {
  flex-basis: 30%;
}

.info .apply h2 {
  color: #fff;
  font-size: 20px;
  font-family: "montserrat", "Helvetica", serif;
  margin-bottom: 15px;
  position: relative;
}

.info .apply h2::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 2px;
  background: var(--secondary-color);
  bottom: -5px;
  left: 0;
  transition: width 0.3s ease;
}

.info .apply:hover h2::after {
  width: 100%;
}

.info .apply ol {
  list-style-position: inside;
  padding: 0;
  color: #ddd;
  font-family: "poppins", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}

.info .apply ol li {
  margin: 8px 0;
  transition: transform 0.3s ease, color 0.3s ease;
}

.info .apply ol li:hover {
  transform: translateX(10px);
  color: var(--secondary-color);
}

.info .apply .apply-button {
  display: inline-block;
  background-color: var(--secondary-color);
  color: #333;
  padding: 12px 25px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  border-radius: 20px;
  margin-top: 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info .apply .apply-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.info .apply .apply-button:hover::before {
  width: 300px;
  height: 300px;
}

.info .apply .apply-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.info .apply .apply-button:active {
  transform: scale(0.95);
}

footer hr {
  border: none;
  height: 1px;
  background: var(--tertiary-color);
  opacity: 0.5;
  margin: 20px 30px;
}

#copyright {
  text-align: center;
  font-size: 15px;
  color: #ddd;
  margin: 10px 0;
}

#designer {
  text-align: center;
  font-size: 10px;
  color: var(--tertiary-color);
  margin: 10px 0;
}

#designer a {
  color: var(--secondary-color);
  text-decoration: none;
  position: relative;
}

#designer a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  background: var(--tertiary-color);
  bottom: -3px;
  left: 0;
  transition: width 0.3s ease;
}

#designer a:hover::after {
  width: 100%;
}

/* Footer: Responsive Adjustments */
@media (max-width: 768px) {
  footer .info {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .info .about,
  .info .quick-links,
  .info .apply {
    flex-basis: 100%;
    margin-bottom: 30px;
  }

  .info .about .sm {
    justify-content: center;
  }

  .info .quick-links ul,
  .info .apply ol {
    text-align: center;
  }
}

/* ========================================================================= */
/* WhatsApp Bubble */
.whatsapp-bubble {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 1000;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }

  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp-bubble:hover {
  background-color: #20bd57;
  transform: scale(1.1);
}

.whatsapp-bubble img {
  width: 40px;
  height: 40px;
}

/* ========================================================================= */
/* Page-Specific Styles */



/* Web Development Page */
#web-dev {
  margin: 0 13%;
  text-align: left;
}

#web-dev h1 {
  font-size: 40px;
  margin-bottom: 30px;
}

#web-dev h2 {
  font-size: 20px;
  margin-bottom: 15px;
}

#web-dev p {
  font-size: 16px;
}

#web-dev .webdev-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.course-item {
  margin-bottom: 50px;
}

.course-item a {
  text-decoration: none;
}

.course-item img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  object-position: top center;
}

.course-item .courseitem-info {
  margin: 0;
  color: var(--text-color);
}

.course-item .courseitem-info h3 {
  font-size: 16px;
  font-weight: 700;
}

.course-item .courseitem-info p {
  font-size: 14px;
  margin: 0;
  margin-bottom: 0;
}

.course-item .courseitem-info .pd {
  display: flex;
  justify-content: space-between;
  color: var(--p-color2);
  font-size: 12px;
  margin-bottom: 0;
  margin-top: 10px;
}

.course-item .courseitem-info .pd p {
  color: var(--p-color2);
  font-weight: 600;
  margin-bottom: 5px;
}

.course-item .courseitem-info .pd i {
  color: var(--primary-color);
  font-size: 15px;
  margin-right: 5px;
}

.course-item .courseitem-info .sr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--p-color2);
  font-size: 20px;
  margin-bottom: 0;
}

.course-item .courseitem-info .sr .star i {
  color: var(--secondary-color);
  font-size: 14px;
}

.course-item .courseitem-info .sr .star p {
  color: #738485;
  font-size: 15px;
  display: inline-block;
  margin-left: 20px;
}

.all-courses .filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.all-courses .filter-header i {
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
}

.all-courses .filter-header .search-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid var(--tertiary-color);
  border-radius: 5px;
  padding: 5px;
}

.all-courses .filter-header .search-wrapper #searchInput {
  border: none;
  outline: none;
  padding: 5px;
  font-size: 1rem;
  background: transparent;
  color: var(--text-color);
  width: 200px;
}

.all-courses .faacl {
  display: flex;
  gap: 20px;
}

.all-courses .faacl .filter-all {
  padding: 10px;
  display: block;
}

.all-courses .faacl .filter-all.hidden {
  display: none;
}

.all-courses .faacl .filter-all #filterButtons {
  list-style: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.all-courses .faacl .filter-all #filterButtons li {
  list-style: none;
  text-align: left;
  cursor: pointer;
}

.all-courses .faacl .filter-all #filterButtons li h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 5px;
  display: flex;
  justify-content: space-between;
}

.all-courses .faacl .filter-all #filterButtons>li {
  position: relative;
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid var(--tertiary-color);
}

.all-courses .faacl .filter-all #filterButtons>li:hover {
  transform: scale(1.05);
}

.all-courses .faacl .filter-all #filterButtons .filter-sub {
  left: 100%;
  top: 0;
  list-style: none;
  padding: 10px;
  margin: 0;
  border-radius: 5px;
  min-width: 150px;
  padding-inline-start: 0;
}

.all-courses .faacl .filter-all #filterButtons .filter-sub li {
  cursor: pointer;
  display: flex;
  align-items: center;
}

.all-courses .faacl .filter-all #filterButtons .filter-sub li label {
  cursor: pointer;
  font-size: 14px;
  padding-left: 5px;
}

.collapsible .more {
  display: block;
  text-align: center;
}

.all-courses .faacl .allcourse-list {
  width: 75%;
}

.all-courses .faacl .allcourse-list .allcourse-item {
  display: flex;
  text-decoration: none;
  padding: 10px;
  color: var(--text-color);
  gap: 20px;
  width: 98%;
}

.all-courses .faacl .allcourse-list .allcourse-item:hover {
  transform: translateY(-5px);
}

.all-courses .faacl .allcourse-list .allcourse-item .image {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  overflow: hidden;
  border-radius: 5px;
}

.all-courses .faacl .allcourse-list .allcourse-item .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.all-courses .faacl .allcourse-list .allcourse-item .details {
  padding-left: 10px;
  text-align: left;
  width: 80%;
}

.all-courses .faacl .allcourse-list .allcourse-item .details h2 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--primary-color);
}

.all-courses .faacl .allcourse-list .allcourse-item .details h3 {
  margin: 5px 0;
  font-size: 1rem;
}

.all-courses .faacl .allcourse-list .allcourse-item .details p {
  margin: 5px 0;
  font-size: 0.9rem;
  color: var(--tertiary-color);
}

.all-courses .faacl .allcourse-list .allcourse-item .details p i {
  font-size: 5px;
  vertical-align: middle;
}

/* Full-Stack Web Development Mastery Page */
#full-stack-mastery .hero {
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    url(../images/webdev.jpeg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  height: 60vh;
  color: #f8f8f8;
  padding-top: 8%;
  text-align: center;
}

.grid-lines.global {
  display: flex;
  mix-blend-mode: soft-light;
}

.grid-lines {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  box-sizing: border-box;
  user-select: none;
  pointer-events: none;
  transition: all 0.8s ease-out;
}

.grid-lines.gray .line-25,
.grid-lines.grey .line-50 {
  border-color: var(--tertiary-color);
}

.line-25 {
  width: 20vw;
  border-right: 1px solid rgba(255, 255, 255, 0.9);
}

.line-25:last-child {
  border-right: none;
}

.line-50 {
  width: 60vw;
  border-right: 1px solid rgba(255, 255, 255, 0.9);
}

#full-stack-mastery .hero h1 {
  padding: 2%;
  width: 80%;
  margin: 0 auto;
  font-size: 70px;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
}

#full-stack-mastery .hero h2 {
  width: 80%;
  padding-bottom: 10px;
  margin: 0 auto;
  font-size: 45px;
}

#full-stack-mastery .hero p {
  width: 60%;
  margin: 20px auto;
  font-size: 20px;
  line-height: 1.8;
}

#full-stack-mastery #content {
  display: flex;
  justify-content: space-between;
}

aside {
  max-width: 360px;
  margin: 0 0 30px;
  padding: 10px 20px 25px;
  background: var(--background-color);
  border-radius: 12px;
  box-shadow: 0 4px 15px var(--shadow-light);
  text-align: left;
  position: sticky;
  top: 20px;
  animation: fadeInUp 0.8s ease-out;
}

aside .feedback h2 {
  font-size: 16.5px;
  font-weight: 1000;
}

aside .feedback .score {
  display: inline-block;
  margin: 0 10px;
}

aside .feedback .top-rated {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--background-color);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

aside #course-over h2 {
  font-size: 19px;
  font-weight: 1000;
  margin-bottom: 5px;
  color: var(--p-color2);
}

aside #course-over p {
  font-size: 15px;
  margin-bottom: 5px;
  color: var(--p-color1);
}

aside #course-over .language-options {
  font-size: 15px;
  margin-bottom: 5px;
  color: var(--p-color2);
}

aside .instructors h2 {
  font-size: 19px;
  font-weight: 1000;
  margin-bottom: 5px;
  color: var(--p-color2);
}

.enrollment,
.instructors {
  font-size: 15px;
  color: var(--p-color1);
  margin: 5px 0;
}

aside .last-update {
  font-size: 16px;
  font-weight: 800;
}

.cost {
  margin-top: 20px;
}

.pricing-info {
  margin-bottom: 15px;
}

.current-cost {
  font-family: "inter", sans-serif;
  font-weight: 800;
  font-size: 24px;
  color: var(--primary-color);
}

.initial-cost {
  font-family: "inter", sans-serif;
  font-weight: 600;
  font-size: 16px;
  text-decoration: line-through;
  color: rgb(158, 0, 0);
}

.savings {
  font-family: "inter", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #28a745;
}

.deal-timer {
  font-size: 16px;
  color: #dc3545;
  font-weight: 600;
  margin: 5px 0;
}

.refund-policy {
  font-size: 14px;
  color: var(--tertiary-color);
  margin: 10px 0 20px;
}

#coursedes {
  text-align: left;
  margin-left: 10%;
}

.course-features,
.feedback,
.learning-goals,
.corporate-trust,
.practice-tasks,
.group-training,
.course-outline {
  margin: 40px 0;
  animation: fadeInUp 1s ease-out;
}

#coursedes h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
  position: relative;
}

#coursedes h2::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 2px;
  background: var(--secondary-color);
  bottom: -5px;
  left: 0;
  transition: width 0.3s ease;
}

.course-features:hover h2::after,
.learning-goals:hover h2::after,
.corporate-trust:hover h2::after,
.practice-tasks:hover h2::after,
.group-training:hover h2::after,
.course-outline:hover h2::after {
  width: 100px;
}

#coursedes ul {
  list-style: none;
  padding: 0;
}

#coursedes ul li {
  font-size: 16px;
  padding: 10px 0;
  position: relative;
  padding-left: 25px;
  color: var(--text-color);
}

#coursedes ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
}

#coursedes .practice-tasks p {
  font-size: 16px;
  color: var(--p-color2);
  margin-bottom: 20px;
}

#coursedes .practice-tasks img {
  width: 100%;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 4px 15px var(--shadow-light);
  transition: transform 0.4s ease;
}

#coursedes body.dark .practice-tasks img {
  box-shadow: 0 4px 15px var(--shadow-light);
}

#coursedes .practice-tasks img:hover {
  transform: scale(1.05);
}

#coursedes .group-training p {
  font-size: 16px;
  color: var(--p-color2);
  margin-bottom: 20px;
}

#coursedes .course-outline p {
  font-size: 16px;
  color: var(--p-color2);
}

/* Full-Stack Mastery: Responsive Design */
@media (max-width: 768px) {

  aside,
  #coursedes {
    max-width: 100%;
    padding: 15px;
  }

  h2 {
    font-size: 20px;
  }

  ul li {
    font-size: 14px;
  }

  .company-icons {
    flex-direction: column;
    align-items: center;
  }

  .discount-code input {
    width: 60%;
  }

  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}



/* Success Page */
.success-container {
  text-align: center;
  padding: 50px;
  background: var(--background-color);
  border-radius: 12px;
  box-shadow: 0 4px 15px var(--shadow-light);
  margin: 50px auto;
  max-width: 600px;
}



/*----------------- Blog & Updates Page------------------------- */
#blog-page {
  margin: 0 30px;
  padding-top: 20px;
}

#blog-page .content-section {
  padding: 50px 0;
  animation: fadeInUp 1s ease-out;
}

#blog-page h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  animation: fadeInLeft 1s ease-out;
}

#blog-page h2 span {
  color: var(--tertiary-color);
  font-size: 25px;
}

#blog-page h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--primary-color);
}

#blog-page p {
  font-size: 16px;
  color: var(--p-color2);
  line-height: 1.6;
  animation: fadeInUp 1.2s ease-out;
}

/* Hero Section */
#blog-page #blog-hero {
  height: 60vh;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../images/blog-hero.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  border-radius: 15px;
  overflow: hidden;
}

#blog-hero .hero-text {
  color: #fff;
  animation: fadeInDown 1s ease-out;
}

#blog-hero h1 {
  font-size: 60px;
  margin-bottom: 10px;
}

#blog-hero p {
  font-size: 24px;
  margin-bottom: 20px;
}

#blog-hero .btn {
  padding: 12px 30px;
  font-size: 18px;
}

/* Blog Posts */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin: 30px 0;
}

.blog-card {
  background: var(--background-color);
  border-radius: 12px;
  box-shadow: 0 4px 15px var(--shadow-light);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-10px);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-content {
  padding: 20px;
}

.blog-content .meta {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--tertiary-color);
  margin-bottom: 10px;
}

.blog-content .meta i {
  margin-right: 5px;
}

.blog-content p {
  font-size: 14px;
  margin-bottom: 20px;
}

.blog-content .btn {
  padding: 10px 20px;
  font-size: 16px;
}

/* CTA */
#blog-page .cta {
  padding: 100px 20px;
  background: url('../images/cta-bg.jpg') no-repeat center/cover;
  position: relative;
  border-radius: 15px;
  margin: 50px 0;
  text-align: center;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  z-index: 1;
}

.cta h2, .cta p, .cta form {
  position: relative;
  z-index: 2;
  color: #fff;
}

.cta h2 {
  font-size: 40px;
  margin-bottom: 20px;
}

.cta p {
  font-size: 22px;
  margin-bottom: 30px;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  width: 70%;
  padding: 12px 15px;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  color: var(--text-color);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--tertiary-color);
  border-radius: 8px;
  outline: none;
}

.newsletter-form input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 5px rgba(65, 105, 225, 0.5);
}

.newsletter-form .btn {
  padding: 12px 30px;
  font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
  #blog-hero {
    height: 50vh;
  }
  #blog-hero h1 {
    font-size: 40px;
  }
  #blog-hero p {
    font-size: 18px;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .cta h2 {
    font-size: 30px;
  }
  .cta p {
    font-size: 18px;
  }
  .newsletter-form {
    flex-direction: column;
    align-items: center;
  }
  .newsletter-form input {
    width: 100%;
  }
}