/* SkyMed Courses styles */

.courses-hero {
  background: linear-gradient(135deg, #f1f5f9 0%, #e0e7ff 100%);
  padding: 4rem 0 3rem;
}
.courses-hero h1 {
  font-size: 2.5rem;
  margin: 0 0 0.75rem;
  color: #0f172a;
}
.courses-hero p {
  font-size: 1.125rem;
  color: #475569;
  margin: 0;
}

.courses-section { padding: 3rem 0 5rem; }

.courses-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.courses-search-input {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 1rem;
  transition: border-color 0.2s;
}
.courses-search-input:focus { outline: none; border-color: #3b82f6; }

.courses-filters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}
.courses-filter {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.92rem;
  font-family: inherit;
  background: #fff;
  color: #0f172a;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}
.courses-filter:hover { border-color: #94a3b8; }
.courses-filter:focus {
  outline: none;
  border-color: #598dd1;
  box-shadow: 0 0 0 4px rgba(89, 141, 209, 0.12);
}
.courses-filter--date {
  padding-right: 2rem;
  color: #475569;
}
.courses-filter--date::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.6;
}
.courses-filter-date {
  position: relative;
  display: flex;
}
.courses-date-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e2e8f0;
  border: 0;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s, color 0.15s;
  z-index: 2;
}
.courses-date-clear:hover {
  background: #cbd5e1;
  color: #0f172a;
}
.courses-reset-btn {
  padding: 0.65rem 1.1rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  color: #475569;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.courses-reset-btn:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #dc2626;
}

.courses-count {
  color: #64748b;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.course-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
}

.course-card-image-link { display: block; }
.course-card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f1f5f9;
}
.course-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.course-card-badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  backdrop-filter: blur(4px);
}
.badge--specialty { background: rgba(59, 130, 246, 0.95); }
.badge--format    { background: rgba(15, 23, 42, 0.85); }
.badge--featured  { background: rgba(234, 88, 12, 0.95); }

.course-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.course-card-title-link { text-decoration: none; color: inherit; }
.course-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.5rem;
  line-height: 1.4;
}
.course-card-title-link:hover .course-card-title { color: #3b82f6; }
.course-card-desc {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0 0 1rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.course-card-instructor {
  font-size: 0.85rem;
  color: #475569;
  margin-bottom: 0.875rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid #f1f5f9;
}
.course-card-instructor-name { font-weight: 600; display: block; }
.course-card-instructor-title { color: #94a3b8; font-size: 0.8rem; }

.course-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-bottom: 1rem;
}
.course-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8rem;
  color: #64748b;
}

.course-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.price-amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}
.price-free {
  font-size: 1rem;
  font-weight: 600;
  color: #16a34a;
}
.course-card-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  text-decoration: none;
}

.courses-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #64748b;
  font-size: 1.125rem;
}

/* === Course detail === */
.course-detail { padding: 3rem 0 5rem; }
.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: #3b82f6;
  text-decoration: none;
}
.course-detail-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2.5rem;
}
@media (max-width: 900px) {
  .course-detail-grid { grid-template-columns: 1fr; }
}

