/*
Theme Name: NOTD News
Theme URI: https://notdnews.com
Author: Tahseen Ashrafi
Author URI: https://github.com/TA-ashrafi
Description: A professional Hindi news portal theme for NOTD News — bold, clean, and built for speed. Designed with a dark/red aesthetic inspired by the NOTD TV brand identity. Features breaking news ticker, category sections, customizer controls, bilingual support, and full mobile responsiveness.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: notd-news
Tags: news, hindi, blog, custom-logo, custom-menu, featured-images, full-width-template, sticky-post, theme-options, two-columns, right-sidebar

Made with ❤️ by Tahseen Ashrafi — github.com/TA-ashrafi
*/

/* ============================================================
   CSS CUSTOM PROPERTIES (Controlled via Customizer)
   ============================================================ */
:root {
  --notd-primary:       #cc0000;
  --notd-primary-dark:  #990000;
  --notd-primary-hover: #e60000;
  --notd-accent:        #ff9900;
  --notd-dark:          #111111;
  --notd-darker:        #0a0a0a;
  --notd-surface:       #1a1a1a;
  --notd-surface2:      #222222;
  --notd-border:        #2a2a2a;
  --notd-text:          #e8e8e8;
  --notd-text-muted:    #999999;
  --notd-text-light:    #cccccc;
  --notd-white:         #ffffff;
  --notd-link:          #ff4444;
  --notd-font-body:     'Noto Sans Devanagari', 'Hind', sans-serif;
  --notd-font-heading:  'Noto Sans Devanagari', 'Hind', sans-serif;
  --notd-font-ui:       'Inter', 'Hind', sans-serif;
  --notd-logo-height:   60px;
  --notd-marquee-speed: 30s;
  --notd-border-radius: 4px;
  --notd-transition:    0.2s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--notd-font-body);
  background-color: var(--notd-darker);
  color: var(--notd-text);
  line-height: 1.7;
  font-size: 0.95rem;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--notd-link); text-decoration: none; transition: color var(--notd-transition); }
a:hover { color: var(--notd-primary); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--notd-font-heading);
  line-height: 1.3;
  font-weight: 700;
  color: var(--notd-white);
}

ul { list-style: none; }

/* ============================================================
   CONTAINER
   ============================================================ */
.notd-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.notd-topbar {
  background: var(--notd-darker);
  border-bottom: 1px solid var(--notd-border);
  padding: 6px 0;
  font-size: 0.78rem;
  font-family: var(--notd-font-ui);
}
.notd-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.notd-topbar-date { color: var(--notd-text-muted); }
.notd-topbar-social { display: flex; gap: 10px; align-items: center; }
.notd-topbar-social a {
  color: var(--notd-text-muted);
  font-size: 0.85rem;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--notd-border);
  transition: all var(--notd-transition);
}
.notd-topbar-social a:hover { background: var(--notd-primary); border-color: var(--notd-primary); color: var(--notd-white); }

/* ============================================================
   HEADER
   ============================================================ */
.notd-header {
  background: var(--notd-dark);
  border-bottom: 3px solid var(--notd-primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.notd-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 20px;
}

/* Logo */
.notd-logo a { display: flex; align-items: center; }
.notd-logo img {
  height: var(--notd-logo-height);
  width: auto;
  object-fit: contain;
}
.notd-logo-text {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--notd-white);
  font-family: var(--notd-font-ui);
  letter-spacing: -0.5px;
}
.notd-logo-text span { color: var(--notd-primary); }

/* Search */
.notd-header-search { display: flex; align-items: center; gap: 10px; }
.notd-search-form { display: flex; align-items: center; }
.notd-search-input {
  background: var(--notd-surface);
  border: 1px solid var(--notd-border);
  color: var(--notd-white);
  padding: 8px 14px;
  border-radius: var(--notd-border-radius) 0 0 var(--notd-border-radius);
  font-size: 0.85rem;
  font-family: var(--notd-font-body);
  outline: none;
  width: 220px;
  transition: border-color var(--notd-transition);
}
.notd-search-input:focus { border-color: var(--notd-primary); }
.notd-search-input::placeholder { color: var(--notd-text-muted); }
.notd-search-btn {
  background: var(--notd-primary);
  border: none;
  color: var(--notd-white);
  padding: 8px 14px;
  border-radius: 0 var(--notd-border-radius) var(--notd-border-radius) 0;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background var(--notd-transition);
}
.notd-search-btn:hover { background: var(--notd-primary-hover); }

