/* ============================================================
   PERSONAL BLOG — LIGHT PROFESSIONAL THEME
   Colors: Orange #E8721E | White #FFFFFF | Light Grey #F8F7F4
   Accent Dark: #1A1A2E | Warm Grey: #6B6B7B
   ============================================================ */
:root {
  --orange: #E8721E;
  --orange-light: #F5924A;
  --orange-dark: #C55A10;
  --orange-pale: #FEF0E6;
  --orange-pale2: #FDE8D8;
  --white: #FFFFFF;
  --off-white: #F8F7F4;
  --light-grey: #F1F0ED;
  --border: #E8E6E0;
  --border-dark: #D0CEC8;
  --text-primary: #1A1A2E;
  --text-secondary: #4A4A5A;
  --text-muted: #8A8A9A;
  --dark-accent: #1A1A2E;
  --dark-accent2: #2D2D44;
  --card-bg: #FFFFFF;
  --card-shadow: 0 2px 16px rgba(26,26,46,0.08);
  --card-shadow-hover: 0 8px 40px rgba(26,26,46,0.15);
  --header-height: 72px;
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  --max-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Sora', system-ui, sans-serif;
  background: var(--off-white);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
}

h1,h2,h3,h4,h5,h6 { font-family: 'DM Serif Display', serif; font-weight: 400; line-height: 1.15; color: var(--text-primary); }
a { color: var(--orange); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--orange-dark); }
p { color: var(--text-secondary); }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ── HEADER ─────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-height); z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.site-header.scrolled { box-shadow: 0 2px 24px rgba(26,26,46,0.1); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.brand { display: flex; align-items: center; gap: 10px; color: var(--text-primary) !important; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 0.88rem; letter-spacing: 0.08em; text-transform: uppercase; }
.brand-icon { width: 36px; height: 36px; background: linear-gradient(135deg, var(--orange), var(--orange-dark)); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; color: white; box-shadow: 0 2px 12px rgba(232,114,30,0.35); }

.main-nav { display: flex; align-items: center; gap: 2px; }
.nav-link { padding: 8px 16px; color: var(--text-secondary) !important; font-size: 0.88rem; font-weight: 500; border-radius: var(--radius-sm); transition: var(--transition); }
.nav-link:hover { color: var(--text-primary) !important; background: var(--light-grey); }
.nav-link.active { color: var(--orange) !important; }
.nav-divider { width: 1px; height: 20px; background: var(--border); margin: 0 8px; }
.admin-link { color: var(--orange) !important; }
.btn-logout { background: none; border: 1px solid var(--border); color: var(--text-muted); padding: 6px 14px; border-radius: var(--radius-sm); font-size: 0.82rem; cursor: pointer; transition: var(--transition); font-family: 'Sora', sans-serif; }
.btn-logout:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-pale); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text-secondary); border-radius: 2px; transition: var(--transition); }

