/* ==========================================================================
   DR NOR FAIZAL THEME — MAIN STYLESHEET
   Oxford-trained Neurooncologist. Precision. Compassion. Results.
   ========================================================================== */

:root {
  /* Color Palette */
  --primary: #002147;        /* Oxford Blue */
  --secondary: #d4a574;      /* Warm gold */
  --accent: #e63946;         /* Medical red */
  --success: #2a9d8f;        /* Surgical teal */
  --warning: #f4a261;        /* Caution orange */
  --danger: #e63946;         /* Emergency red */
  --light: #f8f9fa;          /* Off-white */
  --dark: #0d1f3c;           /* Complementary deep navy */
  --gray-200: #e9ecef;
  --gray-400: #adb5bd;
  --gray-600: #495057;
  
  /* Typography */
  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Monaco', 'Courier New', monospace;
  --font-size-base: 16px;
  --line-height-base: 1.6;
  --letter-spacing: 0.5px;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  
  /* Breakpoints */
  --bp-mobile: 640px;
  --bp-tablet: 768px;
  --bp-desktop: 1024px;
  --bp-wide: 1280px;
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease-out;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.2);
  --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

/* Dark Mode */
html.dark-mode {
  --primary: #c8a882;
  --secondary: #8b6f47;
  --light: #1a1a1a;
  --dark: #f8f9fa;
  --gray-200: #2d2d2d;
  --gray-400: #555555;
  --gray-600: #999999;
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--dark);
  background: var(--light);
  letter-spacing: var(--letter-spacing);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  color: var(--primary);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-fast);
  position: relative;
}

a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

/* Links with underline animation */
a.link-underline {
  position: relative;
  text-decoration: none;
}

a.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.3s ease;
}

a.link-underline:hover::after {
  width: 100%;
}

/* Lists */
ul, ol {
  margin-left: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

li {
  margin-bottom: var(--spacing-sm);
}

/* Blockquote */
blockquote {
  border-left: 4px solid var(--secondary);
  padding-left: var(--spacing-md);
  margin: var(--spacing-md) 0;
  font-style: italic;
  color: var(--gray-600);
}

/* Code */
code, pre {
  background: var(--gray-200);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.875em;
}

code {
  padding: 0.2em 0.4em;
}

pre {
  padding: var(--spacing-md);
  overflow-x: auto;
  margin-bottom: var(--spacing-md);
}

pre code {
  padding: 0;
  background: none;
}

/* ==========================================================================
   COMPONENTS
   ========================================================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Primary Button */
.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Secondary Button */
.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* CTA Button (emergency/appointment) */
.btn-cta {
  background: var(--accent);
  color: white;
  font-size: 1.125rem;
  padding: var(--spacing-md) var(--spacing-xl);
  border-color: var(--accent);
}

.btn-cta:hover {
  background: #c1121f;
  box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.2);
}

/* Appointment Button */
.btn-appointment {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  border-radius: 4px;
  font-size: 1.125rem;
  font-weight: 700;
  padding: 1rem 3rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.btn-appointment:hover {
  background: #c1121f;
  border-color: #c1121f;
  color: white;
  box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.25);
  transform: translateY(-2px);
}

.appointment-btn-wrapper {
  margin-top: 3rem;
  padding: 2.5rem 1rem;
  text-align: center;
  border-top: 1px solid var(--gray-200);
}

/* Cards */
.card {
  background: white;
  border-radius: 8px;
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border-top: 4px solid var(--secondary);
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
  color: var(--primary);
}

/* Badge */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 20px;
  background: var(--secondary);
  color: white;
}

/* Alerts */
.alert {
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: 6px;
  margin-bottom: var(--spacing-md);
  border-left: 4px solid;
}

.alert-info {
  background: #e7f3ff;
  border-color: #2196f3;
  color: #0c3e7a;
}

.alert-warning {
  background: #fff3e0;
  border-color: #ff9800;
  color: #663c00;
}

.alert-danger {
  background: #ffebee;
  border-color: #e63946;
  color: #7a0f1c;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-sm {
  max-width: 768px;
}

