/* =========================================
   MARKETING 360 - MODERN SAAS RTL STYLES
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&display=swap');

:root {
  --font-family: 'Cairo', sans-serif;
  
  /* Colors */
  --bg-main: #fcfdfe;
  --bg-surface: #ffffff;
  
  --primary: #4338ca;
  --primary-hover: #3730a3;
  --accent: #818cf8;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --border: #e2e8f0;
  --border-hover: #cbd5e1;
  
  /* Category Colors */
  --c-indigo: #4f46e5;
  --c-pink: #db2777;
  --c-amber: #d97706;
  --c-emerald: #059669;
  --c-blue: #2563eb;
  --c-sky: #0284c7;
  --c-purple: #7c3aed;
  --c-orange: #ea580c;
  --c-teal: #0d9488;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px -1px rgba(0, 0, 0, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
  
  /* Radius */
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 32px;
  --radius-hero: 40px;
}

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

html { scroll-behavior: smooth; }

/* Utilities */
.mb-20 { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-md); font-weight: 700;
  transition: all 0.3s ease; cursor: pointer; border: none; font-family: inherit; font-size: 0.95rem;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 14px 0 rgba(67, 56, 202, 0.39); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(67, 56, 202, 0.23); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: #f5f3ff; transform: translateY(-2px); }
.block-btn { width: 100%; }