/* ── MAIN ────────────────────────────────────────────────── */
.main-content { min-height: calc(100vh - var(--header-height)); padding-top: var(--header-height); }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px; border-radius: 100px; font-family: 'Sora', sans-serif; font-size: 0.88rem; font-weight: 600; border: none; cursor: pointer; transition: var(--transition); text-decoration: none !important; letter-spacing: 0.02em; }
.btn-primary { background: linear-gradient(135deg, var(--orange), var(--orange-dark)); color: white !important; box-shadow: 0 4px 16px rgba(232,114,30,0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(232,114,30,0.45); color: white !important; }
.btn-secondary { background: white; border: 1.5px solid var(--border-dark); color: var(--text-primary) !important; }
.btn-secondary:hover { border-color: var(--orange); color: var(--orange) !important; background: var(--orange-pale); }
.btn-outline-orange { background: transparent; border: 2px solid var(--orange); color: var(--orange) !important; }
.btn-outline-orange:hover { background: var(--orange); color: white !important; }
.btn-sm { padding: 7px 18px; font-size: 0.82rem; }
.btn-danger { background: #FEE2E2; border: 1px solid #FECACA; color: #DC2626 !important; border-radius: var(--radius-sm); }
.btn-danger:hover { background: #FCA5A5; }

/* ── HERO (homepage) ─────────────────────────────────────── */
.hero-carousel { position: relative; height: 85vh; min-height: 600px; overflow: hidden; background: var(--dark-accent); }
.hero-slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; transition: opacity 0.8s ease; }
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-slide-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(26,26,46,0.82) 0%, rgba(26,26,46,0.45) 60%, transparent 100%); }
.hero-slide-content { position: relative; z-index: 2; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(232,114,30,0.2); border: 1px solid rgba(232,114,30,0.4); color: #F5924A; padding: 6px 16px; border-radius: 100px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 20px; }
.hero-title { font-size: clamp(2.5rem, 6vw, 4.2rem); color: white; line-height: 1.08; margin-bottom: 16px; }
.hero-title .accent { color: var(--orange-light); }
.hero-subtitle { font-size: 1.15rem; color: rgba(255,255,255,0.75); max-width: 520px; margin-bottom: 32px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-dots { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: var(--transition); border: none; }
.hero-dot.active { background: var(--orange); width: 24px; border-radius: 4px; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; background: rgba(255,255,255,0.15); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: white; font-size: 0.9rem; transition: var(--transition); }
.hero-arrow:hover { background: var(--orange); border-color: var(--orange); }
.hero-arrow.prev { left: 24px; }
.hero-arrow.next { right: 24px; }

/* ── STATS STRIP ─────────────────────────────────────────── */
.stats-strip { background: white; border-bottom: 1px solid var(--border); padding: 0; }
.stats-strip-inner { display: flex; }
.stat-item { flex: 1; padding: 32px 24px; text-align: center; border-right: 1px solid var(--border); transition: var(--transition); }
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--orange-pale); }
.stat-icon { font-size: 1.4rem; color: var(--orange); margin-bottom: 8px; }
.stat-number { font-family: 'DM Serif Display', serif; font-size: 2.2rem; color: var(--text-primary); line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }

/* ── SECTION ─────────────────────────────────────────────── */
.section { padding: 88px 0; }
.section-alt { background: white; }
.section-dark { background: var(--dark-accent); }
.section-orange { background: linear-gradient(135deg, var(--orange), var(--orange-dark)); }

.section-eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.section-eyebrow::before { content: ''; display: block; width: 24px; height: 2px; background: var(--orange); }
.section-title { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 16px; }
.section-subtitle { color: var(--text-muted); font-size: 1rem; max-width: 540px; line-height: 1.7; }
.section-header { margin-bottom: 52px; }
.section-header-row { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 52px; flex-wrap: wrap; gap: 16px; }

/* ── ABOUT SPLIT SECTION ──────────────────────────────────── */
.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split-section.reverse { direction: rtl; }
.split-section.reverse > * { direction: ltr; }
.split-image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--card-shadow-hover); aspect-ratio: 4/3; }
.split-image img { width: 100%; height: 100%; object-fit: cover; }
.split-image-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--orange-pale), var(--light-grey)); display: flex; align-items: center; justify-content: center; font-size: 4rem; color: var(--orange); aspect-ratio: 4/3; border-radius: var(--radius); }
.split-content .section-eyebrow { margin-bottom: 12px; }
.split-content .section-title { margin-bottom: 20px; }
.split-content p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; font-size: 1rem; }

