/* These styles are generated from project.scss. */

/* ─── Brand gradients (single source of truth, see .claude/skills/design-system.md) ─── */
:root {
  --ch-gradient-primary: linear-gradient(135deg, #667eea, #764ba2);
  --ch-gradient-secondary: linear-gradient(135deg, #4facfe, #00f2fe);
  --ch-gradient-success: linear-gradient(135deg, #84fab0, #8fd3f4);
  --ch-gradient-info: linear-gradient(135deg, #a8edea, #fed6e3);
  --ch-gradient-warning: linear-gradient(135deg, #f6d365, #fda085);
  --ch-gradient-danger: linear-gradient(135deg, #f093fb, #f5576c);
  --ch-gradient-btn: linear-gradient(135deg, #8a5ccb, #5a8dfc);
}

/* ─── Global base (Calihand v3) ─── */
* { box-sizing: border-box; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.15); border-radius: 3px; }
button { font-family: inherit; }
.sticky-top { top: 70px !important; }

/* Visible keyboard focus (accessibility requirement, never suppress) */
:focus-visible {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

.alert-debug {
  color: black;
  background-color: white;
  border-color: #d6e9c6;
}

.alert-error {
  color: #b94a48;
  background-color: #f2dede;
  border-color: #eed3d7;
}

/* Общие стили для светлой темы */
body {
        background-color: #f8f9fa;
        color: #333333;
        font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        display: flex;
        flex-direction: column;
        min-height: 100vh;
      }

      /* Глассморфизм для карточек */
      .card-glass {
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        border-radius: 15px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
      }

      /* Gradient buttons */
      .btn-gradient {
        background: var(--ch-gradient-btn);
        border: none;
        color: white;
        transition: all 0.3s ease;
      }
      .btn-gradient:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
      }

      /* Card headers — alias for the primary brand gradient */
      .card-header-gradient {
        background: var(--ch-gradient-primary);
        color: white;
        border-radius: 15px 15px 0 0;
      }

      /* Анимации */
      @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
      }
      .animate-fadeIn {
        animation: fadeIn 0.5s ease-in-out;
      }

      /* Футер */
      footer {
        margin-top: auto;
      }

/* Анимация для сердечка */
@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.fa-heart.text-danger {
    animation: heartBeat 0.5s ease-in-out; /* Анимация при лайке */
}

.btn-link {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
}

.btn-link:hover {
    opacity: 0.8;
}

/* Стили для цифры лайков */
#like-count {
    font-size: 1rem;
    color: #6c757d; /* Серый цвет */
    user-select: none; /* Запрет выделения текста */
}

/* Стили для кнопки лайка */
#like-ink {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
}

#like-ink:hover {
    opacity: 0.8;
}

/* Стили для футера v3 */
footer {
  margin-top: auto;
  background: #f8f9fa;
  padding: 20px 0;
  border-top: 1px solid #e9ecef;
}

footer h6 {
  font-size: 11px;
  letter-spacing: 1px;
}

.btn-social {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
  transition: transform 0.2s ease;
}

.btn-social:hover {
  transform: scale(1.1);
}

/* Mobile adjustments */
@media (max-width: 767.98px) {
  /* Accordion animation */
  .collapse {
    transition: all 0.3s ease;
  }

  /* Chevron icon */
  .fa-chevron-down {
    transition: transform 0.3s ease;
  }

  /* Rotate chevron when expanded */
  [aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
  }

  /* 44px minimum touch targets in the collapsed navbar menu */
  .navbar-collapse .nav-link,
  .navbar-collapse .dropdown-item {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
  }
  .navbar-collapse .btn {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
}

/* Стиль для основного изображения Ink */
.ink-detail-image {
    max-height: 300px;
    width: auto;
}

/* Стиль для миниатюр Scrawl */
.scrawl-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

/* Общие стили для миниатюр */
.thumbnail-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

/* Стили для аватара профиля */
.profile-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

/* Стили для миниатюр в ленте активности */
.activity-thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

/* Дополнительные классы */
.rounded-10 {
    border-radius: 10px;
}

.btn-social {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
  }

  .btn-social:hover {
    transform: scale(1.1);
  }

/* Navbar brand */
.navbar-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px !important;
  color: #667eea !important;
  letter-spacing: -0.3px;
}

/* Навигационные стили для разделения ролей */
.navbar .dropdown-menu {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar .dropdown-item {
    padding: 0.5rem 1.5rem;
    transition: all 0.2s ease;
}

.navbar .dropdown-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.navbar .dropdown-item i {
    width: 20px;
    text-align: center;
}

/* All nav items share the same color; the transparent border reserves
   space for the active underline so item heights never change */
#learningDropdown,
#teachingDropdown,
#accountDropdown,
.navbar .nav-link {
    color: #6c757d !important;
    border-bottom: 2px solid transparent;
}

/* Активные выпадающие меню */
.dropdown-menu.show {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Разделитель в дропдауне */
.dropdown-divider {
    margin: 0.5rem 0;
}

/* Nav icons inherit the link's font size so line heights stay uniform */
.navbar .nav-link i {
    font-size: 1em;
}

/* Подсветка активного раздела */
.navbar .nav-item.active > .nav-link,
.navbar .nav-item:hover > .nav-link {
    color: #0d6efd !important;
    transition: color 0.2s ease;
}

/* Активная вкладка выделяется синим цветом */
.navbar .nav-item.active .nav-link {
    color: #0d6efd !important;
    font-weight: 500;
    border-bottom: 2px solid #0d6efd;
}

/* Убираем разноцветие из выпадающих меню */
.navbar .nav-item.active.dropdown .nav-link {
    color: #0d6efd !important;
    border-bottom: 2px solid #0d6efd;
}

/* Hover эффект для неактивных вкладок */
.navbar .nav-item:not(.active):hover .nav-link {
    color: #0d6efd !important;
    transition: color 0.2s ease;
}

/* Убираем подчеркивание при hover для активных вкладок */
.navbar .nav-item.active:hover .nav-link {
    border-bottom: 2px solid #0d6efd;
}

/* ─── Upload area (shared: ink_detail, trial_exercise) ─── */
.upload-area {
  border: 3px dashed #667eea;
  border-radius: 15px;
  padding: 40px 20px;
  text-align: center;
  background: rgba(102, 126, 234, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
  margin-bottom: 20px;
  display: block;
  width: 100%;
}
.upload-area:hover {
  border-color: #764ba2;
  background: rgba(102, 126, 234, 0.1);
}
.upload-area.dragover {
  border-color: #28a745;
  background: rgba(40, 167, 69, 0.1);
}
.upload-icon {
  font-size: 3rem;
  color: #667eea;
  margin-bottom: 20px;
}
.upload-area input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 0.1px;
  height: 0.1px;
  overflow: hidden;
  z-index: -1;
}

/* ─── Score circles (shared: scrawl_detail, trial_result) ─── */
.score-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  font-weight: 800;
  color: white;
  margin: 0 auto 10px;
  flex-shrink: 0;
}
.score-circle-lg {
  width: 150px;
  height: 150px;
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 20px;
}
/* Score verdict colors: green = excellent, brand = good, orange = keep
   practicing. Deliberately no red — this page must encourage beginners. */
.score-circle.score-excellent { background: linear-gradient(135deg, #28a745 0%, #20c997 100%); }
.score-circle.score-good      { background: var(--ch-gradient-primary); }
.score-circle.score-needs-work,
.score-circle.score-low       { background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%); }

/* Score badges (child_detail activity timeline) */
.score-badge { display: inline-block; padding: 4px 8px; border-radius: 12px; font-size: 0.8rem; font-weight: bold; }
.score-badge.score-excellent  { background: #d4edda; color: #155724; }
.score-badge.score-good       { background: #fff3cd; color: #856404; }
.score-badge.score-needs-work { background: #f8d7da; color: #721c24; }

/* ─── VS badge (shared: scrawl_detail, trial_result) ─── */
.vs-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* ─── Comparison images (trial_result) ─── */
.comparison-images {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 30px 0;
}
.comparison-images img {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
@media (min-width: 576px) {
  .comparison-images {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
  }
  .comparison-images .text-center {
    flex: 1;
    max-width: 280px;
  }
  .comparison-images img { max-height: 240px; }
  .vs-badge-lg { width: 60px; height: 60px; font-size: 1rem; }
}

/* Comparison image (scrawl_detail) */
.comparison-img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ─── Trial result page ─── */
.result-hero {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  padding: 20px 32px;
  border-radius: 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.result-hero-icon { font-size: 2rem; line-height: 1; flex-shrink: 0; }
.result-hero h1   { font-size: 1.4rem; font-weight: 700; margin: 0 0 2px 0; }
.result-hero p    { margin: 0; opacity: 0.88; font-size: 0.9rem; }
.result-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  padding: 40px;
}
.feedback-item {
  background: #f8f9fa;
  border-left: 4px solid #667eea;
  padding: 20px;
  border-radius: 0 10px 10px 0;
  margin-bottom: 15px;
}
.btn-cta {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  padding: 15px 30px;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4); color: white; }
.loading-spinner { text-align: center; padding: 60px 0; }
.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #f3f3f3;
  border-top: 6px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}
@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.feature-highlight {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  margin-bottom: 20px;
}
.feature-highlight i { font-size: 2rem; color: #667eea; margin-bottom: 15px; }
.locked-section  { position: relative; border-radius: 12px; overflow: hidden; margin-bottom: 15px; }
.locked-content  { filter: blur(4px); user-select: none; pointer-events: none; background: #f8f9fa; border-left: 4px solid #667eea; padding: 20px; border-radius: 0 10px 10px 0; }
.locked-overlay  { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.4); }
.locked-badge    { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 8px 20px; border-radius: 20px; font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; gap: 6px; box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4); }
.weak-area-card  { background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%); border: 1px solid #ffc107; border-radius: 12px; padding: 16px 20px; margin-bottom: 15px; }
.cta-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-radius: 24px;
  padding: 50px 40px;
  color: white;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.plan-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 28px 24px;
  transition: all 0.3s ease;
  height: 100%;
}
.plan-card.featured       { background: rgba(102, 126, 234, 0.25); border-color: #667eea; transform: scale(1.03); box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3); }
.plan-card:hover          { transform: scale(1.04); border-color: #667eea; }
.plan-card.featured:hover { transform: scale(1.06); }
.plan-price      { font-size: 2rem; font-weight: 800; color: white; }
.plan-price span { font-size: 1rem; font-weight: 400; opacity: 0.7; }
.btn-signup-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  padding: 14px 32px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  width: 100%;
  display: block;
  text-align: center;
  text-decoration: none;
}
.btn-signup-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5); color: white; }
.btn-signup-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: white;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  width: 100%;
  display: block;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-signup-secondary:hover { background: rgba(255, 255, 255, 0.1); color: white; }
.check-item   { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; font-size: 0.9rem; opacity: 0.9; }
.check-item i { color: #20c997; margin-top: 2px; flex-shrink: 0; }
.testimonial-card   { background: rgba(255, 255, 255, 0.07); border-radius: 12px; padding: 20px; border-left: 3px solid #20c997; margin-top: 24px; }
.score-badge-inline { display: inline-block; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 2px 10px; border-radius: 12px; font-weight: 700; font-size: 0.95rem; }

/* ─── Trial exercise page ─── */
.trial-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 60px 0;
  margin-bottom: 40px;
}
.trial-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  padding: 40px;
  margin-top: -30px;
  position: relative;
  z-index: 2;
}
.sample-preview {
  border: 3px dashed #e9ecef;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  background: #f8f9fa;
  margin-bottom: 30px;
}
.sample-preview img { max-width: 100%; max-height: 200px; border-radius: 10px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); }
.btn-trial {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  padding: 15px 40px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}
.btn-trial:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4); color: white; }
.feature-icon { font-size: 2.5rem; color: #667eea; margin-bottom: 20px; }
.step-number {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin: 0 auto 15px;
}

/* ─── Child dashboard (game UI) ─── */
.child-dashboard-page {
  background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 50%, #fce4ec 100%);
  min-height: 100vh;
}
.glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
  border-radius: 20px;
}
.day-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
}
.day-circle.completed { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4); }
.day-circle.pending   { background: #f8f9fa; border: 2px dashed #dee2e6; color: #aaa; }
.achievement-badge {
  transition: all 0.3s ease;
  cursor: pointer;
  border-radius: 15px;
  padding: 15px;
  text-align: center;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.achievement-badge.earned  { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); border: 2px solid #ffd700; transform: scale(1.05); }
.achievement-badge.locked  { background: #f8f9fa; border: 2px solid #dee2e6; opacity: 0.6; filter: grayscale(100%); }
.lesson-card           { transition: all 0.3s ease; cursor: pointer; border-radius: 20px; }
.lesson-card:hover     { transform: translateY(-5px); }
.star-rating           { color: #ffd700; }
.star-empty            { color: #e9ecef; }
.btn-game {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 25px;
  color: white;
  font-weight: bold;
  transition: all 0.3s ease;
}
.btn-game:hover         { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4); color: white; }
.btn-success-custom     { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); border: none; border-radius: 25px; color: white; font-weight: bold; }
.btn-warning-custom     { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); border: none; border-radius: 25px; color: white; font-weight: bold; }
.progress-custom        { height: 12px; border-radius: 10px; background-color: #e9ecef; }
.progress-bar-custom    { background: linear-gradient(90deg, #667eea 0%, #764ba2 100%); border-radius: 10px; }
.emoji-icon             { font-size: 2rem; margin-bottom: 0.5rem; }
.stats-number           { font-size: 1.5rem; font-weight: bold; color: #667eea; }
.child-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}
.stars-counter { background: rgba(255, 193, 7, 0.2); border-radius: 25px; padding: 8px 15px; color: #ffc107; font-weight: bold; }

/* ─── Child detail (progress ring, activity timeline) ─── */
.progress-ring         { width: 120px; height: 120px; position: relative; }
.progress-ring-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(#28a745 var(--progress, 0%), #e9ecef 0%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.progress-ring-circle::before { content: ''; position: absolute; width: 80%; height: 80%; background: white; border-radius: 50%; }
.progress-ring-text    { position: relative; z-index: 1; font-weight: bold; font-size: 1.2rem; color: #333; }
.activity-timeline     { position: relative; padding-left: 30px; }
.activity-timeline::before { content: ''; position: absolute; left: 15px; top: 0; bottom: 0; width: 2px; background: #dee2e6; }
.activity-item         { position: relative; margin-bottom: 20px; }
.activity-item::before { content: ''; position: absolute; left: -22px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: #28a745; border: 3px solid white; box-shadow: 0 0 0 2px #28a745; }
.metric-card           { transition: transform 0.2s ease; }
.metric-card:hover     { transform: translateY(-2px); }

/* ─── Scrawl detail page ─── */
.tip-card      { background: linear-gradient(135deg, #fff8e1, #fff3cd); border: 1px solid #ffc107; border-radius: 12px; padding: 14px 18px; }
.history-pill  { display: inline-flex; align-items: center; background: #f1f3f5; border-radius: 20px; padding: 4px 12px; font-size: 0.85rem; font-weight: 600; color: #495057; text-decoration: none; }
.history-pill:hover   { background: #dee2e6; color: #212529; }
.history-pill.current { background: linear-gradient(135deg, #667eea, #764ba2); color: white; }
.history-arrow  { color: #adb5bd; font-size: 0.7rem; }
.course-banner  { background: linear-gradient(135deg, #e3f2fd, #e8eaf6); border: 1px solid #90caf9; border-radius: 12px; padding: 12px 20px; margin-bottom: 20px; }

/* ─── Course list page ─── */
.course-image       { height: 200px; object-fit: cover; width: 100%; }
.course-item        { transition: transform 0.2s ease-in-out; }
.course-item:hover  { transform: translateY(-5px); }
.blur-shadow-image  { position: relative; overflow: hidden; border-radius: 0.75rem; }

/* ─── Ink detail page ─── */
.course-info p      { line-height: 1.4; }
.course-info strong { color: #495057; font-size: 0.9rem; }
.course-info a      { font-weight: 500; }
.course-info a:hover { text-decoration: underline !important; }
@media (max-width: 768px) {
  .course-info { text-align: center; margin-bottom: 1rem; }
}

/* ─── Homepage hero ─── */
.hero-section {
  background: var(--ch-gradient-primary);
  color: white;
  padding: 80px 0 60px;
}
.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}
.hero-subtitle {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}
@media (max-width: 768px) {
  .hero-section { padding: 50px 0 40px; }
  .hero-title { font-size: 1.8rem; }
  .hero-subtitle { font-size: 1rem; }
}

/* ─── Icon shape (reusable) ─── */
.icon-shape {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-shape i {
  font-size: 1.2rem;
}

/* ─── Стили для фильтров курсов ─── */
#languageFilter option {
    padding: 8px;
    font-size: 14px;
}

#languageFilter option:first-child {
    font-weight: 600;
    color: #0d6efd;
}

/* Gradient card backgrounds */
.bg-gradient-primary {
    background: var(--ch-gradient-primary) !important;
}

.bg-gradient-success {
    background: var(--ch-gradient-success) !important;
}

.bg-gradient-info {
    background: var(--ch-gradient-info) !important;
}

.bg-gradient-warning {
    background: var(--ch-gradient-warning) !important;
}

.bg-gradient-danger {
    background: var(--ch-gradient-danger) !important;
}

.bg-gradient-secondary {
    background: var(--ch-gradient-secondary) !important;
}

/* Keep text on any gradient background white and readable */
[class*="bg-gradient-"],
.card-header-gradient {
    color: white !important;
}

[class*="bg-gradient-"] .text-white,
.card-header-gradient .text-white {
    color: white !important;
}

[class*="bg-gradient-"] .text-muted,
.card-header-gradient .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

@media (max-width: 576px) {
  .btn-social {
    width: 38px;
    height: 38px;
  }
  .btn-social i {
    font-size: 0.9em;
  }
  .btn-social-mobile {
    width: 44px;
    height: 44px;
    margin: 0 4px 8px 4px;
  }
  #followCollapse.show {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
  }
}
