/*
Theme Name: Aankhon Dekhi News
Theme URI: https://example.com/aankhon-dekhi-news
Author: Secure WP Architect
Author URI: https://example.com
Description: Aankhon Dekhi News - Professional, High-Speed, SEO-Optimized, and Fully Responsive WordPress News Portal. Features Desktop 2-Column Single & Archive Grid, Tablet/Mobile responsive adaptability, Native Auto-Running Custom Carousels, Professional Standard English Admin Controls, Schema JSON-LD markup, and Elementor News Canvas integration.
Version: 6.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aankhon-dekhi-news
Tags: news, magazine, elementor, responsive, seo-ready, translation-ready
*/

:root {
  --primary-red: #e11d48;
  --dark-red: #be123c;
  --header-bg: #0b0f19;
  --body-bg: #f8fafc;
  --surface-bg: #ffffff;
  --border-color: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --logo-desktop: 280px;
  --logo-tablet: 220px;
  --logo-mobile: 170px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  width: 100%;
  overflow-x: hidden;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Devanagari", Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--body-bg);
  color: var(--text-main);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--primary-red); }
img { max-width: 100%; height: auto; display: block; }

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

/* TOP BAR */
.top-bar {
  background: #020617;
  color: #94a3b8;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid #1e293b;
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.top-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ef4444;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11.5px;
  background: rgba(239, 68, 68, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
}
.live-indicator span.pulse-dot {
  width: 7px;
  height: 7px;
  background: #ef4444;
  border-radius: 50%;
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}
.top-bar-date {
  color: #cbd5e1;
  font-size: 12.5px;
  white-space: nowrap;
}
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
}
.top-bar-cats span { padding: 0 4px; }