/* ── CARDS GRID ──────────────────────────────────────────── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.cards-grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.post-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: var(--transition); display: flex; flex-direction: column; box-shadow: var(--card-shadow); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); border-color: var(--border-dark); }
.post-card-image { aspect-ratio: 16/9; overflow: hidden; background: var(--light-grey); position: relative; }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.post-card:hover .post-card-image img { transform: scale(1.04); }
.post-card-image .placeholder-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--orange-pale), var(--light-grey)); color: var(--orange); font-size: 2rem; }
.post-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.post-card-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.post-date { font-size: 0.76rem; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }
.tag-pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 100px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; background: var(--orange-pale); color: var(--orange); border: 1px solid var(--orange-pale2); transition: var(--transition); text-decoration: none !important; }
.tag-pill:hover { background: var(--orange); color: white !important; }
.post-card-title { font-size: 1.15rem; line-height: 1.35; margin-bottom: 10px; color: var(--text-primary); transition: var(--transition); }
.post-card:hover .post-card-title { color: var(--orange); }
.post-card-excerpt { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 20px; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--border); }
.read-more { font-size: 0.82rem; font-weight: 600; color: var(--orange) !important; display: inline-flex; align-items: center; gap: 6px; transition: var(--transition); }
.read-more:hover { gap: 10px; }

/* ── PAST PRESENTATIONS ───────────────────────────────────── */
.presentations-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.presentation-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: var(--transition); box-shadow: var(--card-shadow); display: flex; flex-direction: column; gap: 10px; }
.presentation-card:hover { transform: translateY(-3px); box-shadow: var(--card-shadow-hover); border-color: var(--orange); }
.presentation-year { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--orange); font-weight: 600; letter-spacing: 0.05em; }
.presentation-title { font-family: 'DM Serif Display', serif; font-size: 1.05rem; color: var(--text-primary); line-height: 1.3; }
.presentation-conf { font-size: 0.82rem; color: var(--text-muted); }
.presentation-links { display: flex; gap: 8px; margin-top: 4px; }
.presentation-link { font-size: 0.78rem; font-weight: 600; color: var(--orange); display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border: 1px solid var(--orange-pale2); border-radius: 100px; background: var(--orange-pale); transition: var(--transition); }
.presentation-link:hover { background: var(--orange); color: white !important; border-color: var(--orange); }

