@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-color: #f5a623;
  --primary-hover: #e09212;
  --text-dark: #2c3e50;
  --text-body: #4a5568;
  --text-light: #718096;
  --bg-light: #f8f9fa;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --font-main: 'Outfit', sans-serif;
  --max-width: 1200px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-main);
  color: var(--text-body);
  background-color: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

button, input {
  font-family: inherit;
  border: none;
  outline: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Section */
header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 22px;
  color: #1a202c;
}

.logo img {
  height: 40px;
  width: auto;
}

.logo span.yellow {
  color: var(--primary-color);
  margin-left: 2px;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
}

nav ul li a {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
  font-weight: 500;
  color: #4a5568;
}

nav ul li a:hover {
  color: var(--primary-color);
}

nav ul li a svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
  transition: var(--transition);
}

nav ul li a:hover svg {
  transform: translateY(2px);
}

/* Dropdown Menus */
.has-dropdown {
  position: relative;
}

/* Base trigger styling */
nav ul li.has-dropdown > a {
  padding: 10px 16px;
  border-radius: 4px 4px 0 0;
  transition: var(--transition);
}

nav ul li.has-dropdown:hover > a {
  background-color: #eaeaea;
  color: #1a202c;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 0 6px 6px 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text-body);
  font-weight: 400;
  transition: var(--transition);
  white-space: nowrap;
}

.dropdown-menu li a:hover {
  background-color: var(--bg-light);
  color: var(--primary-color);
  padding-left: 24px;
}

/* Explore Dropdown specific styling */
.explore-dropdown {
  width: 380px;
  max-height: 450px;
  overflow-y: auto;
  left: 0;
  transform: translateY(10px);
  padding: 0;
  border-radius: 0 6px 6px 6px;
}

/* Custom scrollbar for explore dropdown */
.explore-dropdown::-webkit-scrollbar {
  width: 8px;
}

.explore-dropdown::-webkit-scrollbar-track {
  background: #f7fafc;
}

.explore-dropdown::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 4px;
}

.explore-dropdown::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}