/* ---------- HEADER ---------- */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%;
  background: #0a0b14;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05); z-index: 100;
  transition: all 0.3s;
}
.nav-container {
  max-width: 1400px; margin: 0 auto; padding: 10px 30px;
  display: flex; justify-content: space-between; align-items: center;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-img { height: 65px; border-radius: 50%; }
.logo-text { font-weight: 800; font-size: 1.8rem; color: #fff; }
.logo-text .accent { color: var(--primary); }

.nav-links { display: flex; gap: 24px; }
.nav-links a {
  font-weight: 700; font-size: 0.95rem; color: #94a3b8;
  transition: 0.2s; padding: 5px 0; border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.active { color: #fff; border-bottom-color: #fff; }

/* ---------- HERO SECTION ---------- */
.hero-section {
  padding: 120px 20px 60px;
  background-color: var(--bg-main);
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-wrapper {
  width: 100%;
  max-width: 1400px;
  perspective: 1000px;
}

.hero-container {
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  border-radius: var(--radius-hero);
  box-shadow: var(--shadow-premium);
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  min-height: 600px;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.hero-visual {
  flex: 1.5;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
  height: 100%;
}

.hero-book-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

.hero-content {
  flex: 1;
  padding: 60px 40px 60px 80px;
  position: relative;
  z-index: 10;
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 800;
  color: #1e1b4b;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #4338ca 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.25rem;
  color: #475569;
  margin-bottom: 48px;
  line-height: 1.7;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

.hero-buttons .btn {
  padding: 16px 32px;
  font-size: 1.05rem;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: #64748b;
  font-weight: 600;
}

.hero-note i {
  color: #4338ca;
  font-size: 1.1rem;
}

/* Decoration Pattern */
.hero-decoration {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(67, 56, 202, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
}

.hero-decoration::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 450px;
  height: 450px;
  border: 1px dashed rgba(67, 56, 202, 0.15);
  border-radius: 50%;
  animation: rotate 30s linear infinite;
}

@keyframes rotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ---------- SECTION HEADERS ---------- */
.section-header { margin-bottom: 60px; }
.section-header.center { text-align: center; }
.section-header h2 { font-size: 2.8rem; font-weight: 800; color: #1e1b4b; margin-bottom: 16px; }
.section-header p { font-size: 1.25rem; color: var(--text-secondary); max-width: 800px; margin: 0 auto; }

/* ---------- DOMAINS SECTION ---------- */
.domains-section { padding: 100px 0; background: #fff; }

.domains-tabs {
  display: flex; justify-content: center; gap: 8px; margin-bottom: 50px;
  background: #f1f5f9; padding: 6px; border-radius: 50px; width: fit-content;
  margin-left: auto; margin-right: auto; border: 1px solid #e2e8f0;
}
.tab-btn {
  padding: 14px 36px; border-radius: 40px; border: none; background: transparent;
  color: #64748b; font-weight: 700; cursor: pointer; transition: 0.3s;
  font-size: 1rem; font-family: inherit; white-space: nowrap;
}
.tab-btn.active {
  background: #0f172a; color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.tab-btn:hover:not(.active) { color: #0f172a; }

.domains-container { max-width: 1400px; margin: 0 auto; position: relative; }

.domain-group {
  display: none; animation: fadeIn 0.5s ease-out;
  padding: 20px 0; position: relative;
}
.domain-group.active { display: block; }

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

.group-label { display: none; } /* Replaced by tab buttons */

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-flex-2 { display: flex; gap: 20px; flex-wrap: wrap; }
.grid-flex-2 > * { flex: 1; min-width: calc(50% - 10px); }

.domain-card {
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px;
  transition: 0.3s; background: #fff; display: flex; flex-direction: column;
  height: 100%;
}
.domain-card.large { padding: 40px; border-width: 2px; }
.domain-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-md); transform: translateY(-4px); }

.dc-icon {
  width: 54px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 20px;
}
.domain-card h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 16px; color: var(--text-primary); }

.dc-list { margin-bottom: 24px; flex: 1; list-style: none; padding: 0; }
.dc-list li {
  font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 8px;
  position: relative; padding-right: 18px; font-weight: 600;
}
.dc-list li::before {
  content: "•"; position: absolute; right: 0; color: var(--primary); font-weight: bold;
}
.dc-link { font-size: 0.9rem; font-weight: 700; display: flex; align-items: center; gap: 6px; margin-top: auto; }
.dc-link:hover { opacity: 0.8; }

.secondary-groups { display: flex; gap: 20px; }
.flex-2 { flex: 2; }
.flex-1 { flex: 1.2; }

.grid-2-small { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.grid-1-small { display: grid; grid-template-columns: 1fr; gap: 15px; }

.domain-card.small { padding: 20px; align-items: center; text-align: center; flex-direction: row; text-align: right; }
.domain-card.small i { font-size: 1.8rem; margin-left: 16px; }
.domain-card.small h4 { font-size: 1rem; font-weight: 800; margin-bottom: 4px; }
.domain-card.small p { margin-bottom: 0; font-size: 0.8rem; }

.domains-footer-note {
  text-align: center; background: #eef2ff; color: var(--primary); padding: 15px;
  border-radius: var(--radius-md); font-weight: 600; font-size: 0.95rem;
}

/* ---------- ROLES INTERACTIVE SECTION (3-COL) ---------- */
.roles-section { 
  padding: 100px 0; 
  background: #f8fafc; 
  border-top: 1px solid var(--border);
}

.roles-container { 
  max-width: 1400px; 
  margin: 0 auto; 
  padding: 0 20px;
}

.roles-layout-3col {
  display: grid;
  grid-template-columns: 320px 1fr 300px;
  gap: 25px;
  align-items: start;
}

/* 1) Right Column: Navigation Sidebar */
.roles-nav-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-layer-item {
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 5px;
}

.nav-layer-header {
  width: 100%; padding: 14px 16px; background: #1e293b; color: #fff;
  border: none; border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.88rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.05em; transition: 0.3s;
  position: sticky; top: 0; z-index: 10;
}
.nav-layer-header:hover { background: #334155; }

.nav-layer-content {
  max-height: 0; overflow: hidden; transition: max-height 0.5s ease-out;
  display: flex; flex-direction: column; gap: 8px; padding-top: 0;
  position: relative;
}
.nav-layer-item.active .nav-layer-content {
  max-height: 1500px; padding: 12px 0;
}
.nav-layer-item.active .nav-layer-header {
  border-radius: 8px 8px 0 0; background: var(--primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.nav-layer-header .layer-chevron {
  font-size: 0.7rem; transition: transform 0.3s;
}
.nav-layer-item.active .layer-chevron { transform: rotate(180deg); }

.nav-accordion-item {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; transition: 0.3s;
}
.nav-accordion-item.active { border-color: var(--primary); box-shadow: 0 8px 12px -3px rgba(79, 70, 229, 0.1); }

.nav-item-header {
  width: 100%; padding: 12px 16px; display: flex; align-items: center; gap: 12px;
  background: none; border: none; font-family: inherit; cursor: pointer; text-align: right;
}

.nav-item-header .nav-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.nav-item-header .nav-info h4 { font-size: 0.88rem; font-weight: 800; color: #1e293b; transition: 0.2s; }
.nav-item-header .nav-info p { font-size: 0.7rem; color: #64748b; transition: 0.2s; }
.nav-item-header .nav-icon { 
  width: 32px; height: 32px; background: #f1f5f9; color: #64748b; 
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; transition: 0.3s;
}

.chevron {
  font-size: 0.7rem; color: #94a3b8; transition: transform 0.3s ease;
}

.nav-accordion-item.active .nav-item-header { background: #f5f3ff; }
.nav-accordion-item.active .nav-info h4 { color: var(--primary); }
.nav-accordion-item.active .nav-icon { background: var(--primary); color: #fff; }
.nav-accordion-item.active .chevron { transform: rotate(180deg); color: var(--primary); }

.nav-sub-content {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; background: #fff;
}
.nav-accordion-item.active .nav-sub-content { max-height: 300px; padding-bottom: 10px; }

.nav-sub-list { list-style: none; padding: 0 45px 0 15px; margin: 0; }
.nav-sub-list li {
  font-size: 0.78rem; color: #64748b; padding: 8px 0; border-top: 1px solid #f1f5f9;
  font-weight: 600; cursor: pointer; transition: 0.2s;
}
.nav-sub-list li:hover { color: var(--primary); padding-right: 5px; }

/* 2) Middle Column: Core Content */
.roles-main-content {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-sm);
  min-height: 700px;
}

.ch-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; }
.ch-title-group { display: flex; flex-direction: column; gap: 8px; }
.ch-title-group h2 { font-size: 1.8rem; font-weight: 800; color: #0f172a; display: flex; align-items: center; gap: 12px; }

.status-badge {
  font-size: 0.65rem; font-weight: 800; padding: 4px 10px; border-radius: 50px;
  text-transform: uppercase; letter-spacing: 0.02em;
}
.status-updated { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.status-draft { background: #f1f5f9; color: #64748b; border: 1px solid #cbd5e1; }

.ch-title-group p { font-size: 0.95rem; color: #64748b; max-width: 500px; line-height: 1.6; }
.ch-icon {
  width: 70px; height: 70px; border-radius: 20px; background: rgba(79, 70, 229, 0.1);
  color: var(--primary); display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}

.content-section { margin-bottom: 35px; }
.content-section h3 { 
  font-size: 1.1rem; font-weight: 800; color: #1e293b; margin-bottom: 15px;
  display: flex; align-items: center; gap: 10px;
}
.content-section h3 i { color: var(--primary); opacity: 0.7; }

.cs-text { font-size: 1rem; color: #475569; line-height: 1.8; }

.includes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  background: #f8fafc;
  padding: 25px;
  border-radius: 16px;
}
.inc-item {
  display: flex; align-items: center; gap: 10px; font-size: 0.95rem; font-weight: 600; color: #334155;
}
.inc-item i { color: var(--primary); font-size: 0.8rem; }

.tags-flex { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  padding: 8px 16px; background: #f1f5f9; color: #475569; border-radius: 50px;
  font-size: 0.85rem; font-weight: 700; border: 1px solid #e2e8f0;
}

.quick-tip {
  margin-top: 40px; background: #f5f3ff; border: 1px solid rgba(79, 70, 229, 0.1);
  padding: 20px; border-radius: 16px; display: flex; align-items: center; gap: 20px;
}
.qt-icon { 
  width: 48px; height: 48px; background: #fff; border-radius: 50%; 
  display: flex; align-items: center; justify-content: center; color: #fbbf24;
  font-size: 1.2rem; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.qt-text { font-size: 0.9rem; color: #4338ca; font-weight: 600; line-height: 1.5; }

/* 3) Left Column: Resources Panel */
.roles-resources-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.resource-box {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; padding: 25px;
  box-shadow: var(--shadow-sm);
}

.res-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.res-header h3 { font-size: 1.1rem; font-weight: 800; color: #0f172a; }
.res-header i { color: var(--primary); font-size: 1.2rem; }

.res-tabs {
  display: flex; border-bottom: 1px solid #f1f5f9; margin-bottom: 20px;
}
.res-tab {
  flex: 1; padding: 10px; background: none; border: none; font-family: inherit;
  font-size: 0.85rem; font-weight: 700; color: #94a3b8; cursor: pointer;
  position: relative; transition: 0.3s;
}
.res-tab.active { color: var(--primary); }
.res-tab.active::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px;
  background: var(--primary);
}

.res-list { display: flex; flex-direction: column; gap: 12px; }
.res-item {
  background: #f8fafc; border: 1px solid #f1f5f9; border-radius: 12px; padding: 12px;
  display: flex; align-items: center; justify-content: space-between; transition: 0.3s;
  cursor: pointer; text-decoration: none;
}
.res-item:hover { border-color: var(--primary); background: #fff; box-shadow: var(--shadow-sm); }

.ri-info { display: flex; align-items: center; gap: 12px; }
.ri-icon { 
  width: 36px; height: 36px; border-radius: 8px; background: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.ri-text h5 { font-size: 0.85rem; font-weight: 800; color: #1e293b; margin-bottom: 2px; }
.ri-text p { font-size: 0.7rem; color: #64748b; }
.ri-arrow { font-size: 0.7rem; color: #cbd5e1; }

.view-more-res {
  display: block; text-align: center; font-size: 0.85rem; font-weight: 700;
  color: var(--primary); margin-top: 20px; text-decoration: none;
}

/* 3.1) Expert Mini List in Left Panel */
.role-experts-card {
  margin-top: 20px; background: #fff; border-radius: 20px; padding: 20px;
  border: 1px solid #e2e8f0; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
}
.role-experts-card h4 { font-size: 0.9rem; font-weight: 800; color: #1e293b; margin-bottom: 15px; display: flex; align-items: center; gap: 8px; }
.role-experts-card h4 i { color: var(--primary); }

.expert-mini-list { display: flex; flex-direction: column; gap: 12px; }
.expert-mini-item {
  display: flex; align-items: center; gap: 10px; padding: 8px;
  border-radius: 12px; transition: 0.3s; cursor: pointer;
}
.expert-mini-item:hover { background: #f8fafc; }
.expert-mini-img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid #f1f5f9; }
.expert-mini-info h5 { font-size: 0.78rem; font-weight: 700; color: #1e293b; margin: 0; }
.expert-mini-info p { font-size: 0.65rem; color: #64748b; margin: 0; }

.expert-type-tag {
  font-size: 0.6rem; font-weight: 800; padding: 2px 8px; border-radius: 4px;
  margin-right: auto; white-space: nowrap;
}
.expert-type-tag.addition { background: #dbeafe; color: #1d4ed8; } /* اضافة */
.expert-type-tag.edit { background: #fef3c7; color: #b45309; }     /* تعديل */
.expert-type-tag.review { background: #d1fae5; color: #047857; }   /* مراجعة */

.expert-view-more {
  display: block; text-align: center; font-size: 0.7rem; font-weight: 700;
  color: var(--primary); margin-top: 15px; text-decoration: none;
}
.expert-view-more:hover { text-decoration: underline; }

@media (max-width: 1200px) {
  .roles-layout-3col { grid-template-columns: 1fr; }
  .roles-nav-sidebar { flex-direction: row; overflow-x: auto; padding-bottom: 15px; }
  .nav-item { min-width: 200px; }
}

.mock-tooltip {
  margin-top: 15px; background: #fff; border-radius: var(--radius-md); padding: 15px;
  box-shadow: var(--shadow-lg); display: flex; gap: 12px; align-items: center; border: 1px solid var(--border);
}
.mt-img { width: 40px; height: 40px; border-radius: 50%; }
.mt-info h5 { font-size: 0.95rem; font-weight: 800; margin-bottom: 2px; }
.mt-info p { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 6px; }
.mt-link { font-size: 0.8rem; font-weight: 700; color: #0274b3; }

.contribution-types {
  background: var(--bg-main); padding: 20px; border-radius: var(--radius-lg); border: 1px solid var(--border);
}
.contribution-types h4 { font-size: 0.95rem; font-weight: 800; margin-bottom: 15px; color: var(--text-secondary); }
.types-grid { display: flex; flex-direction: column; gap: 10px; }
.type-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px;
  border-radius: 50px; font-size: 0.8rem; font-weight: 700; background: #fff; border: 1px solid var(--border);
}
.type-badge.writing { color: #3b82f6; }
.type-badge.review { color: #10b981; }
.type-badge.experience { color: #f59e0b; }


/* ---------- EXPERTS SECTION ---------- */
.experts-section { padding: 80px 20px; background: var(--bg-main); }
.experts-filters {
  max-width: 1000px; margin: 0 auto 40px; display: flex; gap: 15px; align-items: center; flex-wrap: wrap;
}
.search-box {
  flex: 1; min-width: 250px; position: relative; display: flex; align-items: center;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 0 15px;
}
.search-box input {
  width: 100%; border: none; padding: 12px 10px; font-family: inherit; outline: none; font-weight: 600;
}
.search-box i { color: var(--text-muted); }
.filter-select {
  padding: 12px 15px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  font-family: inherit; font-weight: 600; color: var(--text-secondary); outline: none;
}
.experts-count { font-size: 0.9rem; font-weight: 700; color: var(--text-muted); margin-right: auto; }

.experts-container { max-width: 1400px; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }
.experts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.expert-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; text-align: center; transition: 0.3s;
}
.expert-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.expert-img { width: 80px; height: 80px; border-radius: 50%; margin-bottom: 15px; }
.expert-info h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 4px; }
.expert-info p { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 12px; }
.domain-badge {
  display: inline-block; background: #eef2ff; color: var(--primary); padding: 4px 12px;
  border-radius: 50px; font-size: 0.75rem; font-weight: 700; margin-bottom: 20px;
}
.expert-footer {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border); padding-top: 15px;
}
.footer-left { display: flex; align-items: center; gap: 10px; }
.country { font-size: 0.8rem; color: var(--text-secondary); font-weight: 600; }
.contrib-type {
  font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 4px;
}
.contrib-type.writing { background: #dbeafe; color: #1d4ed8; }
.contrib-type.review { background: #d1fae5; color: #047857; }
.contrib-type.experience { background: #fef3c7; color: #b45309; }
.linkedin-btn { color: #0274b3; font-size: 1.2rem; }

.join-community-card {
  background: linear-gradient(135deg, #f8fafc, #fff); border: 2px dashed #cbd5e1;
  border-radius: var(--radius-xl); padding: 40px; text-align: center; max-width: 600px; margin: 0 auto;
}
.jc-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 15px; opacity: 0.8; }
.join-community-card h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 10px; }
.join-community-card p { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 20px; }

.view-all-experts { text-align: center; }
.view-all-experts a { font-weight: 800; color: var(--primary); display: inline-flex; align-items: center; gap: 8px; }

/* ---------- FOOTER ---------- */
.footer { background: #0f172a; color: #e2e8f0; padding: 80px 20px 20px; }
.footer-container { max-width: 1400px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr; gap: 60px; margin-bottom: 60px; }

.footer-logo { max-height: 80px; border-radius: 50%; margin-bottom: 20px; display: inline-block; vertical-align: middle; }
.footer-brand .logo-text { color: #fff; font-size: 2.2rem; display: inline-block; vertical-align: middle; margin-right: 15px; margin-bottom: 20px;}
.footer-brand p { color: #94a3b8; font-size: 0.95rem; margin-bottom: 20px; max-width: 400px; }
.social-links { display: flex; gap: 15px; }
.social-links a {
  width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; transition: 0.3s;
}
.social-links a:hover { background: var(--primary); color: #fff; }

.footer-links h4, .footer-newsletter h4 {
  color: #fff; font-size: 1.1rem; font-weight: 800; margin-bottom: 20px;
}
.footer-links ul li { margin-bottom: 12px; }
.footer-links a { color: #94a3b8; font-weight: 600; transition: 0.2s; }
.footer-links a:hover { color: #fff; padding-right: 5px; }

.footer-newsletter p { color: #94a3b8; font-size: 0.9rem; margin-bottom: 15px; }
.newsletter-form { display: flex; }
.newsletter-form input {
  flex: 1; padding: 12px 15px; border: none; border-radius: 0 8px 8px 0;
  font-family: inherit; font-weight: 600;
}
.newsletter-form button {
  background: var(--primary); color: #fff; border: none; padding: 0 20px;
  border-radius: 8px 0 0 8px; cursor: pointer; transition: 0.3s;
}
.newsletter-form button:hover { background: var(--primary-hover); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.85rem; color: #64748b; font-weight: 600;
}
.footer-attribution { text-align: left; }
.footer-attribution p { margin-bottom: 4px; }

/* ---------- ABOUT MODAL ---------- */
.about-modal-overlay {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(8px);
  z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: 0.3s;
}
.about-modal-overlay.active { opacity: 1; pointer-events: all; }
.about-modal-box {
  background: #fff; border-radius: var(--radius-xl); max-width: 600px; width: 100%;
  padding: 40px; position: relative; transform: translateY(20px) scale(0.95); transition: 0.3s;
}
.about-modal-overlay.active .about-modal-box { transform: translateY(0) scale(1); }
.about-modal-close {
  position: absolute; top: 20px; left: 20px; background: var(--bg-main); border: none;
  width: 36px; height: 36px; border-radius: 50%; font-size: 1.2rem; color: var(--text-secondary);
  cursor: pointer; transition: 0.2s;
}
.about-modal-close:hover { background: #fee2e2; color: #ef4444; }
.about-icon {
  width: 60px; height: 60px; background: #eef2ff; color: var(--primary); border-radius: 16px;
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: 20px;
}
.about-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 15px; }
.about-text p { color: var(--text-secondary); margin-bottom: 15px; font-weight: 600; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1200px) {
  .hero-container { flex-direction: column; padding: 40px 20px; text-align: center; min-height: auto; }
  .hero-content { padding: 40px 20px; order: 1; }
  .hero-visual { order: 2; padding: 20px; }
  .hero-title { font-size: 2.8rem; }
  .hero-buttons { justify-content: center; flex-wrap: wrap; }
  .hero-note { justify-content: center; }
  .hero-decoration { width: 300px; height: 300px; right: -50px; top: -50px; }
  
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .secondary-groups { flex-direction: column; }
  .grid-2-small { grid-template-columns: 1fr; }
  .roles-container { grid-template-columns: 1fr; }
  .roles-sidebar { border-left: none; border-bottom: 1px solid var(--border); padding-bottom: 20px; flex-direction: row; flex-wrap: wrap; }
  .role-tab { background: var(--bg-main); }
  .experts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .navbar .btn { display: none; }
  .hero-title { font-size: 2.2rem; }
  .hero-desc { font-size: 1.1rem; }
  .grid-4 { grid-template-columns: 1fr; }
  .experts-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}