.container-lg {
  max-width: 1400px;
}

/* Grid */
.grid {
  display: grid;
  gap: var(--spacing-lg);
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Flex */
.flex {
  display: flex;
  gap: var(--spacing-md);
}

@media (max-width: 768px) {
  .flex {
    flex-direction: column;
  }

  .flex > * {
    width: 100%;
    min-width: 0 !important;
  }
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Section */
section {
  padding: var(--spacing-2xl) var(--spacing-md);
}

section.section-alt {
  background: var(--gray-200);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: white;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
  padding: var(--spacing-md) 0;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-lg);
}

.nav-menu a {
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: capitalize;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  nav {
    gap: var(--spacing-md);
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: var(--spacing-md);
    background: white;
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-mobile-toggle {
    display: block;
  }
}


/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
}

.lang-switcher a {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
}

.lang-switcher a.active {
  background: var(--primary);
  color: white;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, #003a7a 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 165, 116, 0.1) 0%, transparent 100%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  display: flex;
  align-items: center;
  gap: 4rem;
}

.hero-text {
  flex: 1;
}

.hero-photo {
  flex-shrink: 0;
  width: 300px;
}

.hero-photo img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: top center;
  border-radius: 1rem;
  border: 2px solid rgba(212, 165, 116, 0.5);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.hero h1 {
  font-size: 3.5rem;
  color: white;
  margin-bottom: var(--spacing-lg);
  line-height: 1.1;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-lg);
  opacity: 0.95;
}

.hero-cta {
  display: flex;
  gap: var(--spacing-md);
  justify-content: flex-start;
  flex-wrap: wrap;
}

.hero-specialties {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  margin-bottom: var(--spacing-md);
  flex-wrap: wrap;
}

.hero-specialty {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--secondary);
  padding: 0.35rem 1rem;
  border: 1.5px solid rgba(212, 165, 116, 0.45);
  border-radius: 2rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.hero-specialty:hover {
  background: rgba(212, 165, 116, 0.15);
  color: #f5c88a;
}

.hero-specialty-sep {
  color: rgba(255, 255, 255, 0.3);
  font-size: 1.25rem;
  line-height: 1;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.125rem;
  }

  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
    gap: 2rem;
  }

  .hero-photo {
    width: 180px;
  }

  .hero-photo img {
    height: 240px;
  }

  .hero-specialties,
  .hero-cta {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  article header h1 {
    font-size: 1.5rem;
  }

  article header .text-gray {
    font-size: 0.95rem;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
  background: var(--dark);
  color: var(--light);
  padding: var(--spacing-2xl) var(--spacing-md);
  margin-top: var(--spacing-2xl);
}

footer a {
  color: var(--secondary);
}

footer a:hover {
  color: white;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-2xl);
}

.footer-section h4 {
  color: var(--secondary);
  font-size: 1.125rem;
  margin-bottom: var(--spacing-md);
}

.footer-section ul {
  list-style: none;
  margin: 0;
}

.footer-section li {
  margin-bottom: var(--spacing-sm);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-lg);
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.8;
}

/* Social Links */
.social-links {
  display: flex;
  gap: var(--spacing-md);
  list-style: none;
}

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

.social-links a:hover {
  background: var(--secondary);
}

/* ==========================================================================
   FORMS
   ========================================================================== */

form {
  max-width: 600px;
}

.form-group {
  margin-bottom: var(--spacing-lg);
}

label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
  color: var(--primary);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--gray-400);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 71, 42, 0.1);
}