/* Hamburger */
.notd-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.notd-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--notd-white);
  transition: all 0.3s ease;
}
.notd-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.notd-hamburger.active span:nth-child(2) { opacity: 0; }
.notd-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.notd-nav { background: var(--notd-surface); border-bottom: 1px solid var(--notd-border); }
.notd-nav-inner { display: flex; align-items: center; }

.notd-primary-menu { display: flex; align-items: center; flex-wrap: wrap; }
.notd-primary-menu > li > a {
  display: block;
  padding: 12px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--notd-text);
  font-family: var(--notd-font-body);
  transition: all var(--notd-transition);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.notd-primary-menu > li > a:hover,
.notd-primary-menu > li.current-menu-item > a {
  color: var(--notd-white);
  border-bottom-color: var(--notd-primary);
  background: rgba(204,0,0,0.08);
}

/* Dropdown */
.notd-primary-menu li { position: relative; }
.notd-primary-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--notd-surface);
  border: 1px solid var(--notd-border);
  border-top: 2px solid var(--notd-primary);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--notd-transition);
  z-index: 999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.notd-primary-menu li:hover .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.notd-primary-menu .sub-menu li a {
  display: block;
  padding: 10px 16px;
  font-size: 0.85rem;
  color: var(--notd-text-light);
  border-bottom: 1px solid var(--notd-border);
  transition: all var(--notd-transition);
}
.notd-primary-menu .sub-menu li a:hover { color: var(--notd-white); background: rgba(204,0,0,0.15); padding-left: 22px; }

/* Mobile Menu Overlay */
.notd-mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--notd-darker);
  z-index: 9999;
  overflow-y: auto;
  padding: 20px;
}
.notd-mobile-menu.open { display: block; }
.notd-mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--notd-border);
}
.notd-mobile-close {
  background: none;
  border: none;
  color: var(--notd-white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}
.notd-mobile-nav li { border-bottom: 1px solid var(--notd-border); }
.notd-mobile-nav li a {
  display: block;
  padding: 14px 0;
  color: var(--notd-text);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--notd-font-body);
  transition: color var(--notd-transition);
}
.notd-mobile-nav li a:hover { color: var(--notd-primary); padding-left: 8px; }
.notd-mobile-nav .sub-menu { display: none; padding-left: 16px; }
.notd-mobile-nav .sub-menu li a { font-size: 0.9rem; font-weight: 500; color: var(--notd-text-muted); padding: 10px 0; }
.notd-mobile-nav .menu-item-has-children > a { display: flex; justify-content: space-between; align-items: center; }
.notd-mobile-nav .menu-item-has-children > a::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 0.7rem; color: var(--notd-text-muted); }

/* ============================================================
   BREAKING NEWS TICKER
   ============================================================ */
.notd-ticker {
  background: var(--notd-dark);
  border-bottom: 1px solid var(--notd-border);
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 38px;
}
.notd-ticker-label {
  background: var(--notd-primary);
  color: var(--notd-white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0 14px;
  white-space: nowrap;
  height: 100%;
  display: flex;
  align-items: center;
  letter-spacing: 0.5px;
  font-family: var(--notd-font-ui);
  text-transform: uppercase;
  flex-shrink: 0;
}
.notd-ticker-label::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 0;
  border-top: 19px solid transparent;
  border-bottom: 19px solid transparent;
  border-left: 8px solid var(--notd-primary);
}
.notd-ticker-label { position: relative; }
.notd-ticker-wrap {
  flex: 1;
  overflow: hidden;
  padding: 0 20px;
}
.notd-ticker-items {
  display: flex;
  animation: ticker-scroll var(--notd-marquee-speed) linear infinite;
  white-space: nowrap;
}
.notd-ticker-items a {
  color: var(--notd-text-light);
  font-size: 0.83rem;
  padding-right: 60px;
  white-space: nowrap;
  display: inline-block;
  font-family: var(--notd-font-body);
}
.notd-ticker-items a:hover { color: var(--notd-accent); }
.notd-ticker-items a::before { content: '◆ '; color: var(--notd-primary); font-size: 0.6rem; }

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.notd-hero { padding: 28px 0; }
.notd-hero-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  align-items: start;
}