.dropdown-header {
  font-size: 12px;
  font-weight: 700;
  color: #2d3748;
  padding: 15px 20px 8px 20px;
  background-color: #ffffff;
  border-bottom: 1.5px solid var(--primary-color);
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.dropdown-item {
  display: flex !important;
  align-items: center;
  padding: 12px 20px !important;
  border-bottom: 1px solid #edf2f7;
  transition: var(--transition);
  white-space: normal !important;
}

.dropdown-item:hover {
  background-color: #f7fafc !important;
  padding-left: 20px !important; /* Lock padding to prevent shift */
}

.dropdown-icon {
  width: 48px;
  height: 48px;
  margin-right: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dropdown-icon svg {
  width: 100%;
  height: 100%;
}

.item-text {
  display: flex;
  flex-direction: column;
}

.item-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a202c;
}

.item-subtitle {
  font-size: 12px;
  color: #718096;
  margin-top: 2px;
}

/* Hover States */
.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.has-dropdown:hover .dropdown-menu:not(.explore-dropdown) {
  transform: translateX(-50%) translateY(0);
}

.has-dropdown:hover .explore-dropdown {
  transform: translateY(0);
}

/* Hero Section */
.hero {
  position: relative;
  background-image: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url('../images/hero_bg.png');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 100px 0 80px 0;
  text-align: center;
}

.hero h1 {
  font-size: 44px;
  font-weight: 700;
  margin-bottom: 30px;
  letter-spacing: -0.5px;
}

.search-container {
  display: flex;
  max-width: 700px;
  margin: 0 auto 30px auto;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.search-container input {
  flex: 1;
  padding: 18px 24px;
  font-size: 16px;
  color: #2d3748;
  background-color: #ffffff;
}

.search-container button {
  background-color: var(--primary-color);
  color: #1a202c;
  font-weight: 600;
  padding: 0 35px;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
}

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

.popular-tags {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
  max-width: 900px;
  margin: 0 auto;
  opacity: 0.9;
  color: #e2e8f0;
}

.popular-tags span {
  margin: 0 5px;
}

.popular-tags a {
  color: #ffffff;
  font-weight: 500;
  border-bottom: 1px solid transparent;
}

.popular-tags a:hover {
  border-color: #ffffff;
}

/* Categories Section */
.categories-section {
  padding: 80px 0;
  background-color: #ffffff;
  text-align: center;
}

.categories-section h2 {
  font-size: 32px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 10px;
}

.categories-section p.subtitle {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 50px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 40px;
}

.category-card {
  display: flex;
  align-items: center;
  padding: 24px;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  text-align: left;
  transition: var(--transition);
  cursor: pointer;
}

.category-card:hover {
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.category-icon {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  flex-shrink: 0;
}

/* Custom background tints for icons */
.category-card:nth-child(1) .category-icon { background-color: rgba(245, 166, 35, 0.1); color: #f5a623; }
.category-card:nth-child(2) .category-icon { background-color: rgba(66, 153, 225, 0.1); color: #4299e1; }
.category-card:nth-child(3) .category-icon { background-color: rgba(72, 187, 120, 0.1); color: #48bb78; }
.category-card:nth-child(4) .category-icon { background-color: rgba(237, 100, 166, 0.1); color: #ed64a6; }
.category-card:nth-child(5) .category-icon { background-color: rgba(159, 122, 234, 0.1); color: #9f7aea; }
.category-card:nth-child(6) .category-icon { background-color: rgba(236, 201, 75, 0.1); color: #ecc94b; }
.category-card:nth-child(7) .category-icon { background-color: rgba(245, 101, 101, 0.1); color: #f56565; }
.category-card:nth-child(8) .category-icon { background-color: rgba(79, 209, 197, 0.1); color: #4fd1c5; }
.category-card:nth-child(9) .category-icon { background-color: rgba(113, 128, 150, 0.1); color: #718096; }

.category-icon svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.category-info h3 {
  font-size: 17px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 4px;
}

.category-info a {
  font-size: 13px;
  font-weight: 500;
  color: #3182ce;
}

.category-info a:hover {
  text-decoration: underline;
}

.view-all-btn {
  display: inline-block;
  padding: 12px 35px;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-color);
  background-color: #ffffff;
  border: 1px solid var(--primary-color);
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 20px;
}

.view-all-btn:hover {
  background-color: var(--primary-color);
  color: #ffffff;
}

/* "More From eLearning College" Section */
.more-courses-section {
  padding: 80px 0;
  background-color: #ffffff;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.section-title-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.section-title-wrapper .line {
  flex: 1;
  height: 1px;
  background-color: var(--primary-color);
  max-width: 150px;
}

.section-title-wrapper h2 {
  font-size: 30px;
  font-weight: 700;
  color: #1a202c;
}

/* Tabs */
.tabs-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
}

.tab-link {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  position: relative;
  padding-bottom: 15px;
  transition: var(--transition);
}

.tab-link:hover {
  color: #1a202c;
}

.tab-link.active {
  color: var(--primary-color);
}

.tab-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.course-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: var(--transition);
}

.course-card:hover {
  box-shadow: 0 12px 25px rgba(0,0,0,0.08);
  transform: translateY(-5px);
}

.card-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background-color: #f7fafc;
}

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

.card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-content h3 {
  font-size: 16px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 24px;
  min-height: 44px;
  line-height: 1.4;
}

.card-btn {
  display: block;
  width: 100%;
  text-align: center;
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 12px 0;
  border-radius: 5px;
  font-weight: 600;
  font-size: 14px;
  margin-top: auto;
  cursor: pointer;
  transition: var(--transition);
}

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

/* ── Stats & CTA Section ─────────────────────────────────────────── */
.stats-cta-section {
  padding: 90px 0;
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 55%, #1a3a5c 100%);
  position: relative;
  overflow: hidden;
}

.stats-cta-section::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.stats-cta-section::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(66,153,225,0.10) 0%, transparent 70%);
  pointer-events: none;
}

.stats-cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.stats-cta-label {
  display: inline-block;
  background: rgba(245,166,35,0.15);
  color: var(--primary-color);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid rgba(245,166,35,0.3);
  margin-bottom: 20px;
}

.stats-cta-text h2 {
  font-size: 38px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 18px;
}

.stats-cta-text p {
  font-size: 16px;
  color: rgba(255,255,255,0.70);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 480px;
}

.stats-cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.stats-cta-btn-primary {
  display: inline-block;
  background: var(--primary-color);
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(245,166,35,0.35);
}

.stats-cta-btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245,166,35,0.45);
}

.stats-cta-btn-secondary {
  display: inline-block;
  background: transparent;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,0.25);
  transition: var(--transition);
}

.stats-cta-btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.50);
  color: #ffffff;
}

.stats-cta-numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  background: rgba(255,255,255,0.10);
  transform: translateY(-4px);
  border-color: rgba(245,166,35,0.30);
}

