/* =============================================================
   icmed.net — Main Stylesheet
   Design System: Editorial Elegance
   Version: 1.0.0
   ============================================================= */

/* -------------------------------------------------------------
   1. CSS CUSTOM PROPERTIES
   ------------------------------------------------------------- */
:root {
  --navy:       #0f2744;
  --navy-light: #1a365d;
  --teal:       #319795;
  --teal-dark:  #2c7a7b;
  --teal-light: #4fd1c7;
  --gold:       #d69e2e;
  --gold-dark:  #b7791f;
  --bg:         #FAF9F7;
  --bg-light:   #F3F2EF;
  --text:       #1A1A2E;
  --text-muted: #5a5a7a;
  --border:     #e2e0db;
  --white:      #FFFFFF;
  --shadow-sm:  0 1px 3px rgba(15, 39, 68, 0.08);
  --shadow-md:  0 4px 16px rgba(15, 39, 68, 0.12);
  --shadow-lg:  0 8px 32px rgba(15, 39, 68, 0.16);
  --radius:     6px;
  --radius-lg:  12px;
  --transition: 0.2s ease;
}

/* -------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--teal-dark);
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: 1rem;
}

/* -------------------------------------------------------------
   3. CONTAINER
   ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* -------------------------------------------------------------
   4. TYPOGRAPHY
   ------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  color: var(--text);
}

h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

h3 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
}

h4 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* Prose — long-form editorial text */
.prose {
  max-width: 70ch;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text);
}

.prose p + p {
  margin-top: 1.25rem;
}

.prose h2,
.prose h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

/* Section labels */
.section-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 2.5rem;
  line-height: 1.65;
}

/* Page-level headings */
.page-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 1rem;
}

.page-intro {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 680px;
  line-height: 1.7;
}

/* -------------------------------------------------------------
   5. BUTTONS
   ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  line-height: 1;
  transition: background-color var(--transition),
              color var(--transition),
              border-color var(--transition),
              box-shadow var(--transition),
              transform var(--transition);
  white-space: nowrap;
  user-select: none;
  text-decoration: none;
  cursor: pointer;
}

.btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.btn-primary {
  background-color: var(--teal);
  color: var(--white);
  border: 2px solid var(--teal);
}

.btn-primary:hover {
  background-color: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-outline {
  background-color: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}

.btn-outline:hover {
  background-color: var(--teal);
  color: var(--white);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.btn-outline:active {
  transform: translateY(0);
}

.btn-lg {
  padding: 0.875rem 2.25rem;
  font-size: 1.0625rem;
  border-radius: var(--radius-lg);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
  color: var(--white);
}

/* -------------------------------------------------------------
   6. HEADER
   ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--white);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  transition: box-shadow var(--transition);
}

.site-header.is-scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1.5rem;
}

/* Logo */
.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-text {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.logo-text span {
  color: var(--teal);
}

.logo-img {
  height: 40px;
  width: auto;
}

/* Main navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-list > li {
  position: relative;
}

.nav-list > li > a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text);
  border-radius: 0;
  transition: color 0.2s ease;
  white-space: nowrap;
  position: relative;
}

.nav-list > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background-color: var(--teal);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-list > li > a:hover,
.nav-list > li > a.is-current {
  color: var(--teal);
}

.nav-list > li > a:hover::after,
.nav-list > li > a.is-current::after {
  transform: scaleX(1);
}

/* Dropdown */
.has-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.dropdown-toggle::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform var(--transition);
}

.has-dropdown:hover .dropdown-toggle::after,
.has-dropdown:focus-within .dropdown-toggle::after {
  transform: rotate(180deg);
}

.dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 220px;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--transition),
              visibility var(--transition),
              transform var(--transition);
  z-index: 100;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 0.5rem 0.875rem;
  font-size: 0.9375rem;
  color: var(--text);
  border-radius: var(--radius);
  transition: background-color var(--transition), color var(--transition);
}

.dropdown a:hover {
  background-color: rgba(49, 151, 149, 0.08);
  color: var(--teal);
}

