/* ==========================================================================
   SEOGUESTSPOT - Complete Design System (Matching input_file_5.png)
   ========================================================================== */

:root {
  --primary-blue: #0052cc;
  --primary-blue-hover: #003e99;
  --dark-navy: #061127;
  --dark-navy-card: #0b1736;
  --accent-blue: #0d6efd;
  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border-color: #e2e8f0;
  --ad-bg: #eaeef3;
  --ad-border: #cbd5e1;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-main); background-color: var(--bg-light); color: var(--text-body); line-height: 1.6; font-size: 14px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-blue); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 16px; }

.view-container { display: none; animation: fadeInView 0.3s ease; }
.view-container.active-view { display: block; }

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

/* ==========================================================================
   1. TOP BAR (BLUE BACKGROUND MATCHING INPUT_FILE_5.PNG)
   ========================================================================== */
.top-bar {
  background-color: var(--primary-blue);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 0;
  font-size: 13px;
  color: #ffffff;
}

.top-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar-date {
  font-weight: 500;
  color: #ffffff;
}

.top-bar-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-bar-links a {
  color: #ffffff;
  font-weight: 500;
  opacity: 0.9;
}

.top-bar-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.link-divider {
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  user-select: none;
}

.crm-launcher-btn {
  background-color: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.crm-launcher-btn:hover { background-color: rgba(255, 255, 255, 0.3) !important; text-decoration: none !important; }

.login-link {
  color: #ffffff !important;
  font-weight: 600 !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.15);
  transition: var(--transition);
}
.login-link:hover { background-color: rgba(255, 255, 255, 0.25); text-decoration: none !important; }

.user-logged-in-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #ffffff;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  color: var(--primary-blue);
  font-weight: 700;
}
.user-logged-in-pill button { background: none; border: none; color: #ef4444; cursor: pointer; font-size: 12px; margin-left: 4px; }

.top-bar-socials { display: flex; align-items: center; gap: 14px; }
.top-bar-socials a { color: #ffffff; font-size: 14px; opacity: 0.9; }
.top-bar-socials a:hover { opacity: 1; transform: translateY(-1px); }

/* ==========================================================================
   2. MAIN HEADER & LEADERBOARD AD
   ========================================================================== */
.main-header {
  background-color: #ffffff;
  padding: 20px 0;
  border-bottom: 1px solid #f1f5f9;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.brand-logo { cursor: pointer; user-select: none; }
.logo-text { font-family: var(--font-heading); font-size: 32px; font-weight: 800; letter-spacing: -0.5px; line-height: 1; }
.logo-blue { color: var(--primary-blue); }
.logo-dark { color: var(--dark-navy); }
.logo-white { color: #ffffff; }
.logo-tagline { font-size: 12px; color: var(--text-muted); font-weight: 500; margin-top: 4px; }

.ad-placeholder {
  background-color: var(--ad-bg);
  border: 1px dashed var(--ad-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: #475569;
  text-align: center;
  transition: var(--transition);
}

.ad-placeholder:hover { border-color: var(--primary-blue); }
.leaderboard-ad { width: 728px; height: 90px; }
.rectangle-ad { width: 100%; height: 90px; }
.rectangle-ad-sm { width: 100%; height: 50px; }
.ad-dimens { font-size: 18px; font-weight: 700; font-family: var(--font-heading); color: #334155; }
.rectangle-ad-sm .ad-dimens { font-size: 15px; }
.ad-label { font-size: 12px; color: var(--text-muted); }

.btn-write-for-us {
  background-color: var(--primary-blue);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(0, 82, 204, 0.2);
}

.btn-write-for-us:hover { background-color: var(--primary-blue-hover); transform: translateY(-1px); }

/* ==========================================================================
   3. NAVIGATION BAR
   ========================================================================== */
.main-nav {
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

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

.nav-home-btn {
  background-color: var(--primary-blue);
  color: #ffffff;
  border: none;
  padding: 14px 18px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.nav-home-btn:hover { background-color: var(--primary-blue-hover); }

.nav-menu { display: flex; align-items: center; }
.nav-item { position: relative; }
.nav-item a { display: block; padding: 14px 16px; font-weight: 600; font-size: 13.5px; color: #1e293b; white-space: nowrap; }
.nav-item:hover > a, .nav-item.active > a { color: var(--primary-blue); }
.dropdown-toggle i { font-size: 10px; margin-left: 4px; }
.dropdown-menu { position: absolute; top: 100%; left: 0; background-color: #ffffff; min-width: 180px; box-shadow: var(--shadow-md); border-radius: 0 0 var(--radius-sm) var(--radius-sm); border: 1px solid var(--border-color); display: none; z-index: 100; }
.nav-item.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a { padding: 10px 16px; font-size: 13px; font-weight: 500; color: #334155; border-bottom: 1px solid #f1f5f9; }
.dropdown-menu a:hover { background-color: #f8fafc; color: var(--primary-blue); }

.nav-right { display: flex; align-items: center; }
.nav-search-btn { background: none; border: none; color: #1e293b; font-size: 16px; padding: 14px 16px; cursor: pointer; }
.nav-search-btn:hover { color: var(--primary-blue); }
.mobile-toggle-btn { display: none; background: none; border: none; font-size: 20px; color: #1e293b; padding: 10px; cursor: pointer; }

/* ==========================================================================
   4. TRENDING TICKER & MAIN HOME LAYOUT
   ========================================================================== */
.trending-section { background-color: #ffffff; border-bottom: 1px solid var(--border-color); margin-bottom: 24px; }
.trending-container { display: flex; align-items: center; gap: 16px; padding: 8px 16px; }
.trending-badge { background-color: var(--primary-blue); color: #ffffff; font-weight: 700; font-size: 11px; letter-spacing: 0.5px; padding: 6px 12px; border-radius: 2px; white-space: nowrap; }
.trending-content { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.trending-content a { font-weight: 600; color: #1e293b; font-size: 13.5px; }
.trending-content a:hover { color: var(--primary-blue); }
.trending-controls { display: flex; align-items: center; gap: 4px; }
.trending-controls button { background-color: #ffffff; border: 1px solid var(--border-color); width: 26px; height: 26px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; cursor: pointer; color: #64748b; font-size: 10px; transition: var(--transition); }
.trending-controls button:hover { border-color: var(--primary-blue); color: var(--primary-blue); }

.main-layout { display: grid; grid-template-columns: 1fr 340px; gap: 30px; margin-bottom: 40px; }
.feed-active-filter-bar { background-color: #e0e7ff; border: 1px solid #c7d2fe; padding: 10px 16px; border-radius: var(--radius-sm); margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; color: #3730a3; }
.btn-clear-filter { background: #ffffff; border: 1px solid #c7d2fe; color: #3730a3; padding: 4px 10px; border-radius: var(--radius-sm); cursor: pointer; font-weight: 600; font-size: 12px; }

.articles-list { display: flex; flex-direction: column; gap: 24px; }
.article-card { background-color: #ffffff; border-radius: 4px; display: flex; gap: 20px; padding: 0; overflow: hidden; transition: var(--transition); }
.article-card:hover { box-shadow: var(--shadow-sm); }
.article-banner-wrap { width: 250px; height: 160px; flex-shrink: 0; position: relative; overflow: hidden; border-radius: 4px; cursor: pointer; }
.article-banner { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 16px; color: #ffffff; position: relative; transition: var(--transition); }
.article-banner-wrap:hover .article-banner { transform: scale(1.03); }
.banner-title-overlay { font-family: var(--font-heading); font-weight: 800; font-size: 18px; line-height: 1.1; text-transform: uppercase; max-width: 65%; z-index: 2; }
.banner-graphic-icon { position: absolute; right: 12px; bottom: 12px; font-size: 64px; opacity: 0.85; z-index: 1; }
.article-content { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-right: 8px; }
.article-category { color: var(--primary-blue); font-weight: 700; font-size: 11px; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 6px; cursor: pointer; }
.article-title { font-family: var(--font-main); font-size: 17px; font-weight: 700; color: #0f172a; line-height: 1.35; margin-bottom: 6px; }
.article-title a { color: #0f172a; }
.article-title a:hover { color: var(--primary-blue); }
.article-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.article-excerpt { font-size: 13px; color: #475569; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.load-more-wrapper { margin-top: 32px; text-align: center; }
.btn-load-more { background-color: #ffffff; border: 1px solid var(--border-color); color: #1e293b; padding: 10px 24px; border-radius: var(--radius-sm); font-weight: 600; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: var(--transition); }
.btn-load-more:hover { background-color: #f1f5f9; color: var(--primary-blue); }

/* ==========================================================================
   5. SINGLE BLOG ARTICLE VIEW
   ========================================================================== */
.breadcrumb-section { background-color: #ffffff; border-bottom: 1px solid var(--border-color); padding: 12px 0; margin-bottom: 20px; }
.breadcrumb-trail { font-size: 12.5px; color: var(--text-muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.breadcrumb-trail a { color: #475569; font-weight: 500; }
.breadcrumb-trail a:hover { color: var(--primary-blue); }
.breadcrumb-trail .sep { color: #94a3b8; font-size: 10px; }
.breadcrumb-trail .active-crumb { color: #0f172a; font-weight: 600; }

.single-article-main { margin-bottom: 40px; }
.single-article-header { margin-bottom: 24px; }
.single-title { font-family: var(--font-main); font-size: 30px; font-weight: 800; color: #0f172a; line-height: 1.25; margin-bottom: 12px; }
.single-meta-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-muted); border-bottom: 1px solid var(--border-color); padding-bottom: 14px; }
.single-meta-left .author-link { font-weight: 600; color: #334155; }
.single-meta-left .cat-tag { color: var(--text-dark); font-weight: 600; }
.single-meta-right { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-weight: 500; }

.single-layout-grid { display: grid; grid-template-columns: 50px 1fr 340px; gap: 24px; align-items: start; }
.sticky-share-col { position: relative; }
.sticky-share-box { position: sticky; top: 90px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.share-title { font-size: 11px; font-weight: 700; color: #64748b; text-transform: uppercase; margin-bottom: 4px; }
.share-icon { width: 36px; height: 36px; border-radius: var(--radius-sm); color: #ffffff; display: flex; align-items: center; justify-content: center; font-size: 14px; transition: var(--transition); }
.share-icon.fb { background-color: #1877f2; }
.share-icon.tw { background-color: #1da1f2; }
.share-icon.in { background-color: #0a66c2; }
.share-icon.em { background-color: #2563eb; }
.share-icon:hover { transform: translateY(-2px); filter: brightness(1.1); }

.single-content-col { background-color: #ffffff; padding: 24px; border-radius: 4px; border: 1px solid #f1f5f9; }
.hero-image-wrap { width: 100%; margin-bottom: 24px; border-radius: 4px; overflow: hidden; box-shadow: var(--shadow-sm); }
.single-hero-img { width: 100%; height: auto; max-height: 420px; object-fit: cover; }
.article-body-text { font-size: 14.5px; line-height: 1.7; color: #334155; }
.article-body-text p { margin-bottom: 18px; }
.article-body-text h2, .article-body-text h3 { font-family: var(--font-main); font-size: 19px; font-weight: 800; color: #0f172a; margin: 28px 0 14px 0; }

.in-content-ad { margin: 28px 0; display: flex; justify-content: center; }
.inline-diagram-card { margin: 24px 0; border: 1px solid var(--border-color); border-radius: var(--radius-sm); overflow: hidden; background-color: #0b132b; box-shadow: var(--shadow-md); }
.diagram-header { background-color: #1c2541; color: #ffffff; padding: 8px 16px; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.diagram-body { padding: 20px; text-align: center; }
.diagram-highlight-box { border: 2px solid #ef4444; background: rgba(239, 68, 68, 0.1); color: #ffffff; padding: 12px; border-radius: 4px; display: inline-block; font-family: monospace; font-size: 14px; font-weight: 700; }

.cta-callout-banner { background: linear-gradient(135deg, #0052cc 0%, #1d4ed8 100%); color: #ffffff; padding: 20px 24px; border-radius: 4px; margin: 30px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.cta-callout-title { font-family: var(--font-heading); font-size: 18px; font-weight: 700; }
.btn-cta-learn { background-color: #ffffff; color: #0052cc; border: none; padding: 10px 20px; border-radius: var(--radius-sm); font-weight: 700; font-size: 13px; cursor: pointer; transition: var(--transition); }
.btn-cta-learn:hover { background-color: #f8fafc; transform: translateX(2px); }

.bottom-share-bar { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border-color); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bottom-share-bar .share-label { font-weight: 700; color: #0f172a; }
.btn-social-share { border: none; color: #ffffff; padding: 8px 16px; border-radius: var(--radius-sm); font-size: 12.5px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: var(--transition); }
.btn-social-share.fb { background-color: #1877f2; }
.btn-social-share.tw { background-color: #1da1f2; }
.btn-social-share.in { background-color: #0a66c2; }
.btn-social-share.em { background-color: #2563eb; }
.btn-social-share:hover { filter: brightness(1.1); transform: translateY(-1px); }

.latest-news-section { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--border-color); }
.latest-news-header { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.latest-news-header h2 { font-family: var(--font-heading); font-size: 15px; font-weight: 800; color: #0f172a; text-transform: uppercase; }
.latest-news-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.news-card { background-color: #ffffff; border: 1px solid var(--border-color); border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; transition: var(--transition); }
.news-card:hover { border-color: var(--primary-blue); transform: translateY(-2px); }
.news-thumb { height: 80px; background-size: cover; background-position: center; position: relative; }
.news-content { padding: 10px; }
.news-title { font-size: 12px; font-weight: 700; color: #0f172a; line-height: 1.3; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-date { font-size: 11px; color: var(--text-muted); }

.expert-insights-section { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border-color); }

/* ==========================================================================
   6. DEDICATED LOGIN VIEW
   ========================================================================== */
.login-page-section { background: linear-gradient(180deg, #edf4ff 0%, #f8fafc 100%); padding: 60px 0 50px 0; position: relative; min-height: 70vh; }
.login-card { max-width: 480px; margin: 0 auto 40px auto; background-color: #ffffff; padding: 44px 40px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 50, 150, 0.08); text-align: center; }
.login-card-title { font-family: var(--font-heading); font-size: 26px; font-weight: 800; color: #0f172a; margin-bottom: 8px; }
.login-card-subtitle { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 30px; }
.form-group-custom { text-align: left; margin-bottom: 20px; }
.form-group-custom label { display: block; font-weight: 700; font-size: 13px; color: #1e293b; margin-bottom: 8px; }
.input-icon-wrap { position: relative; display: flex; align-items: center; }
.input-left-icon { position: absolute; left: 14px; color: #94a3b8; font-size: 14px; pointer-events: none; }
.input-icon-wrap input { width: 100%; padding: 12px 42px 12px 42px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 13.5px; color: #0f172a; outline: none; }
.input-icon-wrap input:focus { border-color: var(--primary-blue); box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.1); }
.btn-toggle-eye { position: absolute; right: 14px; background: none; border: none; color: #94a3b8; cursor: pointer; font-size: 14px; }
.login-options-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin: 18px 0 24px 0; color: #475569; }
.checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.forgot-link { color: #0052cc; font-weight: 600; }
.btn-login-page-submit { width: 100%; background-color: #003fc0; color: #ffffff; border: none; padding: 14px; border-radius: 6px; font-weight: 800; font-size: 14px; letter-spacing: 0.5px; cursor: pointer; }
.btn-login-page-submit:hover { background-color: #003199; transform: translateY(-1px); }
.auth-or-divider { text-align: center; margin: 24px 0; position: relative; }
.auth-or-divider::before { content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 1px; background-color: #e2e8f0; }
.auth-or-divider span { position: relative; z-index: 2; background-color: #ffffff; padding: 0 14px; font-size: 12px; color: #94a3b8; }
.signup-prompt { font-size: 13.5px; color: #475569; }
.signup-prompt a { color: #0052cc; font-weight: 700; }
.login-page-ad { display: flex; justify-content: center; margin-top: 10px; }

/* ==========================================================================
   7. SIDEBAR & FOOTER
   ========================================================================== */
.sidebar-col { display: flex; flex-direction: column; gap: 24px; }
.widget { background-color: #ffffff; border-radius: 4px; overflow: hidden; border: 1px solid #f1f5f9; }
.widget-header { background-color: var(--primary-blue); color: #ffffff; padding: 10px 16px; }
.widget-header h3 { font-family: var(--font-heading); font-size: 14px; font-weight: 700; text-transform: uppercase; }
.widget-body { padding: 16px; }

.popular-posts-list { display: flex; flex-direction: column; gap: 14px; }
.popular-item { display: flex; gap: 12px; align-items: center; }
.popular-thumb {
  width: 70px; height: 52px; border-radius: 3px; flex-shrink: 0; background-size: cover;
  background-position: center; display: flex; align-items: center; justify-content: center;
  color: #ffffff; font-weight: 800; font-size: 10px; text-align: center; padding: 4px; line-height: 1.1; cursor: pointer;
}
.popular-info { flex: 1; }
.popular-title { font-size: 13px; font-weight: 700; line-height: 1.3; color: #0f172a; margin-bottom: 4px; }
.popular-title a:hover { color: var(--primary-blue); }
.popular-date { font-size: 11.5px; color: var(--text-muted); }

.category-list { display: flex; flex-direction: column; }
.category-list li { border-bottom: 1px dashed var(--border-color); }
.category-list li:last-child { border-bottom: none; }
.category-list a { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 13px; font-weight: 500; color: #334155; }
.category-list a:hover { color: var(--primary-blue); }
.cat-count { background-color: #f1f5f9; border: 1px solid #e2e8f0; color: #475569; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 3px; }

.newsletter-desc { font-size: 13px; color: #475569; margin-bottom: 14px; }
.newsletter-form .input-group { margin-bottom: 10px; }
.newsletter-form input { width: 100%; padding: 10px 12px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); font-size: 13px; outline: none; }
.btn-subscribe { width: 100%; background-color: var(--primary-blue); color: #ffffff; border: none; padding: 10px; border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; }

.social-grid { display: flex; flex-direction: column; gap: 8px; }
.social-btn { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: var(--radius-sm); font-weight: 600; font-size: 13px; border: 1px solid var(--border-color); background-color: #ffffff; color: #334155; transition: var(--transition); }
.social-btn i { width: 18px; font-size: 14px; }
.social-btn.facebook i { color: #1877f2; }
.social-btn.twitter i { color: #1da1f2; }
.social-btn.linkedin i { color: #0a66c2; }
.social-btn.instagram i { color: #e4405f; }
.social-btn.youtube i { color: #ff0000; }
.social-btn:hover { background-color: #f8fafc; transform: translateX(2px); }

.authors-section { background-color: #ffffff; padding: 30px 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); margin-bottom: 30px; }
.authors-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.authors-title-wrap { display: flex; align-items: center; gap: 10px; }
.title-bar { width: 4px; height: 18px; background-color: var(--primary-blue); display: inline-block; }
.authors-title-wrap h2 { font-family: var(--font-heading); font-size: 15px; font-weight: 800; color: #0f172a; text-transform: uppercase; }
.view-all-authors { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.view-all-authors:hover { color: var(--primary-blue); }

.authors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.author-card { background-color: var(--bg-light); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 16px; display: flex; align-items: center; gap: 14px; cursor: pointer; transition: var(--transition); }
.author-card:hover { border-color: var(--primary-blue); background-color: #ffffff; transform: translateY(-2px); }
.author-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.author-info { display: flex; flex-direction: column; }
.author-name { font-size: 14px; font-weight: 700; color: #0f172a; }
.author-role { font-size: 12px; color: var(--text-muted); margin: 2px 0 4px 0; }
.author-posts-count { font-size: 11px; font-weight: 600; color: var(--primary-blue); }

.bottom-ad-section { display: flex; justify-content: center; margin-bottom: 40px; }
.main-footer { background-color: var(--dark-navy); color: #94a3b8; padding-top: 50px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1.2fr 1.2fr 2fr; gap: 40px; padding-bottom: 40px; }
.footer-logo { font-family: var(--font-heading); font-size: 24px; font-weight: 800; margin-bottom: 12px; cursor: pointer; }
.footer-desc { font-size: 13px; line-height: 1.6; color: #94a3b8; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a { width: 32px; height: 32px; border-radius: 50%; background-color: rgba(255, 255, 255, 0.08); color: #ffffff; display: flex; align-items: center; justify-content: center; font-size: 13px; transition: var(--transition); }
.footer-socials a:hover { background-color: var(--primary-blue); transform: translateY(-2px); }
.footer-heading { font-family: var(--font-heading); font-size: 14px; font-weight: 700; color: #ffffff; margin-bottom: 16px; text-transform: uppercase; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: #94a3b8; font-size: 13px; }
.footer-links a:hover { color: #ffffff; padding-left: 4px; }
.footer-recent-posts { display: flex; flex-direction: column; gap: 14px; }
.footer-recent-posts li { border-bottom: 1px solid rgba(255, 255, 255, 0.06); padding-bottom: 8px; }
.footer-recent-posts a { color: #e2e8f0; font-size: 13px; font-weight: 600; }
.footer-recent-posts a:hover { color: #38bdf8; }
.footer-recent-posts .post-date { font-size: 11px; color: #64748b; }
.footer-bottom { background-color: #040814; border-top: 1px solid rgba(255, 255, 255, 0.05); padding: 16px 0; font-size: 12.5px; }
.footer-bottom-container { display: flex; justify-content: space-between; align-items: center; }

/* MODALS & TOASTS */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background-color: rgba(6, 17, 39, 0.75); backdrop-filter: blur(4px);
  z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-box {
  background-color: #ffffff; border-radius: var(--radius-md); max-width: 800px; width: 100%;
  max-height: 90vh; overflow-y: auto; position: relative; padding: 30px;
  transform: translateY(20px); transition: transform 0.25s ease;
}
.modal-overlay.active .modal-box { transform: translateY(0); }
.modal-close { position: absolute; top: 16px; right: 20px; background: none; border: none; font-size: 28px; color: #64748b; cursor: pointer; }

.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background-color: #0f172a; color: #ffffff; padding: 12px 20px; border-radius: var(--radius-md);
  font-size: 13.5px; font-weight: 500; display: flex; align-items: center; gap: 10px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2); border-left: 4px solid var(--primary-blue);
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   8. SEOGUESTSPOT AI CRM STYLES (MATCHING INPUT_FILE_4.PNG)
   ========================================================================== */
#crmView { background-color: #f8fafc; min-height: 100vh; font-family: var(--font-main); }
.crm-layout { display: flex; min-height: 100vh; }
.crm-sidebar { width: 250px; background-color: #061127; color: #94a3b8; flex-shrink: 0; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; border-right: 1px solid rgba(255, 255, 255, 0.08); }
.crm-brand-header { padding: 20px 18px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); cursor: pointer; }
.crm-menu-icon { font-size: 16px; color: #94a3b8; }
.crm-brand-title { font-family: var(--font-heading); font-size: 18px; font-weight: 800; letter-spacing: -0.3px; }
.crm-nav { padding: 12px 0; flex: 1; }
.crm-nav-group-title { font-size: 10.5px; font-weight: 700; color: #64748b; letter-spacing: 0.6px; padding: 14px 18px 6px 18px; text-transform: uppercase; }
.crm-nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 18px; font-size: 13px; font-weight: 500; color: #94a3b8; transition: var(--transition); }
.crm-nav-item i { width: 18px; font-size: 14px; }
.crm-nav-item:hover { color: #ffffff; background-color: rgba(255, 255, 255, 0.04); }
.crm-nav-item.active { background-color: #0052cc; color: #ffffff; font-weight: 600; }
.crm-badge-count { margin-left: auto; background-color: #0d6efd; color: #ffffff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 10px; }
.crm-sidebar-upgrade-card { margin: 16px; padding: 16px; background: linear-gradient(135deg, #1e3a8a 0%, #0052cc 100%); border-radius: var(--radius-md); color: #ffffff; }
.upgrade-crown { font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.upgrade-crown i { color: #f59e0b; margin-right: 6px; }
.crm-sidebar-upgrade-card p { font-size: 11.5px; line-height: 1.4; color: #cbd5e1; margin-bottom: 12px; }
.btn-upgrade-now { width: 100%; background-color: #0d6efd; color: #ffffff; border: none; padding: 8px; border-radius: 4px; font-weight: 700; font-size: 12px; cursor: pointer; }
.btn-upgrade-now:hover { background-color: #0b5ed7; }
.crm-sidebar-footer { padding: 12px 18px; font-size: 11px; color: #475569; border-top: 1px solid rgba(255, 255, 255, 0.05); }

.crm-main-workspace { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.crm-top-header { background-color: #ffffff; border-bottom: 1px solid var(--border-color); height: 64px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 90; }
.crm-search-box { position: relative; width: 320px; display: flex; align-items: center; }
.crm-search-box .search-ic { position: absolute; left: 12px; color: #94a3b8; font-size: 14px; }
.crm-search-box input { width: 100%; padding: 8px 70px 8px 36px; border: 1px solid #e2e8f0; border-radius: 20px; background-color: #f8fafc; font-size: 13px; outline: none; }
.crm-search-box input:focus { border-color: #0052cc; background-color: #ffffff; }
.search-kbd { position: absolute; right: 12px; font-size: 10px; font-weight: 600; color: #64748b; background: #e2e8f0; padding: 2px 6px; border-radius: 4px; }
.crm-header-right { display: flex; align-items: center; gap: 16px; }
.btn-view-public-site { background-color: #ffffff; border: 1px solid #0052cc; color: #0052cc; padding: 7px 14px; border-radius: var(--radius-sm); font-weight: 600; font-size: 12.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: var(--transition); }
.btn-view-public-site:hover { background-color: #0052cc; color: #ffffff; }

.crm-icon-badge, .crm-icon-btn { position: relative; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #475569; font-size: 16px; cursor: pointer; transition: var(--transition); }
.crm-icon-badge:hover, .crm-icon-btn:hover { background-color: #f1f5f9; color: #0052cc; }
.num-badge { position: absolute; top: 2px; right: 2px; background-color: #ef4444; color: #ffffff; font-size: 10px; font-weight: 700; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.crm-user-profile { display: flex; align-items: center; gap: 10px; cursor: pointer; padding-left: 8px; }
.crm-user-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.crm-user-info { display: flex; flex-direction: column; }
.crm-user-info .name { font-size: 13.5px; font-weight: 700; color: #0f172a; line-height: 1.1; }
.crm-user-info .role { font-size: 11px; color: #64748b; }

.crm-sub-page { display: none; padding: 24px; }
.crm-sub-page.active { display: block; animation: fadeIn 0.25s ease; }
.crm-welcome-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
.crm-welcome-title { font-family: var(--font-heading); font-size: 24px; font-weight: 800; color: #0f172a; }
.crm-welcome-sub { font-size: 13px; color: var(--text-muted); }
.crm-date-filter-wrap { display: inline-flex; align-items: center; gap: 8px; background-color: #ffffff; border: 1px solid var(--border-color); padding: 8px 14px; border-radius: var(--radius-sm); font-size: 13px; color: #475569; font-weight: 500; }
.crm-date-filter-wrap select { border: none; background: none; outline: none; font-weight: 600; color: #0f172a; cursor: pointer; }

.crm-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 24px; }
.crm-stat-card { background-color: #ffffff; border-radius: 8px; border: 1px solid #f1f5f9; padding: 20px; box-shadow: var(--shadow-sm); transition: var(--transition); }
.crm-stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.stat-label { font-size: 13px; font-weight: 600; color: #64748b; }
.stat-icon-bg { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.stat-icon-bg.blue { background-color: #e0e7ff; color: #0052cc; }
.stat-icon-bg.green { background-color: #dcfce7; color: #16a34a; }
.stat-icon-bg.purple { background-color: #f3e8ff; color: #9333ea; }
.stat-icon-bg.blue-chart { background-color: #e0f2fe; color: #0284c7; }
.stat-value { font-family: var(--font-heading); font-size: 28px; font-weight: 800; color: #0f172a; line-height: 1; margin-bottom: 8px; }
.stat-growth { font-size: 12px; font-weight: 700; }
.stat-growth.green { color: #16a34a; }
.stat-growth span { font-weight: 400; color: #94a3b8; margin-left: 4px; }

.crm-middle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.crm-panel { background-color: #ffffff; border-radius: 8px; border: 1px solid #f1f5f9; box-shadow: var(--shadow-sm); overflow: hidden; }
.panel-header { padding: 16px 20px; border-bottom: 1px solid #f1f5f9; display: flex; justify-content: space-between; align-items: center; }
.panel-header h3 { font-family: var(--font-heading); font-size: 15px; font-weight: 700; color: #0f172a; }
.panel-link { font-size: 12.5px; font-weight: 600; color: #0052cc; }
.panel-link:hover { text-decoration: underline; }
.panel-body { padding: 20px; }
.panel-body.pad-none { padding: 0; }

.crm-agent-status-list { display: flex; flex-direction: column; gap: 12px; }
.agent-status-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #f8fafc; }
.agent-status-item:last-child { border-bottom: none; }
.agent-name-wrap { display: flex; align-items: center; gap: 12px; }
.agent-icon-square { width: 32px; height: 32px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.agent-icon-square.blue { background-color: #e0e7ff; color: #0052cc; }
.agent-icon-square.orange { background-color: #ffedd5; color: #ea580c; }
.agent-icon-square.gray { background-color: #f1f5f9; color: #64748b; }
.agent-name { display: block; font-size: 13px; font-weight: 700; color: #0f172a; }
.agent-sub { font-size: 11px; color: #94a3b8; }
.agent-state-badge { font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 12px; }
.agent-state-badge.running { background-color: #dcfce7; color: #15803d; }
.agent-state-badge.processing { background-color: #fef9c3; color: #a16207; }
.agent-state-badge.idle { background-color: #f1f5f9; color: #64748b; }

.crm-pipeline-stages-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 20px; text-align: center; }
.stage-metric { background-color: #f8fafc; padding: 10px 4px; border-radius: 6px; }
.stage-name { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; margin-bottom: 2px; }
.stage-name.blue { color: #0052cc; }
.stage-name.purple { color: #8b5cf6; }
.stage-name.orange { color: #f97316; }
.stage-name.yellow { color: #eab308; }
.stage-name.cyan { color: #06b6d4; }
.stage-name.green { color: #22c55e; }
.stage-num { font-family: var(--font-heading); font-size: 18px; font-weight: 800; color: #0f172a; }

.pipeline-chart-wrap { position: relative; width: 100%; }
.pipeline-flow-chart { width: 100%; height: 160px; }
.chart-dates-row { display: flex; justify-content: space-between; font-size: 11px; color: #94a3b8; margin-top: 6px; }

.crm-bottom-grid { display: grid; grid-template-columns: 1fr 360px; gap: 24px; }
.table-panel { width: 100%; }
.crm-table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; }
.crm-table th { background-color: #f8fafc; color: #64748b; font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.5px; padding: 12px 16px; border-bottom: 1px solid #e2e8f0; }
.crm-table td { padding: 14px 16px; border-bottom: 1px solid #f1f5f9; color: #334155; }
.crm-table tr:hover td { background-color: #f8fafc; }

.priority-badge { font-size: 11px; font-weight: 800; width: 22px; height: 22px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; }
.priority-badge.p-a { background-color: #fee2e2; color: #ef4444; }
.priority-badge.p-b { background-color: #ffedd5; color: #f97316; }
.priority-badge.p-c { background-color: #dcfce7; color: #16a34a; }

.table-cat-tag { background-color: #e0e7ff; color: #0052cc; font-weight: 600; font-size: 11px; padding: 2px 8px; border-radius: 4px; }
.table-status-pill { font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 12px; }
.table-status-pill.researching { background-color: #e0e7ff; color: #0052cc; }
.table-status-pill.writing { background-color: #ffedd5; color: #ea580c; }
.table-status-pill.factcheck { background-color: #fef9c3; color: #ca8a04; }

.crm-side-widgets { display: flex; flex-direction: column; gap: 24px; }
.crm-trending-list, .crm-top-articles-list { display: flex; flex-direction: column; gap: 12px; }
.crm-trend-item { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; border-bottom: 1px dashed #e2e8f0; }
.crm-trend-item:last-child { border-bottom: none; padding-bottom: 0; }
.trend-item-left { display: flex; align-items: center; gap: 12px; }
.trend-rank { width: 24px; height: 24px; background-color: #e0e7ff; color: #0052cc; font-weight: 800; font-size: 12px; border-radius: 4px; display: flex; align-items: center; justify-content: center; }
.trend-title { font-size: 12.5px; font-weight: 700; color: #0f172a; line-height: 1.3; }
.trend-cat { font-size: 11px; color: #64748b; }
.trend-score { font-weight: 800; font-size: 13px; color: #0f172a; display: flex; align-items: center; gap: 4px; }
.trend-score i { font-size: 10px; color: #16a34a; }

.crm-quick-actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-crm-action { background-color: #ffffff; border: 1px solid var(--border-color); color: #334155; padding: 10px 12px; border-radius: 6px; font-weight: 600; font-size: 12px; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: var(--transition); }
.btn-crm-action i { color: #0052cc; }
.btn-crm-action:hover { background-color: #f8fafc; border-color: #0052cc; color: #0052cc; transform: translateY(-1px); }

.crm-agents-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.crm-agent-card { background-color: #ffffff; border: 1px solid #f1f5f9; border-radius: 8px; padding: 20px; box-shadow: var(--shadow-sm); transition: var(--transition); }
.crm-agent-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.agent-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.agent-card-title { font-family: var(--font-heading); font-size: 15px; font-weight: 800; color: #0f172a; }
.agent-card-desc { font-size: 12.5px; color: #64748b; margin-bottom: 16px; line-height: 1.4; }
.agent-card-stats { display: flex; justify-content: space-between; font-size: 12px; color: #475569; border-top: 1px solid #f1f5f9; padding-top: 12px; margin-bottom: 14px; }
.btn-run-agent { width: 100%; background-color: #e0e7ff; color: #0052cc; border: none; padding: 8px; border-radius: 4px; font-weight: 700; font-size: 12px; cursor: pointer; }
.btn-run-agent:hover { background-color: #0052cc; color: #ffffff; }

.crm-kanban-board { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 20px; }
.kanban-col { width: 280px; flex-shrink: 0; background-color: #f1f5f9; border-radius: 8px; padding: 14px; }
.kanban-col-header { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 13px; color: #0f172a; margin-bottom: 12px; }
.kanban-cards-list { display: flex; flex-direction: column; gap: 12px; }
.kanban-card { background-color: #ffffff; border-radius: 6px; padding: 14px; box-shadow: var(--shadow-sm); cursor: grab; transition: var(--transition); }
.kanban-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.kanban-card-title { font-size: 13px; font-weight: 700; color: #0f172a; margin-bottom: 8px; line-height: 1.3; }
.kanban-card-meta { display: flex; justify-content: space-between; font-size: 11px; color: #64748b; }

@media (max-width: 1200px) {
  .crm-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .crm-middle-grid { grid-template-columns: 1fr; }
  .crm-bottom-grid { grid-template-columns: 1fr; }
  .crm-agents-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .crm-sidebar { display: none; }
  .crm-stats-grid { grid-template-columns: 1fr; }
  .crm-agents-grid { grid-template-columns: 1fr; }
  .single-layout-grid { grid-template-columns: 1fr; }
  .latest-news-grid { grid-template-columns: repeat(2, 1fr); }
  .single-title { font-size: 22px; }
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: #fff; }
  .nav-menu.show { display: flex; }
  .mobile-toggle-btn { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .login-card { padding: 30px 20px; }
}

/* GLOBAL PERMANENT HIDE RULE FOR UNWANTED BANNERS & DIAGRAM CARDS */
.serp-eeat-badge,
.geo-ai-summary-box,
.inline-diagram-card {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}