.stat-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.stat-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.60);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* Why Choose Section */
.why-choose-section {

  padding: 80px 0;
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.section-header-underline {
  font-size: 32px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-header-underline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 20px;
}

.feature-item {
  padding: 20px;
}

.feature-icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
}

.feature-icon-wrapper svg {
  width: 100%;
  height: 100%;
}

.feature-item h3 {
  font-size: 20px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 12px;
}

.feature-item p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
}

/* FAQ Section */
.faq-section {
  padding: 80px 0;
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.faq-list {
  max-width: 850px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 10px;
  border: 1px solid #edf2f7;
  border-radius: 6px;
  overflow: hidden;
  background-color: #ffffff;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  cursor: pointer;
  user-select: none;
  background-color: #ffffff;
  transition: var(--transition);
}

.faq-question:hover {
  background-color: #f7fafc;
}

.faq-question h4 {
  font-size: 15px;
  font-weight: 500;
  color: #2d3748;
}

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #edf2f7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #718096;
  transition: var(--transition);
}

.faq-icon svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
  transform: rotate(0deg);
  transition: var(--transition);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
  background-color: #ffffff;
}

.faq-answer-content {
  padding: 0 24px 20px 24px;
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* Active FAQ state */
.faq-item.active .faq-icon {
  background-color: var(--primary-color);
  color: #ffffff;
}

.faq-item.active .faq-icon svg {
  transform: rotate(180deg);
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  transition: max-height 0.5s cubic-bezier(1, 0, 1, 0);
}

/* Footer Section */
footer {
  background-color: #111111;
  color: #a0aec0;
  padding: 60px 0 20px 0;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  color: var(--primary-color);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: #a0aec0;
}

.footer-col ul li a:hover {
  color: #ffffff;
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid #2d3748;
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a:hover {
  color: #ffffff;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #2d3748;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: var(--transition);
}

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

.social-links a svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.copyright-bar {
  margin-top: 20px;
  text-align: center;
  font-size: 12px;
  color: #718096;
}

/* Enrol Online Header Button */
.enrol-online-header-btn a {
  background-color: #eaeaea;
  color: #1a202c !important;
  padding: 8px 18px !important;
  border-radius: 4px;
  font-weight: 600 !important;
  border: 1px solid #cbd5e0;
  display: flex;
  align-items: center;
}

.enrol-online-header-btn a:hover {
  background-color: #cbd5e0;
  color: #000000 !important;
}

/* Breadcrumbs */
.breadcrumbs-bar {
  background-color: #f7fafc;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
  color: var(--text-light);
}

.breadcrumbs-bar a {
  color: #3182ce;
  font-weight: 500;
}

.breadcrumbs-bar a:hover {
  text-decoration: underline;
}

.breadcrumbs-bar .separator {
  margin: 0 8px;
  color: #cbd5e0;
}

.breadcrumbs-bar .current {
  color: #4a5568;
  font-weight: 500;
}

/* Page Layout & Form Content */
.page-content {
  padding: 60px 20px;
}

.application-form-section {
  max-width: 960px;
  margin: 0 auto;
}

.main-page-title {
  font-size: 32px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.warning-box {
  background-color: #fffaf0;
  border-left: 4px solid #dd6b20;
  padding: 20px;
  font-size: 14px;
  color: #c05621;
  margin-bottom: 30px;
  line-height: 1.6;
  border-radius: 0 4px 4px 0;
}

.warning-box strong {
  color: #dd6b20;
}

.form-instructions {
  font-size: 14px;
  color: var(--text-body);
  margin-bottom: 25px;
}

.sub-section-title {
  font-size: 22px;
  font-weight: 600;
  color: #0073e6;
  border-bottom: 1px solid #edf2f7;
  padding-bottom: 12px;
  margin-bottom: 30px;
}

/* Horizontal Form Layout */
.enrollment-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
}

.form-group {
  display: flex;
  align-items: center;
}

.form-group label {
  width: 32%;
  text-align: right;
  padding-right: 25px;
  font-size: 15px;
  font-weight: 600;
  color: #4a5568;
  line-height: 1.3;
}

.form-group label small {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: var(--text-light);
  margin-top: 2px;
}

.form-input-wrapper {
  width: 58%;
}

.form-input-wrapper input[type="text"],
.form-input-wrapper input[type="email"],
.form-input-wrapper input[type="password"],
.form-input-wrapper select {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  border: 1px solid #cbd5e0;
  border-radius: 4px;
  background-color: #ffffff;
  color: #2d3748;
  transition: var(--transition);
}

.form-input-wrapper input:focus,
.form-input-wrapper select:focus {
  border-color: #3182ce;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
  background-color: #ffffff;
}

/* Checkbox Alignment */
.checkbox-group .form-input-wrapper {
  margin-left: 32%;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #2d3748;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.checkbox-label .terms-link {
  color: #3182ce;
}

.checkbox-label .terms-link:hover {
  text-decoration: underline;
}

/* Submit Alignment */
.submit-group .form-input-wrapper {
  margin-left: 32%;
}

.next-btn {
  background-color: #0073e6;
  color: #ffffff;
  padding: 12px 36px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.next-btn:hover {
  background-color: #005cb8;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Floating Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: #4a5568;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
  opacity: 0.8;
  z-index: 999;
}

.back-to-top:hover {
  background-color: #2d3748;
  opacity: 1;
  transform: translateY(-3px);
}

/* Auth Cards (Login & Forgot Password) */
.auth-card-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 20px;
  background-color: #f7fafc;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  padding: 40px;
}

.auth-card h2 {
  font-size: 26px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 25px;
  text-align: center;
  letter-spacing: -0.5px;
}

.auth-form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #4a5568;
}

.auth-form-group input {
  padding: 12px 16px;
  font-size: 15px;
  border: 1px solid #cbd5e0;
  border-radius: 4px;
  color: #2d3748;
  background-color: #ffffff;
  transition: var(--transition);
}

.auth-form-group input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
  outline: none;
}