/* Hero Main Post */
.notd-hero-main { position: relative; }
.notd-hero-main .notd-post-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--notd-border-radius);
}
.notd-hero-main .notd-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.notd-hero-main:hover .notd-post-thumb img { transform: scale(1.03); }
.notd-hero-main .notd-post-content {
  padding: 16px 0 0;
}
.notd-hero-main .notd-post-title {
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
}
.notd-hero-main .notd-post-title a { color: var(--notd-white); }
.notd-hero-main .notd-post-title a:hover { color: var(--notd-primary); }
.notd-hero-main .notd-post-excerpt {
  color: var(--notd-text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

/* Hero Sidebar Posts */
.notd-hero-sidebar { display: flex; flex-direction: column; gap: 4px; }
.notd-hero-sidebar .notd-mini-post {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--notd-border);
  align-items: flex-start;
}
.notd-hero-sidebar .notd-mini-post:last-child { border-bottom: none; }
.notd-mini-num {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--notd-primary);
  line-height: 1;
  min-width: 32px;
  font-family: var(--notd-font-ui);
  opacity: 0.7;
}
.notd-mini-post-content { flex: 1; }
.notd-mini-post-title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 5px;
}
.notd-mini-post-title a { color: var(--notd-text-light); }
.notd-mini-post-title a:hover { color: var(--notd-primary); }
.notd-mini-post-meta { font-size: 0.75rem; color: var(--notd-text-muted); }

/* ============================================================
   POST META
   ============================================================ */
.notd-post-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.notd-cat-badge {
  background: var(--notd-primary);
  color: var(--notd-white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--notd-font-ui);
}
.notd-cat-badge:hover { background: var(--notd-primary-dark); color: var(--notd-white); }
.notd-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--notd-text-muted);
  font-family: var(--notd-font-ui);
}
.notd-meta-item i { font-size: 0.7rem; color: var(--notd-primary); }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.notd-section { padding: 24px 0; }
.notd-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--notd-border);
}
.notd-section-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--notd-white);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--notd-font-body);
  letter-spacing: 0.3px;
}
.notd-section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 20px;
  background: var(--notd-primary);
  border-radius: 2px;
}
.notd-cat-label {
  font-size: 0.7rem;
  color: var(--notd-text-muted);
  font-family: var(--notd-font-ui);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}
.notd-view-all {
  font-size: 0.78rem;
  color: var(--notd-text-muted);
  border: 1px solid var(--notd-border);
  padding: 5px 12px;
  border-radius: var(--notd-border-radius);
  font-family: var(--notd-font-ui);
  transition: all var(--notd-transition);
}
.notd-view-all:hover { border-color: var(--notd-primary); color: var(--notd-primary); }

/* ============================================================
   CATEGORY SECTION LAYOUTS
   ============================================================ */

/* Layout A: Big left + list right (Business style) */
.notd-cat-layout-a {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
.notd-cat-big .notd-post-thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--notd-border-radius);
  margin-bottom: 12px;
}
.notd-cat-big .notd-post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.notd-cat-big:hover .notd-post-thumb img { transform: scale(1.03); }
.notd-cat-big .notd-post-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.notd-cat-big .notd-post-title a { color: var(--notd-white); }
.notd-cat-big .notd-post-title a:hover { color: var(--notd-primary); }
.notd-cat-big .notd-post-excerpt { font-size: 0.83rem; color: var(--notd-text-muted); line-height: 1.6; }

