@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* Global Variables & Colors */
:root {
  /* Light Theme Variables */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --accent-color: #3A86FF; /* Royal Vibrant Blue */
  --accent-hover: #2563eb;
  --accent-light: rgba(58, 134, 255, 0.1);
  --accent-gradient: linear-gradient(135deg, #3A86FF 0%, #1d4ed8 100%);
  --brand-orange: #ff5e14; /* Vibrant Orange */
  --brand-orange-hover: #e04d0b;
  --border-color: #e2e8f0;
  --card-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(226, 232, 240, 0.8);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --border-radius-lg: 16px;
  --success-color: #10b981;
  --error-color: #ef4444;
}

/* Dark Theme Variables */
.dark-theme {
  --bg-primary: #070913;
  --bg-secondary: #0d1222;
  --bg-tertiary: #171d33;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-color: #0099ff;
  --accent-hover: #60a5fa;
  --accent-light: rgba(0, 153, 255, 0.15);
  --accent-gradient: linear-gradient(135deg, #60a5fa 0%, #006ec4 100%);
  --border-color: #1e293b;
  --card-bg: rgba(13, 18, 34, 0.7);
  --glass-border: rgba(30, 41, 59, 0.6);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
}

/* CSS Resets & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-hover);
}

/* App Container */
#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex-grow: 1;
  padding-bottom: 3rem;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Premium Layout Components */

/* Header & Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-normal), border var(--transition-normal);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  font-size: 1.8rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
}

.logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.logo-dot {
  color: var(--accent-color);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover, .nav-link.router-link-active {
  color: var(--accent-color);
  background-color: var(--accent-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Dark Mode Toggle Button */
.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  background-color: var(--bg-tertiary);
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: rotate(15deg);
}

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.35);
  color: white;
}

.btn-secondary {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--border-color);
  transform: translateY(-2px);
}

.btn-danger {
  background-color: var(--error-color);
  color: white;
}

.btn-danger:hover {
  background-color: #dc2626;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
}

/* Glassmorphic Grid Cards */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-color);
}

.card-img-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: var(--bg-tertiary);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.card:hover .card-img {
  transform: scale(1.05);
}

.card-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--accent-gradient);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.card-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.card-title {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-fast);
}

.card:hover .card-title {
  color: var(--accent-color);
}

.card-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.author-avatar {
  width: 28px;
  height: 28px;
  background-color: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
}

.author-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.read-more-link {
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Featured Article Section */
.featured-section {
  margin: 2rem 0 3rem 0;
}

.featured-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
}

@media (max-width: 900px) {
  .featured-card {
    grid-template-columns: 1fr;
  }
}