.auth-extra-links {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #3182ce;
  margin-bottom: 25px;
}

.auth-extra-links a:hover {
  text-decoration: underline;
}

.auth-btn {
  width: 100%;
  padding: 14px;
  background-color: var(--primary-color);
  color: #1a202c;
  font-weight: 600;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

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

.auth-footer-link {
  text-align: center;
  margin-top: 25px;
  font-size: 14px;
  color: var(--text-light);
}

.auth-footer-link a {
  color: #3182ce;
  font-weight: 600;
}

.auth-footer-link a:hover {
  text-decoration: underline;
}

/* Responsive Overrides for Form */
@media (max-width: 768px) {
  .form-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .form-group label {
    width: 100%;
    text-align: left;
    padding-right: 0;
  }
  .form-input-wrapper {
    width: 100%;
  }
  .checkbox-group .form-input-wrapper,
  .submit-group .form-input-wrapper {
    margin-left: 0;
  }
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    height: auto;
    padding: 15px 0;
    gap: 15px;
  }
  nav ul {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero h1 {
    font-size: 32px;
  }
  .search-container {
    flex-direction: column;
    border-radius: 6px;
    box-shadow: none;
    gap: 10px;
    background: transparent;
  }
  .search-container input {
    border-radius: 6px;
    width: 100%;
  }
  .search-container button {
    padding: 15px 0;
    border-radius: 6px;
    width: 100%;
  }
  .categories-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .stats-cta-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .stats-cta-text h2 {
    font-size: 28px;
  }
  .stats-cta-numbers {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .stats-cta-numbers {
    grid-template-columns: 1fr;
  }
  .stat-number {
    font-size: 28px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .tabs-container {
    gap: 15px;
    flex-wrap: wrap;
  }
}

/* Inline Validation Styles */
.form-input-wrapper input.error-input,
.form-input-wrapper select.error-input,
.auth-form-group input.error-input {
  border-color: #e53e3e !important;
  background-color: #fff5f5 !important;
}

.form-input-wrapper input.error-input:focus,
.form-input-wrapper select.error-input:focus,
.auth-form-group input.error-input:focus {
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.2) !important;
}

.error-message {
  color: #e53e3e;
  font-size: 13px;
  margin-top: 5px;
  display: block;
  font-weight: 500;
  animation: fadeIn 0.2s ease;
}

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

/* Premium Success Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(26, 32, 44, 0.6);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.success-modal-card {
  background-color: #ffffff;
  border-radius: 12px;
  width: 90%;
  max-width: 450px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-backdrop.show .success-modal-card {
  transform: scale(1);
}

.success-icon-wrapper {
  width: 70px;
  height: 70px;
  background-color: rgba(72, 187, 120, 0.1);
  color: #48bb78;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
}

.success-icon-wrapper svg {
  width: 36px;
  height: 36px;
}

.success-modal-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 12px;
}

.success-modal-card p {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 25px;
}

.modal-btn {
  background-color: #48bb78;
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 30px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-block;
  box-shadow: 0 4px 6px rgba(72, 187, 120, 0.2);
}

.modal-btn:hover {
  background-color: #38a169;
  box-shadow: 0 6px 12px rgba(72, 187, 120, 0.3);
}

/* Back to Top Transition styling */
.back-to-top {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.back-to-top.visible {
  opacity: 0.8;
  visibility: visible;
}

.back-to-top.visible:hover {
  opacity: 1;
  transform: translateY(-3px);
}

/* ==========================================
   Contact Page Styles
   ========================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: start;
  margin-top: 30px;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.contact-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 8px;
  display: inline-block;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(245, 166, 35, 0.1);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 20px;
  height: 20px;
}

.contact-info-text h4 {
  font-size: 14px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 2px;
}

.contact-info-text p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.5;
}

.map-placeholder {
  height: 250px;
  background-color: #edf2f7;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--text-light);
  text-align: center;
  gap: 10px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  background-image: radial-gradient(#cbd5e0 1px, transparent 1px);
  background-size: 16px 16px;
}

.map-placeholder svg {
  width: 48px;
  height: 48px;
  color: var(--primary-color);
  z-index: 1;
}

.map-placeholder span {
  font-weight: 600;
  font-size: 14px;
  color: #2d3748;
  z-index: 1;
}

.map-placeholder p {
  font-size: 12px;
  z-index: 1;
}

.contact-form-container {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #4a5568;
}

.contact-form-group input,
.contact-form-group textarea {
  padding: 12px 16px;
  font-size: 15px;
  border: 1px solid #cbd5e0;
  border-radius: 4px;
  background-color: #ffffff;
  color: #2d3748;
  transition: var(--transition);
  font-family: inherit;
}

.contact-form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form-group input:focus,
.contact-form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
  outline: none;
}

.contact-btn {
  background-color: var(--primary-color);
  color: #1a202c;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 30px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  align-self: flex-start;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.contact-btn:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ==========================================
   About Page Styles
   ========================================== */
.about-hero {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(rgba(245, 166, 35, 0.05), rgba(255, 255, 255, 0));
  border-bottom: 1px solid var(--border-color);
}

.about-hero h1 {
  font-size: 38px;
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

.about-hero p {
  font-size: 17px;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-top: 50px;
}

.about-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
}

.about-content h2 {
  font-size: 26px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 20px;
}

.about-content p {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 20px;
}

.about-mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-top: 50px;
}

.mv-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.mv-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #0073e6;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mv-card h3 svg {
  width: 20px;
  height: 20px;
}

.mv-card p {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.6;
}

.stats-banner {
  background-color: #1a202c;
  color: #ffffff;
  border-radius: 12px;
  padding: 50px 30px;
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item h3 {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.stat-item p {
  font-size: 14px;
  color: #cbd5e0;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* ==========================================
   Legal Pages Styles (Privacy & Terms)
   ========================================== */
.legal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 50px;
  align-items: start;
}

.legal-sidebar {
  position: sticky;
  top: 110px;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.legal-sidebar-title {
  font-size: 14px;
  font-weight: 700;
  color: #1a202c;
  padding: 10px 20px 15px 20px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.legal-sidebar ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.legal-sidebar ul li a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text-body);
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: var(--transition);
}

.legal-sidebar ul li a:hover {
  color: var(--primary-color);
  background-color: var(--bg-light);
  border-left-color: var(--primary-color);
}

.legal-sidebar ul li.active a {
  color: var(--primary-color);
  background-color: rgba(245, 166, 35, 0.05);
  border-left-color: var(--primary-color);
  font-weight: 600;
}

.legal-content {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 50px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.legal-content h1 {
  font-size: 32px;
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.legal-date {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 35px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
}

.legal-section {
  scroll-margin-top: 110px;
  margin-bottom: 40px;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  font-size: 20px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 15px;
}

.legal-section p {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 15px;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-section ul li {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.6;
}

/* ==========================================
   Responsive Legal & Contact Overrides
   ========================================== */
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .legal-sidebar {
    position: static;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .about-mission-vision {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .stats-banner {
    grid-template-columns: repeat(2, 1fr);
    padding: 30px 15px;
  }
  .legal-content {
    padding: 30px 20px;
  }
}

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

/* ==========================================================================
   Antigravity Custom Dashboard, Alert, and Active Link Overrides
   ========================================================================== */

/* Active navigation item styling */
nav ul li.active-nav-item a {
  color: var(--primary-color) !important;
  font-weight: 700 !important;
}

/* Notification Banners */
.notification-banner {
  padding: 15px 0;
  color: #ffffff;
  font-weight: 500;
  font-size: 15px;
  position: relative;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  animation: slideDown 0.3s ease-out;
}

.notification-banner.error {
  background-color: #e53e3e;
}

.notification-banner.success {
  background-color: #38a169;
}

.notification-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notification-banner button {
  background: transparent;
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  padding: 0 5px;
  transition: opacity 0.2s;
}

.notification-banner button:hover {
  opacity: 0.8;
}

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

/* Premium Student Dashboard Styles */
.student-course-card {
  transition: var(--transition);
}

.student-course-card:hover {
  box-shadow: 0 10px 20px rgba(0,0,0,0.05) !important;
  border-color: var(--primary-color) !important;
  transform: translateY(-2px);
}

.dashboard-sidebar a.view-all-btn:hover {
  background-color: #fff5f5 !important;
  border-color: #e53e3e !important;
  color: #c53030 !important;
}

/* Form Styles Override for Auth */
.auth-extra-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 14px;
}

.auth-extra-links a {
  color: #3182ce;
}

.auth-extra-links a:hover {
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════
   CATEGORY PAGE
   ═══════════════════════════════════════════════════════════ */
.cat-hero {
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 60%, #1a3a5c 100%);
  padding: 60px 0 55px;
  position: relative;
  overflow: hidden;
}
.cat-hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,0.10) 0%, transparent 65%);
  pointer-events: none;
}
.cat-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.cat-hero-text { flex: 1; }
.cat-hero-badge {
  display: inline-block;
  background: rgba(245,166,35,0.15);
  color: var(--primary-color);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  border: 1px solid rgba(245,166,35,0.3);
  margin-bottom: 16px;
}
.cat-hero-text h1 {
  font-size: 38px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.cat-hero-text p {
  font-size: 16px;
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 24px;
}
.cat-hero-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.cat-hero-meta span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}
.cat-hero-meta svg { color: var(--primary-color); flex-shrink: 0; }
.cat-hero-stat { flex-shrink: 0; }
.cat-stat-ring {
  width: 130px; height: 130px;
  border-radius: 50%;
  border: 4px solid rgba(245,166,35,0.35);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 8px rgba(245,166,35,0.08), 0 0 0 16px rgba(245,166,35,0.04);
}
.cat-stat-num {
  font-size: 40px;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
}
.cat-stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* Category body layout */
.cat-body { padding: 60px 0 80px; background: #f8f9fa; }
.cat-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

/* Sidebar */
.cat-sidebar { position: sticky; top: 100px; }
.sidebar-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}
.sidebar-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #2d3748;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  background: #f7fafc;
}
.sidebar-cat-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  font-size: 14px;
  color: var(--text-body);
  border-bottom: 1px solid #f0f4f8;
  transition: var(--transition);
}
.sidebar-cat-list li a:hover,
.sidebar-cat-list li.active a {
  background: #fffbf2;
  color: var(--primary-color);
  padding-left: 24px;
}
.sidebar-cat-list li.active a { font-weight: 700; }
.sc-name { flex: 1; }
.sc-count {
  background: #f0f4f8;
  color: #718096;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 50px;
  min-width: 26px;
  text-align: center;
}
.sidebar-cat-list li.active .sc-count {
  background: rgba(245,166,35,0.15);
  color: var(--primary-color);
}

/* Sidebar CTA */
.sidebar-cta {
  text-align: center;
  padding: 28px 20px;
  background: linear-gradient(145deg, #1a202c, #2d3748);
  border-color: transparent;
}
.sidebar-cta-icon {
  width: 56px; height: 56px;
  background: rgba(245,166,35,0.15);
  border: 1.5px solid rgba(245,166,35,0.35);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  color: var(--primary-color);
}
.sidebar-cta h4 {
  font-size: 16px; font-weight: 700;
  color: #ffffff; margin-bottom: 8px;
}
.sidebar-cta p {
  font-size: 13px; color: rgba(255,255,255,0.60);
  line-height: 1.6; margin-bottom: 20px;
}
.sidebar-cta-btn {
  display: block;
  background: var(--primary-color);
  color: #ffffff;
  font-weight: 700; font-size: 14px;
  padding: 11px 0;
  border-radius: 8px;
  transition: var(--transition);
}
.sidebar-cta-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

/* Course grid */
.cat-courses-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.results-count { font-size: 14px; color: var(--text-light); }
.results-count strong { color: #2d3748; }
.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-pill {
  font-size: 13px; font-weight: 600;
  padding: 6px 16px;
  border-radius: 50px;
  border: 1.5px solid var(--border-color);
  color: var(--text-light);
  cursor: pointer;
  background: #ffffff;
  transition: var(--transition);
}
.filter-pill:hover { border-color: var(--primary-color); color: var(--primary-color); }
.filter-pill.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
}

.cat-course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.cat-course-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
}
.cat-course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.09);
  border-color: transparent;
}
.cat-card-link { display: flex; flex-direction: column; height: 100%; }
.cat-card-img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #f7fafc;
}
.cat-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.cat-course-card:hover .cat-card-img img { transform: scale(1.04); }
.cat-card-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--primary-color);
  color: #ffffff;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  padding: 3px 10px; border-radius: 50px;
}
.cat-card-body { padding: 18px 18px 12px; flex: 1; }
.cat-card-body h3 {
  font-size: 15px; font-weight: 700;
  color: #1a202c; line-height: 1.4;
  margin-bottom: 8px;
}
.cat-card-body p {
  font-size: 13px; color: var(--text-light);
  line-height: 1.6; margin-bottom: 14px;
}
.cat-card-meta {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.cat-card-meta span {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: #718096; font-weight: 500;
}
.cat-card-footer {
  padding: 12px 18px;
  border-top: 1px solid #f0f4f8;
  margin-top: auto;
}
.cat-enroll-btn {
  display: block;
  background: var(--primary-color);
  color: #ffffff;
  text-align: center;
  padding: 10px;
  border-radius: 7px;
  font-size: 14px; font-weight: 700;
  transition: var(--transition);
}
.cat-course-card:hover .cat-enroll-btn { background: var(--primary-hover); }

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-light);
}
.empty-state svg { margin: 0 auto 20px; }
.empty-state h3 { font-size: 20px; font-weight: 600; color: #4a5568; margin-bottom: 8px; }
.empty-state p { font-size: 14px; }

/* ═══════════════════════════════════════════════════════════
   COURSE DETAIL PAGE
   ═══════════════════════════════════════════════════════════ */

/* Clean header styling */
.cd-clean-header {
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.cd-clean-header::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.1) 0%, transparent 70%);
  pointer-events: none;
}
.cd-header-inner {
  max-width: 800px;
  margin: 0 auto;
}
.cd-badges {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.cd-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 4px;
}
.cd-badge-type {
  background-color: rgba(245, 166, 35, 0.2);
  color: var(--primary-color);
  border: 1px solid rgba(245, 166, 35, 0.3);
}
.cd-badge-cat {
  background-color: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.cd-clean-header h1 {
  font-size: 36px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.2;
}
.cd-desc {
  font-size: 16px;
  color: #cbd5e0;
  line-height: 1.6;
  margin-bottom: 24px;
}
.cd-action-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cd-btn-primary {
  display: inline-block;
  background-color: var(--primary-color);
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: 6px;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(245, 166, 35, 0.2);
}
.cd-btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(245, 166, 35, 0.3);
}
.cd-btn-secondary {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.08);
  color: #edf2f7;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 6px;
  transition: var(--transition);
}
.cd-btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* Full Width Body Layout & Main Wrapper */
.cd-main-wrapper {
  background-color: #f7fafc;
  padding: 60px 0 80px 0;
}
.cd-body-full {
  max-width: 800px;
  margin: 0 auto;
}
.cd-accordion-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cd-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1.5px solid var(--border-color);
  padding-bottom: 14px;
  margin-bottom: 24px;
}
.cd-section-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
}
.cd-expand-all {
  font-size: 14px;
  color: var(--primary-color);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.cd-expand-all:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Accordion Components */
.cd-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cd-chapter {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.01);
  transition: var(--transition);
}
.cd-chapter:hover {
  border-color: #cbd5e0;
}
.cd-chapter.open {
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  border-color: rgba(245,166,35,0.35);
}
.cd-chapter-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background-color: #ffffff;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
  border: none;
}
.cd-chapter-header:hover {
  background-color: #f8f9fa;
}
.cd-chapter.open .cd-chapter-header {
  background-color: #fffbf2;
}
.cd-ch-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cd-ch-num {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-color);
  background-color: rgba(245, 166, 35, 0.08);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cd-ch-info {
  display: flex;
  flex-direction: column;
}
.cd-ch-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
}
.cd-ch-meta {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 2px;
}
.cd-ch-arrow {
  color: var(--text-light);
  transition: transform 0.3s ease;
}
.cd-chapter.open .cd-ch-arrow {
  transform: rotate(180deg);
}