.notd-cat-list { display: flex; flex-direction: column; }
.notd-list-post {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--notd-border);
  align-items: flex-start;
}
.notd-list-post:last-child { border-bottom: none; }
.notd-list-thumb {
  width: 90px;
  height: 64px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: var(--notd-border-radius);
}
.notd-list-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.notd-list-post:hover .notd-list-thumb img { transform: scale(1.05); }
.notd-list-content { flex: 1; }
.notd-list-title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 5px;
}
.notd-list-title a { color: var(--notd-text-light); }
.notd-list-title a:hover { color: var(--notd-primary); }
.notd-list-meta { font-size: 0.73rem; color: var(--notd-text-muted); font-family: var(--notd-font-ui); }

/* Layout B: Two column equal (Politics/Entertainment) */
.notd-cat-layout-b {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.notd-grid-post { }
.notd-grid-post .notd-post-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--notd-border-radius);
  margin-bottom: 10px;
}
.notd-grid-post .notd-post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.notd-grid-post:hover .notd-post-thumb img { transform: scale(1.03); }
.notd-grid-post .notd-post-title { font-size: 0.92rem; font-weight: 700; line-height: 1.4; margin-bottom: 6px; }
.notd-grid-post .notd-post-title a { color: var(--notd-white); }
.notd-grid-post .notd-post-title a:hover { color: var(--notd-primary); }

/* Layout C: 3 column grid (Tech/Sports) */
.notd-cat-layout-c {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* ============================================================
   PHOTO GALLERY STRIP
   ============================================================ */
.notd-gallery-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.notd-gallery-item {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: var(--notd-border-radius);
  display: block;
}
.notd-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.notd-gallery-item:hover img { transform: scale(1.08); }
.notd-gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0) 100%);
  display: flex;
  align-items: flex-end;
  padding: 10px;
  opacity: 0;
  transition: opacity var(--notd-transition);
}
.notd-gallery-item:hover .notd-gallery-overlay { opacity: 1; }
.notd-gallery-title {
  color: var(--notd-white);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   LATEST NEWS + TRENDING SIDEBAR
   ============================================================ */
.notd-latest-section { padding: 24px 0; }
.notd-latest-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
}

/* Latest list */
.notd-latest-list { display: flex; flex-direction: column; gap: 0; }
.notd-latest-post {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--notd-border);
  align-items: flex-start;
}
.notd-latest-post:last-child { border-bottom: none; }
.notd-latest-thumb {
  width: 130px;
  height: 86px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: var(--notd-border-radius);
}
.notd-latest-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.notd-latest-post:hover .notd-latest-thumb img { transform: scale(1.05); }
.notd-latest-content { flex: 1; }
.notd-latest-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 6px;
}
.notd-latest-title a { color: var(--notd-white); }
.notd-latest-title a:hover { color: var(--notd-primary); }
.notd-latest-excerpt { font-size: 0.8rem; color: var(--notd-text-muted); line-height: 1.6; }

/* Trending sidebar */
.notd-trending { }
.notd-trending-list { }
.notd-trending-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--notd-border);
}
.notd-trending-item:last-child { border-bottom: none; }
.notd-trending-num {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--notd-primary);
  line-height: 1;
  min-width: 28px;
  font-family: var(--notd-font-ui);
  opacity: 0.5;
}
.notd-trending-title {
  font-size: 0.83rem;
  font-weight: 600;
  line-height: 1.4;
}
.notd-trending-title a { color: var(--notd-text-light); }
.notd-trending-title a:hover { color: var(--notd-primary); }
.notd-trending-meta { font-size: 0.72rem; color: var(--notd-text-muted); margin-top: 3px; font-family: var(--notd-font-ui); }

/* ============================================================
   NEWSLETTER SECTION
   ============================================================ */