/* Language switcher pills (like magazine.icmed.net) */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 0.75rem;
  background: #f1f1f0;
  border-radius: 6px;
  padding: 2px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
  line-height: 1;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.is-active {
  background-color: var(--teal);
  color: var(--white);
}

.lang-btn.is-active:hover {
  color: var(--white);
}

/* Hamburger toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  padding: 6px;
  transition: background-color var(--transition);
  flex-shrink: 0;
}

.menu-toggle:hover {
  background-color: rgba(49, 151, 149, 0.08);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  transform-origin: center;
}

/* Hamburger → X animation */
.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Responsive navigation */
@media (max-width: 992px) {
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--white);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 1.5rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
    border-top: 1px solid var(--border);
    gap: 0;
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0;
  }

  .nav-list > li {
    width: 100%;
  }

  .nav-list > li > a {
    padding: 0.875rem 0.75rem;
    font-size: 1.0625rem;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
    background: transparent;
  }

  .dropdown a {
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid rgba(226, 224, 219, 0.5);
    color: var(--text-muted);
  }

  .lang-switcher {
    margin-top: 1rem;
    margin-left: 0;
    align-self: flex-start;
  }
}

/* -------------------------------------------------------------
   7. HERO
   ------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--navy);
  background-image: linear-gradient(
    135deg,
    var(--navy) 0%,
    var(--navy-light) 40%,
    #1e3a5f 70%,
    rgba(49, 151, 149, 0.3) 100%
  );
  background-size: 200% 200%;
  animation: heroGradient 12s ease infinite;
  overflow: hidden;
  text-align: center;
  padding: 6rem 0;
}

@keyframes heroGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* When hero has a background image, disable animation */
.hero[style*="background-image"] {
  background-size: cover;
  background-position: center;
  animation: none;
}

/* Geometric pattern overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 70% 30%, rgba(49, 151, 149, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(214, 158, 46, 0.1) 0%, transparent 40%),
    linear-gradient(60deg, transparent 40%, rgba(255,255,255,0.02) 40%, rgba(255,255,255,0.02) 60%, transparent 60%);
  pointer-events: none;
}

/* Dark overlay for when background image is set */
.hero[style*="background-image"]::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 39, 68, 0.85) 0%, rgba(26, 54, 93, 0.75) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

/* Accent line under hero title */
.hero-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 575px) {
  .hero {
    min-height: 60vh;
    padding: 4rem 0;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
  }
}

/* -------------------------------------------------------------
   8. SECTION COMMON UTILITIES
   ------------------------------------------------------------- */
.section-header {
  margin-bottom: 2.5rem;
}

.section-header--center {
  text-align: center;
}

.section-header--center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.py-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (max-width: 768px) {
  .py-section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}

/* -------------------------------------------------------------
   9. SERVICES GRID
   ------------------------------------------------------------- */
.services-section {
  background-color: var(--white);
  padding: 5rem 0;
  position: relative;
}

.services-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--teal));
  opacity: 0.6;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.service-card {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: rgba(49, 151, 149, 0.35);
}

.service-icon {
  color: var(--teal);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  background: rgba(49, 151, 149, 0.08);
  border-radius: 12px;
  padding: 0.75rem;
  overflow: hidden;
}

/* When icon has an image, remove padding and bg */
.service-icon:has(img) {
  padding: 0;
  background: none;
  width: 5rem;
  height: 5rem;
}

.service-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

.service-title {
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.service-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------
   10. ABOUT BRIEF SECTION
   ------------------------------------------------------------- */
.about-brief-section {
  background-color: var(--navy);
  background-image: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, #1e3a5f 100%);
  padding: 6rem 0;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.about-brief-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 158, 46, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.about-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-text .section-title {
  color: var(--white);
}

.about-text .section-subtitle {
  color: rgba(255, 255, 255, 0.75);
}

.about-text p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.0625rem;
  line-height: 1.8;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 575px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* -------------------------------------------------------------
   10a. COURSES PREVIEW
   ------------------------------------------------------------- */
.courses-section {
  background-color: var(--white);
  padding: 5rem 0;
}

.courses-section .section-title {
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.courses-section .section-subtitle {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.course-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.course-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  color: inherit;
}

.course-card-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-light);
}

.course-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.course-card:hover .course-card-image img {
  transform: scale(1.04);
}

.course-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--gold);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
}