.cd-chapter-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-top: 1px solid transparent;
  background-color: #f8f9fa;
}
.cd-chapter.open .cd-chapter-body {
  max-height: 1000px;
  border-top-color: var(--border-color);
}

/* Lessons / Content Items inside Accordion */
.cd-lesson {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  border-top: 1px solid var(--border-color);
  font-size: 14px;
  color: var(--text-body);
  transition: var(--transition);
}
.cd-lesson:hover {
  background-color: #ffffff;
}
.cd-lesson-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cd-lesson-num {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  width: 20px;
}
.cd-lesson-title {
  font-weight: 500;
  color: var(--text-dark);
}
.cd-lesson-type {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  background-color: #edf2f7;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.cd-lesson-empty {
  padding: 20px;
  justify-content: center;
  color: var(--text-light);
  font-style: italic;
}

/* Icon Colors */
.ct-icon {
  flex-shrink: 0;
}
.ct-video {
  color: #e53e3e;
}
.ct-pdf {
  color: #3182ce;
}
.ct-doc {
  color: #38a169;
}
.ct-res {
  color: #805ad5;
}
.ct-text {
  color: #d69e2e;
}

/* Dynamic Pill Colors */
.cd-lesson:has(.ct-video) .cd-lesson-type { background: #fff5f5; color: #e53e3e; }
.cd-lesson:has(.ct-pdf)   .cd-lesson-type { background: #ebf8ff; color: #3182ce; }
.cd-lesson:has(.ct-doc)   .cd-lesson-type { background: #f0fff4; color: #38a169; }
.cd-lesson:has(.ct-res)   .cd-lesson-type { background: #faf5ff; color: #805ad5; }
.cd-lesson:has(.ct-text)  .cd-lesson-type { background: #fffaf0; color: #d69e2e; }

/* Clean Empty View for course chapters */
.cd-empty {
  text-align: center;
  padding: 40px;
  color: var(--text-light);
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-style: italic;
}

/* Responsive Grid Adaptations */
@media (max-width: 1024px) {
  .cat-layout {
    grid-template-columns: 1fr;
  }
  .cat-sidebar {
    order: 2;
  }
}
@media (max-width: 768px) {
  .cat-hero-inner { flex-direction: column; }
  .cat-stat-ring { display: none; }
  .cat-hero-text h1 { font-size: 28px; }
  .cd-hero-inner { grid-template-columns: 1fr; }
  .cd-hero-card { display: none; }
  .cd-hero-content h1 { font-size: 26px; }
}
@media (max-width: 480px) {
  .cat-course-grid { grid-template-columns: 1fr; }
  .cd-includes-grid { grid-template-columns: 1fr; }
}

