/*
Theme Name: EuroBangla24
Theme URI: https://eurobangla24.com
Author: EuroBangla24 Team
Author URI: https://eurobangla24.com
Description: EuroBangla24 is a modern, ultra-fast, SEO-optimized Bengali news portal theme. Features include social sharing, print support, back-to-top button, ads management, mobile-friendly responsive design, and a beautiful dashboard. Built for speed and performance.
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: news, newspaper, bengali, bangladesh, magazine, responsive, mobile-friendly, seo, fast-loading
Text Domain: eurobangla24
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
*/

/* ============================================================
   ROOT VARIABLES — Easy theming
   ============================================================ */
:root {
  --primary:       #c0392b;
  --primary-dark:  #962d22;
  --primary-light: #e74c3c;
  --accent:        #f39c12;
  --accent-dark:   #d68910;
  --dark:          #1a1a2e;
  --dark2:         #16213e;
  --gray-dark:     #2d3436;
  --gray:          #636e72;
  --gray-light:    #b2bec3;
  --border:        #dfe6e9;
  --bg:            #f5f6fa;
  --white:         #ffffff;
  --text:          #2d3436;
  --text-light:    #636e72;
  --font-body:     'Hind Siliguri', 'SolaimanLipi', Arial, sans-serif;
  --font-heading:  'Hind Siliguri', 'SolaimanLipi', Arial, sans-serif;
  --radius:        6px;
  --radius-lg:     12px;
  --shadow:        0 2px 12px rgba(0,0,0,.08);
  --shadow-lg:     0 8px 32px rgba(0,0,0,.14);
  --transition:    .25s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.35;
  color: var(--dark);
}
h1 { font-size: clamp(1.4rem, 3vw, 2rem); }
h2 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h3 { font-size: clamp(1rem, 2vw, 1.25rem); }

/* ============================================================
   LAYOUT
   ============================================================ */
