/*
Theme Name: Pombal Cursos
Description: Landing page theme for educational courses
Author: Francis Bernard
Version: 1.0
*/

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

:root {
  --primary: #001e47;
  --secondary: #ffbb23;
  --dark: #262729;
  --accent: #1d3a83;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --text-dark: #333333;
  --text-light: #666666;
  --primary-rgb: 0, 30, 71;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  overflow-x: hidden;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-left {
  opacity: 0;
  animation: fadeInLeft 0.8s ease-out forwards;
}

.fade-in-right {
  opacity: 0;
  animation: fadeInRight 0.8s ease-out forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}
.delay-2 {
  animation-delay: 0.4s;
}
.delay-3 {
  animation-delay: 0.6s;
}
.delay-4 {
  animation-delay: 0.8s;
}

/* Header */
.header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 30, 71, 0.1);
  backdrop-filter: blur(10px);
  background-color: var(--primary);
  min-height: 70px;
  display: flex;
  align-items: center;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  gap: 1rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  min-width: 0;
}

.custom-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.custom-logo-link img {
  width: 9.375rem;
  height: 3rem;
  object-fit: contain;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.cta-button {
  background: var(--secondary);
  color: var(--primary);
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 187, 35, 0.3);
  white-space: nowrap;
  flex-shrink: 0;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 187, 35, 0.4);
  animation: pulse 1s infinite;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1002;
  position: relative;
}

.mobile-close {
  display: none !important; /* Hide by default on all screens */
}

.nav-links {
  transition: transform 0.3s ease-in-out;
}

@media (max-width: 768px) {
  .nav {
    padding: 0 1rem;
    gap: 1rem;
  }

  .custom-logo-link img {
    width: 6rem;
    height: 2rem;
    object-fit: contain;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    height: calc(100vh - 70px);
    background: var(--primary);
    flex-direction: column;
    padding: 2rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 1001;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links li {
    margin: 0.5rem 0;
    width: 100%;
  }

  .nav-links a {
    padding: 1rem;
    display: block;
    width: 100%;
    font-size: 0.9rem;
  }

  .mobile-menu {
    display: block;
  }

  .cta-button {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    border-radius: 25px;
  }

  .mobile-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
    z-index: 1002;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: none !important; /* Hide by default even on mobile */
  }

  .nav-links.active .mobile-close {
    display: flex !important; /* Only show when mobile menu is open */
  }

  .mobile-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--secondary);
    transform: scale(1.1);
  }
}

/* Dropdown Menu Styles */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 280px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  z-index: 1001;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.dropdown.active .dropdown-content {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-links .dropdown-content .dropdown-item {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--dark);
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background: var(--light-gray);
  color: var(--primary);
  transform: translateX(5px);
}

.dropdown-item i {
  color: var(--secondary);
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.dropdown-arrow {
  margin-left: 0.3rem;
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

/* Mobile dropdown adjustments */
@media (max-width: 768px) {
  .nav-links.active .mobile-close {
    display: flex !important; /* Only show when mobile menu is open */
  }

  .dropdown-content {
    position: static;
    display: block;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    margin: 0.5rem 0 0 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0;
    width: calc(100% - 2rem);
    pointer-events: none; /* Prevent interaction when closed */
  }

  .dropdown.active .dropdown-content {
    max-height: 500px;
    padding: 0.5rem 0;
    pointer-events: auto; /* Enable interaction when open */
  }

  .dropdown-item {
    color: rgba(255, 255, 255, 0.9) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.5rem;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
  }

  .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--secondary) !important;
  }

  /* Ensure dropdown button remains clickable */
  .dropdown > a {
    position: relative;
    z-index: 1000;
    display: block;
    padding: 0.75rem 1rem;
    touch-action: manipulation;
  }

  .dropdown-arrow {
    transition: transform 0.3s ease;
  }

  .dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
  }
}

/* Hero Section */
.hero {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--accent) 50%,
    var(--primary) 100%
  );
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("/images/hero-bg.jpg") center/cover;
  opacity: 0.1;
  z-index: 1;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
  margin-top: 80px;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.hero-text h1 {
  font-size: 3.5rem;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-text .highlight {
  color: var(--secondary);
  position: relative;
}

.hero-text .highlight::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
}

.hero-text p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--secondary);
  color: var(--primary);
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 187, 35, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  padding: 1rem 2.5rem;
  border: 2px solid var(--white);
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(255, 187, 35, 0.4);
}

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

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: float 6s ease-in-out infinite;
}

