/* ==========================================
   NMARKETING - Premium News Portal CSS
   Language: Hebrew (RTL)
   ========================================== */

/* ===== 1. RESET & VARIABLES ===== */
:root {
  --primary: #6b21a8;      /* Royal Purple */
  --primary-hover: #581c87;
  --primary-light: #f3e8ff;
  --primary-glow: rgba(107, 33, 168, 0.15);
  
  --secondary: #a855f7;    /* Bright Purple */
  --accent: #ec4899;       /* Pink/Magenta Accent */
  
  --dark-bg: #0f0a19;      /* Ultra Dark Purple-Black for headers/dark sections */
  --dark-text: #1e1b4b;    /* Deep Indigo for readable text */
  --light-bg: #f8fafc;     /* Clean slate white */
  --card-bg: #ffffff;
  
  --text-main: #334155;    /* Slate-700 for body text */
  --text-muted: #64748b;   /* Slate-500 for secondary text */
  --border-color: #e2e8f0; /* Slate-200 */
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(107, 33, 168, 0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(107, 33, 168, 0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-hover: 0 20px 25px -5px rgba(107, 33, 168, 0.15), 0 10px 10px -5px rgba(0,0,0,0.04);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-title: 'Heebo', 'Assistant', sans-serif;
  --font-body: 'Assistant', 'Heebo', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--light-bg);
  color: var(--text-main);
  direction: rtl;
  text-align: right;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Helper Utilities */
.hidden {
  display: none !important;
}

.alt-bg {
  background-color: #f1f5f9;
}

/* ===== 2. BREAKING NEWS TICKER ===== */
.breaking-bar {
  background-color: var(--dark-bg);
  color: #ffffff;
  display: flex;
  align-items: center;
  height: 44px;
  overflow: hidden;
  font-family: var(--font-title);
  font-size: 0.9rem;
  border-bottom: 2px solid var(--primary);
  z-index: 1000;
  position: relative;
}

.breaking-label {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 20px;
  font-weight: 700;
  white-space: nowrap;
  position: relative;
  box-shadow: 5px 0 15px rgba(0,0,0,0.3);
  z-index: 10;
}

.ticker-wrapper {
  flex-grow: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}

.ticker-content {
  display: flex;
  white-space: nowrap;
  padding-left: 100%;
  animation: ticker-animation 35s linear infinite;
}

.ticker-content span {
  padding: 0 24px;
  font-weight: 500;
  transition: color 0.2s ease;
  cursor: pointer;
}

.ticker-content span:hover {
  color: var(--secondary);
}

@keyframes ticker-animation {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(100%, 0, 0); }
}

/* ===== 3. HEADER & NAVIGATION ===== */
.site-header {
  background-color: #ffffff;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 999;
  transition: var(--transition);
}

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

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  transition: var(--transition);
}

.site-header.shrink .header-inner {
  height: 64px;
}

/* Custom Styled Text Logo if image fails */
.logo-wrap {
  display: flex;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 52px;
  width: auto;
  transition: var(--transition);
}

.site-header.shrink .logo-img {
  height: 42px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-family: var(--font-title);
}

.logo-n {
  font-size: 2.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-marketing {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dark-text);
}

.logo-text small {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Header Search */
.header-search {
  display: flex;
  align-items: center;
  background-color: #f1f5f9;
  border: 1px solid var(--border-color);
  border-radius: 30px;
  padding: 6px 16px;
  width: 280px;
  transition: var(--transition);
}

.header-search:focus-within {
  background-color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  width: 320px;
}

.header-search input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--dark-text);
}