/* ── EVENTS ──────────────────────────────────────────────── */
.event-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 28px; margin-bottom: 16px; display: grid; grid-template-columns: 80px 1fr auto; gap: 24px; align-items: center; box-shadow: var(--card-shadow); transition: var(--transition); }
.event-card:hover { box-shadow: var(--card-shadow-hover); border-color: var(--border-dark); }
.event-card.upcoming { border-left: 3px solid var(--orange); background: linear-gradient(to right, var(--orange-pale), white); }
.event-date-block { text-align: center; }
.event-day { font-family: 'DM Serif Display', serif; font-size: 2.2rem; color: var(--orange); line-height: 1; }
.event-month { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); font-weight: 600; }
.event-info h3 { font-family: 'Sora', sans-serif; font-size: 0.98rem; font-weight: 600; margin-bottom: 5px; color: var(--text-primary); }
.event-conference { font-size: 0.85rem; color: var(--orange); margin-bottom: 3px; }
.event-location { font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.event-type-badge { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 100px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.badge-talk { background: var(--orange-pale); color: var(--orange); border: 1px solid var(--orange-pale2); }
.badge-keynote { background: #EFF6FF; color: #2563EB; border: 1px solid #BFDBFE; }
.badge-workshop { background: #F0FDF4; color: #16A34A; border: 1px solid #BBF7D0; }
.badge-panel { background: #FAF5FF; color: #7C3AED; border: 1px solid #DDD6FE; }
.badge-webinar { background: #FFFBEB; color: #D97706; border: 1px solid #FDE68A; }
.upcoming-pulse { display: inline-flex; align-items: center; gap: 8px; background: var(--orange-pale); border: 1px solid var(--orange-pale2); color: var(--orange); padding: 6px 16px; border-radius: 100px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 24px; }
.pulse-dot { width: 7px; height: 7px; background: var(--orange); border-radius: 50%; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.5; transform:scale(1.4); } }

/* ── BLOG LAYOUT ─────────────────────────────────────────── */
.blog-layout { display: grid; grid-template-columns: 1fr 290px; gap: 48px; align-items: start; }
.sidebar { position: sticky; top: calc(var(--header-height) + 24px); }
.sidebar-widget { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; box-shadow: var(--card-shadow); }
.sidebar-widget h3 { font-family: 'Sora', sans-serif; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-primary); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.sidebar-widget h3 i { color: var(--orange); }
.search-form { display: flex; gap: 8px; }
.search-input { flex: 1; background: var(--off-white); border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 9px 14px; color: var(--text-primary); font-family: 'Sora', sans-serif; font-size: 0.85rem; transition: var(--transition); }
.search-input:focus { outline: none; border-color: var(--orange); background: white; box-shadow: 0 0 0 3px rgba(232,114,30,0.1); }
.tags-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.archive-list { list-style: none; }
.archive-list li { border-bottom: 1px solid var(--border); }
.archive-list li:last-child { border-bottom: none; }
.archive-list a { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; color: var(--text-secondary) !important; font-size: 0.85rem; transition: var(--transition); }
.archive-list a:hover { color: var(--orange) !important; padding-left: 4px; }
.archive-count { background: var(--orange-pale); color: var(--orange); padding: 2px 8px; border-radius: 100px; font-size: 0.7rem; font-weight: 700; }

/* ── POST DETAIL ─────────────────────────────────────────── */
.post-header { padding: 72px 0 48px; background: white; border-bottom: 1px solid var(--border); margin-bottom: 56px; }
.post-header-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.post-title { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.12; max-width: 800px; }
.post-featured-image { border-radius: var(--radius); overflow: hidden; margin-bottom: 48px; border: 1px solid var(--border); box-shadow: var(--card-shadow); }
.post-featured-image img { width: 100%; max-height: 500px; object-fit: cover; }
.post-content-layout { display: grid; grid-template-columns: 1fr 270px; gap: 56px; align-items: start; }
.post-body { font-size: 1.05rem; line-height: 1.85; color: var(--text-secondary); }
.post-body h2,.post-body h3,.post-body h4 { color: var(--text-primary); margin: 36px 0 14px; }
.post-body h2 { font-size: 1.6rem; }
.post-body h3 { font-size: 1.25rem; }
.post-body p { margin-bottom: 20px; }
.post-body a { color: var(--orange); }
.post-body blockquote { border-left: 3px solid var(--orange); padding: 12px 24px; margin: 28px 0; background: var(--orange-pale); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text-primary); font-style: italic; }

.post-body ul,.post-body ol { padding-left: 24px; margin-bottom: 20px; }
.post-body li { margin-bottom: 6px; }
.post-body img { max-width: 100%; border-radius: var(--radius-sm); margin: 16px 0; }

/* ── ABOUT/CV ─────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 280px 1fr; gap: 56px; align-items: start; }
.about-sidebar { position: sticky; top: calc(var(--header-height) + 24px); }
.profile-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 24px; text-align: center; box-shadow: var(--card-shadow); }
.profile-avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 3px solid var(--orange); margin: 0 auto 20px; display: block; box-shadow: 0 0 0 6px var(--orange-pale); }
.profile-avatar-placeholder { width: 120px; height: 120px; border-radius: 50%; background: var(--orange-pale); border: 3px solid var(--orange); margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: var(--orange); }
.profile-name { font-size: 1.3rem; margin-bottom: 4px; }
.profile-title { font-family: 'Sora', sans-serif; font-size: 0.84rem; color: var(--orange); margin-bottom: 4px; font-weight: 500; }
.profile-org { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 20px; }
.social-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.social-link-cv { width: 36px; height: 36px; background: var(--light-grey); border: 1px solid var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--text-muted) !important; font-size: 0.88rem; transition: var(--transition); }
.social-link-cv:hover { background: var(--orange-pale); border-color: var(--orange); color: var(--orange) !important; }
.cv-section { margin-bottom: 48px; }
.cv-section-title { font-family: 'Sora', sans-serif; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 24px; display: flex; align-items: center; gap: 10px; }
.cv-section-title i { color: var(--orange); }
.cv-section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.cv-item { display: grid; grid-template-columns: 110px 1fr; gap: 20px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.cv-item:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.cv-item-period { font-family: 'JetBrains Mono', monospace; font-size: 0.76rem; color: var(--text-muted); padding-top: 4px; }
.cv-item-title { font-family: 'Sora', sans-serif; font-size: 0.98rem; font-weight: 600; color: var(--text-primary); margin-bottom: 3px; }
.cv-item-org { font-size: 0.84rem; color: var(--orange); margin-bottom: 6px; }
.cv-item-desc { font-size: 0.85rem; color: var(--text-muted); }
.skill-item { background: var(--off-white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 0.84rem; color: var(--text-secondary); display: flex; align-items: center; gap: 8px; transition: var(--transition); }
.skill-item:hover { border-color: var(--orange); background: var(--orange-pale); color: var(--orange); }
.skill-item i { color: var(--orange); font-size: 0.65rem; }

/* ── ADMIN FORMS ─────────────────────────────────────────── */
.admin-area { padding: 80px 0; background: var(--off-white); min-height: calc(100vh - var(--header-height)); }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid var(--border); flex-wrap: wrap; gap: 12px; }
.admin-title { font-size: 1.8rem; }
.form-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--card-shadow); }
.form-group { margin-bottom: 22px; }
.form-label { display: block; font-size: 0.78rem; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.form-control { width: 100%; background: var(--off-white); border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 11px 16px; color: var(--text-primary); font-family: 'Sora', sans-serif; font-size: 0.9rem; transition: var(--transition); -webkit-appearance: none; }
.form-control:focus { outline: none; border-color: var(--orange); background: white; box-shadow: 0 0 0 3px rgba(232,114,30,0.12); }
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.checkbox-label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.9rem; color: var(--text-secondary); }
.checkbox-label input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--orange); }
.tags-checkboxes { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-checkbox-label { display: flex; align-items: center; gap: 6px; background: var(--off-white); border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 7px 14px; font-size: 0.82rem; color: var(--text-secondary); cursor: pointer; transition: var(--transition); }
.tag-checkbox-label:has(input:checked) { background: var(--orange-pale); border-color: var(--orange); color: var(--orange); }
.tag-checkbox-label input { display: none; }

/* WYSIWYG EDITOR */
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 2px; background: var(--off-white); border: 1.5px solid var(--border); border-bottom: none; border-radius: var(--radius-sm) var(--radius-sm) 0 0; padding: 8px 10px; }
.editor-btn { background: none; border: 1px solid transparent; border-radius: 6px; padding: 6px 10px; cursor: pointer; font-size: 0.82rem; color: var(--text-secondary); transition: var(--transition); display: inline-flex; align-items: center; gap: 4px; font-family: 'Sora', sans-serif; }
.editor-btn:hover { background: white; border-color: var(--border); color: var(--text-primary); }
.editor-btn.active { background: var(--orange-pale); border-color: var(--orange); color: var(--orange); }
.editor-separator { width: 1px; background: var(--border); margin: 4px 4px; }
.editor-content { min-height: 420px; background: white; border: 1.5px solid var(--border); border-radius: 0 0 var(--radius-sm) var(--radius-sm); padding: 20px 24px; font-size: 1rem; line-height: 1.75; color: var(--text-primary); outline: none; font-family: 'Sora', sans-serif; }
.editor-content:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232,114,30,0.1); }
.editor-content h1,.editor-content h2,.editor-content h3 { font-family: 'DM Serif Display', serif; margin: 24px 0 12px; color: var(--text-primary); }
.editor-content h1 { font-size: 1.8rem; } .editor-content h2 { font-size: 1.4rem; } .editor-content h3 { font-size: 1.15rem; }
.editor-content p { margin-bottom: 14px; }
.editor-content blockquote { border-left: 3px solid var(--orange); padding: 10px 20px; background: var(--orange-pale); margin: 20px 0; border-radius: 0 8px 8px 0; font-style: italic; }
.editor-content img { max-width: 100%; border-radius: 8px; margin: 12px 0; cursor: pointer; }
.editor-content img.selected { outline: 3px solid var(--orange); }
.editor-content a { color: var(--orange); }
.editor-content ul,.editor-content ol { padding-left: 24px; margin-bottom: 14px; }

