/* =============================================
   COURSES LISTING PAGE - Enhanced Styles
   ============================================= */

.courses-page { max-width: 1100px; margin: 0 auto; padding: 1rem 0 3rem; }

/* Hero Section */
.courses-hero {
  background: linear-gradient(135deg, #072946 0%, #0e4a6e 40%, #1a7ab5 100%);
  border-radius: 24px; padding: 3.5rem 3rem; color: #fff; margin-bottom: 2rem;
  position: relative; overflow: hidden;
}
.courses-hero::before {
  content: ''; position: absolute; top: -60%; right: -15%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
}
.courses-hero::after {
  content: ''; position: absolute; bottom: -30%; left: -10%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(26,122,181,0.3) 0%, transparent 70%);
  border-radius: 50%;
}
.courses-hero-content { position: relative; z-index: 2; }
.courses-hero h1 {
  color: #fff !important; font-size: 2rem; font-weight: 800;
  margin: 0 0 1rem; line-height: 1.3;
  background: linear-gradient(90deg, #fff, #c8e6ff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.courses-hero p {
  opacity: 0.92; font-size: 0.95rem; line-height: 1.8;
  max-width: 650px; margin: 0 0 2rem;
}

/* Hero Stats */
.hero-stats {
  display: flex; gap: 2rem; flex-wrap: wrap;
  padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stat { text-align: center; }
.hero-stat-number {
  display: block; font-size: 1.6rem; font-weight: 800; color: #fff;
  line-height: 1;
}
.hero-stat-label {
  display: block; font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.5px; opacity: 0.7; margin-top: 4px;
}
.hero-decoration { display: none; }

/* Features Strip */
.courses-features-strip {
  display: flex; justify-content: space-between; align-items: center;
  background: #fff; border-radius: 14px; padding: 1.25rem 2rem;
  border: 1px solid #e9ecef; margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  overflow-x: auto; gap: 1rem;
}
.feature-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 600; color: #072946;
  white-space: nowrap;
}
.feature-item i {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #eef4fb, #d6eaff); border-radius: 8px;
  color: #1a7ab5; font-size: 0.8rem;
}

/* Section Headings */
.section-heading {
  font-size: 1.1rem; font-weight: 700; color: #072946;
  margin-bottom: 1.25rem; display: flex; align-items: center; gap: 8px;
}
.section-heading i { color: #1a7ab5; }

/* Filter Bar */
.courses-filter-bar {
  background: #fff; border-radius: 14px; padding: 1.1rem 1.5rem;
  border: 1px solid #e9ecef; box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.courses-search-box {
  display: flex; align-items: center; gap: 10px;
  background: #f8f9fa; border-radius: 10px; padding: 10px 16px;
  border: 1px solid #e9ecef; transition: border-color 0.2s;
}
.courses-search-box:focus-within { border-color: #1a7ab5; background: #fff; }
.courses-search-box i { color: #1a7ab5; font-size: 0.85rem; }
.courses-search-input {
  border: none; background: transparent; outline: none;
  font-size: 0.88rem; width: 100%; color: #333;
}
.courses-filter-select {
  width: 100%; padding: 10px 14px; border-radius: 10px;
  border: 1px solid #e9ecef; background: #f8f9fa;
  font-size: 0.85rem; color: #333; outline: none;
  transition: border-color 0.2s; cursor: pointer;
}
.courses-filter-select:focus { border-color: #1a7ab5; }
.courses-count-label {
  font-size: 0.85rem; color: #6c757d;
  display: flex; align-items: center; gap: 6px;
}
.courses-count-label i { color: #1a7ab5; }

/* Courses Grid */
.courses-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 1.25rem; margin-bottom: 2rem;
}

/* Course Card */
.course-card {
  background: #fff; border-radius: 16px; padding: 1.75rem;
  border: 1px solid #e9ecef; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 12px rgba(0,0,0,0.03); position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  animation: fadeInUp 0.4s ease forwards; opacity: 0;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}
.course-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #1a7ab5, #072946, #1a7ab5);
  background-size: 200% 100%;
  opacity: 0; transition: opacity 0.3s;
}
.course-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #1a7ab5, #072946); transform: scaleX(0);
  transition: transform 0.3s; transform-origin: left;
}
.course-card:hover {
  box-shadow: 0 12px 40px rgba(7,41,70,0.12);
  transform: translateY(-6px); border-color: transparent;
}
.course-card:hover::before { opacity: 1; }
.course-card:hover::after { transform: scaleX(1); }

/* Card Badge */
.course-card-badge {
  position: absolute; top: 14px; right: 14px;
}
.badge-popular, .badge-free {
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; padding: 4px 10px; border-radius: 6px;
}
.badge-popular { background: #eef4fb; color: #1a7ab5; }
.badge-free { background: #fff3e0; color: #e65100; }

.course-card h3 { font-size: 1rem; font-weight: 700; color: #072946; margin: 0 0 0.6rem; line-height: 1.4; padding-right: 50px; }
.course-card h3 a { color: #072946; text-decoration: none; transition: color 0.2s; }
.course-card h3 a:hover { color: #1a7ab5; }
.course-card-desc { font-size: 0.82rem; color: #6c757d; line-height: 1.7; margin: 0 0 1.25rem; flex: 1; }
.course-card-meta { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }

.course-meta-tag {
  display: inline-flex; align-items: center; gap: 5px;
  background: #f8f9fa; padding: 6px 12px; border-radius: 8px;
  font-size: 0.72rem; font-weight: 600; color: #072946;
  transition: background 0.2s;
}
.course-meta-tag i { color: #1a7ab5; font-size: 0.68rem; }
.course-price-tag { background: #eef7ed; color: #1a6b14; }
.course-price-tag i { color: #1a6b14; }
.course-price-tag.free { background: #fff3e0; color: #e65100; }
.course-price-tag.free i { color: #e65100; }

.course-card-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: #1a7ab5; font-size: 0.82rem; font-weight: 600; text-decoration: none;
  margin-top: 1.25rem; transition: all 0.2s; padding: 8px 0;
}
.course-card-link:hover { gap: 12px; color: #072946; text-decoration: none; }

/* Why Choose Section */
.why-choose-section { margin-top: 2.5rem; margin-bottom: 1rem; }
.why-choose-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
}
.why-choose-item {
  background: #fff; border: 1px solid #e9ecef; border-radius: 14px;
  padding: 1.5rem; transition: all 0.25s;
}
.why-choose-item:hover { border-color: #1a7ab5; box-shadow: 0 6px 20px rgba(26,122,181,0.08); }
.why-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, #eef4fb, #d6eaff);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.75rem; color: #1a7ab5; font-size: 1.1rem;
}
.why-choose-item h4 { font-size: 0.88rem; font-weight: 700; color: #072946; margin: 0 0 0.4rem; }
.why-choose-item p { font-size: 0.78rem; color: #6c757d; margin: 0; line-height: 1.6; }

/* Sidebar */
.courses-sidebar { position: sticky; top: 1.5rem; }
.courses-sidebar-card {
  background: #fff; border-radius: 16px; border: 1px solid #e9ecef;
  padding: 1.5rem; box-shadow: 0 4px 15px rgba(0,0,0,0.03); margin-bottom: 1.25rem;
}
.courses-sidebar-card h4 {
  font-size: 0.9rem; font-weight: 700; color: #072946;
  margin: 0 0 1rem; padding-bottom: 0.75rem; border-bottom: 2px solid #eef4fb;
  display: flex; align-items: center; gap: 8px;
}
.courses-sidebar-card h4 i { color: #1a7ab5; }
.sidebar-link {
  display: flex; align-items: center; padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 0.83rem; color: #333; text-decoration: none; transition: all 0.2s;
}
.sidebar-link:hover { color: #1a7ab5; text-decoration: none; padding-left: 4px; }
.sidebar-link:last-child { border-bottom: none; }
.sidebar-link i { color: #1a7ab5; margin-right: 10px; font-size: 0.65rem; transition: transform 0.2s; }
.sidebar-link:hover i { transform: translateX(3px); }

/* Sidebar CTA Card */
.sidebar-cta-card {
  background: linear-gradient(135deg, #072946, #1a7ab5) !important;
  border: none !important; text-align: center; padding: 2rem 1.5rem !important;
}
.sidebar-cta-card h4 { border-bottom: none !important; }
.sidebar-cta-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem; font-size: 1.4rem; color: #fff;
}
.sidebar-cta-title {
  color: #fff !important; font-size: 1rem !important; border: none !important;
  padding: 0 !important; margin: 0 0 0.5rem !important;
  justify-content: center;
}
.sidebar-cta-text {
  color: rgba(255,255,255,0.85); font-size: 0.82rem; line-height: 1.6; margin: 0 0 1.25rem;
}
.sidebar-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: #072946; font-size: 0.82rem; font-weight: 700;
  padding: 10px 22px; border-radius: 10px; text-decoration: none;
  transition: all 0.2s; box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.sidebar-cta-btn:hover {
  transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  text-decoration: none; color: #1a7ab5;
}

/* Testimonial Card */
.sidebar-testimonial-card {
  background: linear-gradient(180deg, #fafcff 0%, #fff 100%) !important;
}
.sidebar-testimonial-card h4 {
  border-bottom-color: #e8f0fe !important;
}
.testimonial-item {
  padding: 1rem 0; border-bottom: 1px solid #f0f4f8;
}
.testimonial-item:last-child { border-bottom: none; padding-bottom: 0; }
.testimonial-stars {
  margin-bottom: 0.5rem;
}
.testimonial-stars i {
  color: #f5a623; font-size: 0.7rem; margin-right: 1px;
}
.testimonial-text {
  font-size: 0.82rem; color: #444; line-height: 1.7;
  font-style: italic; margin: 0 0 0.75rem;
  padding-left: 0.85rem; border-left: 3px solid #1a7ab5;
  background: #f8fafd; padding: 0.6rem 0.85rem; border-radius: 0 8px 8px 0;
}
.testimonial-author {
  display: flex; align-items: center; gap: 10px;
}
.testimonial-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #1a7ab5, #072946);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
  box-shadow: 0 2px 8px rgba(26,122,181,0.3);
}
.testimonial-author strong {
  display: block; font-size: 0.8rem; color: #072946;
}
.testimonial-author span {
  font-size: 0.7rem; color: #1a7ab5; font-weight: 500;
}

/* FAQ */
.courses-faq { margin-top: 2.5rem; }
.courses-faq-item {
  background: #fff; border: 1px solid #e9ecef; border-radius: 12px;
  margin-bottom: 0.75rem; overflow: hidden; transition: border-color 0.2s;
}
.courses-faq-item:hover { border-color: #c8e6ff; }
.courses-faq-item.active { border-color: #1a7ab5; }
.courses-faq-q {
  padding: 1.1rem 1.5rem; cursor: pointer; font-weight: 600; font-size: 0.88rem;
  color: #072946; display: flex; justify-content: space-between; align-items: center;
  transition: background 0.2s;
}
.courses-faq-q:hover { background: #fafbfc; }
.courses-faq-a {
  padding: 0 1.5rem 1.1rem; font-size: 0.83rem; color: #555;
  line-height: 1.7; display: none;
}
.courses-faq-item.active .courses-faq-a { display: block; }
.courses-faq-item.active .courses-faq-q i { transform: rotate(180deg); }
.courses-faq-q i { transition: transform 0.3s; color: #1a7ab5; font-size: 0.75rem; }

/* Responsive */
@media (max-width: 992px) {
  .courses-features-strip { padding: 1rem; gap: 0.75rem; }
  .feature-item { font-size: 0.75rem; }
}
@media (max-width: 768px) {
  .courses-hero { padding: 2rem 1.5rem; border-radius: 16px; }
  .courses-hero h1 { font-size: 1.5rem; -webkit-text-fill-color: #fff; }
  .hero-stats { gap: 1.25rem; }
  .hero-stat-number { font-size: 1.3rem; }
  .courses-features-strip { border-radius: 10px; padding: 1rem; overflow-x: auto; }
  .courses-grid { grid-template-columns: 1fr; }
  .courses-filter-bar .row > div { margin-bottom: 0.75rem; }
  .why-choose-grid { grid-template-columns: 1fr; }
  .sidebar-cta-card { margin-top: 2rem; }
}


/* SME Card */
.sme-card {
  background: linear-gradient(180deg, #f8fcff 0%, #fff 100%) !important;
}
.sme-card-intro {
  font-size: 0.8rem; color: #6c757d; line-height: 1.6; margin: 0 0 1rem;
}
.sme-item {
  padding: 0.85rem 0; border-bottom: 1px solid #f0f4f8;
}
.sme-item:last-child { border-bottom: none; padding-bottom: 0; }
.sme-item-content {
  font-size: 0.82rem; color: #333; line-height: 1.6; margin-bottom: 0.6rem;
}
.sme-item-content h4,
.sme-item-content h5,
.sme-item-content strong {
  font-size: 0.88rem; font-weight: 700; color: #072946; margin: 0 0 2px;
}
.sme-item-content p {
  font-size: 0.78rem; color: #555; margin: 0; line-height: 1.5;
}
.sme-connect-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #0077b5; color: #fff; font-size: 0.73rem; font-weight: 600;
  padding: 6px 14px; border-radius: 8px; text-decoration: none;
  transition: all 0.2s; box-shadow: 0 2px 8px rgba(0,119,181,0.2);
}
.sme-connect-btn:hover {
  background: #005e93; color: #fff; text-decoration: none;
  transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,119,181,0.3);
}
.sme-connect-btn i { font-size: 0.78rem; }


/* SME Request CTA Button */
.sme-request-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 1rem; padding: 11px 20px;
  background: linear-gradient(135deg, #072946, #1a7ab5);
  color: #fff; font-size: 0.82rem; font-weight: 600;
  border: none; border-radius: 10px; cursor: pointer;
  transition: all 0.2s; box-shadow: 0 4px 12px rgba(7,41,70,0.2);
}
.sme-request-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(7,41,70,0.3);
}
.sme-request-cta i { font-size: 0.78rem; }

/* SME Modal */
.sme-modal-content { border: none; border-radius: 16px; overflow: hidden; }
.sme-modal-header {
  background: linear-gradient(135deg, #072946, #1a7ab5);
  color: #fff; padding: 1.5rem; border: none;
  align-items: flex-start;
}
.sme-modal-header .close { color: #fff; opacity: 0.8; text-shadow: none; }
.sme-modal-header .close:hover { opacity: 1; }
.sme-modal-header h5 { font-size: 1.1rem; font-weight: 700; margin: 0 0 4px; }
.sme-modal-header h5 i { margin-right: 8px; }
.sme-modal-subtitle { font-size: 0.8rem; opacity: 0.85; margin: 0; }
.sme-modal-body { padding: 1.5rem; }
.sme-modal-body .form-group { margin-bottom: 1rem; }
.sme-modal-body label {
  font-size: 0.82rem; font-weight: 600; color: #072946; margin-bottom: 4px;
}
.sme-modal-body .form-control {
  border-radius: 8px; border: 1px solid #e0e5ec; padding: 10px 14px;
  font-size: 0.85rem; transition: border-color 0.2s;
}
.sme-modal-body .form-control:focus {
  border-color: #1a7ab5; box-shadow: 0 0 0 3px rgba(26,122,181,0.1);
}
.sme-modal-body textarea.form-control { resize: vertical; min-height: 100px; }
.sme-modal-note {
  background: #f0f7ff; border-radius: 8px; padding: 10px 14px;
  font-size: 0.78rem; color: #1a7ab5; display: flex; align-items: center; gap: 8px;
}
.sme-modal-footer { border-top: 1px solid #f0f0f0; padding: 1rem 1.5rem; }
.sme-submit-btn {
  background: linear-gradient(135deg, #072946, #1a7ab5);
  color: #fff; font-weight: 600; font-size: 0.85rem;
  padding: 9px 22px; border-radius: 8px; border: none;
  transition: all 0.2s;
}
.sme-submit-btn:hover {
  color: #fff; box-shadow: 0 4px 12px rgba(7,41,70,0.25);
  transform: translateY(-1px);
}

/* Flash Alert */
.sme-flash-alert {
  position: fixed; top: 80px; right: 20px; z-index: 9999;
  max-width: 400px; border-radius: 10px; font-size: 0.85rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  animation: slideInRight 0.3s ease;
}
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