.header-search button {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.header-search button:hover {
  color: var(--primary);
}

/* Main Navigation */
.main-nav {
  background-color: var(--dark-bg);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.nav-list {
  display: flex;
  list-style: none;
  font-family: var(--font-title);
  font-weight: 600;
  gap: 8px;
}

.nav-item > a {
  display: block;
  padding: 14px 20px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  border-bottom: 3px solid transparent;
}

.nav-item:hover > a {
  color: #ffffff;
  background-color: rgba(255,255,255,0.05);
}

.nav-item.active > a {
  color: #ffffff;
  border-bottom-color: var(--secondary);
  background-color: rgba(255,255,255,0.08);
}

.nav-item.highlight > a {
  color: var(--accent);
}

/* Dropdown System */
.has-dropdown {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #ffffff;
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  border-top: 3px solid var(--primary);
  z-index: 100;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 12px 20px;
  color: var(--dark-text);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-color);
}

.dropdown li:last-child a {
  border-bottom: none;
}

.dropdown li a:hover {
  background-color: var(--primary-light);
  color: var(--primary);
  padding-right: 24px;
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--dark-text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== 4. HERO SECTION ===== */
.hero-section {
  padding: 40px 0;
  background-color: #ffffff;
}

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

/* Main Featured Article */
.hero-main {
  display: flex;
  flex-direction: column;
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.hero-main:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.hero-main-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: var(--transition);
}

.hero-main:hover .img-placeholder {
  transform: scale(1.03);
}

.placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.placeholder-icon {
  font-size: 4rem;
  animation: float 4s ease-in-out infinite;
}

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

.category-badge {
  background-color: var(--primary);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.8rem;
  box-shadow: 0 4px 10px rgba(107,33,168,0.3);
}

.featured-tag {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: var(--accent);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(236,72,153,0.3);
}

.hero-main-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-category {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
}

.article-category.digital { color: var(--primary); }
.article-category.social { color: #ec4899; }
.article-category.seo { color: #10b981; }
.article-category.ppc { color: #3b82f6; }
.article-category.strategy { color: #f59e0b; }
.article-category.branding { color: #8b5cf6; }
.article-category.campaigns { color: #f43f5e; }
.article-category.traditional { color: #06b6d4; }

.hero-main-title {
  font-family: var(--font-title);
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--dark-text);
  line-height: 1.3;
}

.hero-main-excerpt {
  color: var(--text-main);
  font-size: 1.05rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  margin-top: 8px;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Side Articles Grid */
.hero-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.side-article {
  display: flex;
  gap: 16px;
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.side-article:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.side-img {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.small-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.side-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
}

.side-content h3 {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark-text);
  line-height: 1.4;
  /* Line clamp for 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta.small {
  font-size: 0.75rem;
  gap: 12px;
  padding: 0;
  margin: 0;
  border: none;
}

/* ===== 5. STATS BAR ===== */
.stats-bar {
  background: linear-gradient(135deg, var(--dark-bg), #231245);
  color: #ffffff;
  padding: 40px 0;
  border-top: 4px solid var(--primary);
  border-bottom: 4px solid var(--accent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  gap: 20px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-number {
  font-family: var(--font-title);
  font-size: 2.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.5px;
}

/* ===== 6. CATEGORIES & CARDS ===== */
.category-section {
  padding: 64px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 16px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-icon {
  font-size: 1.8rem;
}

.section-title {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--dark-text);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -18px;
  right: 0;
  width: 60px;
  height: 4px;
  background-color: var(--primary);
  border-radius: 2px;
}

.see-all-btn {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 30px;
  background-color: var(--primary-light);
}

.see-all-btn:hover {
  background-color: var(--primary);
  color: #ffffff;
}

/* Sub tabs inside categories */
.sub-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}

.sub-tab {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 8px 20px;
  border-radius: 30px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.sub-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.sub-tab.active {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 10px var(--primary-glow);
}

/* Articles Grid Layouts */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.articles-grid.three-col {
  grid-template-columns: repeat(3, 1fr);
}

/* Individual Article Card */
.article-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}

.card-img .img-placeholder {
  font-size: 3rem;
}

.article-card:hover .card-img .img-placeholder {
  transform: scale(1.05);
}

.card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.card-content h3 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark-text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-content p {
  color: var(--text-main);
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== 7. DOUBLE COLUMN LAYOUT (CAMPAIGNS & STRATEGY) ===== */
.double-section {
  padding: 64px 0;
  background-color: #ffffff;
}

.double-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.double-col {
  display: flex;
  flex-direction: column;
}

.list-article {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
}

.list-article:last-child {
  border-bottom: none;
}

.list-article.featured-list {
  flex-direction: column;
  align-items: flex-start;
}

.list-article.featured-list .list-img {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.list-article.featured-list .list-img .img-placeholder {
  font-size: 4.5rem;
}

.list-article.featured-list .list-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.list-article.featured-list h3 {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark-text);
  line-height: 1.4;
}

.list-article.featured-list p {
  font-size: 0.95rem;
  color: var(--text-main);
}

/* Small List Articles */
.list-img-small {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.tiny {
  width: 100%;
  height: 100%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.list-content-small {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.list-content-small h4 {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark-text);
  transition: color 0.2s ease;
}

.list-content-small h4:hover {
  color: var(--primary);
}

.date-small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===== 8. NEWSLETTER BANNER ===== */
.newsletter-section {
  padding: 40px 0;
}

.newsletter-card {
  background: linear-gradient(135deg, #1e0533, #6b21a8);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.newsletter-decoration {
  position: absolute;
  top: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0.2;
  border-radius: 50%;
  pointer-events: none;
}

.newsletter-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.newsletter-badge {
  background-color: rgba(255,255,255,0.15);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 30px;
  width: fit-content;
  font-weight: 700;
  font-size: 0.8rem;
}

.newsletter-content h2 {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 900;
}

.newsletter-content p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  width: 100%;
}

.newsletter-form input {
  background-color: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 30px;
  padding: 14px 24px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 1rem;
  flex-grow: 1;
  outline: none;
  transition: var(--transition);
}

.newsletter-form input::placeholder {
  color: rgba(255,255,255,0.5);
}

.newsletter-form input:focus {
  background-color: #ffffff;
  color: var(--dark-text);
  border-color: #ffffff;
}

.newsletter-form button {
  background-color: var(--accent);
  color: #ffffff;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 30px;
  padding: 0 32px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(236,72,153,0.4);
}

.newsletter-form button:hover {
  background-color: #db2777;
  transform: translateY(-2px);
}

.newsletter-content small {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
}

.newsletter-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background-color: rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 24px;
  position: relative;
  z-index: 1;
}

.newsletter-icon {
  font-size: 4rem;
}

.newsletter-stats {
  text-align: center;
  font-family: var(--font-title);
}

.newsletter-stats div:first-child {
  font-weight: 900;
  font-size: 1.4rem;
}

.newsletter-stats div:last-child {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* ===== 9. BRANDING ANALYSIS SECTION ===== */
.branding-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

.large-branding {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.large-branding:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.large-branding .branding-img {
  position: relative;
  height: 100%;
}

.branding-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 4rem;
  color: #ffffff;
}

.branding-placeholder p {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 10px;
}

.large-branding .branding-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.large-branding h3 {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--dark-text);
  line-height: 1.35;
}

.large-branding p {
  color: var(--text-main);
  font-size: 0.95rem;
}

.branding-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.branding-small-card {
  display: flex;
  gap: 16px;
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--border-color);
  align-items: center;
  transition: var(--transition);
}

.branding-small-card:hover {
  border-color: var(--primary);
  transform: translateX(-4px);
  box-shadow: var(--shadow-sm);
}

.branding-small-card h4 {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark-text);
  line-height: 1.4;
  margin-top: 4px;
}

.small-badge {
  font-size: 0.75rem;
  margin-bottom: 2px;
}

/* ===== 10. LATEST NEWS & SIDEBAR ===== */
.news-layout {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 32px;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-item {
  display: flex;
  gap: 20px;
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--border-color);
  align-items: center;
  transition: var(--transition);
}

.news-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.news-img {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.news-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}

.news-tag {
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  width: fit-content;
}

.news-tag.google { background-color: #fee2e2; color: #dc2626; }
.news-tag.meta { background-color: #dbeafe; color: #2563eb; }
.news-tag.tiktok { background-color: #e2e8f0; color: #0f172a; }
.news-tag.openai { background-color: #d1fae5; color: #059669; }
.news-tag.x { background-color: #f3e8ff; color: #7c3aed; }
.news-tag.industry { background-color: #fef3c7; color: #d97706; }

.news-content h4 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark-text);
  line-height: 1.4;
}

.news-meta {
  display: flex;
  gap: 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Sidebar Styling */
.trending-sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.trending-box {
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.trending-box h3 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--dark-text);
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
  position: relative;
}

.trending-box h3::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary);
}

.trending-list {
  list-style: none;
  counter-reset: trend-counter;
}

.trending-list li {
  position: relative;
  padding: 12px 0 12px 10px;
  border-bottom: 1px dashed var(--border-color);
  font-weight: 700;
  font-size: 0.95rem;
  padding-right: 40px;
}

.trending-list li:last-child {
  border-bottom: none;
}

.trending-list li::before {
  counter-increment: trend-counter;
  content: counter(trend-counter);
  position: absolute;
  right: 0;
  top: 10px;
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--primary-light);
  line-height: 1;
  transition: var(--transition);
}

.trending-list li:hover::before {
  color: var(--accent);
}

.trending-list a:hover {
  color: var(--primary);
}

/* AD Box Widget */
.ad-box {
  background-color: #f1f5f9;
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  border: 1px solid var(--border-color);
}

.ad-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 12px;
}

.ad-placeholder {
  background: linear-gradient(135deg, #1e0533, #6b21a8);
  border-radius: var(--radius-sm);
  padding: 24px 16px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.ad-placeholder div {
  font-size: 3rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.ad-placeholder p {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
}

.ad-placeholder button {
  background-color: var(--accent);
  color: #ffffff;
  border: none;
  font-family: var(--font-title);
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
}

.ad-placeholder button:hover {
  background-color: #db2777;
  transform: translateY(-2px);
}

/* Category Tags Cloud */
.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-tag {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 30px;
  border: 1px solid var(--border-color);
  background-color: #f8fafc;
}

.cat-tag:hover {
  color: #ffffff !important;
  background-color: var(--primary);
  border-color: var(--primary);
}

/* ===== 11. FOOTER ===== */
.site-footer {
  background-color: var(--dark-bg);
  color: #ffffff;
  padding: 64px 0 20px 0;
  margin-top: 64px;
  border-top: 4px solid var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 900;
}

.footer-logo .logo-n {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-logo .logo-marketing {
  color: #ffffff;
}

.footer-desc {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition);
}

.social-btn:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
}

.footer-links h4 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-links h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary);
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links ul a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

.footer-links ul a:hover {
  color: #ffffff;
  padding-right: 6px;
}

.footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-newsletter h4 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 800;
}

.footer-newsletter p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

#footer-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#footer-newsletter-form input {
  background-color: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 30px;
  padding: 12px 20px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

#footer-newsletter-form input:focus {
  background-color: #ffffff;
  color: var(--dark-text);
  border-color: #ffffff;
}

#footer-subscribe-btn {
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 30px;
  padding: 12px 20px;
  font-family: var(--font-title);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

#footer-subscribe-btn:hover {
  background-color: var(--primary-hover);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  color: rgba(255,255,255,0.4);
}

.footer-legal a:hover {
  color: #ffffff;
}

/* ===== 12. FLOATING & MODAL INTERFACES ===== */
/* Scroll to Top */
.scroll-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 998;
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(236,72,153,0.3);
}

/* Cookie Notice */
.cookie-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 1002;
  max-width: 450px;
  transform: translateY(150%);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-notice.show {
  transform: translateY(0);
}

.cookie-notice p {
  font-size: 0.9rem;
  color: var(--text-main);
}

.cookie-notice a {
  color: var(--primary);
  font-weight: 700;
}

.cookie-notice button {
  background-color: var(--dark-bg);
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 30px;
  cursor: pointer;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.85rem;
  transition: var(--transition);
  white-space: nowrap;
}

.cookie-notice button:hover {
  background-color: var(--primary);
}
/* ===== 13. SINGLE POST LAYOUT ===== */
.single-post {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
}

.post-title {
  font-family: var(--font-title);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.post-content {
  margin-top: 32px;
}

.post-content p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-main);
  margin-bottom: 24px;
}

.drop-cap::first-letter {
  float: right;
  font-size: 4.5rem;
  line-height: 0.8;
  padding-left: 12px;
  padding-top: 8px;
  color: var(--primary);
  font-family: var(--font-title);
  font-weight: 900;
}

.post-table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.post-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
}

.post-table th {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  padding: 16px 20px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
}

.post-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.95rem;
}

.post-table tr:last-child td {
  border-bottom: none;
}

.post-table tr:nth-child(even) {
  background-color: #f8fafc;
}

.post-table tr:hover td {
  background-color: var(--primary-light);
}

/* ===== 14. RESPONSIVE MEDIA QUERIES ===== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  
  .articles-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .double-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .branding-grid {
    grid-template-columns: 1fr;
  }
  
  .large-branding {
    grid-template-columns: 1fr;
  }
  
  .news-layout {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  
  .header-inner {
    height: 70px;
  }
  
  .logo-img {
    height: 40px;
  }
  
  .logo-text {
    display: none !important;
  }
  
  .header-search {
    display: none; /* hidden on small mobile */
  }
  
  .mobile-toggle {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }
  
  /* Mobile Menu Toggle System */
  .main-nav {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 80%;
    height: calc(100vh - 70px);
    background-color: var(--dark-bg);
    transition: var(--transition);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  }
  
  .main-nav.open {
    right: 0;
  }
  
  .nav-list {
    flex-direction: column;
    padding: 24px;
    gap: 0;
  }
  
  .nav-item > a {
    padding: 16px 20px;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  
  .nav-item.active > a {
    border-bottom-color: var(--secondary);
    background: none;
  }
  
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background-color: rgba(255,255,255,0.02);
    box-shadow: none;
    border-top: none;
    padding-right: 20px;
    display: none;
  }
  
  .has-dropdown.open .dropdown {
    display: block;
  }
  
  .hero-main-title {
    font-size: 1.6rem;
  }
  
  .hero-side {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  
  .articles-grid {
    grid-template-columns: 1fr;
  }
  
  .newsletter-card {
    grid-template-columns: 1fr;
    padding: 32px 20px;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form button {
    padding: 14px 0;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .cookie-notice {
    left: 16px;
    right: 16px;
    flex-direction: column;
    text-align: center;
  }
  
  .single-post {
    padding: 30px 16px;
  }
  
  .post-title {
    font-size: 2.2rem;
  }
  
  .drop-cap::first-letter {
    font-size: 3.5rem;
    padding-left: 8px;
    padding-top: 4px;
  }
  
  /* Additional Touch Targets & Typography for Mobile */
  .section-title {
    font-size: 1.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .breaking-label {
    padding: 0 12px;
    font-size: 0.85rem;
  }
  
  .ticker-content span {
    padding: 12px;
    font-size: 0.85rem;
  }

  .sub-tab {
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .social-btn {
    width: 44px;
    height: 44px;
  }

  .see-all-btn {
    padding: 10px 20px;
    display: inline-block;
  }
  
  .article-card .card-content {
    padding: 16px;
  }
  
  .card-content h3 {
    font-size: 1.1rem;
  }
  
  .large-branding h3 {
    font-size: 1.3rem;
  }
  
  .news-content h4 {
    font-size: 1rem;
  }
  
  .cookie-notice button {
    padding: 12px 24px;
    min-height: 44px;
  }

  .sub-tabs {
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }
}