.editor-image-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 6px; display: flex; align-items: center; gap: 5px; }
/* ── WYSIWYG EDITOR (Διατήρηση του δικού σου Style) ── */
/* ── WYSIWYG EDITOR (Restored Styles) ────────────────────── */
.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    background: var(--off-white);
    border: 1.5px solid var(--border);
    border-bottom: none;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    padding: 8px 10px;
}

.editor-btn {
    background: none;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--text-secondary);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'Sora', sans-serif;
}

    .editor-btn:hover {
        background: white;
        border-color: var(--border);
        color: var(--text-primary);
    }

    .editor-btn.active {
        background: var(--orange-pale);
        border-color: var(--orange);
        color: var(--orange);
    }

.editor-content {
    min-height: 420px;
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    padding: 20px 24px;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-primary);
    outline: none;
    font-family: 'Sora', sans-serif;
    overflow-y: auto;
}

    /* ── CODE BLOCKS ── */
    /* Καθαρό στυλ για το codeblock χωρίς να επηρεάζει τη φόρμα */
    .editor-content pre {
        display: block;
        background: #2d2d2d !important;
        color: #f8f8f2 !important;
        border-left: 5px solid var(--orange);
        padding: 15px 20px;
        margin: 15px 0;
        font-family: 'JetBrains Mono', monospace;
        font-size: 0.9rem;
        white-space: pre !important; /* Κρίσιμο για το Enter */
        overflow-x: auto;
        border-radius: 0 8px 8px 0;
    }

        .editor-content pre code {
            white-space: pre !important;
            background: transparent !important;
            color: inherit !important;
            display: block;
        }

    /* Images inside editor */
    .editor-content img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        margin: 12px 0;
        display: block;
    }