.notd-newsletter {
  background: linear-gradient(135deg, var(--notd-primary-dark) 0%, var(--notd-surface) 100%);
  border: 1px solid var(--notd-border);
  border-left: 4px solid var(--notd-primary);
  border-radius: var(--notd-border-radius);
  padding: 36px 40px;
  margin: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.notd-newsletter-text { flex: 1; }
.notd-newsletter-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 6px; }
.notd-newsletter-subtitle { font-size: 0.88rem; color: var(--notd-text-muted); }
.notd-newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.notd-newsletter-input {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--notd-white);
  padding: 11px 18px;
  border-radius: var(--notd-border-radius);
  font-size: 0.88rem;
  width: 260px;
  outline: none;
  font-family: var(--notd-font-body);
  transition: border-color var(--notd-transition);
}
.notd-newsletter-input:focus { border-color: var(--notd-accent); }
.notd-newsletter-input::placeholder { color: rgba(255,255,255,0.4); }
.notd-newsletter-btn {
  background: var(--notd-accent);
  color: var(--notd-darker);
  border: none;
  padding: 11px 24px;
  border-radius: var(--notd-border-radius);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--notd-font-ui);
  transition: all var(--notd-transition);
}
.notd-newsletter-btn:hover { background: #ffaa00; transform: translateY(-1px); }
.notd-newsletter-msg { font-size: 0.8rem; color: var(--notd-accent); margin-top: 6px; display: none; }

/* ============================================================
   SINGLE POST
   ============================================================ */
.notd-single-wrapper {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  padding: 28px 0;
  align-items: start;
}
.notd-single-content {}

.notd-single-header { margin-bottom: 20px; }
.notd-single-title {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 14px;
  color: var(--notd-white);
}
.notd-single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--notd-border);
  border-bottom: 1px solid var(--notd-border);
  margin-bottom: 20px;
}
.notd-featured-image {
  margin-bottom: 24px;
  border-radius: var(--notd-border-radius);
  overflow: hidden;
}
.notd-featured-image img { width: 100%; height: auto; }

/* Post body */
.notd-post-body {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--notd-text-light);
}
.notd-post-body p { margin-bottom: 18px; }
.notd-post-body h2 { font-size: 1.3rem; margin: 28px 0 14px; color: var(--notd-white); }
.notd-post-body h3 { font-size: 1.1rem; margin: 24px 0 12px; color: var(--notd-white); }
.notd-post-body a { color: var(--notd-primary); text-decoration: underline; text-underline-offset: 3px; }
.notd-post-body a:hover { color: var(--notd-accent); }
.notd-post-body ul, .notd-post-body ol { margin: 0 0 18px 22px; }
.notd-post-body ul { list-style: disc; }
.notd-post-body ol { list-style: decimal; }
.notd-post-body li { margin-bottom: 6px; }
.notd-post-body blockquote {
  border-left: 3px solid var(--notd-primary);
  padding: 14px 20px;
  background: var(--notd-surface);
  border-radius: 0 var(--notd-border-radius) var(--notd-border-radius) 0;
  margin: 20px 0;
  font-style: italic;
  color: var(--notd-text-muted);
}
.notd-post-body img { border-radius: var(--notd-border-radius); margin: 16px 0; }

/* Tags */
.notd-post-tags { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--notd-border); }
.notd-post-tags span { font-size: 0.78rem; color: var(--notd-text-muted); margin-right: 6px; font-family: var(--notd-font-ui); }
.notd-post-tags a {
  display: inline-block;
  background: var(--notd-surface);
  border: 1px solid var(--notd-border);
  color: var(--notd-text-muted);
  font-size: 0.76rem;
  padding: 4px 10px;
  border-radius: 20px;
  margin: 3px;
  font-family: var(--notd-font-ui);
  transition: all var(--notd-transition);
}
.notd-post-tags a:hover { background: var(--notd-primary); border-color: var(--notd-primary); color: var(--notd-white); }

