/*
Theme Name: Dr. Sanjay Om Education
Theme URI: https://drsanjayom.com
Author: Dr. Sanjay Om
Description: A premium, mobile-first education theme for Dr. Sanjay Om — PharmD. Clean Hello Elementor–inspired red & white design with sticky header, news ticker, homepage sections, announcement popup, footer widgets, and full admin panel control.
Version: 2.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: Private
Text Domain: dso-theme
Tags: education, medical, pharmacy, mobile-first, sticky-header
*/

/* ═══════════════════════════════════
   BASE RESET
═══════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ═══════════════════════════════════
   CSS VARIABLES
═══════════════════════════════════ */
:root {
  --primary:       #6d28d9;
  --primary-dark:  #4c1d95;
  --primary-light: #8b5cf6;
  --accent:        #7c3aed;
  --accent2:       #5b21b6;
  --accent-light:  #f1e9fd;
  --highlight:     #a78bfa;
  --text:          #1a1a1a;
  --text-muted:    #6b6b6b;
  --border:        #ececec;
  --bg:            #ffffff;
  --white:         #ffffff;
  --shadow:        0 1px 3px rgba(0,0,0,0.06);
  --shadow-md:     0 2px 14px rgba(0,0,0,0.10);
  --radius:        6px;
  --radius-lg:     10px;
  --header-h:      64px;
  --surface:       #ffffff;
  --surface-alt:   #f7f7f7;
  --badge-neutral-bg:   #e8e8e8;
  --badge-neutral-text: #333333;
  color-scheme: light dark;
}

/* ═══════════════════════════════════
   DARK MODE
   - Follows the device/browser setting automatically by default
   - Can be manually overridden by the theme's light/dark toggle,
     which adds .dso-dark or .dso-light to <html> (see main.js)
═══════════════════════════════════ */
@media (prefers-color-scheme: dark) {
  :root:not(.dso-light) {
    --primary:       #8b5cf6;
    --primary-dark:  #6d28d9;
    --primary-light: #c4b5fd;
    --accent:        #8b5cf6;
    --accent2:       #7c3aed;
    --accent-light:  #2c2145;
    --highlight:     #c4b5fd;
    --text:          #f2eefb;
    --text-muted:    #b6a9d6;
    --border:        #362a4f;
    --bg:            #150f22;
    --white:         #1e1832;
    --surface:       #1e1832;
    --surface-alt:   #241d3a;
    --badge-neutral-bg:   #2a2440;
    --badge-neutral-text: #d9d0ec;
    --shadow:        0 1px 3px rgba(0,0,0,0.45);
    --shadow-md:     0 2px 14px rgba(0,0,0,0.55);
  }
}
html.dso-dark {
  --primary:       #8b5cf6;
  --primary-dark:  #6d28d9;
  --primary-light: #c4b5fd;
  --accent:        #8b5cf6;
  --accent2:       #7c3aed;
  --accent-light:  #2c2145;
  --highlight:     #c4b5fd;
  --text:          #f2eefb;
  --text-muted:    #b6a9d6;
  --border:        #362a4f;
  --bg:            #150f22;
  --white:         #1e1832;
  --surface:       #1e1832;
  --surface-alt:   #241d3a;
  --badge-neutral-bg:   #2a2440;
  --badge-neutral-text: #d9d0ec;
  --shadow:        0 1px 3px rgba(0,0,0,0.45);
  --shadow-md:     0 2px 14px rgba(0,0,0,0.55);
}

/* ═══════════════════════════════════
   LAYOUT WRAPPERS
═══════════════════════════════════ */
.dso-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.site-content { flex: 1; }
.page-content { padding: 40px 0; }

/* ═══════════════════════════════════
   STICKY HEADER
═══════════════════════════════════ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: box-shadow 0.3s;
}
#site-header.scrolled { box-shadow: var(--shadow-md); }
#site-header .dso-container { padding-left: 14px; padding-right: 14px; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* LOGO */
.site-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-circle {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff; flex-shrink: 0;
  transition: transform 0.2s;
}
.site-logo:hover .logo-circle { transform: scale(1.08); }
.logo-img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.logo-text-wrap {}
.logo-name { font-size: 16px; font-weight: 700; color: var(--text); line-height: 1.2; }
.logo-tagline { font-size: 10px; color: var(--text-muted); }