/* ADMIN TABLE */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: left; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); padding: 12px 16px; border-bottom: 2px solid var(--border); }
.admin-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 0.88rem; color: var(--text-secondary); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--off-white); }
.table-title { color: var(--text-primary); font-weight: 500; }
.status-badge { display: inline-flex; padding: 3px 10px; border-radius: 100px; font-size: 0.7rem; font-weight: 700; }
.status-published { background: #F0FDF4; color: #16A34A; border: 1px solid #BBF7D0; }
.status-draft { background: var(--light-grey); color: var(--text-muted); border: 1px solid var(--border); }

/* ── PAGINATION ───────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 52px; }
.page-link { min-width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: white; border: 1.5px solid var(--border); border-radius: var(--radius-sm); color: var(--text-secondary) !important; font-size: 0.85rem; font-weight: 600; transition: var(--transition); padding: 0 14px; box-shadow: var(--card-shadow); }
.page-link:hover { border-color: var(--orange); color: var(--orange) !important; background: var(--orange-pale); }
.page-link.active { background: var(--orange); border-color: var(--orange); color: white !important; box-shadow: 0 4px 12px rgba(232,114,30,0.35); }

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer { background: var(--dark-accent); color: rgba(255,255,255,0.7); padding: 64px 0 32px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.5fr; gap: 48px; margin-bottom: 48px; }
.footer-logo { font-family: 'DM Serif Display', serif; font-size: 1.3rem; color: white; margin-bottom: 8px; }
.footer-tagline { font-size: 0.82rem; color: rgba(255,255,255,0.45); letter-spacing: 0.06em; margin-bottom: 20px; }
.footer-social { display: flex; gap: 8px; }
.social-link { width: 36px; height: 36px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.5) !important; font-size: 0.88rem; transition: var(--transition); }
.social-link:hover { background: var(--orange); border-color: var(--orange); color: white !important; }
.footer-links h4 { font-family: 'Sora', sans-serif; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 16px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.6) !important; font-size: 0.88rem; transition: var(--transition); }
.footer-links a:hover { color: white !important; padding-left: 4px; }
.footer-contact h4 { font-family: 'Sora', sans-serif; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 12px; }
.footer-contact p { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-bottom: 14px; line-height: 1.6; }
.footer-cta { color: var(--orange-light) !important; font-size: 0.88rem; font-weight: 600; }
.footer-cta:hover { color: white !important; }
.footer-bottom { padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; color: rgba(255,255,255,0.3); }
.footer-admin-link { color: rgba(255,255,255,0.2) !important; font-size: 0.75rem; opacity: 0.5; }
.footer-admin-link:hover { opacity: 1; color: var(--orange-light) !important; }

/* ── LOGIN ────────────────────────────────────────────────── */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--off-white); }
.login-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 48px; width: 100%; max-width: 420px; box-shadow: var(--card-shadow-hover); }
.login-icon { width: 56px; height: 56px; background: linear-gradient(135deg, var(--orange), var(--orange-dark)); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: white; margin: 0 auto 24px; box-shadow: 0 4px 16px rgba(232,114,30,0.35); }