/* Share */
.notd-post-share {
  margin-top: 20px;
  padding: 16px;
  background: var(--notd-surface);
  border-radius: var(--notd-border-radius);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.notd-share-label { font-size: 0.8rem; font-weight: 700; color: var(--notd-text-muted); font-family: var(--notd-font-ui); text-transform: uppercase; letter-spacing: 0.5px; }
.notd-share-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--notd-border-radius);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--notd-font-ui);
  cursor: pointer;
  border: none;
  color: var(--notd-white);
  transition: opacity var(--notd-transition);
}
.notd-share-btn:hover { opacity: 0.85; }
.notd-share-fb { background: #1877f2; }
.notd-share-tw { background: #000000; }
.notd-share-wa { background: #25d366; }
.notd-share-copy { background: var(--notd-surface2); border: 1px solid var(--notd-border); }

/* Author Box */
.notd-author-box {
  background: var(--notd-surface);
  border: 1px solid var(--notd-border);
  border-left: 4px solid var(--notd-primary);
  border-radius: var(--notd-border-radius);
  padding: 20px;
  margin: 28px 0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.notd-author-avatar img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--notd-border);
  object-fit: cover;
}
.notd-author-info { flex: 1; }
.notd-author-name { font-size: 1rem; font-weight: 700; margin-bottom: 3px; }
.notd-author-name a { color: var(--notd-white); }
.notd-author-name a:hover { color: var(--notd-primary); }
.notd-author-role { font-size: 0.75rem; color: var(--notd-primary); margin-bottom: 8px; font-family: var(--notd-font-ui); text-transform: uppercase; letter-spacing: 0.5px; }
.notd-author-bio { font-size: 0.83rem; color: var(--notd-text-muted); line-height: 1.6; }

/* ============================================================
   COMMENTS
   ============================================================ */
.notd-comments-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 2px solid var(--notd-border);
}
.notd-comments-title { font-size: 1.15rem; font-weight: 800; margin-bottom: 20px; }

.comment-list { list-style: none; }
.comment {
  padding: 16px 0;
  border-bottom: 1px solid var(--notd-border);
}
.comment .comment-author { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.comment .comment-author img { width: 36px; height: 36px; border-radius: 50%; }
.comment .fn { font-size: 0.88rem; font-weight: 700; color: var(--notd-white); }
.comment .comment-meta { font-size: 0.73rem; color: var(--notd-text-muted); font-family: var(--notd-font-ui); }
.comment .comment-content p { font-size: 0.88rem; color: var(--notd-text-light); line-height: 1.6; }
.comment .reply a { font-size: 0.75rem; color: var(--notd-primary); font-family: var(--notd-font-ui); }

/* Comment form */
.notd-comment-form { margin-top: 28px; }
.notd-comment-form-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--notd-border); }
.notd-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.notd-form-group { display: flex; flex-direction: column; gap: 6px; }
.notd-form-label { font-size: 0.8rem; color: var(--notd-text-muted); font-family: var(--notd-font-ui); }
.notd-form-input,
.notd-form-textarea {
  background: var(--notd-surface);
  border: 1px solid var(--notd-border);
  color: var(--notd-white);
  padding: 10px 14px;
  border-radius: var(--notd-border-radius);
  font-size: 0.88rem;
  font-family: var(--notd-font-body);
  outline: none;
  transition: border-color var(--notd-transition);
  width: 100%;
}
.notd-form-input:focus, .notd-form-textarea:focus { border-color: var(--notd-primary); }
.notd-form-textarea { resize: vertical; min-height: 120px; }
.notd-form-submit {
  background: var(--notd-primary);
  color: var(--notd-white);
  border: none;
  padding: 11px 28px;
  border-radius: var(--notd-border-radius);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--notd-font-ui);
  transition: all var(--notd-transition);
  margin-top: 6px;
}
.notd-form-submit:hover { background: var(--notd-primary-hover); transform: translateY(-1px); }

/* ============================================================
   SIDEBAR WIDGETS
   ============================================================ */
.notd-sidebar { position: sticky; top: 90px; }
.notd-widget {
  background: var(--notd-surface);
  border: 1px solid var(--notd-border);
  border-radius: var(--notd-border-radius);
  padding: 18px;
  margin-bottom: 20px;
}
.notd-widget-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--notd-white);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--notd-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--notd-font-body);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================================
   ARCHIVE / CATEGORY PAGE
   ============================================================ */