.featured-card:hover {
  border-color: var(--accent-color);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.featured-img-wrapper {
  height: 100%;
  min-height: 350px;
  position: relative;
}

.featured-body {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 600px) {
  .featured-body {
    padding: 1.5rem;
  }
}

.featured-title {
  font-size: 2rem;
  margin: 1rem 0;
}

.featured-excerpt {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

/* Category Filter Bar */
.category-bar-wrapper {
  margin: 2rem 0;
  overflow-x: auto;
  scrollbar-width: none; /* Hide scrollbar Firefox */
}

.category-bar-wrapper::-webkit-scrollbar {
  display: none; /* Hide scrollbar Chrome/Safari */
}

.category-bar {
  display: flex;
  gap: 0.8rem;
  padding: 0.25rem;
}

.category-pill {
  padding: 0.6rem 1.2rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.category-pill:hover, .category-pill.active {
  background: var(--accent-gradient);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

/* Search Box */
.search-box-wrapper {
  position: relative;
  max-width: 400px;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border-radius: 30px;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* Detail Article View styles */
.article-detail-header {
  margin: 2rem auto;
  max-width: 800px;
  text-align: center;
}

.article-category {
  display: inline-block;
  background-color: var(--accent-light);
  color: var(--accent-color);
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 1rem;
  border-radius: 30px;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.article-detail-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

@media (max-width: 600px) {
  .article-detail-title {
    font-size: 1.8rem;
  }
}

.article-detail-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.article-cover-wrapper {
  width: 100%;
  max-height: 480px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 3rem;
  background-color: var(--bg-tertiary);
}

.article-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body-content {
  max-width: 750px;
  margin: 0 auto;
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.article-body-content p {
  margin-bottom: 1.5rem;
  white-space: pre-wrap; /* Preserve paragraph spacing */
}

/* Comment section details */
.comment-section-wrapper {
  max-width: 750px;
  margin: 4rem auto;
  border-top: 1px solid var(--border-color);
  padding-top: 3rem;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.comment-item {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.commenter-name {
  font-weight: 700;
  font-size: 1rem;
}

.comment-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.comment-body {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.comment-form-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 3rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: inherit;
  transition: all var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px var(--accent-light);
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

/* Authentication Page View Styles */
.auth-page-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-title {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Dashboard View Admin layouts */
.dashboard-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.sidebar {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.sidebar-link:hover, .sidebar-link.active {
  background-color: var(--accent-light);
  color: var(--accent-color);
}

.admin-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-title-desc {
  display: flex;
  flex-direction: column;
}

.admin-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Premium Admin Table */
.table-wrapper {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.admin-table th {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  font-weight: 700;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.admin-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  vertical-align: middle;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background-color: var(--accent-light);
  color: var(--text-primary);
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-published {
  background-color: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.badge-draft {
  background-color: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.table-img {
  width: 60px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  background-color: var(--bg-tertiary);
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Footer Section */
.footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  margin-top: auto;
  transition: background-color var(--transition-normal), border var(--transition-normal);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-copyright {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-link {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-link:hover {
  color: var(--accent-color);
}

/* Alert Notification Banner */
.alert-banner {
  padding: 0.75rem 1.25rem;
  border-radius: var(--border-radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.alert-success {
  background-color: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.alert-error {
  background-color: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Modal styling for popup editor */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  width: 100%;
  max-width: 600px;
  box-shadow: var(--shadow-lg);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
}

/* ==========================================
   PREMIUM LAYOUT EXTENSIONS (AS PER MOCKUPS)
   ========================================== */

/* Accent / Action Button Orange */
.btn-orange {
  background-color: var(--brand-orange) !important;
  color: white !important;
  box-shadow: 0 4px 10px rgba(255, 94, 20, 0.2);
  border: none;
  transition: all var(--transition-fast);
}
.btn-orange:hover {
  background-color: var(--brand-orange-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(255, 94, 20, 0.35);
}

/* Premium Layout Grid: Hero + Popular Sidebar */
.hero-premium-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2rem;
  margin: 2rem 0 4rem 0;
}

@media (max-width: 992px) {
  .hero-premium-layout {
    grid-template-columns: 1fr;
  }
}

/* Featured Article Box (Slate-Grey/Dark Modern theme inside Hero) */
.featured-grey-box {
  background-color: #4b525a;
  color: #ffffff;
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 520px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.dark-theme .featured-grey-box {
  background-color: #171d33;
}

.featured-grey-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.8) 100%);
  z-index: 1;
}

.featured-grey-box > * {
  position: relative;
  z-index: 2;
}

.featured-box-category {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffd43b;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.featured-box-title {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.featured-box-title a {
  color: #ffffff !important;
}

.featured-box-title a:hover {
  color: #ffd43b !important;
}

.featured-box-excerpt {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  max-width: 95%;
  line-height: 1.6;
}

.featured-mini-slides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.5rem;
}

@media (max-width: 600px) {
  .featured-mini-slides {
    grid-template-columns: 1fr;
  }
}

.mini-slide-item {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.mini-slide-img {
  width: 70px;
  height: 50px;
  border-radius: var(--border-radius-sm);
  object-fit: cover;
}

.mini-slide-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mini-slide-title a {
  color: #ffffff !important;
}
.mini-slide-title a:hover {
  color: #ffd43b !important;
}

/* "Popular this week" Sidebar list */
.popular-sidebar-panel {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  height: 100%;
}

.sidebar-section-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--brand-orange);
  padding-left: 0.75rem;
  font-family: 'Outfit', sans-serif;
  color: var(--text-primary);
}

.popular-stack {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.popular-stack-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--border-color);
}

.popular-stack-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.popular-item-img {
  width: 80px;
  height: 60px;
  border-radius: var(--border-radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background-color: var(--bg-tertiary);
}

.popular-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.popular-item-category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-color);
}

.popular-item-title {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.popular-item-title a {
  color: var(--text-primary);
}
.popular-item-title a:hover {
  color: var(--accent-color);
}

.popular-item-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Videos Section Style */
.videos-premium-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  margin: 3rem 0;
}

@media (max-width: 900px) {
  .videos-premium-layout {
    grid-template-columns: 1fr;
  }
}

.video-large-card {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  background-color: #2b303c;
  color: white;
}

.video-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 65px;
  height: 65px;
  background-color: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.6rem;
  box-shadow: 0 4px 15px rgba(0, 130, 230, 0.4);
  transition: all var(--transition-normal);
  cursor: pointer;
  z-index: 3;
}

.video-large-card:hover .video-play-overlay {
  transform: translate(-50%, -50%) scale(1.1);
  background-color: var(--brand-orange);
  box-shadow: 0 4px 15px rgba(255, 94, 20, 0.4);
}

.video-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  justify-content: space-between;
}

.video-stack-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: background-color var(--transition-fast);
}

.video-stack-item:hover {
  background-color: var(--bg-secondary);
}

.video-small-img-wrapper {
  position: relative;
  width: 120px;
  height: 80px;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background-color: var(--bg-tertiary);
}

.video-small-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  background-color: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.8rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.video-stack-item:hover .video-small-play-icon {
  background-color: var(--brand-orange);
}

/* Beautiful solid blue Newsletter Banner */
.newsletter-banner {
  background-color: var(--accent-color);
  color: #ffffff;
  border-radius: var(--border-radius-lg);
  padding: 3.5rem 3rem;
  margin: 4rem 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 3rem;
  box-shadow: 0 10px 30px rgba(0, 130, 230, 0.2);
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .newsletter-banner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2.5rem 1.5rem;
  }
}

.newsletter-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 350px;
  height: 350px;
  background-color: rgba(255,255,255,0.06);
  border-radius: 50%;
  pointer-events: none;
}

.newsletter-banner-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.newsletter-banner-text {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  line-height: 1.5;
}

.newsletter-form-premium {
  display: flex;
  gap: 0.75rem;
  background-color: #ffffff;
  padding: 0.5rem;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-md);
  width: 100%;
}

.newsletter-input-premium {
  flex-grow: 1;
  border: none;
  background: transparent;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: var(--text-primary);
  width: 100%;
}

.newsletter-input-premium:focus {
  outline: none;
}

/* Premium Multi-Column Corporate Footer */
.footer-premium {
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 5rem 0 3rem 0;
  margin-top: auto;
  color: var(--text-secondary);
}

.dark-theme .footer-premium {
  background-color: var(--bg-secondary);
}

.footer-cols-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (max-width: 900px) {
  .footer-cols-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 500px) {
  .footer-cols-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-col-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  font-family: 'Outfit', sans-serif;
  position: relative;
}

.footer-col-title::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--brand-orange);
}

.footer-col-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.footer-col-link:hover {
  color: var(--brand-orange);
  padding-left: 4px;
}

.footer-bottom-premium {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ========================================================
   FULL LARAVEL BLADE EXTENSIONS (PURE CSS - ZERO JS REQUIRED)
   ======================================================== */

/* Alerts & Notifications */
.alert-container {
  margin: 1.5rem 0;
}

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.alert-success {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-danger {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.alert-info {
  background-color: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-published {
  background-color: #d1fae5;
  color: #047857;
}

.badge-draft {
  background-color: #fef3c7;
  color: #b45309;
}

.badge-admin {
  background: linear-gradient(135deg, #ff5e14 0%, #e04d0b 100%);
  color: #ffffff;
}

.badge-author {
  background: var(--accent-gradient);
  color: #ffffff;
}

.badge-category {
  background-color: var(--accent-light);
  color: var(--accent-color);
  border: 1px solid rgba(0, 130, 230, 0.2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  border-radius: var(--border-radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  line-height: 1.2;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 130, 230, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0082e6 0%, #005bb5 100%);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--border-color);
  color: var(--text-primary);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-secondary);
  border-color: var(--border-color);
}

.btn-outline:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

.btn-danger {
  background-color: #ef4444;
  color: #ffffff;
}

.btn-danger:hover {
  background-color: #dc2626;
}

.btn-success {
  background-color: #10b981;
  color: #ffffff;
}

.btn-success:hover {
  background-color: #059669;
}

.btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
  border-radius: 6px;
}

.btn-block {
  width: 100%;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.form-control, .form-select, textarea.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text-primary);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus, .form-select:focus, textarea.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(0, 130, 230, 0.15);
}

.form-error {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 0.35rem;
  display: block;
}

/* Data Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--border-radius);
  border: 1px solid var(--glass-border);
  background-color: var(--card-bg);
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.data-table th {
  background-color: var(--bg-tertiary);
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.data-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background-color: rgba(0, 130, 230, 0.02);
}

/* Pagination */
.pagination-container {
  display: flex;
  justify-content: center;
  margin: 2.5rem 0;
}

.pagination-custom {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  flex-wrap: wrap;
}

.pagination-custom .page-item .page-link,
.pagination-custom .page-item span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 0.75rem;
  border-radius: var(--border-radius-sm);
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.pagination-custom .page-item.active span,
.pagination-custom .page-item.active .page-link {
  background: var(--accent-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 6px rgba(0, 130, 230, 0.3);
}

.pagination-custom .page-item .page-link:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.pagination-custom .page-item.disabled span {
  color: var(--text-muted);
  opacity: 0.5;
  cursor: not-allowed;
}

/* Pure CSS Media Print Optimizations */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .navbar, .footer-premium, .actions-bar, .comment-section, .related-news-section, .sidebar-col, .print-hide {
    display: none !important;
  }
  .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
  }
  .article-title-lg {
    font-size: 24pt !important;
    color: #000000 !important;
  }
  .article-content {
    font-size: 12pt !important;
    line-height: 1.6 !important;
    color: #222222 !important;
  }
  .article-cover-img {
    max-height: 400px !important;
  }
}

/* ========================================================
   ENTERPRISE ADMIN SIDEBAR LAYOUT (PURE CSS)
   ======================================================== */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background-color: var(--bg-primary);
}

.admin-sidebar {
  width: 270px;
  background: #3A86FF;
  color: #e0f2fe;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  overflow-y: auto;
  z-index: 99;
}

.admin-sidebar::-webkit-scrollbar {
  width: 6px;
}
.admin-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 3px;
}

.admin-brand {
  padding: 1.5rem 1.5rem 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
}

.admin-brand-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.admin-brand-sub {
  font-size: 0.7rem;
  color: #e0f2fe;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-nav {
  padding: 1.25rem 0.75rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.admin-nav-section {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #bfdbfe;
  padding: 1rem 0.75rem 0.35rem 0.75rem;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  color: #f0f9ff;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.admin-nav-link:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.admin-nav-link.active {
  background: #ffffff;
  color: #1d4ed8;
  border: 1px solid #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.admin-nav-link.active .admin-nav-icon {
  stroke: #1d4ed8;
}

.admin-nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.admin-sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  background-color: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-topbar {
  height: 65px;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.admin-content {
  padding: 2rem;
  flex-grow: 1;
}

/* Highlight Badges */
.badge-hot {
  background-color: #ef4444;
  color: #ffffff;
  font-weight: 700;
}

.badge-trending {
  background-color: #f59e0b;
  color: #ffffff;
  font-weight: 700;
}

.badge-headline {
  background-color: #8b5cf6;
  color: #ffffff;
  font-weight: 700;
}

/* ========================================================
   RESPONSIVE UTILITIES & DEVICE BREAKPOINTS
   ======================================================== */

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
}

.table-responsive::-webkit-scrollbar {
  height: 6px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.headline-card-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
}

.main-news-sidebar-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
}

.analytics-grid-split {
  display: grid;
  grid-template-columns: 2fr 1.1fr;
  gap: 1.5rem;
}

.analytics-table-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.analytics-timeline-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1rem;
  align-items: end;
  height: 170px;
}

.form-row-responsive {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

/* Sidebar Toggle Input & Backdrop (Zero JS Mobile Drawer) */
.admin-sidebar-toggle-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.admin-sidebar-backdrop {
  display: none;
}

.admin-mobile-toggle-btn {
  display: none;
}

.admin-sidebar-close-btn {
  display: none;
}

@media (max-width: 992px) {
  .admin-layout {
    flex-direction: column;
    min-height: 100vh;
    position: relative;
  }

  .admin-mobile-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    flex-shrink: 0;
    transition: all var(--transition-fast);
  }

  .admin-mobile-toggle-btn:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--accent-color);
  }

  .admin-sidebar-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #1e293b;
    color: #94a3b8;
    cursor: pointer;
    flex-shrink: 0;
  }

  .admin-sidebar-close-btn:hover {
    color: #ffffff;
    background: #334155;
  }

  /* Off-Canvas Slide Drawer */
  .admin-sidebar {
    position: fixed !important;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 85vw;
    height: 100vh !important;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
  }

  /* When checkbox is checked, slide sidebar in */
  .admin-sidebar-toggle-input:checked ~ .admin-sidebar {
    transform: translateX(0);
  }

  /* Backdrop overlay when open */
  .admin-sidebar-toggle-input:checked ~ .admin-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
  }

  .main-news-sidebar-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .analytics-grid-split,
  .analytics-table-split {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 860px) {
  .headline-card-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .headline-card-grid > div:first-child {
    min-height: 240px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  .navbar-container {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .search-form-header {
    order: 3;
    max-width: 100% !important;
    width: 100% !important;
  }
  .admin-content {
    padding: 1rem;
  }
  .admin-topbar {
    padding: 0.75rem 1rem;
    height: auto;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .article-title-lg {
    font-size: 1.75rem !important;
  }
  .analytics-timeline-grid {
    gap: 0.35rem;
  }
}

@media (max-width: 480px) {
  .featured-title {
    font-size: 1.4rem;
  }
  .article-title-lg {
    font-size: 1.45rem !important;
  }
}

/* ========================================================
   WARTA MANDALIKA BRANDING & COMPONENT STYLES
   ======================================================== */

/* Navbar Warta Mandalika */
.navbar-warta {
  background-color: #3A86FF;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(58, 134, 255, 0.25);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
  gap: 1.5rem;
}

.brand-logo-img {
  height: 44px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
}

.search-box-warta {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 9999px;
  padding: 0.25rem 0.4rem 0.25rem 1rem;
  width: 100%;
  max-width: 380px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.search-box-warta:focus-within {
  background: rgba(255, 255, 255, 0.3);
  border-color: #ffffff;
}

.search-box-warta input {
  border: none;
  background: transparent;
  outline: none;
  color: #ffffff;
  font-size: 0.88rem;
  width: 100%;
}

.search-box-warta input::placeholder {
  color: rgba(255, 255, 255, 0.8);
}

.search-box-warta button {
  background: #ef4444;
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.search-box-warta button:hover {
  background: #dc2626;
}

/* Responsive Cards (Desktop Grid & Mobile Split Kiri-Kanan) */
.trending-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.news-card-trending {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card-trending:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.latest-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

.news-card-latest {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card-latest:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-thumb-col {
  position: relative;
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-tertiary);
  flex-shrink: 0;
}

.card-thumb-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card-trending:hover .card-thumb-col img,
.news-card-latest:hover .card-thumb-col img {
  transform: scale(1.04);
}

.card-details-col {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Mobile Split Kiri dan Kanan */
@media (max-width: 768px) {
  .navbar-inner {
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0.5rem 0;
  }
  .brand-logo-img {
    height: 32px;
    max-width: 190px;
  }
  .search-box-warta {
    order: 3;
    max-width: 100% !important;
    width: 100% !important;
    margin-top: 0.25rem;
  }

  .trending-cards-container,
  .latest-cards-container {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
  }

  .news-card-trending,
  .news-card-latest {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 0.85rem;
    padding: 0.65rem;
    align-items: stretch;
    border-radius: var(--border-radius);
  }

  .card-thumb-col {
    aspect-ratio: auto;
    width: 100%;
    height: 100%;
    min-height: 85px;
    max-height: 105px;
    border-radius: 8px;
    overflow: hidden;
  }

  .card-thumb-col img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
  }

  .desktop-only-excerpt {
    display: none !important;
  }

  .card-details-col {
    padding: 0;
    justify-content: space-between;
    min-width: 0;
  }

  .card-details-col h3 {
    font-size: 0.92rem !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    margin-bottom: 0.35rem !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* Enterprise Professional Footer - Unified Royal Blue (#3A86FF) Theme */
.footer-premium {
  background-color: #3A86FF;
  color: #ffffff;
  border-top: 3px solid #2563eb;
  padding: 4rem 0 2rem 0;
  margin-top: 4rem;
}

.footer-top-brand-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 2.5rem;
}

.footer-brand-logo-frame {
  background: transparent;
  padding: 0;
  border-radius: 0;
  display: inline-block;
  margin-bottom: 0.5rem;
  border: none;
  box-shadow: none;
}

.footer-contact-card {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 0.95rem;
  border-radius: 8px;
  font-size: 0.8rem;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.footer-contact-card span {
  color: #dbeafe;
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.footer-contact-card strong {
  color: #ffffff;
  font-size: 0.88rem;
}

.footer-cols-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.25rem;
  letter-spacing: 0.3px;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 3px;
  background: #ef4444;
  border-radius: 2px;
}

.footer-col-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-col-link {
  color: #eff6ff;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-col-link:hover {
  color: #ffffff;
  transform: translateX(4px);
  font-weight: 600;
  text-decoration: underline;
}

.footer-bottom-premium {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: #dbeafe;
}

@media (max-width: 992px) {
  .footer-cols-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .footer-cols-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-top-brand-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-bottom-premium {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}


/* ========================================================
   ARTICLE DETAIL VIEW RESPONSIVENESS & TYPOGRAPHY
   ======================================================== */
.article-detail-container {
  padding-top: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.article-title-lg {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  word-break: break-word;
}

.article-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
}

.actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg-tertiary);
  border-radius: var(--border-radius-sm);
}

.actions-share-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.share-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #ffffff !important;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.share-icon-btn:hover {
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  filter: brightness(1.1);
}

.share-wa { background: #25D366; }
.share-x { background: #0f172a; }
.share-fb { background: #1877F2; }
.share-copy { background: #64748b; }
.share-copy:hover { background: #475569; }

.article-cover-frame {
  margin-bottom: 2.5rem;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--bg-tertiary);
}

.article-cover-img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.article-content {
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--text-primary);
  margin-bottom: 3.5rem;
  word-break: break-word;
}

.article-author-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 1.75rem;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.form-row-responsive {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Tablet & Mobile Media Queries (< 768px) */
@media (max-width: 768px) {
  .top-bar-tagline {
    display: none !important;
  }

  .article-title-lg {
    font-size: 1.6rem !important;
    line-height: 1.3 !important;
    margin-bottom: 1rem !important;
  }

  .article-meta-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 0;
  }

  .meta-stats-group {
    width: 100%;
    justify-content: flex-start;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--border-color);
    font-size: 0.8rem !important;
  }

  .actions-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.75rem;
  }

  

  

  .desktop-only-print {
    display: none !important;
  }

  .article-cover-frame {
    margin-bottom: 1.75rem;
    border-radius: var(--border-radius-sm);
  }

  .article-cover-img {
    max-height: 280px !important;
    aspect-ratio: 16 / 9;
  }

  .article-content {
    font-size: 1.05rem !important;
    line-height: 1.75 !important;
    margin-bottom: 2.5rem !important;
  }

  .article-author-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem;
    gap: 0.85rem;
  }

  .form-row-responsive {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .login-modal-box {
    padding: 1.75rem 1.25rem !important;
    max-width: 92vw !important;
  }
}

@media (max-width: 480px) {
  
  
  .article-title-lg {
    font-size: 1.45rem !important;
  }
}

/* ========================================================
   POP-UP LOGIN MODAL (Pure CSS + Light Javascript Esc)
   ======================================================== */
.login-modal-checkbox {
  display: none !important;
}

.login-modal-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.login-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}

.login-modal-box {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: 16px;
  padding: 2.25rem 2rem;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.35);
  transform: translateY(-16px) scale(0.97);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.login-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  font-size: 1.75rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.15s ease, transform 0.15s ease;
  user-select: none;
}

.login-modal-close:hover {
  color: #0f172a;
  transform: scale(1.15);
}

/* Modal Open on Checkbox Checked */
.login-modal-checkbox:checked ~ .login-modal-wrapper {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.login-modal-checkbox:checked ~ .login-modal-wrapper .login-modal-box {
  transform: translateY(0) scale(1);
}
