/* ============================================
   Catalyst Programmers – Header, Hero, Footer only
   ============================================ */

:root {
  --cp-blue: #00367D;
  --cp-blue-hero: #002855;
  --cp-bg: #f8fafc;
  --cp-card: #ffffff;
  --cp-text: #1e293b;
  --cp-muted: #64748b;
  --cp-border: #e2e8f0;
  --cp-radius: 12px;
  --cp-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--cp-text);
  background: var(--cp-bg);
}

/* ---- Logos ---- */
.header-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.footer-logo {
  width: 140px;
  max-height: 100px;
  object-fit: contain;
}

/* ---- Header: white bar like catalystprogrammers.in ---- */
.cp-header.header {
  background: #ffffff !important;
  box-shadow: var(--cp-shadow);
  border-bottom: 1px solid var(--cp-border);
}

.theme-toggle {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--cp-radius);
}

.theme-toggle i {
  font-size: 1.1rem;
}

/* ---- Hero ---- */
.mentor-section {
  background: linear-gradient(135deg, var(--cp-blue-hero) 0%, var(--cp-blue) 50%, #0d47a1 100%) !important;
  padding: 1.5rem 0 2rem !important;
}

.mentor-hero {
  padding: 1.25rem 0 1.75rem !important;
  max-width: 1200px;
  margin: 0 auto;
}

.mentor-left-content h1 {
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.mentor-left-content p {
  color: rgba(255, 255, 255, 0.92) !important;
}

.mentor-tags a {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.mentor-tags a:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.trust-line {
  color: rgba(255, 255, 255, 0.85) !important;
}

.mentor-buttons a button {
  background: #fff;
  color: var(--cp-blue);
}

.mentor-buttons a button:hover {
  background: #f0f4ff;
}

.btn-mentor {
  background: #f59e0b !important;
  color: #1e293b !important;
}

.btn-mentor:hover {
  background: #fbbf24 !important;
}

.coursesTagWhite {
  color: #1e293b !important;
}

.mentor-left-content h1 {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.6rem;
}

.mentor-left-content p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0.9rem;
}

.mentor-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.mentor-buttons a button,
.btn-mentor {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--cp-radius);
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mentor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.mentor-tags a {
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-decoration: none;
}

.trust-line {
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
}

/* ---- Footer ---- */
.footer {
  background: var(--cp-blue) !important;
  padding: 2rem 0 1.5rem;
  color: #fff;
}

.footer h5 {
  font-size: 1rem;
  font-weight: 600;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

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

.social-links a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 38px !important;
  height: 38px !important;
  font-size: 1.1rem !important;
  color: #fff;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .mentor-hero {
    padding: 1rem 0 1.5rem;
  }

  .footer .row>div {
    text-align: center;
  }

  .footer .text-md-end {
    text-align: center !important;
  }

  .footer-links a:before {
    display: none;
  }

  .footer-links {
    padding-left: 0;
  }
}

@media (max-width: 576px) {
  .mentor-right-circles {
    display: none;
  }

  .mentor-left-content p br {
    display: none;
  }
}

@media (max-width: 991px) {
  .cp-header .navbar-brand span {
    display: none !important;
  }

  .offcanvas-body .nav-link {
    display: block;
    padding: 0.75rem 0;
  }
}

@media (hover: none) {

  .mentor-buttons a button,
  .btn {
    min-height: 44px;
  }
}

/* ========== DARK THEME ========== */
html.theme-dark {
  --cp-bg: #0f172a;
  --cp-card: #1e293b;
  --cp-text: #e2e8f0;
  --cp-muted: #cbd5e1;
  --cp-border: #334155;
}

html.theme-dark body {
  background: var(--cp-bg);
  color: var(--cp-text);
}

html.theme-dark .cp-header.header {
  background: var(--cp-card) !important;
  border-bottom-color: var(--cp-border) !important;
}

html.theme-dark .mentor-section {
  background: linear-gradient(135deg, #0c1929 0%, #00367D 50%, #1e3a5f 100%) !important;
}

html.theme-dark .theme-toggle {
  border-color: var(--cp-border);
  color: var(--cp-muted);
}

html.theme-dark .theme-toggle:hover {
  background: var(--cp-card);
  color: var(--cp-text);
}

html.theme-dark .offcanvas {
  background: var(--cp-bg);
  color: var(--cp-text);
}

html.theme-dark .offcanvas-title {
  color: var(--cp-text);
}

html.theme-dark .btn-close {
  filter: invert(1);
}

/* ---- Tag badge visibility fixes ---- */
/* Light mode: stronger contrast for tag badges */
.cp-tag-badge {
  background: rgba(0, 54, 125, 0.15);
  color: #003070;
  font-size: .72rem;
  font-weight: 600;
}

/* Dark mode: flip tag badges to a light blue pill that's readable on dark cards */
html.theme-dark .cp-tag-badge {
  background: rgba(99, 179, 237, 0.18);
  color: #90cdf4;
}

/* ---- Table text in dark mode ---- */
html.theme-dark table {
  color: var(--cp-text);
}

html.theme-dark .table {
  --bs-table-color: var(--cp-text);
}

/* ---- Muted text: ensure min contrast in both modes ---- */
/* Light mode: slightly darker muted */
[style*="color:var(--cp-muted)"],
.text-muted {
  color: #4a5568 !important;
}

html.theme-dark [style*="color:var(--cp-muted)"],
html.theme-dark .text-muted {
  color: #cbd5e1 !important;
}

/* ---- Accordion dark mode ---- */
html.theme-dark .accordion-button {
  color: var(--cp-text) !important;
  background: var(--cp-card) !important;
}

html.theme-dark .accordion-button:not(.collapsed) {
  background: var(--cp-card) !important;
  box-shadow: none !important;
}

html.theme-dark .accordion-button::after {
  filter: invert(1);
}

html.theme-dark .accordion-item {
  background: var(--cp-card);
  border-color: var(--cp-border) !important;
}

/* ---- Course/Live card tag badges (inline style override for dark) ---- */
html.theme-dark .badge[style*="color:#00367D"] {
  background: rgba(99, 179, 237, 0.18) !important;
  color: #90cdf4 !important;
}