.notd-archive-wrapper { padding: 28px 0; }
.notd-archive-header {
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--notd-border);
}
.notd-archive-title {
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.notd-archive-count { font-size: 0.78rem; color: var(--notd-text-muted); font-weight: 400; font-family: var(--notd-font-ui); }

.notd-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
.notd-archive-post {}
.notd-archive-post .notd-post-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--notd-border-radius);
  margin-bottom: 12px;
}
.notd-archive-post .notd-post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.notd-archive-post:hover .notd-post-thumb img { transform: scale(1.03); }
.notd-archive-post .notd-post-title { font-size: 0.92rem; font-weight: 700; line-height: 1.4; margin-bottom: 7px; }
.notd-archive-post .notd-post-title a { color: var(--notd-white); }
.notd-archive-post .notd-post-title a:hover { color: var(--notd-primary); }
.notd-archive-post .notd-post-excerpt { font-size: 0.8rem; color: var(--notd-text-muted); line-height: 1.6; }

/* Pagination */
.notd-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px 0;
}
.notd-pagination a,
.notd-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--notd-border-radius);
  font-size: 0.85rem;
  font-family: var(--notd-font-ui);
  border: 1px solid var(--notd-border);
  color: var(--notd-text-muted);
  transition: all var(--notd-transition);
}
.notd-pagination a:hover { border-color: var(--notd-primary); color: var(--notd-primary); }
.notd-pagination .current { background: var(--notd-primary); border-color: var(--notd-primary); color: var(--notd-white); }

/* ============================================================
   404 PAGE
   ============================================================ */
.notd-404 {
  text-align: center;
  padding: 80px 20px;
}
.notd-404-num {
  font-size: 8rem;
  font-weight: 900;
  color: var(--notd-primary);
  line-height: 1;
  opacity: 0.3;
  font-family: var(--notd-font-ui);
}
.notd-404-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 12px; }
.notd-404-text { color: var(--notd-text-muted); margin-bottom: 24px; }
.notd-404-btn {
  display: inline-block;
  background: var(--notd-primary);
  color: var(--notd-white);
  padding: 11px 28px;
  border-radius: var(--notd-border-radius);
  font-weight: 700;
  font-family: var(--notd-font-ui);
  transition: all var(--notd-transition);
}
.notd-404-btn:hover { background: var(--notd-primary-hover); color: var(--notd-white); transform: translateY(-1px); }

/* ============================================================
   SEARCH RESULTS PAGE
   ============================================================ */
.notd-search-results { padding: 28px 0; }
.notd-search-header { margin-bottom: 24px; }
.notd-search-query { font-size: 1.2rem; font-weight: 700; }
.notd-search-query span { color: var(--notd-primary); }

/* ============================================================
   FOOTER
   ============================================================ */
.notd-footer {
  background: var(--notd-dark);
  border-top: 3px solid var(--notd-primary);
  padding: 48px 0 0;
  margin-top: 40px;
}
.notd-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--notd-border);
}
.notd-footer-brand .notd-logo { margin-bottom: 14px; }
.notd-footer-tagline { font-size: 0.83rem; color: var(--notd-text-muted); line-height: 1.6; margin-bottom: 16px; }
.notd-footer-social { display: flex; gap: 8px; }
.notd-footer-social a {
  width: 34px;
  height: 34px;
  border-radius: var(--notd-border-radius);
  background: var(--notd-surface);
  border: 1px solid var(--notd-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--notd-text-muted);
  font-size: 0.85rem;
  transition: all var(--notd-transition);
}
.notd-footer-social a:hover { background: var(--notd-primary); border-color: var(--notd-primary); color: var(--notd-white); }

.notd-footer-col-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--notd-white);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: var(--notd-font-ui);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--notd-border);
}
.notd-footer-menu li { margin-bottom: 0; }
.notd-footer-menu li a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  font-size: 0.83rem;
  color: var(--notd-text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: all var(--notd-transition);
}
.notd-footer-menu li a::before { content: '›'; color: var(--notd-primary); font-size: 1rem; }
.notd-footer-menu li a:hover { color: var(--notd-white); padding-left: 4px; }