/* NAV */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: var(--text); font-size: 13px; font-weight: 500;
  padding: 7px 13px; border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { background: var(--accent-light); color: var(--primary); }
.main-nav .nav-cta {
  background: var(--primary); color: #fff !important;
  padding: 7px 16px; border-radius: 6px; font-weight: 700;
}
.main-nav .nav-cta:hover { background: var(--accent2); }

/* HEADER AUTH (Login button / logged-in user) */
.nav-auth-btn {
  background: transparent; color: var(--primary) !important;
  border: 1.5px solid var(--primary); font-weight: 700;
  padding: 6px 16px; border-radius: 6px; font-size: 13px;
  margin-left: 6px; transition: background 0.15s, color 0.15s;
}
.nav-auth-btn:hover { background: var(--primary); color: #fff !important; }
.nav-auth-user { display: flex; align-items: center; gap: 8px; margin-left: 10px; }
.nav-avatar { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--border); }
.nav-username { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; }
.nav-logout { font-size: 11px; color: var(--text-muted); border-bottom: 1px dotted var(--text-muted); }
.nav-logout:hover { color: var(--primary); border-color: var(--primary); }
/* MOBILE HEADER RIGHT (auth + hamburger, mobile only) */
.header-mobile-right { display: none; align-items: center; gap: 10px; }
.header-auth-mobile { display: flex; align-items: center; }
.nav-auth-btn-compact { padding: 6px 13px; font-size: 12px; margin-left: 0; }
.nav-auth-user-compact { gap: 6px; margin-left: 0; }
.nav-auth-user-compact .nav-username {
  font-size: 12px; max-width: 78px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.nav-logout-icon { display: flex; color: var(--text-muted); font-size: 15px; }
.nav-logout-icon:hover { color: var(--primary); }

/* HAMBURGER */
.hamburger {
  display: flex; align-items: center; background: none; border: none;
  color: var(--text); font-size: 26px; padding: 4px; line-height: 1;
}

/* MOBILE NAV DRAWER */
.mobile-nav-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.5); z-index: 1100;
}
.mobile-nav-drawer {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
  background: var(--white); z-index: 1200;
  transition: right 0.3s ease; overflow-y: auto;
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
  display: flex; flex-direction: column;
}
.mobile-nav-drawer.open { right: 0; }
.mobile-nav-overlay.open { display: block; }
.drawer-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.drawer-close { background: none; border: none; color: var(--text); font-size: 22px; }
.drawer-header-actions { display: flex; align-items: center; gap: 10px; }

