/* Public Courses Page Styles */

:root {
  --primary-color: #ef6029;
  --primary-dark: #d4501f;
  --primary-light: #f4853d;
  --color-swan: 229, 229, 229;
  --color-polar: 243, 244, 246;
  --color-wolf: 107, 114, 128;
  --color-eel: 17, 24, 39;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "din-round", sans-serif;
  margin: 0;
  padding: 0;
  background: #ffffff;
  min-height: 100vh;
}

/* Header Section */
.public-courses-header {
  background: #ffffff;
  border-bottom: 2px solid rgb(var(--color-swan));
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-section {
  display: flex;
  align-items: center;
}

.brand-banner {
  height: 42px;
  width: auto;
  max-width: 200px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-family: "din-round-medium", sans-serif;
  font-size: 16px;
  color: rgb(var(--color-wolf));
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.nav-link.active {
  background: var(--primary-color);
  color: white;
  font-weight: bold;
  box-shadow: 0 2px 0 var(--primary-dark);
}

.nav-link:hover:not(.active) {
  background: rgb(var(--color-polar));
  color: rgb(var(--color-eel));
}

.support-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 2px solid rgb(var(--color-swan));
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.2s ease;
  text-decoration: none;
  color: black;
}

.support-btn:hover {
  background: rgb(var(--color-polar));
  transform: scale(1.05);
}
a{
  text-decoration: none;
} 
.login-btn {
  display: flex;
  align-items: center;
  font-family: "din-round-bold", sans-serif;
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: 0 3px 0 var(--primary-dark);
  transition: all 0.2s ease;
}

.login-btn:hover {
  transform: translateY(1px);
  box-shadow: 0 2px 0 var(--primary-dark);
  background: var(--primary-light);
}

/* Brand Banner Section */
.brand-banner-section {
  background: #ffffff url("../assets/images/banner.png") no-repeat center center;
  background-size: cover;
  border-bottom: 2px solid rgb(var(--color-swan));
  width: 100%;
  height: 300px;
  max-height: 400px;
  max-width: 1150px;
  margin: auto;
  width: 90%;
  border-radius: 16px;
  margin-top: 10px;
}

/* Main Content */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.page-header {
  margin-bottom: 32px;
}

.page-title {
  font-family: "din-round-bold", sans-serif;
  font-size: 28px;
  color: rgb(var(--color-eel));
  margin: 0;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

/* Course Cards */
.course-card {
  background: linear-gradient(135deg, #fff3e6, #ffe6cc);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.2s ease;
  cursor: pointer;
  height: auto;
  min-height: 160px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.course-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.course-header.no-image {
  justify-content: flex-start;
}

.course-header.no-image .course-details {
  width: 100%;
  max-width: 100%;
}

.course-image {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.course-square-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.course-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 96, 41, 0.25);
}

.course-card:focus {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

.course-stats {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  align-items: center;
}

.participants,
.rating {
  font-family: "din-round-medium", sans-serif;
  font-size: 14px;
  color: rgb(var(--color-wolf));
  background: rgb(var(--color-polar));
  padding: 6px 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.course-title {
  font-family: "din-round-bold", sans-serif;
  font-size: 22px;
  color: rgb(var(--color-eel));
  margin: 8px 0 4px 0;
  line-height: 1.3;
}

.course-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 4px;
}

.modules {
  display: flex;
  align-items: center;
  font-family: "din-round-medium", sans-serif;
  font-size: 14px;
  color: rgb(var(--color-wolf));
}

.arrow {
  font-size: 15px;
  color: rgb(var(--color-wolf));
}

/* Contact Section */
.contact-section {
  padding: 10px;
  background: #ffffff;
  margin-top: 48px;
  max-width: 1200px;
  margin: auto;
}

.contact-content {
  padding: 24px;
}

.contact-title {
  font-family: "din-round-bold", sans-serif;
  font-size: 24px;
  color: rgb(var(--color-eel));
  margin: 0 0 24px 0;
}

.contact-info {
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  margin-bottom: 32px;
}

.manager-info h4,
.office-info h4 {
  font-family: "din-round-bold", sans-serif;
  font-size: 18px;
  color: rgb(var(--color-eel));
  margin: 0 0 12px 0;
}

.contact-link {
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.phone-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
}

.address {
  color: rgb(var(--color-wolf));
  line-height: 1.4;
  margin: 0;
}

.location-icon {
  margin-left: 8px;
}

/* Social Media Section */
.social-media {
  margin: 32px 0 24px 0;
  padding: 24px 0;
  border-top: 1px solid rgb(var(--color-swan));
}

.social-title {
  font-family: "din-round-bold", sans-serif;
  font-size: 18px;
  color: rgb(var(--color-eel));
  margin: 0 0 16px 0;
}

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

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-family: "din-round-medium", sans-serif;
  font-size: 14px;
  font-weight: bold;
  transition: all 0.2s ease;
  border: 2px solid rgb(var(--color-swan));
  min-width: 120px;
  background: rgb(var(--color-polar));
  color: rgb(var(--color-eel));
}

.social-link i {
  font-size: 16px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-link:hover {
  background: rgb(var(--color-swan));
  transform: scale(1.02);
}

.social-link.instagram,
.social-link.telegram,
.social-link.youtube {
  background: rgb(var(--color-polar));
  color: rgb(var(--color-eel));
  border-color: rgb(var(--color-swan));
}

.social-link.instagram:hover,
.social-link.telegram:hover,
.social-link.youtube:hover {
  background: rgb(var(--color-swan));
  border-color: rgb(var(--color-wolf));
}

.language-selector {
  margin-bottom: 24px;
}

.language-btn {
  background: rgb(var(--color-polar));
  border: 2px solid rgb(var(--color-swan));
  padding: 8px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  color: rgb(var(--color-eel));
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.language-btn:hover {
  background: rgb(var(--color-swan));
}

.language-dropdown {
  position: absolute;
  max-width: 200px;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 2px solid rgb(var(--color-swan));
  border-radius: 12px;
  margin-top: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.language-option {
  display: block;
  padding: 8px 16px;
  color: rgb(var(--color-eel));
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgb(var(--color-polar));
}

.language-option:last-child {
  border-bottom: none;
}

.language-option:hover {
  background: rgb(var(--color-polar));
}

.language-option.active {
  background: var(--primary-color);
  color: white;
}

.language-selector {
  position: relative;
}

.footer-info {
  border-top: 1px solid rgb(var(--color-swan));
  padding-top: 24px;
  color: rgb(var(--color-wolf));
  font-size: 14px;
}

.footer-links {
  margin: 16px 0;
}

.footer-links a {
  color: rgb(var(--color-wolf));
  text-decoration: none;
  margin-right: 16px;
}

.powered-by {
  text-align: center;
  margin: 16px 0 0 0;
  font-weight: bold;
}

/* Bottom Navigation - Compact Style */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(247, 247, 247, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(229, 229, 229, 0.8);
  border-radius: 16px 16px 0 0;
  padding: 8px 0 6px;
  z-index: 100;
  margin: 0 16px;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: rgb(var(--color-wolf));
  padding: 6px 12px;
  transition: all 0.2s ease;
  flex: 1;
  border-radius: 12px;
  margin: 0 8px;
}

.nav-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
  transition: all 0.2s ease;
  font-size: 16px;
  color: rgb(var(--color-wolf));
}

.nav-icon-wrapper.active {
  color: var(--primary-color);
}

.bottom-nav-item.active .nav-icon-wrapper {
  color: var(--primary-color);
}

.bottom-nav-item.active .nav-text {
  color: var(--primary-color);
  font-weight: bold;
}

.bottom-nav-item.active {
  background: rgba(239, 96, 41, 0.1);
}

.nav-text {
  font-size: 10px;
  font-weight: 500;
  transition: all 0.2s ease;
  text-align: center;
}

.bottom-nav-item:hover:not(.active) {
  background: rgba(229, 229, 229, 0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .brand-banner-section {
    height: 300px;
    max-width: 1200px;
    width: 95%;
  }

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

  .contact-info {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: row;
    gap: 16px;
    padding: 16px;
  }

  .top-nav {
    display: none;
  }

  .bottom-nav {
    display: flex;
  }

  .brand-banner-section {
    height: 200px;
  }

  .main-content {
    padding: 16px;
    padding-bottom: 80px;
  }

  .contact-content {
    padding: 0;
    padding-top: 24px;
  }

  .courses-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .course-card {
    padding: 16px;
    height: auto;
    min-height: 140px;
    min-width: auto;
    gap: 10px;
  }

  .course-header {
    gap: 12px;
  }

  .course-image {
    width: 60px;
    height: 60px;
  }

  .course-title {
    font-size: 18px;
  }

  /* Social Media Responsive */
  .social-links {
    flex-direction: column;
    gap: 12px;
  }

  .social-link {
    justify-content: flex-start;
    min-width: auto;
    width: 100%;
    padding: 13px 17px;
  }
}

@media (max-width: 480px) {
  .brand-banner-section {
    height: 200px;
  }

  .main-content {
    padding: 12px;
    padding-bottom: 80px;
  }

  .course-card {
    padding: 16px;
    height: auto;
    min-height: 130px;
    gap: 8px;
  }

  .course-header {
    gap: 10px;
  }

  .contact-content {
    padding: 0;
    padding-top: 20px;
  }

  /* Social Media for small screens */
  .social-media {
    margin: 24px 0 20px 0;
    padding: 20px 0;
  }

  .social-title {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .social-link {
    padding: 12px 16px;
    font-size: 14px;
    min-width: auto;
    border-radius: 14px;
  }

  .social-link i {
    width: 24px;
    height: 24px;
    font-size: 18px;
  }
}

/* Ensure banner background position is maintained for dynamic images */
.brand-banner-section {
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}

/* ======================================
   COURSE DETAILS PAGE STYLES
   ====================================== */

/* Course Details uses main header from index.ejs */

/* Main Course Content */
.course-details-main {
  background: #ffffff;
  min-height: 100vh;
  padding: 10px;
}

.course-details-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
}

/* Course Info Column */
.course-info-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Course Title Section */
.course-title-section {
  background: white;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.course-header-main {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.course-title-content {
  flex: 1;
}

.course-main-title {
  font-family: "din-round-bold", sans-serif;
  font-size: 28px;
  color: rgb(var(--color-eel));
  margin: 0 0 16px 0;
  line-height: 1.3;
}

.course-subtitle {
  font-family: "din-round-medium", sans-serif;
  font-size: 16px;
  color: rgb(var(--color-wolf));
  margin: 0;
  line-height: 1.5;
}

.course-title-image {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 16px;
  overflow: hidden;
}

.course-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Enrollment Section */
.course-enrollment-section {
  background: white;
  border-radius: 16px;
}

.enrollment-info {
  display: flex;
  gap: 16px;
}

.enroll-btn {
  flex: 1;
  background: var(--primary-color);
  border: none;
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: white;
  font-family: "din-round-bold", sans-serif;
  font-weight: bold;
  box-shadow: 0 4px 0 var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.enroll-btn:hover {
  transform: translateY(1px);
  box-shadow: 0 3px 0 var(--primary-dark);
  background: var(--primary-light);
}

.enroll-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--primary-dark);
}

.enroll-btn i {
  font-size: 20px;
}

.enroll-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.enroll-title {
  font-family: "din-round-bold", sans-serif;
  font-size: 16px;
  margin-bottom: 4px;
}

.enroll-subtitle {
  font-family: "din-round-medium", sans-serif;
  font-size: 12px;
  opacity: 0.9;
}

/* rates-btn removed - no longer used */

/* Course Stats Bar - Now inside course-title-section */
.course-stats-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 2px solid #e5e7eb;
}

.back-to-catalog {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: "din-round-bold", sans-serif;
  color: var(--primary-color);
  transition: all 0.2s ease;
  padding: 8px 12px;
  border-radius: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.back-to-catalog:hover {
  background: rgba(239, 96, 41, 0.1);
  transform: scale(1.05);
}

.course-metrics {
  display: flex;
  gap: 16px;
  align-items: center;
}

.metric {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "din-round-medium", sans-serif;
  color: rgb(var(--color-wolf));
}

/* Instructors Section - Inside course title section */
.course-title-section .instructors-section {
  background: linear-gradient(135deg, #f8fffe 0%, #e8f8f5 100%);
  border-radius: 16px;
  padding: 24px;
  border: 2px solid #d1fae5;
  margin-top: 20px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.course-title-section .instructors-section .section-title {
  font-size: 18px;
  margin-bottom: 16px;
  font-family: "din-round-bold", sans-serif;
  color: #059669;
  font-weight: bold;
}

.course-title-section .instructor-card {
  background: #e5e9f1;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.course-title-section .instructor-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.section-title {
  font-family: "din-round-bold", sans-serif;
  font-size: 24px;
  color: #1f2937;
  margin: 0 0 24px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.plans-count {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: bold;
  font-family: "din-round-bold", sans-serif;
  box-shadow: 0 3px 0 #059669;
  border: 2px solid white;
}

.reviews-count {
  background: linear-gradient(135deg, #ce82ff 0%, #b565e8 100%);
  color: white;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: bold;
  font-family: "din-round-bold", sans-serif;
  box-shadow: 0 3px 0 #b565e8;
  border: 2px solid white;
}

.content-count {
  background: linear-gradient(135deg, #1cb0f6 0%, #1890c7 100%);
  color: white;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: bold;
  font-family: "din-round-bold", sans-serif;
  box-shadow: 0 3px 0 #1890c7;
  border: 2px solid white;
}

.instructor-card {
  background: #e5e9f1;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.instructor-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "din-round-bold", sans-serif;
  color: white;
  font-size: 24px;
  border: 3px solid white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
  overflow: hidden;
}

.instructor-avatar .instructor-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.instructor-info {
  flex: 1;
}

.instructor-name {
  font-family: "din-round-bold", sans-serif;
  font-size: 18px;
  color: #1f2937;
  margin: 0 0 8px 0;
  font-weight: bold;
}

.instructor-description {
  font-family: "din-round-medium", sans-serif;
  font-size: 14px;
  color: #6b7280;
  margin: 0;
  background: #f3f4f6;
  padding: 6px 12px;
  border-radius: 20px;
  display: inline-block;
}

/* instructor-chat removed - no longer used */

/* Plans Section */
.plans-section {
  background: linear-gradient(135deg, #fefcfb 0%, #fef7f0 100%);
  border-radius: 20px;
  padding: 32px;
  border: 2px solid #fed7aa;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

/* Horizontal scrolling for many plans on desktop */
.plans-grid.scrollable-plans {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding-bottom: 10px;
  scroll-behavior: smooth;
}

.plans-grid.scrollable-plans::-webkit-scrollbar {
  height: 8px;
}

.plans-grid.scrollable-plans::-webkit-scrollbar-track {
  background: rgb(var(--color-polar));
  border-radius: 10px;
}

.plans-grid.scrollable-plans::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

.plans-grid.scrollable-plans::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

.plans-grid.scrollable-plans .plan-card {
  flex: 0 0 320px;
  min-width: 320px;
}

.plan-card {
  background: white;
  border-radius: 20px;
  padding: 24px;
  border: 3px solid #e5e7eb;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.plan-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #10b981, #059669);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.plan-card:hover {
  border-color: #10b981;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(16, 185, 129, 0.1),
    0 10px 10px -5px rgba(16, 185, 129, 0.04);
}

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

.plan-header {
  margin-bottom: 20px;
}

.plan-name {
  font-family: "din-round-bold", sans-serif;
  font-size: 18px;
  color: rgb(var(--color-eel));
  margin: 0 0 8px 0;
}

.plan-price {
  font-family: "din-round-bold", sans-serif;
  font-size: 24px;
  color: rgb(var(--color-eel));
  margin: 0 0 8px 0;
}

.plan-description {
  font-family: "din-round-medium", sans-serif;
  font-size: 14px;
  color: rgb(var(--color-wolf));
  margin: 0;
  line-height: 1.4;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "din-round-medium", sans-serif;
  font-size: 14px;
  color: rgb(var(--color-eel));
}

.feature-item i {
  color: #10b981;
  font-size: 16px;
}

.plan-select-btn {
  width: 100%;
  background: #58cc02;
  border: none;
  border-radius: 16px;
  padding: 18px 24px;
  color: white;
  font-family: "din-round-bold", sans-serif;
  font-size: 17px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 6px 0 #4caf50;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 6px solid #4caf50;
}

.plan-select-btn:hover {
  background: #4caf50;
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #4caf50, 0 8px 20px rgba(76, 175, 80, 0.3);
}

.plan-select-btn:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #4caf50;
}

/*  PYLALMS BUTTON STYLE */
/* button animation in duolingo */
.button-div {
  position: relative;
  width: 100%;
  height: 50px;
  font-size: 15px;
  font-family: "din-round-bold";
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-radius: 16px;
  /* background-color: rgb(var(--color-snow)); */
  /* color: rgb(var(--color-eclipse)); */
  /* box-shadow: 0 4px 0 rgb(var(--color-snow-always-light), 0.6); */
  transition: box-shadow translate 0.2s ease;
}
.create-account-button {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  width: 100%;
  padding: 14px;
  background-color: #059669;
  color: white;
  border-style: none;
  cursor: pointer;
}
.create-account-button-container {
  box-shadow: 0 4px 0px #047350;
  border-radius: 18px;
}

/* Reviews Section */
.reviews-section {
  background: linear-gradient(135deg, #f3e8ff 0%, #ede0ff 100%);
  border-radius: 20px;
  padding: 32px;
  border: 3px solid #ce82ff;
  box-shadow: 0 6px 0 #b565e8, 0 10px 25px -5px rgba(206, 130, 255, 0.3);
}

.reviews-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.review-card {
  background: white;
  border-radius: 18px;
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  border: 3px solid #ce82ff;
  box-shadow: 0 4px 0 #b565e8;
  transition: all 0.3s ease;
}

.review-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #b565e8, 0 10px 20px rgba(206, 130, 255, 0.2);
}

.review-card:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #b565e8;
}

.review-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid #ce82ff;
  box-shadow: 0 4px 0 #b565e8, 0 6px 12px rgba(206, 130, 255, 0.3);
}

.fa,
.fa-brands,
.fa-classic,
.fa-regular,
.fa-sharp,
.fa-solid,
.fab,
.far,
.fas {
  display: flex !important;
}

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

.review-content {
  flex: 1;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.review-name {
  font-family: "din-round-bold", sans-serif;
  font-size: 18px;
  color: #1f2937;
  margin: 0;
  font-weight: bold;
}

.review-stars {
  display: flex;
  gap: 3px;
}

.review-stars i {
  color: #fbbf24;
  font-size: 16px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.review-stars i.empty {
  color: #d1d5db;
}

.review-text {
  font-family: "din-round-medium", sans-serif;
  font-size: 15px;
  color: #374151;
  line-height: 1.6;
  margin: 0;
  background: #f3e8ff;
  padding: 12px 16px;
  border-radius: 12px;
  border-left: 4px solid #ce82ff;
  margin-top: 8px;
  border: 2px solid #ce82ff;
}

.reviews-placeholder {
  text-align: center;
  padding: 40px 20px;
}

.reviews-icon {
  font-size: 48px;
  color: rgb(var(--color-swan));
  margin-bottom: 16px;
}

.reviews-placeholder-title {
  font-family: "din-round-bold", sans-serif;
  font-size: 18px;
  color: rgb(var(--color-eel));
  margin: 0 0 8px 0;
}

.reviews-placeholder-text {
  font-family: "din-round-medium", sans-serif;
  font-size: 14px;
  color: rgb(var(--color-wolf));
  margin: 0;
}

/* FAQ Section */
.faq-section {
  background: linear-gradient(135deg, #fffaeb 0%, #fef3c7 100%);
  border-radius: 20px;
  padding: 32px;
  border: 3px solid #ffc800;
  box-shadow: 0 6px 0 #e6b000, 0 10px 25px -5px rgba(255, 200, 0, 0.3);
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: white;
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 3px solid #ffc800;
  box-shadow: 0 4px 0 #e6b000;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #e6b000, 0 10px 20px rgba(255, 200, 0, 0.2);
}

.faq-item:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #e6b000;
}

.faq-question {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: white;
  transition: all 0.3s ease;
  border-radius: 16px;
}

.faq-item.expanded .faq-question {
  border-radius: 16px 16px 0 0;
}

.faq-question:hover {
  background: #fffaeb;
  transform: translateY(-1px);
}

.faq-question-text {
  font-family: "din-round-bold", sans-serif;
  font-size: 18px;
  color: #1f2937;
  margin: 0;
  font-weight: bold;
}

.faq-toggle {
  color: #ffc800;
  font-size: 18px;
  line-height: 1;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #fffaeb;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #ffc800;
  box-shadow: 0 3px 0 #e6b000;
  flex-shrink: 0;
}

.faq-item.expanded .faq-toggle {
  transform: rotate(180deg);
  background: #ffc800;
  color: white;
  box-shadow: 0 2px 0 #e6b000;
}

.faq-answer {
  padding: 0 24px 24px;
  background: #fffaeb;
  display: none;
  border-top: 2px solid #ffc800;
  border-radius: 0 0 16px 16px;
}

.faq-item.expanded .faq-answer {
  display: block;
  animation: fadeInDown 0.3s ease;
}

.faq-answer-text {
  font-family: "din-round-medium", sans-serif;
  font-size: 15px;
  color: #374151;
  line-height: 1.6;
  margin: 0;
  padding: 16px 20px;
  background: white;
  border-radius: 12px;
  border-left: 4px solid #ffc800;
  border: 2px solid #ffc800;
}

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

/* Share Section */
.share-section {
  background: white;
  border-radius: 16px;
  padding: 24px;
}

.share-card {
  background: rgb(var(--color-polar));
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.share-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
}

.share-content {
  flex: 1;
}

.share-title {
  font-family: "din-round-bold", sans-serif;
  font-size: 16px;
  color: rgb(var(--color-eel));
  margin: 0 0 4px 0;
}

.share-description {
  font-family: "din-round-medium", sans-serif;
  font-size: 14px;
  color: rgb(var(--color-wolf));
  margin: 0;
}

.share-btn {
  background: var(--primary-color);
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 0 var(--primary-dark);
}

.share-btn:hover {
  background: var(--primary-light);
  transform: scale(1.05);
}

/* Mobile Content Section - Hidden on desktop */
.mobile-content-section {
  display: none;
  background: white;
  border-radius: 16px;
  margin-bottom: 24px;
}

/* Content Sidebar */
.course-content-column {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.content-sidebar {
  background: linear-gradient(135deg, #e0f4ff 0%, #cef0ff 100%);
  border-radius: 20px;
  padding: 28px;
  border: 3px solid #1cb0f6;
  box-shadow: 0 6px 0 #1890c7, 0 10px 25px -5px rgba(28, 176, 246, 0.3);
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding: 20px;
  background: white;
  border-radius: 16px;
  border: 3px solid #1cb0f6;
  box-shadow: 0 4px 0 #1890c7, 0 8px 15px rgba(28, 176, 246, 0.2);
}

.content-title {
  font-family: "din-round-bold", sans-serif;
  font-size: 20px;
  color: #1cb0f6;
  margin: 0;
  font-weight: bold;
}

/* Modules List */
.modules-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.module-item {
  background: white;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 3px solid #1cb0f6;
  box-shadow: 0 4px 0 #1890c7;
  position: relative;
  margin-bottom: 15px;
}

.module-item:hover {
  background: #e0f4ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #1890c7, 0 10px 20px rgba(28, 176, 246, 0.2);
}

.module-item:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #1890c7;
}

.module-header {
  flex: 1;
}

.module-title {
  font-family: "din-round-bold", sans-serif;
  font-size: 14px;
  color: rgb(var(--color-eel));
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.module-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.module-number {
  font-family: "din-round-medium", sans-serif;
  font-size: 12px;
  color: rgb(var(--color-wolf));
}

.module-badge {
  background: #10b981;
  color: white;
  padding: 2px 8px;
  border-radius: 6px;
  font-family: "din-round-bold", sans-serif;
  font-size: 10px;
  text-transform: uppercase;
}

.module-duration {
  background: rgb(var(--color-swan));
  color: rgb(var(--color-wolf));
  padding: 2px 8px;
  border-radius: 6px;
  font-family: "din-round-medium", sans-serif;
  font-size: 10px;
}

.module-icon {
  color: #1cb0f6;
  font-size: 18px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e0f4ff;
  border-radius: 50%;
  transition: all 0.3s ease;
  border: 2px solid #1cb0f6;
}

.module-item:hover .module-icon {
  background: #1cb0f6;
  color: white;
  transform: rotate(180deg);
  box-shadow: 0 2px 4px rgba(28, 176, 246, 0.3);
}

.module-locked .module-icon {
  color: rgb(var(--color-wolf));
}

.module-free .module-icon {
  color: #10b981;
}

/* Lessons List */
.lessons-list {
  margin-left: 16px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lesson-item {
  background: white;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-left: 3px solid rgb(var(--color-swan));
}

.lesson-content {
  flex: 1;
}

.lesson-title {
  font-family: "din-round-medium", sans-serif;
  font-size: 13px;
  color: rgb(var(--color-eel));
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.lesson-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lesson-number {
  font-family: "din-round-medium", sans-serif;
  font-size: 11px;
  color: rgb(var(--color-wolf));
}

.lesson-duration {
  background: rgb(var(--color-polar));
  color: rgb(var(--color-wolf));
  padding: 2px 6px;
  border-radius: 4px;
  font-family: "din-round-medium", sans-serif;
  font-size: 10px;
}

.lesson-icon {
  color: rgb(var(--color-wolf));
  font-size: 14px;
}

.lesson-locked {
  opacity: 0.7;
}

/* Mobile Responsive Design */
@media (max-width: 1024px) {
  .course-details-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .course-content-column {
    position: static;
    order: -1;
  }

  .content-sidebar {
    margin-bottom: 0;
  }

  /* Show mobile content section on tablet */
  .mobile-content-section {
    display: block;
  }
}

@media (max-width: 768px) {
  .course-details-container {
    padding: 0;
    gap: 20px;
  }

  .course-header-content {
    padding: 0 16px;
  }

  .course-header-title {
    font-size: 18px;
  }

  .course-title-section {
    gap: 16px;
  }

  .course-header-main {
    flex-direction: row;
    gap: 16px;
  }

  .course-title-image {
    align-self: center;
  }

  .course-main-title {
    font-size: 24px;
  }

  .enrollment-info {
    flex-direction: column;
  }

  .plans-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Disable horizontal scrolling on mobile */
  .plans-grid.scrollable-plans {
    display: grid !important;
    overflow-x: visible !important;
    grid-template-columns: 1fr !important;
  }

  .plans-grid.scrollable-plans .plan-card {
    flex: none !important;
    min-width: auto !important;
  }

  .course-stats-bar {
    flex-direction: row;
    gap: 12px;
    text-align: center;
  }

  .share-card {
    flex-direction: row;
    gap: 12px;
  }

  /* Show mobile content section and hide desktop column */
  .mobile-content-section {
    display: block;
  }

  .course-content-column {
    display: none;
  }

  /* Reorder sections on mobile - show enrollment above mobile content */
  .course-info-column {
    display: flex;
    flex-direction: column;
  }

  .course-title-section {
    order: 1;
  }

  .course-enrollment-section {
    order: 2;
  }

  .mobile-content-section {
    order: 3;
  }

  .plans-section {
    order: 4;
  }

  .reviews-section {
    order: 5;
  }

  .share-section {
    order: 6;
  }

  .faq-section {
    order: 6;
  }
}

@media (max-width: 480px) {
  .instructors-section,
  .plans-section,
  .reviews-section,
  .faq-section,
  .share-section,
  .content-sidebar {
    padding: 16px;
  }
  .course-enrollment-section {
    padding-top: 0px;
    padding-bottom: 0px;
  }

  .course-main-title {
    font-size: 20px;
  }

  .enroll-btn {
    padding: 14px 16px;
  }

  .enroll-title {
    font-size: 14px;
  }

  .enroll-subtitle {
    font-size: 11px;
  }

  .module-title {
    font-size: 13px;
  }

  .lesson-title {
    font-size: 12px;
  }

  /* Reviews and FAQ mobile styles */
  .review-card {
    padding: 16px;
    gap: 12px;
  }

  .review-avatar {
    width: 40px;
    height: 40px;
  }

  .review-name {
    font-size: 14px;
  }

  .review-text {
    font-size: 13px;
  }

  .faq-question {
    padding: 14px 16px;
  }

  .faq-question-text {
    font-size: 14px;
  }

  .faq-answer {
    padding: 0 16px 14px;
  }

  .faq-answer-text {
    font-size: 13px;
  }
}

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

/* .course-card { */
  /* animation: fadeInUp 0.6s ease forwards; */
/* } */

.course-card:nth-child(1) {
  animation-delay: 0.1s;
}
.course-card:nth-child(2) {
  animation-delay: 0.2s;
}
.course-card:nth-child(3) {
  animation-delay: 0.3s;
}
.course-card:nth-child(4) {
  animation-delay: 0.4s;
}
.course-card:nth-child(5) {
  animation-delay: 0.5s;
}
.course-card:nth-child(6) {
  animation-delay: 0.6s;
}
.course-card:nth-child(7) {
  animation-delay: 0.7s;
}
.course-card:nth-child(8) {
  animation-delay: 0.8s;
}
.course-card:nth-child(9) {
  animation-delay: 0.9s;
}
.course-card:nth-child(10) {
  animation-delay: 1s;
}

/* Skeleton Loading Animation */
.skeleton-card {
  background: #f8f9fa !important;
  cursor: default !important;
  pointer-events: none;
}

.skeleton-card:hover {
  transform: none !important;
  box-shadow: none !important;
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton-stat {
  width: 60px;
  height: 24px;
  border-radius: 12px;
}

.skeleton-title {
  width: 80%;
  height: 20px;
  margin: 8px 0 4px 0;
  border-radius: 8px;
}

.skeleton-image {
  width: 80px;
  height: 80px;
  border-radius: 12px;
}

.skeleton-modules {
  width: 120px;
  height: 16px;
  border-radius: 6px;
}

.skeleton-arrow {
  width: 20px;
  height: 16px;
  border-radius: 6px;
}

/* Hide skeleton on mobile for better performance */
@media (max-width: 768px) {
  .skeleton-image {
    width: 60px;
    height: 60px;
  }

  .skeleton-title {
    height: 18px;
  }

  .skeleton-modules {
    width: 100px;
    height: 14px;
  }
}

/* Skeleton specific responsive adjustments */
@media (max-width: 480px) {
  .skeleton-card {
    padding: 16px;
    min-height: 130px;
    gap: 8px;
  }

  .skeleton-image {
    width: 60px;
    height: 60px;
  }

  .skeleton-title {
    height: 16px;
    width: 85%;
  }
}