/* ── ALERTS ───────────────────────────────────────────────── */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 0.88rem; margin-bottom: 20px; }
.alert-danger { background: #FEE2E2; border: 1px solid #FECACA; color: #DC2626; }
.alert-success { background: #F0FDF4; border: 1px solid #BBF7D0; color: #16A34A; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .blog-layout,.post-content-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .about-grid { grid-template-columns: 1fr; }
  .about-sidebar { position: static; }
  .split-section { grid-template-columns: 1fr; gap: 40px; }
  .split-section.reverse { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > *:first-child { grid-column: 1 / -1; }
  .stats-strip-inner { flex-wrap: wrap; }
  .stat-item { min-width: 50%; }
}
@media (max-width: 768px) {
  .main-nav { position: fixed; top: var(--header-height); left: 0; right: 0; background: white; flex-direction: column; padding: 20px; border-bottom: 1px solid var(--border); transform: translateY(-100%); opacity: 0; pointer-events: none; transition: all 0.3s ease; align-items: stretch; gap: 4px; box-shadow: 0 8px 32px rgba(26,26,46,0.1); }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav-toggle { display: flex; }
  .cards-grid,.cards-grid-3 { grid-template-columns: 1fr; }
  .event-card { grid-template-columns: 64px 1fr; }
  .event-card > *:last-child { grid-column: 2; }
  .footer-grid { grid-template-columns: 1fr; }
  .cv-item { grid-template-columns: 1fr; gap: 4px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-carousel { height: 70vh; min-height: 500px; }
  .stats-strip-inner { display: grid; grid-template-columns: 1fr 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .presentations-grid { grid-template-columns: 1fr; }
}

/* ── ANIMATIONS ───────────────────────────────────────────── */
@keyframes fadeInUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
.fade-in { animation: fadeInUp 0.6s ease both; }
.fade-in-1 { animation-delay: 0.1s; } .fade-in-2 { animation-delay: 0.2s; } .fade-in-3 { animation-delay: 0.3s; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--orange); }
::selection { background: var(--orange-pale2); color: var(--text-primary); }

/* ── CODE BLOCKS (editor + post display) ─────────────────── */
.editor-content code,
.post-body code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
  background: #FFF3E0;
  color: #BF360C;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid #FFE0B2;
}

.editor-content pre,
.editor-content pre.code-block,
.post-body pre {
  display: block;
  background: #F8F9FA;
  border: 1.5px solid #DEE2E6;
  border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  margin: 20px 0;
  overflow-x: auto;
  /* Critical: keep all whitespace and newlines as-is */
  white-space: pre;
  word-break: normal;
  overflow-wrap: normal;
}

.editor-content pre code,
.editor-content pre.code-block code,
.post-body pre code {
  display: block;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  color: #212529;
  line-height: 1.7;
  white-space: pre;
  word-break: normal;
  overflow-wrap: normal;
}