textarea {
  resize: vertical;
  min-height: 150px;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-accent { color: var(--accent); }
.text-gray { color: var(--gray-600); }

.bg-primary { background: var(--primary); color: white; }
.bg-secondary { background: var(--secondary); }
.bg-light { background: var(--light); }
.bg-dark { background: var(--dark); color: white; }

.m-0 { margin: 0; }
.p-0 { padding: 0; }
.my-lg { margin-top: var(--spacing-lg); margin-bottom: var(--spacing-lg); }
.py-lg { padding-top: var(--spacing-lg); padding-bottom: var(--spacing-lg); }

.border-top { border-top: 1px solid var(--gray-200); }
.border-bottom { border-bottom: 1px solid var(--gray-200); }

.opacity-75 { opacity: 0.75; }
.opacity-50 { opacity: 0.5; }

.rounded { border-radius: 8px; }
.rounded-full { border-radius: 9999px; }

.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in { animation: fadeIn 0.6s ease-out; }
.slide-up { animation: slideUp 0.6s ease-out; }

/* WhatsApp Float Button */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  background: #25d366;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  text-decoration: none;
}

.whatsapp-float:hover {
  background: #128c7e;
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
  text-decoration: none;
}

/* About Section Profile Photo */
.about-photo {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  object-position: top center;
  max-height: 480px;
  display: block;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
  .about-photo {
    max-height: 300px;
  }
}

/* Article Page Typography */
article header h1 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.3;
}

article header .text-gray {
  font-size: clamp(0.9rem, 2.5vw, 1.05rem);
  line-height: 1.6;
  font-weight: 400;
}

/* Content Styles */
.content h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); font-weight: 700; line-height: 1.25; margin-top: var(--spacing-xl); }
.content h2 { margin-top: var(--spacing-xl); font-size: clamp(1.375rem, 3.5vw, 2rem); }
.content h3 { margin-top: var(--spacing-lg); color: var(--primary); font-size: clamp(1.125rem, 3vw, 1.625rem); }
.content table { width: 100%; border-collapse: collapse; margin-bottom: var(--spacing-lg); }
.content th { background: var(--primary); color: white; padding: 0.75rem 1rem; text-align: left; font-family: var(--font-body); }
.content td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--gray-200); }
.content tr:hover td { background: var(--gray-200); }
.content blockquote { border-left: 4px solid var(--secondary); padding: 1rem 1.5rem; background: var(--gray-200); border-radius: 0 6px 6px 0; }

/* Print Styles */
@media print {
  header, footer, .no-print, .whatsapp-float { display: none; }
  body { background: white; color: black; }
  a { color: var(--primary); }
}

/* ==========================================================================
   SOCIAL MEDIA EMBEDS
   ========================================================================== */

/* Shared embed wrapper */
.social-embed {
  margin: var(--spacing-lg) 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  background: white;
  box-shadow: var(--shadow-md);
  max-width: 640px;
}

.social-embed-header {
  padding: 0.625rem var(--spacing-md);
  background: var(--gray-200);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Platform badges */
.social-platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: white;
}