/* THEME TOGGLE (light/dark) */
.theme-toggle-btn {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid var(--border); background: var(--surface);
  color: var(--text); font-size: 16px; margin-left: 8px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.theme-toggle-btn:hover { border-color: var(--primary); color: var(--primary); }
.drawer-header-actions .theme-toggle-btn { margin-left: 0; }
.drawer-nav { padding: 12px 0; }
.drawer-nav a {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); font-size: 14px; padding: 13px 20px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.drawer-nav a:hover { background: var(--accent-light); color: var(--primary); }

/* ═══════════════════════════════════
   NEWS TICKER
═══════════════════════════════════ */
#dso-ticker {
  background: var(--primary);
  display: flex; align-items: center;
  overflow: hidden; height: 34px; width: 100%;
}
.ticker-label {
  background: var(--primary-dark); color: #fff;
  padding: 0 14px; font-size: 11px; font-weight: 700;
  height: 100%; display: flex; align-items: center; gap: 5px;
  flex-shrink: 0; white-space: nowrap; letter-spacing: 0.4px;
}
.ticker-outer { overflow: hidden; flex: 1; }
.ticker-track {
  display: flex; gap: 80px; white-space: nowrap;
  animation: dso-tick 30s linear infinite; padding: 0 24px;
}
.ticker-track span { font-size: 12px; color: #ded0f9; }
.ticker-track a { font-size: 12px; color: #ded0f9; text-decoration: none; }
.ticker-track a:hover { color: var(--highlight); }
@keyframes dso-tick { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
#dso-ticker:hover .ticker-track { animation-play-state: paused; }

/* ═══════════════════════════════════
   HERO SECTION
═══════════════════════════════════ */
#dso-hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 60px 0 48px; color: var(--text); position: relative; overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; position: relative; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.hero-badge {
  font-size: 10px; font-weight: 700; padding: 4px 11px;
  border-radius: 20px; letter-spacing: 0.3px;
}
.hb-1{background:var(--accent-light);color:var(--primary);}
.hb-2{background:#ece1fb;color:var(--accent2);border:1px solid var(--border);}
.hb-3{background:#f3e8fd;color:var(--primary-dark);}
.hb-4{background:#f7f7f7;color:var(--text-muted);border:1px solid var(--border);}
.hero-title { font-size: 36px; font-weight: 800; line-height: 1.2; margin-bottom: 14px; color: var(--text); }
.hero-desc { font-size: 15px; color: var(--text-muted); line-height: 1.75; margin-bottom: 24px; max-width: 480px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.btn-primary {
  background: var(--accent); color: #fff;
  padding: 12px 28px; border-radius: var(--radius); font-size: 14px;
  font-weight: 700; border: none; display: inline-block;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--accent2); color: #fff; transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary);
  padding: 12px 28px; border-radius: var(--radius); font-size: 14px;
  font-weight: 600; display: inline-block; transition: all 0.2s;
}
.btn-outline:hover { background: var(--accent-light); }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.stat-num { font-size: 26px; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-lbl { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.hero-photo {
  width: 160px; height: 200px; border-radius: var(--radius-lg);
  background: var(--accent-light); border: 2px solid var(--border);
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; flex-shrink: 0; overflow: hidden;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-placeholder { text-align: center; color: var(--primary); }
.hero-photo-placeholder i { font-size: 60px; display: block; margin-bottom: 8px; }
.hero-photo-placeholder span { font-size: 12px; line-height: 1.4; color: var(--text-muted); }

/* SUBJECT STRIP */
#dso-strip {
  background: var(--primary);
  border-top: 1px solid rgba(255,255,255,0.08);
  overflow-x: auto; white-space: nowrap;
  scrollbar-width: none;
}
#dso-strip::-webkit-scrollbar { display: none; }
.strip-inner { display: flex; }
.strip-item {
  color: #d9c2f5; font-size: 12px; font-weight: 600;
  padding: 10px 20px; display: inline-flex; align-items: center; gap: 7px;
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: background 0.15s; cursor: default; white-space: nowrap;
}
.strip-item:hover { background: rgba(255,255,255,0.07); }
.strip-item i { font-size: 15px; color: var(--highlight); }

/* ═══════════════════════════════════
   MAIN HOMEPAGE GRID
═══════════════════════════════════ */
#dso-main { padding: 32px 0; }
.dso-grid { display: grid; grid-template-columns: 1fr 310px; gap: 28px; }
.dso-left { display: flex; flex-direction: column; gap: 32px; }
.dso-sidebar { display: flex; flex-direction: column; gap: 24px; }

/* SECTION CARD */
.dso-section-card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden;
}
.dso-section-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 0;
}
.dso-section-title {
  font-size: 16px; font-weight: 700; color: var(--primary);
  display: flex; align-items: center; gap: 10px;
}
.dso-section-title::before {
  content: ''; width: 4px; height: 20px;
  background: var(--accent); border-radius: 2px; display: inline-block;
}
.dso-see-all {
  font-size: 12px; color: var(--accent); font-weight: 700;
  border: 1.5px solid var(--accent); padding: 5px 12px;
  border-radius: 5px; transition: all 0.15s;
}
.dso-see-all:hover { background: var(--accent); color: #fff; }
.dso-section-body { padding: 16px 20px 20px; }

/* ═══════════════════════════════════
   POST CARDS
═══════════════════════════════════ */
.post-card-list { display: flex; flex-direction: column; gap: 14px; }
.post-card {
  display: grid; grid-template-columns: 76px 1fr; gap: 14px;
  align-items: start; padding: 14px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  text-decoration: none; color: inherit;
}
.post-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-1px); }
.post-thumb {
  width: 76px; height: 76px; border-radius: var(--radius);
  background: var(--accent-light); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; overflow: hidden;
}
.post-thumb i { font-size: 28px; color: var(--accent); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.post-cat {
  background: var(--accent-light); color: var(--accent);
  padding: 2px 9px; border-radius: 12px; font-size: 10px; font-weight: 700;
}
.post-date { font-size: 11px; color: var(--text-muted); }
.post-title { font-size: 13px; font-weight: 700; line-height: 1.45; margin-bottom: 5px; color: var(--text); }
.post-excerpt { font-size: 12px; color: var(--text-muted); line-height: 1.55; }

/* ═══════════════════════════════════
   VIDEO CARDS
═══════════════════════════════════ */
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.video-card {
  border-radius: var(--radius); border: 1px solid var(--border);
  overflow: hidden; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  text-decoration: none; color: inherit; display: block;
}
.video-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-1px); }
.video-thumb {
  height: 110px; display: flex; align-items: center;
  justify-content: center; position: relative; overflow: hidden;
}
.video-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.play-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.9); display: flex; align-items: center;
  justify-content: center; position: relative; z-index: 1;
  transition: transform 0.15s;
}
.video-card:hover .play-btn { transform: scale(1.12); }
.play-btn i { font-size: 20px; color: var(--primary); margin-left: 2px; }
.video-duration {
  position: absolute; bottom: 7px; right: 9px;
  background: rgba(0,0,0,0.75); color: #fff;
  font-size: 10px; padding: 2px 6px; border-radius: 4px; z-index: 1;
}
.video-info { padding: 10px 12px; background: var(--white); }
.video-title { font-size: 12px; font-weight: 700; line-height: 1.4; margin-bottom: 4px; }
.video-views { font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }

/* ═══════════════════════════════════
   COURSE CARDS
═══════════════════════════════════ */
.course-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.course-card {
  border-radius: var(--radius); border: 2px solid;
  padding: 18px; transition: transform 0.15s, box-shadow 0.15s;
}
.course-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.course-card.free { background: var(--accent-light); border-color: var(--primary); }
.course-card.paid { background: var(--surface-alt); border-color: var(--border); }
.course-badge {
  display: inline-block; font-size: 10px; font-weight: 700;
  padding: 3px 10px; border-radius: 20px; margin-bottom: 12px; letter-spacing: 1px;
}
.free .course-badge { background: #dcc5f7; color: #4c1d95; }
.paid .course-badge { background: var(--badge-neutral-bg); color: var(--badge-neutral-text); }
.course-title { font-size: 14px; font-weight: 700; margin-bottom: 7px; line-height: 1.4; }
.course-meta { font-size: 11px; color: var(--text-muted); margin-bottom: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.course-meta span { display: flex; align-items: center; gap: 3px; }
.course-price { font-size: 20px; font-weight: 800; margin-bottom: 14px; }
.free .course-price { color: var(--accent); }
.paid .course-price { color: var(--primary); }
.course-btn {
  display: block; width: 100%; padding: 10px; border: none;
  border-radius: var(--radius); font-size: 13px; font-weight: 700;
  text-align: center; text-decoration: none; transition: opacity 0.2s;
}
.free .course-btn { background: var(--accent); color: #fff; }
.paid .course-btn { background: var(--primary); color: #fff; }
.course-btn:hover { opacity: 0.88; color: #fff; }

/* ═══════════════════════════════════
   SIDEBAR WIDGETS
═══════════════════════════════════ */
.sidebar-widget {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden;
}
.widget-head {
  background: var(--primary-dark); color: #fff;
  padding: 12px 16px; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.widget-body { padding: 4px 0; }

/* ADMISSION LIST */
.adm-item {
  padding: 11px 16px; border-bottom: 1px solid var(--border);
  display: flex; gap: 10px; align-items: flex-start;
  text-decoration: none; color: inherit; transition: background 0.15s;
}
.adm-item:hover { background: var(--accent-light); }
.adm-item:last-child { border-bottom: none; }
.adm-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 5px; }
.adm-text { font-size: 12px; font-weight: 600; line-height: 1.4; }
.adm-date { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.badge-new {
  font-size: 9px; font-weight: 700; background: var(--accent);
  color: #fff; padding: 2px 6px; border-radius: 3px;
  margin-left: 5px; vertical-align: middle;
}

/* QUICK LINKS */
.ql-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px; }
.ql-item {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 8px 10px;
  display: flex; flex-direction: column; align-items: center;
  gap: 5px; font-size: 11px; font-weight: 600; color: var(--text-muted);
  text-decoration: none; transition: all 0.15s;
}
.ql-item:hover { border-color: var(--accent); background: var(--accent-light); color: var(--accent); }
.ql-item i { font-size: 22px; color: var(--primary); }

/* CONTACT WIDGET */
.contact-list { padding: 8px 0; }
.contact-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px; font-size: 13px; color: var(--text);
  border-bottom: 1px solid var(--border); text-decoration: none;
}
.contact-row:last-child { border-bottom: none; }
.contact-row i { font-size: 16px; color: var(--primary); flex-shrink: 0; }
.social-btns { display: flex; gap: 8px; padding: 12px 16px; }
.soc-btn {
  flex: 1; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 8px 6px;
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; font-size: 10px; font-weight: 600; color: var(--text);
  text-decoration: none; transition: all 0.15s;
}
.soc-btn:hover { border-color: var(--accent); color: var(--accent); }
.soc-btn i { font-size: 18px; color: var(--primary); }

/* ADMISSION APPLY BTN */
.adm-apply-wrap { padding: 12px 16px; }
.adm-apply-wrap .btn-primary { display: block; text-align: center; width: 100%; }

/* ═══════════════════════════════════
   ANNOUNCEMENT POPUP
═══════════════════════════════════ */
#dso-popup-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.6); z-index: 9000;
  align-items: center; justify-content: center;
  backdrop-filter: blur(3px);
}
#dso-popup-overlay.active { display: flex; }
.popup-box {
  background: var(--white); border-radius: var(--radius-lg);
  max-width: 500px; width: 90%; position: relative;
  overflow: hidden; animation: popIn 0.3s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
@keyframes popIn { from{transform:scale(0.85);opacity:0} to{transform:scale(1);opacity:1} }
.popup-header {
  background: var(--primary);
  padding: 24px 24px 20px; color: #fff;
}
.popup-close {
  position: absolute; top: 14px; right: 14px;
  background: rgba(255,255,255,0.15); border: none; color: #fff;
  width: 30px; height: 30px; border-radius: 50%;
  font-size: 16px; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.popup-close:hover { background: rgba(255,255,255,0.3); }
.popup-badge {
  background: var(--highlight); color: var(--primary-dark);
  font-size: 10px; font-weight: 700; padding: 3px 10px;
  border-radius: 20px; display: inline-block; margin-bottom: 10px;
  letter-spacing: 0.5px;
}
.popup-title { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.popup-subtitle { font-size: 13px; color: #c9b3f0; }
.popup-body { padding: 20px 24px 24px; }
.popup-body p { font-size: 14px; color: var(--text-muted); line-height: 1.65; margin-bottom: 16px; }
.popup-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.popup-actions .btn-primary, .popup-actions .btn-outline-dark {
  padding: 10px 22px; font-size: 13px; border-radius: var(--radius);
}
.btn-outline-dark {
  background: transparent; border: 2px solid var(--border);
  color: var(--text-muted); padding: 10px 22px; border-radius: var(--radius);
  font-size: 13px; font-weight: 600; display: inline-block; transition: all 0.15s;
}
.btn-outline-dark:hover { border-color: var(--primary); color: var(--primary); }
.popup-dont-show { display: flex; align-items: center; gap: 7px; margin-top: 14px; font-size: 12px; color: var(--text-muted); cursor: pointer; }
.popup-dont-show input { cursor: pointer; }

/* ═══════════════════════════════════
   FOOTER
═══════════════════════════════════ */
#dso-footer { margin-top: auto; }
.footer-top { background: #2e1065; padding: 52px 0 40px; color: #cbb8ea; }
.footer-top h1, .footer-top h2, .footer-top h3, .footer-top h4, .footer-top h5, .footer-top h6 { color: #fff; }
.footer-top a { color: #cbb8ea; }
.footer-top a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
}
.footer-brand {}
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo-circle {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent); display: flex; align-items: center;
  justify-content: center; font-size: 16px; font-weight: 700; color: #fff;
}
.footer-logo-name { font-size: 18px; font-weight: 700; color: #fff; line-height: 1.2; }
.footer-logo-sub { font-size: 11px; color: #d4c5f0; font-weight: 500; letter-spacing: 0.3px; }
.footer-desc { font-size: 13px; color: #d4c5f0; line-height: 1.8; margin-bottom: 20px; }
.footer-contacts { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.footer-ci { display: flex; align-items: center; gap: 9px; font-size: 13px; color: #e4d9f7; text-decoration: none; font-weight: 500; transition: color 0.2s, transform 0.2s; }
.footer-ci i { font-size: 16px; color: var(--highlight); flex-shrink: 0; }
.footer-ci:hover { color: #fff; transform: translateX(2px); }
.footer-social { display: flex; gap: 9px; }
.fsoc {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center;
  color: #b79ee0; text-decoration: none; transition: all 0.2s;
}
.fsoc:hover { background: var(--accent); color: #fff; }
.fsoc i { font-size: 17px; }
.footer-col-title {
  font-size: 13px; font-weight: 700; color: #fff;
  margin-bottom: 18px; padding-bottom: 9px;
  border-bottom: 2px solid var(--accent);
  text-transform: uppercase; letter-spacing: 0.8px;
}
.footer-links { display: flex; flex-direction: column; gap: 4px; }
.footer-links a {
  font-size: 13px; font-weight: 500; color: #e4d9f7; display: flex;
  align-items: center; gap: 8px; transition: color 0.2s, transform 0.2s, background 0.2s;
  text-decoration: none; padding: 6px 8px; margin: 0 -8px; border-radius: 6px;
}
.footer-links a:hover { color: #fff; background: rgba(255,255,255,0.08); transform: translateX(3px); }
.footer-links i { font-size: 12px; color: var(--highlight); }
.footer-bottom {
  background: #1a0533; padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: #b7a3d9;
}
.footer-bottom a { color: #b7a3d9; }
.footer-bottom-inner {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: #b7a3d9;
}
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { color: #b7a3d9; text-decoration: none; font-weight: 500; transition: color 0.15s; }
.footer-bottom-links a:hover { color: #fff; }

/* ═══════════════════════════════════
   SCROLL TO TOP
═══════════════════════════════════ */
#scroll-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fff; border: none;
  font-size: 20px; display: none; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); z-index: 800; transition: all 0.2s;
}
#scroll-top.visible { display: flex; }
#scroll-top:hover { background: var(--accent2); transform: translateY(-2px); }

/* ═══════════════════════════════════
   SINGLE PAGE / BLOG CONTENT
═══════════════════════════════════ */
.entry-header { margin-bottom: 24px; }
.entry-title { font-size: 28px; font-weight: 800; color: var(--primary); line-height: 1.3; margin-bottom: 10px; }
.entry-meta { font-size: 12px; color: var(--text-muted); display: flex; gap: 14px; flex-wrap: wrap; }
.entry-content { font-size: 15px; line-height: 1.8; color: var(--text); }
.entry-content h2, .entry-content h3 { color: var(--primary); margin: 24px 0 12px; }
.entry-content p { margin-bottom: 16px; }
.entry-content ul, .entry-content ol { padding-left: 20px; margin-bottom: 16px; }
.entry-content img { border-radius: var(--radius); margin: 16px 0; }

/* ═══════════════════════════════════
   UTILITY
═══════════════════════════════════ */
.dso-empty { font-size: 13px; color: var(--text-muted); padding: 16px 0; text-align: center; }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }

/* ═══════════════════════════════════
   MOBILE RESPONSIVE
═══════════════════════════════════ */
@media (max-width: 900px) {
  .dso-grid { grid-template-columns: 1fr; }
  .dso-sidebar { order: -1; }
  .video-grid { grid-template-columns: 1fr 1fr; }
  .course-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { display: none; }
  .hero-title { font-size: 26px; }
}
@media (max-width: 600px) {
  :root { --header-h: 56px; }
  .main-nav { display: none; }
  .header-mobile-right { display: flex; }
  .hero-title { font-size: 22px; }
  .hero-stats { gap: 18px; }
  .stat-num { font-size: 20px; }
  .video-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; gap: 8px; text-align: center; }
  .dso-container { padding: 0 12px; }
  #site-header .dso-container { padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 380px) {
  .dso-container { padding: 0 10px; }
  #site-header .dso-container { padding-left: 8px; padding-right: 8px; }
  .logo-tagline { display: none; }
}