.course-detail-image {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.course-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.course-detail-title {
  font-size: 2rem;
  margin: 0 0 0.75rem;
  color: #0f172a;
}
.course-detail-instructor {
  font-size: 1rem;
  color: #475569;
  margin-bottom: 1.5rem;
}
.course-detail-instructor strong { display: block; color: #0f172a; }
.course-detail-instructor span { font-size: 0.875rem; color: #94a3b8; }
.course-detail-description {
  color: #334155;
  line-height: 1.8;
  margin-bottom: 2rem;
}
.course-detail-program {
  list-style: none;
  padding: 0;
  margin: 0;
}
.course-detail-program li {
  padding: 0.875rem 1rem;
  background: #f8fafc;
  border-left: 3px solid #3b82f6;
  border-radius: 0 8px 8px 0;
  margin-bottom: 0.5rem;
}

.course-detail-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.75rem;
  position: sticky;
  top: 1.5rem;
}
.course-detail-price {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #f1f5f9;
}
.course-detail-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.course-detail-meta li {
  padding: 0.625rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.95rem;
  color: #0f172a;
}
.course-detail-meta li span {
  color: #64748b;
  margin-right: 0.5rem;
}
.btn-block { display: block; text-align: center; }

/* === ABOUT PAGE === */
.about-hero {
  background: var(--slate-50, #f8fafc);
  border-bottom: 1px solid var(--slate-200, #e2e8f0);
  padding: 4rem 0;
}
.about-hero-inner { max-width: 760px; }
.about-hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--slate-900, #0f172a);
  margin: 0.75rem 0 1.5rem;
  line-height: 1.15;
}
.about-hero-text {
  font-size: 1.125rem;
  color: var(--slate-600, #475569);
  line-height: 1.7;
}

.about-2col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 900px) {
  .about-2col { grid-template-columns: 1fr 1fr; align-items: center; }
}
.about-2col-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 4px;
}
.about-2col--reverse .about-2col-image { order: 2; }
@media (min-width: 900px) {
  .about-2col--reverse .about-2col-image { order: 0; }
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.value-card {
  background: #fff;
  border: 1px solid var(--slate-200, #e2e8f0);
  border-radius: 12px;
  padding: 1.75rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}
.value-card .subject-icon { margin: 0 auto 1rem; }
.value-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--slate-900, #0f172a);
  margin-bottom: 0.5rem;
}
.value-card p {
  font-size: 0.875rem;
  color: var(--slate-600, #475569);
  line-height: 1.5;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
  color: var(--slate-600, #475569);
  line-height: 1.5;
}
.check-list li::before {
  content: '✓';
  color: var(--skymed, #598dd1);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.about-stats-dark {
  background: #0f172a;
  padding: 4rem 0;
}
.about-stats-dark .stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
@media (min-width: 768px) {
  .about-stats-dark .stats-grid { grid-template-columns: repeat(4, 1fr); }
}
.about-stats-dark .stat-item { text-align: center; }
.stat-value-light {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
}
.stat-label-light {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

/* FAQ */
.faq-wrap { max-width: 800px; margin: 0 auto; }
.faq-section { margin-bottom: 2rem; }
.faq-section-head {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1rem;
}
.faq-section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--skymed, #598dd1);
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  font-size: 0.875rem;
}
.faq-section-head h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--slate-900, #0f172a);
  margin: 0;
}
.faq-list { display: flex; flex-direction: column; gap: 0.5rem; }
.faq-item {
  background: #fff;
  border: 1px solid var(--slate-200, #e2e8f0);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s;
}
.faq-item.open {
  background: #eef4fb;
  border-left: 4px solid var(--skymed, #598dd1);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: transparent;
  border: 0;
  padding: 1rem 1.25rem;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
}
.faq-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--slate-300, #cbd5e1);
  flex-shrink: 0;
  transition: background 0.2s;
}
.faq-item.open .faq-dot { background: var(--skymed, #598dd1); }
.faq-q-text {
  flex: 1;
  font-weight: 500;
  color: var(--slate-900, #0f172a);
}
.faq-item.open .faq-q-text { color: var(--skymed-800, #2d5494); }
.faq-chevron {
  flex-shrink: 0;
  color: var(--slate-400, #94a3b8);
  transition: transform 0.3s, color 0.2s;
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--skymed, #598dd1);
}
.faq-a {
  display: none;
  padding: 0 1.25rem 1.125rem 2.625rem;
  font-size: 0.875rem;
  color: var(--slate-600, #475569);
  line-height: 1.65;
}
.faq-item.open .faq-a { display: block; }

.team-block { max-width: 760px; margin: 0 auto; text-align: center; }

/* === CONTACTS PAGE === */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 900px) {
  .contacts-grid { grid-template-columns: 1fr 1fr; }
}
.contacts-h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--slate-900, #0f172a);
  margin: 0 0 2rem;
}
.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--skymed-100, #d4e3f5);
  color: var(--skymed, #598dd1);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-line h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate-900, #0f172a);
  margin: 0 0 0.25rem;
}
.contact-line a {
  color: var(--slate-600, #475569);
  font-size: 0.95rem;
  transition: color 0.2s;
}
.contact-line a:hover { color: var(--skymed, #598dd1); }
.contact-line p {
  color: var(--slate-600, #475569);
  font-size: 0.95rem;
  margin: 0;
}
.contact-hint {
  font-size: 0.8rem !important;
  color: var(--slate-400, #94a3b8) !important;
  margin-top: 0.25rem !important;
}

.faq-cta {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--slate-50, #f8fafc);
  border: 1px solid var(--slate-200, #e2e8f0);
  border-radius: 4px;
}
.faq-cta h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate-900, #0f172a);
  margin: 0 0 0.5rem;
}
.faq-cta p {
  font-size: 0.875rem;
  color: var(--slate-600, #475569);
  margin: 0 0 1rem;
}

/* Contact form (Drupal FormBase output) */
.contacts-form-wrap form { display: flex; flex-direction: column; gap: 1.25rem; }
.contacts-form-wrap .form-item { margin: 0; }
.contacts-form-wrap label {
  display: block;
  font-weight: 600;
  color: var(--slate-900, #0f172a);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}
.contacts-form-wrap input[type="text"],
.contacts-form-wrap input[type="email"],
.contacts-form-wrap input[type="tel"],
.contacts-form-wrap textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--slate-200, #e2e8f0);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contacts-form-wrap input[type="text"]:focus,
.contacts-form-wrap input[type="email"]:focus,
.contacts-form-wrap input[type="tel"]:focus,
.contacts-form-wrap textarea:focus {
  outline: none;
  border-color: var(--skymed, #598dd1);
  box-shadow: 0 0 0 3px rgba(89, 141, 209, 0.1);
}
.contacts-form-wrap textarea { resize: vertical; min-height: 140px; }
.contacts-form-wrap .form-actions input[type="submit"] {
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  background: var(--skymed, #598dd1);
  color: #fff;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.contacts-form-wrap .form-actions input[type="submit"]:hover {
  background: var(--skymed-700, #3a6bb5);
  transform: translateY(-1px);
}

/* Drupal status messages on /contacts */
.contacts-page .messages--status,
.about-page .messages--status {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}