/* Mobile Hero fixes */
@media (max-width: 768px) {
  .hero {
    overflow: hidden; /* Prevent any content from spilling out */
  }
  
  .hero-content {
    overflow: hidden; /* Prevent content overflow */
  }
  
  .hero-text h1 {
    word-wrap: break-word; /* Handle long words */
    overflow-wrap: break-word;
  }
}

/* Features Section */
.features {
  padding: 6rem 0;
  background: var(--light-gray);
  position: relative;
  z-index: 1; /* Reduced z-index to prevent overlap with hero */
}

/* Mobile fixes for features section */
@media (max-width: 768px) {
  .features {
    padding: 4rem 0;
    margin-top: 0;
  }
}

@media (max-width: 480px) {
  .features {
    padding: 3rem 0;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-title p {
  font-size: 1.1rem;
  color: var(--dark);
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 187, 35, 0.1),
    transparent
  );
  transition: left 0.6s ease;
}

.feature-card:hover::before {
  left: 100%;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  font-size: 3rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
  display: inline-block;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--dark);
  opacity: 0.8;
  line-height: 1.6;
}

/* Courses Section */
.courses {
  padding: 6rem 0;
  background: var(--white);
  position: relative;
  z-index: 10;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.course-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.course-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.course-card:hover::before {
  transform: scaleX(1);
}

.course-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.course-icon {
  padding: 2rem;
  text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.course-icon i {
  font-size: 2.5rem;
  color: var(--secondary);
  animation: float 4s ease-in-out infinite;
}

.course-content {
  padding: 2rem;
}

.course-content h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.course-content p {
  color: var(--dark);
  opacity: 0.8;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.course-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.course-link:hover {
  color: var(--secondary);
  transform: translateX(5px);
}

/* Stats Section */
.stats {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  position: relative;
  overflow: hidden;
  z-index: 10;
}

.stats::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("/images/stats-bg.jpg") center/cover;
  opacity: 0.1;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  position: relative;
  z-index: 2;
}

.stat-item {
  text-align: center;
  color: var(--white);
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  color: var(--secondary);
  margin-bottom: 0.5rem;
  counter-reset: num;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Testimonials Section */
.testimonials {
  padding: 6rem 0;
  background: var(--light-gray);
  position: relative;
  z-index: 10;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: all 0.3s ease;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 2rem;
  font-size: 4rem;
  color: var(--secondary);
  font-family: serif;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.testimonial-text {
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: bold;
}

.author-info h4 {
  color: var(--primary);
  margin-bottom: 0.2rem;
}

.author-info span {
  color: var(--dark);
  opacity: 0.7;
  font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 10;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("/images/cta-bg.jpg") center/cover;
  opacity: 0.1;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 4rem 0 2rem;
  position: relative;
  z-index: 10;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--secondary);
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  line-height: 1.8;
}

.footer-section a:hover {
  color: var(--secondary);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* Course Archive Page Styles */
.courses-archive .archive-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.archive-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.archive-hero-content > p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.course-filter {
    margin-top: 2rem;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.filter-btn:hover,
.filter-btn.active {
    background: white;
    color: var(--primary);
    border-color: white;
}

.courses-grid-section {
    padding: 80px 0;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.course-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.course-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.course-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.course-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.course-category span {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.course-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.course-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.course-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.course-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.course-meta-item i {
    color: var(--accent);
}

.course-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.course-link:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.no-courses {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
}

.no-courses-content {
    max-width: 400px;
    margin: 0 auto;
}

.no-courses-content i {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.no-courses-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.no-courses-content p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.pagination ul {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
}

.pagination li {
    margin: 0;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 8px;
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
    min-width: 45px;
}

.pagination .current {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination .prev,
.pagination .next {
    min-width: auto;
}

/* Course Search Form */
.course-search {
    margin: 2rem 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.search-form {
    width: 100%;
}

.search-input-group {
    display: flex;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    font-size: 1rem;
    outline: none;
    background: white;
}

.search-input::placeholder {
    color: var(--text-light);
}

.search-button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button:hover {
    background: var(--primary);
}

.search-button i {
    font-size: 1rem;
}

/* How It Works Section */
.how-it-works {
    padding: 80px 0;
    background: #f8f9fa;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.step-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 2;
}

.step-content h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.step-content p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Connect steps with lines on desktop */
@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(4, 1fr);
        position: relative;
    }
}

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .step-card {
        padding: 1.5rem;
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    min-height: calc(100vh - 70px); /* Account for fixed header */
    padding-top: 70px; /* Extra padding for header */
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    margin-top: 0; /* Remove margin-top since we added padding-top to hero */
    padding-top: 2rem;
    padding-bottom: 4rem;
    min-height: calc(100vh - 140px); /* Account for header and hero padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero-text h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
  }

  .hero-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
  }

  .hero-buttons {
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .hero-image {
    order: -1;
    margin-bottom: 1rem;
  }

  .hero-image img {
    max-width: 85%;
    height: auto;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .features-grid,
  .courses-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .archive-hero {
        padding: 100px 0 60px !important;
    }
    
    .archive-hero-content h1 {
        font-size: 2rem;
    }
    
    .filter-buttons {
        gap: 0.5rem;
        max-width: 100%;
    }
    
    .filter-btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.8rem;
        border-radius: 20px;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .course-card {
        padding: 1.5rem;
    }
    
    .course-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .course-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .pagination a,
    .pagination span {
        padding: 0.5rem 0.75rem;
        min-width: 35px;
    }
}

@media (max-width: 480px) {
  .nav {
    padding: 0 0.8rem;
    gap: 0.8rem;
  }

  .custom-logo-link img {
    width: 5rem;
    height: 1.8rem;
    object-fit: contain;
  }

  .cta-button {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    border-radius: 20px;
  }

  .hero {
    min-height: calc(100vh - 60px); /* Account for fixed header */
    padding-top: 60px; /* Extra padding for header */
  }

  .hero-content {
    padding: 0 1rem;
    gap: 1.5rem;
    margin-top: 0; /* Remove margin-top since we added padding-top to hero */
    padding-top: 1rem;
    padding-bottom: 2rem;
    min-height: calc(100vh - 120px); /* Account for header and hero padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero-text h1 {
    font-size: 1.9rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .hero-text p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }

  .hero-image img {
    max-width: 80%;
    height: auto;
    max-height: 300px; /* Prevent image from being too tall */
    object-fit: cover;
  }

  .container {
    padding: 0 1rem;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }

  .section-title p {
    font-size: 1rem;
  }

  .feature-card,
  .course-card,
  .testimonial-card {
    padding: 1.5rem;
    margin: 0 0.5rem;
  }

  .nav-links {
    padding: 1rem;
    top: 60px;
    height: calc(100vh - 60px);
  }

  .nav-links li {
    margin: 0.3rem 0;
  }

  .nav-links a {
    padding: 0.8rem;
    font-size: 0.9rem;
  }

  .dropdown-content {
    margin: 0.3rem 0 0 0.5rem;
    width: calc(100% - 1rem);
  }

  .dropdown-item {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  .cta-content p {
    font-size: 1rem;
  }

  .footer-content {
    gap: 2rem;
  }

  .footer-section {
    text-align: center;
  }
}

/* Extra small devices (iPhone 13 mini and similar) */
@media (max-width: 390px) {
  .nav {
    padding: 0 0.5rem;
    gap: 0.5rem;
  }

  .custom-logo-link img {
    width: 4.5rem;
    height: 1.6rem;
    object-fit: contain;
  }

  .cta-button {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    border-radius: 18px;
  }

  .hero-content {
    margin-top: 55px;
    padding-top: 1rem;
    min-height: calc(100vh - 55px);
  }

  .hero-text h1 {
    font-size: 1.7rem;
    line-height: 1.1;
  }

  .hero-text p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .section-title h2 {
    font-size: 1.6rem;
  }

  .nav-links {
    top: 55px;
    height: calc(100vh - 55px);
  }

  .btn-primary,
  .btn-secondary {
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
  }

  .feature-card,
  .course-card,
  .testimonial-card {
    padding: 1.2rem;
  }

  .feature-icon {
    font-size: 2.5rem;
  }

  .course-icon i {
    font-size: 2rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .cta-content h2 {
    font-size: 1.8rem;
  }
}

/* Single Course Page Styles */

.course-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.course-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("/images/hero-bg.jpg") center/cover;
  opacity: 0.1;
  z-index: 1;
}

.course-hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.course-breadcrumb {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.course-breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.course-breadcrumb a:hover {
  color: var(--secondary);
}

.course-breadcrumb .separator {
  margin: 0 0.5rem;
}

.course-category {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.course-hero-text h1 {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.course-excerpt {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.course-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

.course-meta-item i {
  color: var(--secondary);
  font-size: 1rem;
}

.course-hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.course-featured-image {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: float 6s ease-in-out infinite;
}

.course-icon-large {
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  animation: float 6s ease-in-out infinite;
}

.course-icon-large i {
  font-size: 4rem;
  color: var(--secondary);
}

/* Course Content Section */
.course-content-section {
  padding: 4rem 0;
  background: var(--white);
}

.course-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.course-main-content {
  background: var(--white);
}

.course-section {
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--white);
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.course-section h2 {
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--secondary);
}

.course-description {
  line-height: 1.8;
  color: var(--dark);
}

.course-description p {
  margin-bottom: 1rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem;
  background: var(--light-gray);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.benefit-item:hover {
  background: rgba(255, 187, 35, 0.1);
  transform: translateX(5px);
}

.benefit-item i {
  color: var(--secondary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.course-requirements ul {
  list-style: none;
  padding: 0;
}

.course-requirements li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.course-requirements li:last-child {
  border-bottom: none;
}

.course-requirements i {
  color: var(--secondary);
  font-size: 1.1rem;
}

/* Course Sidebar */
.course-sidebar {
  position: relative;
}

.course-card-sticky {
  position: sticky;
  top: 100px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

.course-price {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 15px;
  color: var(--white);
}

.price-label {
  display: block;
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.price-value {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.price-note {
  font-size: 0.8rem;
  opacity: 0.7;
}

.course-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn-enroll {
  width: 100%;
  justify-content: center;
  font-size: 1.1rem;
  padding: 1rem;
}

.btn-info {
  width: 100%;
  justify-content: center;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-info:hover {
  background: var(--primary);
  color: var(--white);
}

.course-features {
  margin-bottom: 2rem;
}

.course-features h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.course-features ul {
  list-style: none;
  padding: 0;
}

.course-features li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.5rem 0;
  font-size: 0.9rem;
}

.course-features i {
  color: var(--secondary);
  font-size: 1rem;
  width: 16px;
}

.course-contact {
  background: var(--light-gray);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
}

.course-contact h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.course-contact p {
  color: var(--dark);
  opacity: 0.8;
  margin-bottom: 1rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.contact-item:hover {
  color: var(--secondary);
}

.contact-item i {
  font-size: 1rem;
}

.contact-hours {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(var(--primary-rgb), 0.05);
    border-radius: 8px;
    margin-top: 0.5rem;
}

.contact-hours i {
    color: var(--accent);
    font-size: 0.9rem;
}

.contact-hours span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Related Courses */
.related-courses {
  padding: 4rem 0;
  background: var(--light-gray);
}

/* 404 Error Page Styles */
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.error-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  padding: 8rem 0 4rem;
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.error-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("/images/hero-bg.jpg") center/cover;
  opacity: 0.1;
  z-index: 1;
}

.error-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.error-illustration {
  text-align: center;
  position: relative;
}

.error-number {
  font-size: 8rem;
  font-weight: 900;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: 1rem;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  animation: float 6s ease-in-out infinite;
}

.error-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: var(--white);
  opacity: 0.8;
  animation: pulse 2s infinite;
}

.error-text {
  color: var(--white);
}

.error-text h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.error-text p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.6;
}

.error-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.error-search {
  padding: 4rem 0;
  background: var(--light-gray);
}

.search-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.search-content h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.error-courses {
  padding: 4rem 0;
  background: var(--white);
}

.error-help {
  padding: 4rem 0;
  background: var(--light-gray);
}

.help-content {
  text-align: center;
}

.help-content h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.help-content > p {
  font-size: 1.2rem;
  color: var(--dark);
  opacity: 0.8;
  margin-bottom: 3rem;
}

.help-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.help-option {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.help-option::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 187, 35, 0.1),
    transparent
  );
  transition: left 0.6s ease;
}

.help-option:hover::before {
  left: 100%;
}

.help-option:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.help-option i {
  font-size: 3rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
  display: inline-block;
  transition: all 0.3s ease;
}

.help-option:hover i {
  transform: scale(1.1);
}

.help-option h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.help-option p {
  color: var(--dark);
  opacity: 0.8;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.help-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.help-link:hover {
  color: var(--secondary);
  transform: translateX(5px);
}

/* Responsive Design for 404 Page */
@media (max-width: 768px) {
  .error-hero {
    padding: 6rem 0 3rem;
  }
  
  .error-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .error-number {
    font-size: 6rem;
  }
  
  .error-text h1 {
    font-size: 2.2rem;
  }
  
  .error-text p {
    font-size: 1.1rem;
  }
  
  .error-actions {
    justify-content: center;
  }
  
  .help-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .error-hero {
    padding: 5rem 0 2rem;
  }
  
  .error-number {
    font-size: 4rem;
  }
  
  .error-text h1 {
    font-size: 1.8rem;
  }
  
  .error-text p {
    font-size: 1rem;
  }
  
  .error-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
  
  .help-content h2 {
    font-size: 2rem;
  }
  
  .help-option {
    padding: 2rem 1.5rem;
  }
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 24px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
  z-index: 1000;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  animation: whatsapp-pulse 2s infinite;
  opacity: 1;
  transform: scale(1);
}

.whatsapp-float:hover {
  background: #128C7E;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  color: white;
  text-decoration: none;
}

.whatsapp-float:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(37, 211, 102, 0.3);
  border-radius: 50%;
  animation: whatsapp-ripple 1.5s infinite;
}

.whatsapp-float i {
  z-index: 1;
  position: relative;
  font-size: 26px;
}

/* WhatsApp tooltip */
.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: #333;
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1001;
}

.whatsapp-tooltip:after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: #333;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
}

/* Animations */
@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes whatsapp-ripple {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 15px;
    right: 15px;
    width: 55px;
    height: 55px;
    font-size: 22px;
  }
  
  .whatsapp-float i {
    font-size: 24px;
  }
  
  .whatsapp-tooltip {
    display: none; /* Hide tooltip on mobile */
  }
}

@media (max-width: 480px) {
  .whatsapp-float {
    bottom: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  
  .whatsapp-float i {
    font-size: 22px;
  }
}

/* Ensure button doesn't interfere with other elements */
.whatsapp-float.hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
}

/* Special positioning for mobile menu open */
body.mobile-menu-open .whatsapp-float {
  z-index: 999;
}

/* CTA Button enhancements for WhatsApp integration */
.cta-button,
.btn-primary,
.btn-secondary {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.cta-button:focus,
.btn-primary:focus,
.btn-secondary:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

.cta-button:active,
.btn-primary:active,
.btn-secondary:active {
  transform: translateY(1px);
}

/* WhatsApp button specific styling */
.cta-button[href*="wa.me"],
.btn-primary[href*="wa.me"],
.btn-secondary[href*="wa.me"] {
  position: relative;
}

.cta-button[href*="wa.me"]::before,
.btn-primary[href*="wa.me"]::before,
.btn-secondary[href*="wa.me"]::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--secondary), #25D366);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cta-button[href*="wa.me"]:hover::before,
.btn-primary[href*="wa.me"]:hover::before,
.btn-secondary[href*="wa.me"]:hover::before {
  opacity: 0.3;
}

/* Search Page Styles */
.search-page {
  min-height: 100vh;
}

.search-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.search-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("/images/hero-bg.jpg") center/cover;
  opacity: 0.1;
  z-index: 1;
}

.search-hero-content {
  text-align: center;
  color: var(--white);
  position: relative;
  z-index: 2;
}

.search-hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.search-hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.search-form-container {
  max-width: 600px;
  margin: 0 auto;
}

.search-results {
  padding: 4rem 0;
  background: var(--white);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.result-card {
  background: var(--white);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.result-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.result-type {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.result-type i {
  color: var(--secondary);
  font-size: 1.2rem;
}

.result-type span {
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

.result-content h3 {
  margin-bottom: 1rem;
}

.result-content h3 a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.result-content h3 a:hover {
  color: var(--accent);
}

.result-excerpt {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.result-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.result-date,
.result-category {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.result-date i,
.result-category i {
  color: var(--accent);
  font-size: 0.8rem;
}

.result-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.result-link:hover {
  color: var(--accent);
  transform: translateX(5px);
}

.no-results {
  text-align: center;
  padding: 4rem 2rem;
}

.no-results-content {
  max-width: 600px;
  margin: 0 auto;
}

.no-results-content i {
  font-size: 4rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.no-results-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.no-results-content p {
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.search-suggestions {
  background: var(--light-gray);
  padding: 2rem;
  border-radius: 15px;
  text-align: left;
}

.search-suggestions h4 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.search-suggestions ul {
  list-style: none;
  padding: 0;
}

.search-suggestions li {
  padding: 0.5rem 0;
  color: var(--text-dark);
  position: relative;
  padding-left: 1.5rem;
}

.search-suggestions li::before {
  content: "•";
  color: var(--secondary);
  position: absolute;
  left: 0;
}

.popular-courses {
  padding: 4rem 0;
  background: var(--light-gray);
}

/* Page Template Styles */
.page-content {
  min-height: 100vh;
}

.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("/images/hero-bg.jpg") center/cover;
  opacity: 0.1;
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
}

.page-breadcrumb {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

.page-breadcrumb a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-breadcrumb a:hover {
  color: var(--secondary);
}

.page-breadcrumb .separator {
  margin: 0 0.5rem;
}

.page-hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.page-excerpt {
  font-size: 1.2rem;
  opacity: 0.9;
  line-height: 1.6;
  max-width: 800px;
}

.page-main {
  padding: 4rem 0;
  background: var(--white);
}

.page-layout {
  max-width: 800px;
  margin: 0 auto;
}

.page-article {
  background: var(--white);
}

.page-featured-image {
  margin-bottom: 2rem;
  text-align: center;
}

.page-featured-image img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.page-content-wrapper {
  line-height: 1.8;
  color: var(--text-dark);
}

.page-content-wrapper h2,
.page-content-wrapper h3,
.page-content-wrapper h4 {
  color: var(--primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.page-content-wrapper h2 {
  font-size: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--secondary);
}

.page-content-wrapper h3 {
  font-size: 1.5rem;
}

.page-content-wrapper h4 {
  font-size: 1.2rem;
}

.page-content-wrapper p {
  margin-bottom: 1.5rem;
}

.page-content-wrapper ul,
.page-content-wrapper ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.page-content-wrapper li {
  margin-bottom: 0.5rem;
}

.page-content-wrapper blockquote {
  background: var(--light-gray);
  border-left: 4px solid var(--secondary);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 10px 10px 0;
  font-style: italic;
}

.page-links {
  margin-top: 2rem;
  text-align: center;
}

.page-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.page-link:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.page-cta {
  padding: 4rem 0;
  background: var(--light-gray);
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive Design for Single Course */
@media (max-width: 768px) {
  .course-hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .course-hero-text h1 {
    font-size: 2.2rem;
  }

  .course-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .course-card-sticky {
    position: static;
    top: auto;
  }

  .course-cta {
    flex-direction: row;
  }

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

  .course-meta {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .course-hero {
    padding: 6rem 0 2rem;
  }

  .course-hero-text h1 {
    font-size: 1.8rem;
  }

  .course-excerpt {
    font-size: 1rem;
  }

  .course-section {
    padding: 1.5rem;
  }

  .course-card-sticky {
    padding: 1.5rem;
  }

  .course-cta {
    flex-direction: column;
  }

  .course-meta {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .contact-info {
    gap: 1rem;
  }
}

/* Back Button Styles */
.back-button {
    margin-bottom: 1rem;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-back:hover {
    color: white;
    transform: translateX(-3px);
}

.btn-back i {
    font-size: 0.8rem;
}

/* Course Archive Page Specific Overrides */
.courses-archive .course-card {
    background: white !important;
    border-radius: 15px !important;
    padding: 2rem !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    position: relative;
    overflow: visible !important;
}

.courses-archive .course-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.courses-archive .course-card:hover::before {
    transform: scaleX(1);
}

.courses-archive .course-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important;
}

.courses-archive .course-card .course-icon {
    width: 60px !important;
    height: 60px !important;
    background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-size: 1.5rem !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    padding: 0 !important;
    text-align: center !important;
}

.courses-archive .course-card .course-icon i {
    font-size: 1.5rem !important;
    color: white !important;
    animation: none !important;
}

.courses-archive .course-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-dark) !important;
}

.courses-archive .course-meta-item span {
    color: var(--text-dark) !important;
}

.courses-archive .course-meta-item i {
    color: var(--accent) !important;
}

.courses-archive .course-category span {
    background: rgba(var(--primary-rgb), 0.1) !important;
    color: var(--primary) !important;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.courses-archive .course-content {
    padding: 0 !important;
}

@media (max-width: 480px) {
    .filter-buttons {
        gap: 0.375rem;
    }
    
    .filter-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
        border-radius: 18px;
    }
    
    .archive-hero-content h1 {
        font-size: 1.8rem;
    }
    
    .course-search {
        max-width: 100%;
        margin: 1.5rem 0;
    }
}