.social-platform-youtube  { background: #ff0000; }
.social-platform-tiktok   { background: #010101; }
.social-platform-instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

/* Responsive 16:9 video iframe */
.social-embed-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  background: #000;
}

.social-embed-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* TikTok & Instagram container centering */
.social-embed-tiktok-container,
.social-embed-instagram-container {
  display: flex;
  justify-content: center;
  padding: var(--spacing-sm) var(--spacing-md);
  background: #fafafa;
  overflow-x: auto;
}

.social-embed-footer {
  padding: 0.625rem var(--spacing-md);
  border-top: 1px solid var(--gray-200);
  text-align: right;
  font-size: 0.8rem;
}

.social-embed-link {
  color: var(--gray-600);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.social-embed-link:hover {
  color: var(--primary);
  text-decoration: none;
}

/* ==========================================================================
   SOCIAL MEDIA BLOG CARDS — platform indicator badge on listing cards
   ========================================================================== */

.social-platform-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.social-platform-indicator.youtube  { background: #ff0000; }
.social-platform-indicator.tiktok   { background: #010101; }
.social-platform-indicator.instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

/* Dark mode adjustments */
html.dark-mode .social-embed {
  background: #1a1a1a;
  border-color: #3a3a3a;
}

html.dark-mode .social-embed-header {
  background: #2d2d2d;
}

html.dark-mode .social-embed-footer {
  border-color: #3a3a3a;
}

/* YouTube embed */
.embed-youtube {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: var(--spacing-lg) auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.embed-youtube::before {
  content: '';
  display: block;
  padding-top: 56.25%; /* 16:9 */
}

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

html.dark-mode .social-embed-tiktok-container,
html.dark-mode .social-embed-instagram-container {
  background: #111;
}

/* ==========================================================================
   HOMEPAGE — LAYOUT HELPERS
   ========================================================================== */

/* Ghost button — transparent on dark backgrounds */
.btn-ghost {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  text-decoration: none;
}

/* Trust Badges */
.section-trust {
  padding: 2rem 0;
  background: white;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  text-align: center;
}

.trust-item {
  padding: 0.5rem;
}

.trust-stat {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 0.25rem;
}

.trust-label {
  color: var(--gray-600);
  margin: 0;
}

/* Section typography helpers */
.section-title {
  margin-bottom: 0.5rem;
}

.section-subtitle {
  margin-bottom: 3rem;
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-footer-cta {
  margin-top: 2.5rem;
}

/* Card helpers */
.card-badge {
  margin-bottom: 1rem;
}

.card-btn {
  margin-top: auto;
  padding-top: 1rem;
  align-self: center;
}

/* About layout */
.about-flex {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.about-text {
  flex: 1;
  min-width: 280px;
}

.about-image {
  flex: 1;
  min-width: 280px;
}

.section-cta .hero-cta {
  justify-content: center;
}

/* CTA Banner */
.section-cta {
  background: var(--primary);
  color: white;
  padding: 3rem 1.5rem;
  text-align: center;
}

.section-cta-title {
  color: white;
}

.section-cta-subtitle {
  opacity: 0.9;
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

/* ==========================================================================
   HOMEPAGE — TESTIMONIAL
   ========================================================================== */

.testimonial-carousel-wrap {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.testimonial-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  gap: 0;
}

.testimonial-carousel::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  flex: 0 0 100%;
  scroll-snap-align: start;
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border-left: 5px solid var(--secondary);
  box-sizing: border-box;
}

.star-rating {
  color: var(--secondary);
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.testimonial-quote {
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--dark);
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.testimonial-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge-review {
  background: var(--success);
  font-size: 0.75rem;
  margin-left: 0.5rem;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s, color 0.2s;
}

.carousel-btn:hover {
  background: var(--primary);
  color: white;
}

.carousel-prev { left: -2.75rem; }
.carousel-next { right: -2.75rem; }

@media (max-width: 800px) {
  .carousel-prev { left: -0.25rem; }
  .carousel-next { right: -0.25rem; }
  .testimonial-carousel-wrap { max-width: 100%; }
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.carousel-dot.active {
  background: var(--primary);
  transform: scale(1.3);
}

.testimonial-cta {
  margin-top: 2rem;
}

.testimonial-cta p {
  margin-bottom: 1rem;
}

/* ==========================================================================
   INSIGHTS — CARD ELEMENTS
   ========================================================================== */

.insight-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.insight-card-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 0.75rem;
}

/* ==========================================================================
   HOMEPAGE — BLOG PREVIEW
   ========================================================================== */

.blog-preview-card {
  background: white;
  border-radius: 8px;
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  border-top: 3px solid var(--secondary);
}

.blog-preview-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.blog-preview-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.blog-preview-date {
  font-size: 0.8rem;
  color: var(--gray-600);
}

.badge-sm {
  font-size: 0.7rem;
  padding: 0.15rem 0.6rem;
}

.blog-preview-title {
  font-size: 1.125rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.blog-preview-desc {
  font-size: 0.95rem;
  color: var(--gray-600);
  flex: 1;
  line-height: 1.5;
}

.blog-preview-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s;
}

.blog-preview-link:hover {
  color: var(--secondary);
  text-decoration: none;
}

/* ==========================================================================
   HOMEPAGE — INSIGHTS PREVIEW CAROUSEL
   ========================================================================== */

.insight-preview-carousel-wrap {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.insight-preview-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  gap: 0;
}

.insight-preview-carousel::-webkit-scrollbar {
  display: none;
}

.insight-preview-card {
  flex: 0 0 100%;
  scroll-snap-align: start;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--secondary);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.insight-preview-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.insight-preview-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.insight-carousel-prev { left: -2.75rem; }
.insight-carousel-next { right: -2.75rem; }

@media (max-width: 800px) {
  .insight-preview-carousel-wrap { max-width: 100%; }
  .insight-carousel-prev { left: -0.25rem; }
  .insight-carousel-next { right: -0.25rem; }
}

/* ==========================================================================
   HOMEPAGE — FOLLOW SECTION
   ========================================================================== */

.follow-section {
  background: var(--dark);
  padding: 4rem 1.5rem;
}

.follow-heading {
  color: white;
  margin-bottom: 1rem;
}

.follow-subtitle {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.125rem;
  max-width: 580px;
  margin: 0 auto 3rem;
}

.social-follow-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.social-follow-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 1.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  transition: var(--transition);
  min-width: 130px;
  color: white;
}

.social-follow-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
  text-decoration: none;
  color: white;
}

.social-follow-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: white;
}

.social-follow-handle {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
}

.social-follow-tiktok:hover   { border-color: #fe2c55; }
.social-follow-instagram:hover { border-color: #e1306c; }
.social-follow-youtube:hover  { border-color: #ff0000; }
.social-follow-linkedin:hover { border-color: #0a66c2; }

.follow-wa-divider {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.follow-wa-text {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

/* WhatsApp CTA button */
.btn-whatsapp {
  background: #25d366;
  color: white;
  border: 2px solid #25d366;
  font-size: 1rem;
  font-weight: 700;
  padding: var(--spacing-sm) var(--spacing-xl);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-whatsapp:hover {
  background: #128c7e;
  border-color: #128c7e;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.25);
  text-decoration: none;
}

/* ==========================================================================
   Monospaced Editorial Labels — IBM Plex Mono
   Use .label-mono for credential/specialty labels (all-caps, tracked).
   Use .tag-mono for inline category chips on case study cards.
   ========================================================================== */

.label-mono {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tag-mono {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25em 0.6em;
  border: 1px solid currentColor;
  border-radius: 2px;
  display: inline-block;
}

/* ==========================================================================
   CAREER TIMELINE
   ========================================================================== */

.section-experience {
  padding: var(--spacing-2xl) 0;
}

.career-timeline {
  position: relative;
  max-width: 680px;
  margin: var(--spacing-xl) auto 0;
}

/* vertical line through dots — desktop */
.career-timeline::before {
  content: '';
  position: absolute;
  left: 132px; /* 120px year col + 8px gap + 4px (half 14px dot) */
  top: 6px;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 24px 1fr;
  column-gap: 8px;
  align-items: start;
  margin-bottom: 2.25rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  text-align: right;
  line-height: 1;
  padding-top: 3px;
}

.timeline-dot {
  display: flex;
  justify-content: center;
  padding-top: 2px;
  position: relative;
  z-index: 1;
}

.timeline-dot::after {
  content: '';
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--secondary);
  border: 2px solid var(--light);
  box-shadow: 0 0 0 2px var(--secondary);
}

.timeline-item--current .timeline-dot::after {
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-badge {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.2rem;
}

.timeline-item--current .timeline-badge {
  color: var(--accent);
}

.timeline-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.35;
  margin-bottom: 0.2rem;
}

.timeline-org {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.4;
}

.timeline-detail {
  font-size: 0.8125rem;
  color: var(--gray-400);
  font-style: italic;
  margin-top: 0.2rem;
}

/* Mobile — collapse year column, keep dot + content */
@media (max-width: 640px) {
  .career-timeline::before {
    left: 54px; /* 44px year + 6px gap + 4px half-dot */
  }

  .timeline-item {
    grid-template-columns: 44px 20px 1fr;
    column-gap: 6px;
    margin-bottom: 1.75rem;
  }

  .timeline-year {
    font-size: 0.75rem;
    padding-top: 2px;
  }

  .timeline-dot::after {
    width: 10px;
    height: 10px;
  }

  .timeline-title {
    font-size: 0.875rem;
  }
}