.notd-footer-bottom {
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.notd-footer-copy {
  font-size: 0.78rem;
  color: var(--notd-text-muted);
  font-family: var(--notd-font-ui);
}
.notd-footer-copy a { color: var(--notd-primary); }
.notd-footer-love {
  font-size: 0.76rem;
  color: var(--notd-text-muted);
  font-family: var(--notd-font-ui);
}
.notd-footer-love a { color: var(--notd-primary); }
.notd-footer-love .heart { color: #ff4444; }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.notd-back-top {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 40px;
  height: 40px;
  background: var(--notd-primary);
  color: var(--notd-white);
  border: none;
  border-radius: var(--notd-border-radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--notd-transition);
  z-index: 999;
  box-shadow: 0 4px 14px rgba(204,0,0,0.4);
}
.notd-back-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.notd-back-top:hover { background: var(--notd-primary-hover); transform: translateY(-2px); }

/* ============================================================
   MISC UTILITIES
   ============================================================ */
.notd-divider { border: none; border-top: 1px solid var(--notd-border); margin: 24px 0; }
.notd-read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--notd-primary);
  font-weight: 600;
  font-family: var(--notd-font-ui);
  transition: gap var(--notd-transition);
}
.notd-read-more:hover { gap: 8px; color: var(--notd-primary); }
.notd-no-posts { color: var(--notd-text-muted); text-align: center; padding: 40px; font-size: 0.9rem; }

/* Loading placeholder */
.notd-placeholder { background: linear-gradient(90deg, var(--notd-surface) 25%, var(--notd-surface2) 50%, var(--notd-surface) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--notd-border-radius); }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* WordPress Core Classes */
.screen-reader-text { clip: rect(1px,1px,1px,1px); height: 1px; overflow: hidden; position: absolute; width: 1px; word-wrap: normal !important; }
.alignleft { float: left; margin: 0 20px 16px 0; }
.alignright { float: right; margin: 0 0 16px 20px; }
.aligncenter { display: block; margin: 0 auto 16px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.78rem; color: var(--notd-text-muted); text-align: center; margin-top: 4px; font-family: var(--notd-font-ui); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .notd-hero-grid { grid-template-columns: 1fr 280px; }
  .notd-single-wrapper { grid-template-columns: 1fr; }
  .notd-sidebar { position: static; }
  .notd-footer-grid { grid-template-columns: 1fr 1fr; }
  .notd-archive-grid { grid-template-columns: repeat(2, 1fr); }
  .notd-cat-layout-c { grid-template-columns: repeat(2, 1fr); }
  .notd-latest-grid { grid-template-columns: 1fr; }
  .notd-gallery-strip { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  .notd-hero-grid { grid-template-columns: 1fr; }
  .notd-hero-main .notd-post-title { font-size: 1.2rem; }
  .notd-cat-layout-a { grid-template-columns: 1fr; }
  .notd-cat-layout-b { grid-template-columns: 1fr; }
  .notd-cat-layout-c { grid-template-columns: 1fr; }
  .notd-gallery-strip { grid-template-columns: repeat(3, 1fr); }
  .notd-nav { display: none; }
  .notd-hamburger { display: flex; }
  .notd-search-input { width: 160px; }
  .notd-newsletter { flex-direction: column; text-align: center; padding: 24px 20px; }
  .notd-newsletter-form { justify-content: center; }
  .notd-newsletter-input { width: 100%; }
  .notd-footer-grid { grid-template-columns: 1fr; }
  .notd-single-title { font-size: 1.3rem; }
  .notd-archive-grid { grid-template-columns: 1fr; }
  .notd-form-row { grid-template-columns: 1fr; }
  .notd-single-meta { gap: 10px; }
  .notd-footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .notd-container { padding: 0 14px; }
  .notd-hero-main .notd-post-title { font-size: 1.1rem; }
  .notd-section-title { font-size: 0.95rem; }
  .notd-gallery-strip { grid-template-columns: repeat(2, 1fr); }
  .notd-latest-post { flex-direction: column; }
  .notd-latest-thumb { width: 100%; height: 180px; }
  .notd-topbar { display: none; }
}