.course-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.course-card-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.course-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 0.75rem;
}

.course-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.course-ecm {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--teal);
  background: rgba(49, 151, 149, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 100px;
}

.course-price {
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
}

.course-price-old {
  text-decoration: line-through;
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.85rem;
  margin-right: 0.3rem;
}

@media (max-width: 992px) {
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .courses-grid {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------
   10b. PROFESSIONALS TABLES
   ------------------------------------------------------------- */
.professionals-section {
  padding: 4rem 0;
  background-color: var(--white);
}

.professionals-section + .professionals-section {
  padding-top: 0;
}

.professionals-section .section-title {
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.professionals-section .section-subtitle {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.professionals-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.professionals-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.professionals-table thead {
  background: var(--navy);
  color: var(--white);
}

.professionals-table th {
  padding: 0.875rem 1.25rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.professionals-table td {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.professionals-table tbody tr:hover {
  background-color: rgba(49, 151, 149, 0.04);
}

.professionals-table tbody tr:last-child td {
  border-bottom: none;
}

.professionals-empty {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  padding: 2rem 0;
}

@media (max-width: 575px) {
  .professionals-table th,
  .professionals-table td {
    padding: 0.625rem 0.75rem;
    font-size: 0.8125rem;
  }
}

/* -------------------------------------------------------------
   10c. REGISTRIES TABS
   ------------------------------------------------------------- */
.registries-tabs {
  margin-top: 2rem;
}

.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}

.tab-btn {
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.tab-btn:hover {
  color: var(--navy);
}

.tab-btn.is-active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(49, 151, 149, 0.1);
  color: var(--teal);
  border-radius: 100px;
  margin-left: 0.4rem;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.registry-search {
  margin-bottom: 1rem;
}

.registry-search-input {
  width: 100%;
  max-width: 400px;
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s ease;
}

.registry-search-input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(49, 151, 149, 0.1);
}

@media (max-width: 575px) {
  .tabs-nav {
    flex-direction: column;
    gap: 0;
  }
  .tab-btn {
    text-align: left;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
    border-left: 3px solid transparent;
  }
  .tab-btn.is-active {
    border-bottom-color: var(--border);
    border-left-color: var(--teal);
  }
}

/* -------------------------------------------------------------
   11. MAGAZINE PREVIEW / ARTICLES GRID
   ------------------------------------------------------------- */
.magazine-section {
  background-color: var(--white);
  padding: 5rem 0;
}

.magazine-section .section-title {
  color: var(--navy);
}

.magazine-section .section-subtitle {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.magazine-section .btn-outline {
  margin-top: 2rem;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.article-card {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.article-card__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--bg-light);
}

.article-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .article-card__image img {
  transform: scale(1.04);
}

.article-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--teal);
  margin-bottom: 0.625rem;
}

.article-card__title {
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.article-card__excerpt {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.article-card__footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 992px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------
   12. PARTNERS
   ------------------------------------------------------------- */
.partners-section {
  background-color: var(--bg-light);
  padding: 4rem 0;
}

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.5rem 3.5rem;
  margin-top: 2rem;
}

.partner-logo {
  display: flex;
  align-items: center;
  opacity: 0.55;
  transition: opacity var(--transition), filter var(--transition);
}

.partner-logo img {
  max-height: 60px;
  width: auto;
  filter: grayscale(100%);
  transition: filter var(--transition);
}

.partner-logo:hover {
  opacity: 1;
}

.partner-logo:hover img {
  filter: grayscale(0%);
}

/* -------------------------------------------------------------
   13. CONTACT SECTION (homepage block)
   ------------------------------------------------------------- */
.contact-section {
  padding: 5rem 0;
  background-color: var(--bg);
}

.contact-section .section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.contact-section .section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--teal);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--white);
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.5;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(49, 151, 149, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaa9b5;
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

/* Contact info panel */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.contact-info-block__label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
}

.contact-info-block__value {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.6;
}

.contact-address {
  font-style: normal;
  color: var(--text);
  line-height: 1.7;
  font-size: 0.9375rem;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* -------------------------------------------------------------
   14. PAGE HERO
   ------------------------------------------------------------- */
.page-hero {
  background-color: var(--navy);
  background-image: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #1e3a5f 100%);
  padding: 5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  right: -10%;
  top: -30%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(49, 151, 149, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero .container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Breadcrumb inside page-hero */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--teal-light);
}

.breadcrumb__sep {
  color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 575px) {
  .page-hero {
    padding: 4rem 0 2.5rem;
  }
}

/* -------------------------------------------------------------
   15. PAGE CONTENT
   ------------------------------------------------------------- */
.page-content {
  padding: 4rem 0;
  background-color: var(--bg);
}

.page-content .container {
  max-width: 1000px;
}

.content-block {
  display: flex;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.content-block:hover {
  box-shadow: var(--shadow-sm);
}

/* Content block without image takes full width */
.content-block-text:only-child {
  max-width: 100%;
}

.content-block-text h2 {
  color: var(--navy);
  margin-bottom: 1rem;
  font-size: 1.35rem;
}

.content-block-text h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.2em;
  background: var(--teal);
  border-radius: 2px;
  margin-right: 0.75rem;
  vertical-align: middle;
}

.content-block:last-child {
  margin-bottom: 0;
}

.content-block--reverse {
  flex-direction: row-reverse;
}

.content-block__text {
  flex: 1;
  min-width: 0;
}

.content-block__text h2,
.content-block__text h3 {
  color: var(--navy);
  margin-bottom: 1rem;
}

.content-block__text p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.content-block-text {
  flex: 1;
  min-width: 0;
}

.content-block-image,
.content-block__media {
  flex: 1;
  min-width: 0;
  max-width: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.content-block-image img,
.content-block__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

@media (max-width: 768px) {
  .content-block,
  .content-block--reverse {
    flex-direction: column;
    gap: 2rem;
  }
}

/* -------------------------------------------------------------
   16. PLATFORM CTA
   ------------------------------------------------------------- */
.platform-cta {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  text-align: center;
  margin: 3rem 0;
  position: relative;
  overflow: hidden;
}

.platform-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  pointer-events: none;
}

.platform-cta h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.platform-cta p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.platform-cta .btn {
  background: var(--white);
  color: var(--teal-dark);
  border-color: var(--white);
}

.platform-cta .btn:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* -------------------------------------------------------------
   17. PAGE CTA
   ------------------------------------------------------------- */
.page-cta {
  text-align: center;
  margin: 3.5rem auto;
  max-width: 640px;
}

.page-cta h2,
.page-cta h3 {
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.page-cta p {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.page-cta .btn + .btn {
  margin-left: 0.75rem;
}

@media (max-width: 575px) {
  .page-cta .btn {
    display: block;
    width: 100%;
    margin-top: 0.75rem;
  }

  .page-cta .btn + .btn {
    margin-left: 0;
  }
}

/* -------------------------------------------------------------
   18. REGISTRIES
   ------------------------------------------------------------- */
.registries-section {
  padding: 5rem 0;
  background-color: var(--white);
}

.registries-list {
  margin-top: 2rem;
}

.registry-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 0;
  border-bottom: 1px solid var(--border);
  transition: background-color var(--transition);
}

.registry-item:first-child {
  border-top: 1px solid var(--border);
}

.registry-item__name {
  font-weight: 500;
  color: var(--text);
  font-size: 0.9375rem;
}

.registry-item__date {
  font-size: 0.875rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.registry-item__status {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2em 0.7em;
  border-radius: 100px;
  background-color: rgba(49, 151, 149, 0.1);
  color: var(--teal-dark);
}

.registries-section h2 {
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.registry-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  transition: background-color var(--transition);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
}

.registry-item:hover {
  background-color: rgba(49, 151, 149, 0.05);
  color: var(--teal);
}

.registry-name {
  font-weight: 500;
}

.registry-date {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* -------------------------------------------------------------
   19. CONTACT PAGE
   ------------------------------------------------------------- */
.contact-page-section {
  padding: 5rem 0;
}

.map-container {
  position: relative;
  width: 100%;
  padding-bottom: 42%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 2rem;
  background-color: var(--bg-light);
}

.map-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 575px) {
  .map-container {
    padding-bottom: 70%;
  }
}

/* -------------------------------------------------------------
   20. ALERTS
   ------------------------------------------------------------- */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  border-left: 4px solid transparent;
}

.alert-success {
  background-color: #f0fdf4;
  color: #166534;
  border-left-color: #22c55e;
}

.alert-error {
  background-color: #fef2f2;
  color: #991b1b;
  border-left-color: #ef4444;
}

.alert-warning {
  background-color: #fffbeb;
  color: #92400e;
  border-left-color: var(--gold);
}

.alert-info {
  background-color: rgba(49, 151, 149, 0.08);
  color: var(--navy);
  border-left-color: var(--teal);
}

/* -------------------------------------------------------------
   21. FOOTER
   ------------------------------------------------------------- */
.site-footer {
  background-color: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 4.5rem 0 0;
  border-top: 3px solid var(--teal);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

/* Footer brand column */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-logo {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.footer-logo span {
  color: var(--teal-light);
}

.footer-tagline {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.65;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  transition: background-color var(--transition), color var(--transition);
}

.footer-social a:hover {
  background-color: var(--teal);
  color: var(--white);
}

/* Footer columns */
.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-links a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--teal-light);
}

/* Footer bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p,
.footer-bottom span {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer-bottom a:hover {
  color: var(--teal-light);
}

.footer-bottom-links {
  display: flex;
  gap: 1.25rem;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 575px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .footer-bottom-links {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
}

/* -------------------------------------------------------------
   22. UTILITY CLASSES
   ------------------------------------------------------------- */

/* Text alignment */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

/* Colors */
.text-teal   { color: var(--teal); }
.text-gold   { color: var(--gold); }
.text-navy   { color: var(--navy); }
.text-muted  { color: var(--text-muted); }
.text-white  { color: var(--white); }

/* Spacing helpers */
.mt-0  { margin-top: 0; }
.mt-1  { margin-top: 0.5rem; }
.mt-2  { margin-top: 1rem; }
.mt-3  { margin-top: 1.5rem; }
.mt-4  { margin-top: 2rem; }
.mb-0  { margin-bottom: 0; }
.mb-1  { margin-bottom: 0.5rem; }
.mb-2  { margin-bottom: 1rem; }
.mb-3  { margin-bottom: 1.5rem; }
.mb-4  { margin-bottom: 2rem; }

/* Display */
.d-flex   { display: flex; }
.d-block  { display: block; }
.d-none   { display: none; }

/* Flex helpers */
.align-center     { align-items: center; }
.justify-center   { justify-content: center; }
.justify-between  { justify-content: space-between; }
.flex-wrap        { flex-wrap: wrap; }
.gap-1  { gap: 0.5rem; }
.gap-2  { gap: 1rem; }
.gap-3  { gap: 1.5rem; }

/* Visibility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--teal);
  color: var(--white);
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* Divider */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* Badge */
.badge {
  display: inline-block;
  padding: 0.25em 0.75em;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-teal {
  background-color: rgba(49, 151, 149, 0.12);
  color: var(--teal-dark);
}

.badge-gold {
  background-color: rgba(214, 158, 46, 0.15);
  color: var(--gold-dark);
}

.badge-navy {
  background-color: rgba(15, 39, 68, 0.1);
  color: var(--navy);
}

/* -------------------------------------------------------------
   23. PRINT STYLES
   ------------------------------------------------------------- */
@media print {
  .site-header,
  .site-footer,
  .hero,
  .menu-toggle,
  .lang-switch {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  a[href]::after {
    content: ' (' attr(href) ')';
    font-size: 0.85em;
    color: #555;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }
}