.container      { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.row            { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.col-main       { flex: 1 1 66%; max-width: 66%; padding: 0 10px; }
.col-sidebar    { flex: 0 0 34%; max-width: 34%; padding: 0 10px; }

@media (max-width: 900px) {
  .col-main, .col-sidebar { flex: 0 0 100%; max-width: 100%; }
  .col-sidebar { margin-top: 24px; }
}

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
  background: var(--dark);
  color: #aaa;
  font-size: .78rem;
  padding: 5px 0;
  border-bottom: 2px solid var(--primary);
}
.top-bar .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}
.top-bar .date-time { display: flex; align-items: center; gap: 8px; }
.top-bar .date-time i { color: var(--primary); }
.top-bar .social-links a {
  color: #aaa;
  margin-left: 10px;
  font-size: .9rem;
  transition: color var(--transition);
}
.top-bar .social-links a:hover { color: var(--white); }
.top-bar .social-links a.fb:hover  { color: #1877f2; }
.top-bar .social-links a.tw:hover  { color: #1da1f2; }
.top-bar .social-links a.yt:hover  { color: #ff0000; }
.top-bar .social-links a.li:hover  { color: #0a66c2; }

/* ============================================================
   BREAKING NEWS TICKER
   ============================================================ */
.breaking-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  height: 36px;
}
.breaking-label {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: .82rem;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: .5px;
}
.breaking-label i { margin-right: 5px; }
.ticker-wrap {
  overflow: hidden;
  flex: 1;
  height: 100%;
  position: relative;
}
.ticker-move {
  display: flex;
  animation: ticker-scroll 40s linear infinite;
  align-items: center;
  height: 100%;
  white-space: nowrap;
}
.ticker-move:hover { animation-play-state: paused; }
.ticker-move a {
  color: var(--text);
  font-size: .85rem;
  padding: 0 28px 0 0;
  font-weight: 500;
}
.ticker-move a:hover { color: var(--primary); }
@keyframes ticker-scroll {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ============================================================
   HEADER / BRAND
   ============================================================ */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-logo img { max-height: 60px; width: auto; }
.site-logo .text-logo {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}
.site-logo .text-logo span { color: var(--dark); }
.header-ads { display: flex; align-items: center; }
.header-ads img { max-height: 90px; }
.header-search form {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  padding: 2px 4px 2px 14px;
}
.header-search input[type="search"] {
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--text);
  width: 180px;
}
.header-search button {
  background: var(--primary);
  border: none;
  color: #fff;
  border-radius: 20px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: .85rem;
  transition: background var(--transition);
}
.header-search button:hover { background: var(--primary-dark); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.main-nav {
  background: var(--dark);
  border-bottom: 3px solid var(--primary);
  position: relative;
  z-index: 999;
}
.main-nav .container { position: relative; }
.main-nav ul { display: flex; flex-wrap: wrap; gap: 0; }
.main-nav ul li { position: relative; }
.main-nav ul li a {
  display: block;
  color: #e0e0e0;
  font-size: .88rem;
  font-weight: 600;
  padding: 12px 16px;
  transition: background var(--transition), color var(--transition);
  letter-spacing: .3px;
}
.main-nav ul li a:hover,
.main-nav ul li.current-menu-item > a,
.main-nav ul li.current-menu-parent > a {
  background: var(--primary);
  color: #fff;
}
/* Dropdown */
.main-nav ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--dark2);
  min-width: 200px;
  border-top: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
}
.main-nav ul li:hover > ul { display: block; }
.main-nav ul li ul li a {
  padding: 10px 16px;
  font-size: .85rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: var(--primary);
  border: none;
  color: #fff;
  font-size: 1.2rem;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: var(--radius);
}

/* ============================================================
   AD ZONES
   ============================================================ */
.ad-zone {
  text-align: center;
  margin: 16px 0;
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 8px;
  overflow: hidden;
}
.ad-zone img { margin: 0 auto; border-radius: var(--radius); }
.ad-label {
  font-size: .65rem;
  color: var(--gray-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  position: relative;
}
.section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 22px;
  background: var(--primary);
  border-radius: 2px;
  flex-shrink: 0;
}
.section-title a { color: inherit; }
.section-title a:hover { color: var(--primary); }

/* ============================================================
   CARD — FEATURED (large)
   ============================================================ */
.card-featured {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card-featured:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.card-featured .card-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.card-featured .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.card-featured:hover .card-thumb img { transform: scale(1.05); }
.card-featured .card-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: .4px;
}
.card-featured .card-body { padding: 18px; }
.card-featured .card-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.5;
}
.card-featured .card-title a { color: var(--dark); }
.card-featured .card-title a:hover { color: var(--primary); }
.card-featured .card-meta {
  font-size: .78rem;
  color: var(--gray);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.card-featured .card-meta i { color: var(--primary); margin-right: 3px; }
.card-featured .card-excerpt {
  font-size: .9rem;
  color: var(--text-light);
  margin-top: 10px;
  line-height: 1.65;
}

/* ============================================================
   CARD — SMALL / LIST
   ============================================================ */
.card-list { margin-bottom: 0; }
.card-list .item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.card-list .item:last-child { border-bottom: none; }
.card-list .item-thumb {
  flex-shrink: 0;
  width: 90px;
  height: 64px;
  border-radius: var(--radius);
  overflow: hidden;
}
.card-list .item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.card-list .item:hover .item-thumb img { transform: scale(1.1); }
.card-list .item-body { flex: 1; min-width: 0; }
.card-list .item-title {
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-list .item-title a { color: var(--dark); }
.card-list .item-title a:hover { color: var(--primary); }
.card-list .item-meta { font-size: .72rem; color: var(--gray); }
.card-list .item-meta i { color: var(--primary); margin-right: 3px; }

/* ============================================================
   GRID CARDS
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.card-box {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card-box:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.card-box .thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.card-box .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.card-box:hover .thumb img { transform: scale(1.07); }
.card-box .body { padding: 12px; }
.card-box .title { font-size: .88rem; font-weight: 700; line-height: 1.4; }
.card-box .title a { color: var(--dark); }
.card-box .title a:hover { color: var(--primary); }
.card-box .meta { font-size: .7rem; color: var(--gray); margin-top: 6px; }

/* ============================================================
   SINGLE POST PAGE
   ============================================================ */
.single-wrapper { padding: 20px 0; }
.breadcrumb-bar {
  background: var(--white);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.breadcrumb-bar ol {
  display: flex;
  gap: 6px;
  font-size: .8rem;
  color: var(--gray);
  flex-wrap: wrap;
}
.breadcrumb-bar ol li::after { content: '›'; margin-left: 6px; }
.breadcrumb-bar ol li:last-child::after { display: none; }
.breadcrumb-bar ol li a { color: var(--primary); }

.article-header { margin-bottom: 20px; }
.article-header h1 {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 900;
  line-height: 1.4;
  color: var(--dark);
  margin-bottom: 12px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: .8rem;
  color: var(--gray);
  padding: 10px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.article-meta i { color: var(--primary); margin-right: 4px; }
.article-meta .cat-badge {
  background: var(--primary);
  color: #fff;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
}

/* Font size controls */
.font-controls {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-left: auto;
}
.font-controls button {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 9px;
  cursor: pointer;
  font-size: .78rem;
  color: var(--gray-dark);
  transition: background var(--transition);
}
.font-controls button:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Featured image */
.article-featured-img {
  margin-bottom: 20px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.article-featured-img img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}
.article-featured-img figcaption {
  background: rgba(0,0,0,.6);
  color: #eee;
  font-size: .75rem;
  padding: 6px 14px;
  text-align: center;
}

/* Article content */
.article-content {
  font-size: 1.05rem;
  line-height: 1.95;
  color: var(--text);
}
.article-content p { margin-bottom: 18px; }
.article-content h2,
.article-content h3 {
  margin: 28px 0 12px;
  color: var(--dark);
  font-weight: 800;
}
.article-content h2 {
  border-left: 4px solid var(--primary);
  padding-left: 12px;
}
.article-content img {
  border-radius: var(--radius);
  margin: 16px 0;
}
.article-content blockquote {
  background: #fff8f8;
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--gray-dark);
}
.article-content a { color: var(--primary); text-decoration: underline; }
.article-content ul, .article-content ol {
  padding-left: 22px;
  margin-bottom: 18px;
}
.article-content li { margin-bottom: 6px; }

/* ============================================================
   SHARE BAR
   ============================================================ */
.share-bar {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin: 24px 0;
  box-shadow: var(--shadow);
}
.share-bar h4 {
  font-size: .88rem;
  color: var(--gray);
  margin-bottom: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 24px;
  font-size: .82rem;
  font-weight: 700;
  color: #fff !important;
  cursor: pointer;
  border: none;
  transition: opacity var(--transition), transform var(--transition);
  letter-spacing: .3px;
}
.share-btn:hover { opacity: .88; transform: translateY(-1px); }
.share-btn.facebook  { background: #1877f2; }
.share-btn.twitter   { background: #000; }
.share-btn.linkedin  { background: #0a66c2; }
.share-btn.pinterest { background: #e60023; }
.share-btn.whatsapp  { background: #25d366; }
.share-btn.print     { background: var(--gray-dark); }
.share-btn.copy      { background: var(--accent); }

/* ============================================================
   TAGS
   ============================================================ */
.tags-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.tag-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: .78rem;
  color: var(--gray-dark);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.tag-item:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  overflow: hidden;
}
.sidebar-box .box-header {
  background: var(--dark);
  color: #fff;
  padding: 12px 16px;
  font-weight: 800;
  font-size: .92rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-box .box-header i { color: var(--primary); }
.sidebar-box .box-body { padding: 14px 16px; }

/* Sidebar recent list */
.sidebar-news-list { padding: 0; margin: 0; }
.sidebar-news-list li {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.sidebar-news-list li:last-child { border-bottom: none; }
.sidebar-news-list .sn-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 52px;
  border-radius: var(--radius);
  overflow: hidden;
}
.sidebar-news-list .sn-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sidebar-news-list .sn-title {
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--dark);
}
.sidebar-news-list .sn-title:hover { color: var(--primary); }
.sidebar-news-list .sn-date { font-size: .7rem; color: var(--gray); margin-top: 4px; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 24px 0;
  justify-content: center;
}
.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  font-size: .85rem;
  font-weight: 600;
  color: var(--gray-dark);
  background: var(--white);
  transition: all var(--transition);
}
.pagination a:hover, .pagination span.current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
#back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--primary);
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(192,57,43,.4);
  z-index: 9999;
  border: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
#back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(192,57,43,.5);
}
#back-to-top.visible { display: flex; animation: fadeInUp .3s ease; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .site-header, .main-nav, .top-bar, .breaking-bar,
  .sidebar, .share-bar, .ad-zone, #back-to-top,
  .comments-section, .related-posts, footer,
  .breadcrumb-bar .nav-toggle { display: none !important; }
  body { font-size: 13pt; color: #000; background: #fff; }
  .article-content { font-size: 12pt; line-height: 1.8; }
  h1 { font-size: 20pt; }
  a { color: #000 !important; text-decoration: none !important; }
  .print-header {
    display: block !important;
    text-align: center;
    margin-bottom: 20pt;
    border-bottom: 2pt solid #000;
    padding-bottom: 10pt;
  }
}
.print-header { display: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--dark);
  color: #ccc;
  padding: 40px 0 0;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  margin-bottom: 32px;
}
.footer-col h4 {
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
}
.footer-col p, .footer-col li { font-size: .85rem; line-height: 1.8; }
.footer-col li a { color: #aaa; }
.footer-col li a:hover { color: var(--white); padding-left: 4px; }
.footer-col li { padding: 3px 0; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #ccc;
  margin-right: 8px;
  margin-bottom: 8px;
  font-size: .9rem;
  transition: background var(--transition), color var(--transition);
}
.footer-social a:hover { background: var(--primary); color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 14px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  font-size: .78rem;
  color: #888;
}
.footer-bottom a { color: var(--accent); }

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-section { margin-top: 32px; }
#comments { background: var(--white); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
#comments h2 { font-size: 1.1rem; border-bottom: 2px solid var(--border); padding-bottom: 10px; margin-bottom: 20px; }
.comment-form input, .comment-form textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--text);
  background: var(--bg);
  margin-bottom: 12px;
  transition: border-color var(--transition);
}
.comment-form input:focus, .comment-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.comment-form .submit {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 10px 28px;
  font-family: var(--font-body);
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
}
.comment-form .submit:hover { background: var(--primary-dark); }

/* ============================================================
   RELATED POSTS
   ============================================================ */
.related-posts { margin-top: 32px; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.related-item {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.related-item:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.related-item .thumb { aspect-ratio: 16/9; overflow: hidden; }
.related-item .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.related-item:hover .thumb img { transform: scale(1.07); }
.related-item .body { padding: 10px; font-size: .85rem; font-weight: 700; }
.related-item .body a { color: var(--dark); }
.related-item .body a:hover { color: var(--primary); }

/* ============================================================
   STICKY TICKER (optional floating)
   ============================================================ */
.fixed-ticker {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26,26,46,.95);
  backdrop-filter: blur(8px);
  color: #fff;
  display: flex;
  align-items: center;
  height: 34px;
  z-index: 9998;
}

/* ============================================================
   DARK MODE SWITCH
   ============================================================ */
.dark-mode-toggle {
  background: none;
  border: 1.5px solid rgba(255,255,255,.2);
  color: #ccc;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: .78rem;
  cursor: pointer;
  transition: all var(--transition);
}
.dark-mode-toggle:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Dark mode */
body.dark-mode {
  --bg: #0f0f1a;
  --white: #1a1a2e;
  --text: #e0e0e0;
  --text-light: #aaa;
  --dark: #e0e0e0;
  --border: #2d3436;
}
body.dark-mode .site-header { background: #1a1a2e; }
body.dark-mode .main-nav { background: #111120; }
body.dark-mode .card-featured,
body.dark-mode .card-box,
body.dark-mode .sidebar-box,
body.dark-mode .share-bar { background: #1e1e32; }
body.dark-mode .article-content blockquote { background: #1e1e32; }

/* ============================================================
   UTILITY
   ============================================================ */
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-20 { margin-bottom: 20px; }
.text-center { text-align: center; }
.clearfix::after { content: ''; display: block; clear: both; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.sr-only { position: absolute; width: 1px; height: 1px; clip: rect(0,0,0,0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .site-header .inner { flex-wrap: wrap; }
  .header-search input[type="search"] { width: 130px; }
  .main-nav ul { display: none; flex-direction: column; }
  .main-nav ul.active { display: flex; }
  .main-nav ul li ul { position: static; border-top: none; background: rgba(255,255,255,.05); }
  .nav-toggle { display: block; margin: 8px 0; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .share-buttons .share-btn span { display: none; }
  .share-btn { padding: 8px 12px; }
  #back-to-top { bottom: 70px; right: 16px; }
}

@media (max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   LOADING SKELETON
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-load 1.5s infinite;
  border-radius: var(--radius);
}
@keyframes skeleton-load {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   NOTIFICATION BAR
   ============================================================ */
.notify-bar {
  background: var(--accent);
  color: var(--dark);
  text-align: center;
  padding: 8px 16px;
  font-size: .82rem;
  font-weight: 600;
  position: relative;
}
.notify-bar .close-notify {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1.1rem;
  background: none;
  border: none;
  color: var(--dark);
}