/* MAIN HEADER */
.main-header {
  background: #ffffff;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}
.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-branding { flex-shrink: 0; }
.site-branding .custom-logo-link img {
  width: var(--logo-desktop);
  height: auto;
  max-width: 100%;
  display: block;
}
.site-branding .site-title {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -1px;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.1;
}
.site-branding .site-title span.badge {
  background: var(--primary-red);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 18px;
}
.site-tagline { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.header-banner-area {
  flex-grow: 1;
  display: flex;
  justify-content: flex-end;
}
.header-ad-banner {
  width: 728px;
  max-width: 100%;
  min-height: 90px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.header-ad-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* NAVIGATION */
.main-navigation {
  background: var(--header-bg);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-container-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.main-navigation ul.nav-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}
.main-navigation ul.nav-menu li a {
  display: block;
  color: #f8fafc;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 18px;
  transition: all 0.2s ease;
}
.main-navigation ul.nav-menu li.current-menu-item a,
.main-navigation ul.nav-menu li a:hover {
  background: var(--primary-red);
  color: #ffffff;
}

.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px 0;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
}
.mobile-nav-toggle .hamburger-icon {
  width: 24px;
  height: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.mobile-nav-toggle .hamburger-icon span {
  display: block;
  width: 100%;
  height: 2.5px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* BREAKING NEWS TICKER */
.breaking-ticker-wrap {
  background: #ffffff;
  margin: 14px auto;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.ticker-badge {
  background: var(--primary-red);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  padding: 10px 18px;
  white-space: nowrap;
}
.ticker-content {
  padding: 0 16px;
  white-space: nowrap;
  overflow: hidden;
  flex: 1;
}

/* SECTION HEADING */
.block-heading {
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 8px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.block-heading h2, .block-heading h3 {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}
.block-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 50px;
  background: var(--primary-red);
}

/* ========================================================
   2-COLUMN DESKTOP GRID SYSTEM (FOR SINGLE POST, ARCHIVE & DEFAULT FEEDS)
   ======================================================== */
.news-layout-row {
  display: grid;
  grid-template-columns: 2.3fr 1fr;
  gap: 26px;
  margin: 18px auto 40px;
  align-items: start;
}
.news-main-feed, .single-post-wrapper {
  min-width: 0; /* Prevents overflow in CSS grid */
}
.news-sidebar {
  min-width: 0;
}

/* SINGLE ARTICLE POST */
.single-post-wrapper {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 32px;
}
.single-post-header h1 {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 800;
  line-height: 1.3;
  margin: 10px 0 14px;
  color: #0f172a;
}
.single-post-meta {
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
  margin-bottom: 20px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.single-featured-image {
  margin-bottom: 24px;
  border-radius: 6px;
  overflow: hidden;
}
.article-entry-content {
  font-size: 18px;
  line-height: 1.85;
  color: #334155;
}
.article-entry-content p {
  margin-bottom: 20px;
}

/* ELEMENTOR WIDGET 1: NEWS ROW FEED */
.adn-news-row-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.adn-news-row-item {
  display: flex;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  gap: 18px;
  padding: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.adn-news-row-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.06);
}
.adn-news-row-thumb {
  width: 240px;
  height: 155px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.adn-news-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.adn-news-row-item:hover .adn-news-row-thumb img { transform: scale(1.05); }
.adn-news-row-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.adn-news-row-content .cat-pill {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.adn-news-row-content h3 {
  font-size: 18px;
  font-weight: 750;
  line-height: 1.35;
  color: #0f172a;
  margin-bottom: 8px;
}
.adn-news-row-content p.summary {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.adn-news-row-content .meta-info {
  font-size: 12px;
  color: #94a3b8;
}

/* ELEMENTOR WIDGET 2: HERO NEWS GRID */
.adn-hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.adn-lead-story {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 420px;
  background: #0f172a;
}
.adn-lead-story img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.adn-lead-story:hover img { transform: scale(1.03); }
.adn-lead-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.4) 65%, transparent 100%);
  color: #fff;
}
.adn-sub-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.adn-sub-card {
  position: relative;
  height: 202px;
  border-radius: 8px;
  overflow: hidden;
  background: #0f172a;
}
.adn-sub-card img { width: 100%; height: 100%; object-fit: cover; }
.adn-sub-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
  color: #fff;
}

/* ELEMENTOR WIDGET 3: MULTI-PURPOSE AUTO-SLIDING CAROUSEL */
.adn-custom-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 16px;
  margin-bottom: 24px;
}
.adn-carousel-track-wrapper {
  overflow: hidden;
  border-radius: 6px;
  position: relative;
  width: 100%;
}
.adn-carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}
.adn-carousel-slide {
  min-width: 100%;
  width: 100%;
  flex-shrink: 0;
  position: relative;
  height: 250px;
  background: #0f172a;
  border-radius: 6px;
  overflow: hidden;
}
.adn-carousel-slide img, .adn-carousel-slide iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}
.adn-carousel-slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.3) 70%, transparent 100%);
  color: #fff;
}
.video-play-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(225, 29, 72, 0.95);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  z-index: 10;
}
.adn-carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}
.adn-carousel-btn {
  background: #0f172a;
  color: #fff;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.adn-carousel-btn:hover { background: var(--primary-red); }

/* IN-ARTICLE MULTI-POSITION ADS */
.in-article-ad-box {
  margin: 32px 0;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.in-article-ad-box span.ad-label {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.in-article-ad-box img {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 6px;
  display: block;
}

/* FOOTER */
.site-footer {
  background: #0b0f19;
  color: #94a3b8;
  padding: 40px 0 20px;
  border-top: 4px solid var(--primary-red);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}
.footer-col h4 { color: #fff; margin-bottom: 14px; font-size: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 20px; text-align: center; font-size: 13px; }

/* =========================================
   RESPONSIVE: TABLET BREAKPOINT (769px to 991px)
   ========================================= */
@media (min-width: 769px) and (max-width: 991px) {
  .site-branding .custom-logo-link img { width: var(--logo-tablet); }
  .news-layout-row {
    grid-template-columns: 1fr; /* Stacks sidebar below main content on tablet */
    gap: 24px;
  }
  .adn-hero-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .adn-lead-story { height: 350px; }
  .adn-sub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .adn-sub-card { height: 180px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* =========================================
   RESPONSIVE: MOBILE BREAKPOINT (<= 768px)
   ========================================= */
@media (max-width: 768px) {
  .top-bar-inner {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
  }
  .top-bar-left {
    justify-content: center;
    gap: 8px;
  }
  .top-bar-right { display: none; }
  .top-bar-date { font-size: 11.5px; }

  .header-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
  }
  .site-branding .custom-logo-link img {
    width: var(--logo-mobile);
    margin: 0 auto;
  }
  .site-branding .site-title {
    justify-content: center;
    font-size: 26px;
  }
  .header-banner-area {
    width: 100%;
    justify-content: center;
  }
  .header-ad-banner {
    width: 100%;
    height: auto;
    min-height: 55px;
    padding: 8px;
  }

  .mobile-nav-toggle { display: flex; }
  .main-navigation ul.nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #020617;
    border-top: 1px solid #1e293b;
    padding: 8px 0;
  }
  .main-navigation ul.nav-menu.is-active { display: flex; }
  .main-navigation ul.nav-menu li a {
    padding: 12px 20px;
    border-bottom: 1px solid #0f172a;
    font-size: 14px;
  }

  /* Single Column Stack on Mobile */
  .news-layout-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .single-post-wrapper {
    padding: 18px;
  }

  .adn-hero-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .adn-lead-story { height: 260px; }
  .adn-lead-overlay { padding: 14px; }
  .adn-lead-overlay h2 { font-size: 18px !important; }
  .adn-sub-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .adn-sub-card { height: 160px; }

  .adn-news-row-item {
    flex-direction: column;
    gap: 12px;
    padding: 12px;
  }
  .adn-news-row-thumb {
    width: 100%;
    height: 190px;
  }
  .adn-news-row-content h3 {
    font-size: 16px;
    margin-bottom: 6px;
  }
  .adn-news-row-content p.summary {
    font-size: 13px;
    -webkit-line-clamp: 3;
  }

  .breaking-ticker-wrap { margin: 10px auto; }
  .ticker-badge { padding: 8px 12px; font-size: 11px; }
  .ticker-content marquee, .ticker-content a { font-size: 12.5px; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
