/* ==========================================================================
   Nandyal Times CSS Style Sheet
   BBC Style: Premium Clean Light Mode, Slate & BBC Red Accents
   ========================================================================== */

/* Design Tokens & CSS Variables */
:root {
  --bg-deep: #f6f6f6;          /* Clean light grey background */
  --bg-dark: #ffffff;          /* Pure white background for header elements */
  --card-bg: #ffffff;          /* White background for article cards */
  --card-border: #e0e0e0;      /* Distinct grey borders like BBC */
  --card-hover-border: #b80000;/* BBC Red hover border */
  
  --text-main: #202020;        /* Bold dark charcoal main text */
  --text-secondary: #505050;   /* Muted grey for subtext and descriptions */
  --text-muted: #767676;       /* Lighter grey for metadata and timestamps */
  
  --crimson: #b80000;          /* Classic BBC Red brand color */
  --crimson-hover: #900000;    /* Darker red on hover */
  --crimson-glow: rgba(184, 0, 0, 0.1);
  
  --gold: #202020;             /* Dark charcoal/black for labels and secondary buttons */
  --gold-hover: #000000;
  --gold-glow: rgba(32, 32, 32, 0.1);
  
  --success: #008a00;
  --success-glow: rgba(0, 138, 0, 0.1);
  
  --glass-bg: rgba(255, 255, 255, 0.95); /* High opacity white for navbar */
  --glass-border: #e0e0e0;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-fast: 0.15s ease-in-out;
  --transition-smooth: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-soft: 0 4px 16px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 16px rgba(184, 0, 0, 0.06);
  --radius-sm: 4px;            /* Sleeker, less rounded corners for BBC style */
  --radius-md: 6px;
  --radius-lg: 8px;
}

/* Base resets & styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

a {
  text-decoration: none;
  color: inherit;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--crimson);
}

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

/* ==========================================================================
   LAYOUT STRUCTURES
   ========================================================================== */

.page-layout {
  padding-top: 120px;
  padding-bottom: 60px;
  min-height: calc(100vh - 180px);
}

.grid-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

@media (max-width: 1024px) {
  .grid-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ==========================================================================
   TICKER & HEADER STYLES
   ========================================================================== */

/* Breaking News Ticker */
.news-ticker-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 38px;
  background: #000000;
  border-bottom: 1px solid var(--crimson-glow);
  display: flex;
  align-items: center;
  z-index: 1001;
  font-size: 13px;
  font-weight: 500;
}

.ticker-label {
  background: var(--crimson);
  color: #ffffff;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.05em;
  gap: 6px;
  white-space: nowrap;
  box-shadow: 4px 0 10px rgba(0,0,0,0.4);
  z-index: 2;
}

.ticker-content {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  z-index: 1;
}

.ticker-track {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: marquee 25s linear infinite;
  color: #ffffff;
}

.ticker-track span {
  margin-right: 50px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ticker-track span::after {
  content: "•";
  color: var(--crimson);
  margin-left: 50px;
}

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

/* Sticky Glass Header */
.main-header {
  position: fixed;
  top: 38px;
  left: 0;
  right: 0;
  height: 72px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Logo */
.logo {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
}
.logo-red { color: var(--crimson); text-shadow: 0 0 15px rgba(225,29,72,0.2); }
.logo-gold { color: var(--gold); }

/* Navigation menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover, .nav-link.active {
  color: var(--crimson);
  background: rgba(0, 0, 0, 0.03);
}
.nav-link.active {
  border-bottom: 2px solid var(--crimson);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: transparent;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-login-link {
  font-size: 24px;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
}
.admin-login-link:hover {
  color: var(--gold);
  transform: scale(1.05);
}

@media (max-width: 900px) {
  .nav-menu {
    display: none; /* In production a hamburger menu is preferred, we keep it simple for now */
  }
}

/* ==========================================================================
   BUTTONS AND BADGES
   ========================================================================== */

.btn {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--crimson);
  color: #ffffff;
  box-shadow: 0 4px 12px var(--crimson-glow);
}
.btn-primary:hover {
  background: var(--crimson-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px var(--crimson-glow);
}

.btn-gold {
  background: var(--gold);
  color: #ffffff;
  box-shadow: 0 4px 12px var(--gold-glow);
}
.btn-gold:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px var(--gold-glow);
}

.btn-outline {
  background: transparent;
  border-color: var(--card-border);
  color: var(--text-secondary);
}
.btn-outline:hover {
  border-color: var(--text-main);
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.02);
}

.btn-block {
  display: flex;
  justify-content: center;
  width: 100%;
}

.btn-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff;
  border: none;
}
.btn-instagram:hover {
  opacity: 0.95;
  transform: scale(1.02);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-heading);
}

.badge-crimson { background: rgba(225, 29, 72, 0.15); color: var(--crimson); border: 1px solid rgba(225, 29, 72, 0.2); }
.badge-gold { background: rgba(217, 119, 6, 0.15); color: var(--gold); border: 1px solid rgba(217, 119, 6, 0.2); }
.badge-success { background: rgba(16, 185, 129, 0.15); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.2); }

/* ==========================================================================
   ADVERTISING SLOTS
   ========================================================================== */

.sponsor-card {
  background: var(--card-bg);
  border: 1px dashed var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.sponsor-card:hover {
  border-color: var(--gold);
}

.sponsor-card a {
  width: 100%;
  height: 100%;
  display: block;
}

.sponsor-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sponsor-label {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--text-muted);
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  z-index: 10;
}
.sponsor-info {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  font-weight: 500;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0.8;
  transition: var(--transition-fast);
}
.sponsor-card:hover .sponsor-info {
  opacity: 1;
  background: var(--crimson);
}

.top-sponsor-card {
  max-width: 728px;
  width: 100%;
  height: 80px;
  margin: 0 auto 24px auto;
}

@media (max-width: 768px) {
  .top-sponsor-card {
    height: 60px;
    margin-bottom: 16px;
  }
}

.side-sponsor-card {
  width: 100%;
  margin-bottom: 24px;
  background: transparent !important;
  border: none !important;
}

.side-sponsor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.small-sponsor-card {
  height: 65px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.small-sponsor-card:hover {
  border-color: var(--crimson);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(250, 204, 21, 0.08);
}

.small-sponsor-card a {
  width: 100%;
  height: 100%;
  display: block;
}

.small-sponsor-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.add-ad-placeholder {
  font-weight: 700;
  color: var(--crimson);
  font-size: 9.5px;
  margin-top: 2px;
  font-family: var(--font-heading);
}

.add-ad-subtext {
  font-size: 8px;
  color: var(--text-secondary);
  font-family: var(--font-body);
}

.mid-sponsor-card {
  width: 100%;
  height: 120px;
  margin: 16px 0;
}

/* ==========================================================================
   NEWS SECTION & CARDS
   ========================================================================== */

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  position: relative;
  padding-bottom: 6px;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--crimson);
  border-radius: 2px;
}

/* Search bar styling */
.search-bar {
  display: flex;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  width: 300px;
  height: 40px;
  transition: var(--transition-fast);
}
.search-bar:focus-within {
  border-color: var(--crimson);
}
.search-bar input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  padding: 0 14px;
  font-size: 14px;
  flex: 1;
}
.search-bar button {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0 14px;
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition-fast);
}
.search-bar button:hover {
  color: var(--crimson);
}

@media (max-width: 600px) {
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .search-bar {
    width: 100%;
  }
}

/* News Feed list */
.news-feed {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* News Card */
.news-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-2px);
  border-color: var(--card-hover-border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.news-media-wrapper {
  position: relative;
  width: 100%;
  max-height: 400px;
  background: #000000;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.news-card img, .news-card video {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  display: block;
}

.news-body {
  padding: 24px;
}

.news-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  align-items: center;
}

.news-card-meta i {
  color: var(--crimson);
}

.news-card-title {
  font-size: 22px;
  line-height: 1.35;
  margin-bottom: 12px;
  cursor: pointer;
  transition: var(--transition-fast);
}
.news-card-title:hover {
  color: var(--crimson-hover);
}

.news-card-excerpt {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--card-border);
  padding-top: 16px;
}

.read-more-link {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--crimson);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}
.read-more-link:hover {
  color: var(--crimson-hover);
  gap: 10px;
}

.views-count {
  font-size: 13px;
  color: var(--text-muted);
}

/* ==========================================================================
   SIDEBAR & WIDGETS
   ========================================================================== */

.sidebar-widget {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 12px;
}

.widget-header h3 {
  font-size: 18px;
}

.widget-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* Instagram Widget Specifics */
.instagram-widget {
  border-top: 3px solid #e1306c;
}
.insta-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.insta-header i {
  font-size: 32px;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.insta-header h3 {
  font-size: 16px;
  margin-bottom: 2px;
}
.insta-header p {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Local Directory List */
.directory-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.directory-card {
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}
.directory-card:hover {
  border-color: rgba(217, 119, 6, 0.4);
  background: rgba(255, 255, 255, 0.03);
}

.directory-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-main);
}
.directory-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.4;
}
.directory-actions {
  display: flex;
  gap: 10px;
}
.btn-wa-call {
  font-size: 12px;
  padding: 4px 8px;
  background: var(--success);
  color: #ffffff;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}
.btn-wa-call:hover {
  background: #059669;
}

/* ==========================================================================
   MODAL DIALOGS
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.25s ease-out;
}

.modal-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 28px;
}

.modal-card-large {
  max-width: 800px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px) scale(0.98); }
  to { transform: translateY(0) scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 14px;
}

.modal-header h2 {
  font-size: 22px;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition-fast);
}
.modal-close:hover {
  color: var(--crimson);
}

.reporter-intro {
  background: rgba(255,255,255,0.03);
  padding: 12px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold);
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

/* Forms styling inside modals */
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg-deep);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-main);
  font-size: 14px;
  font-family: var(--font-body);
  transition: var(--transition-fast);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--crimson);
  background: var(--bg-dark);
}

.form-group input[type="file"] {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

.file-help {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* News Detail Modal Specifics */
.news-detail-body h1 {
  font-size: 26px;
  line-height: 1.3;
  margin-bottom: 12px;
}
.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 14px;
  margin-bottom: 20px;
}
.news-meta i {
  color: var(--crimson);
}
.news-detail-media {
  width: 100%;
  margin-bottom: 24px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000000;
}
.news-detail-media img, .news-detail-media video {
  width: 100%;
  max-height: 450px;
  object-fit: contain;
  display: block;
}
.news-detail-content {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  white-space: pre-wrap;
  margin-bottom: 30px;
}
.news-detail-share {
  border-top: 1px solid var(--card-border);
  padding-top: 20px;
}
.news-detail-share h4 {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.share-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-share {
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  transition: var(--transition-fast);
}
.share-wa { background: #25d366; }
.share-wa:hover { background: #20ba5a; }
.share-fb { background: #1877f2; }
.share-fb:hover { background: #166fe5; }
.share-copy { background: var(--text-muted); }
.share-copy:hover { background: var(--text-secondary); }

/* ==========================================================================
   LOADING PLACEHOLDERS (SKELETONS)
   ========================================================================== */

.loading-wave {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  padding: 20px;
}

.wave-item {
  height: 20px;
  background: linear-gradient(90deg, var(--card-bg) 25%, rgba(255,255,255,0.06) 50%, var(--card-bg) 75%);
  background-size: 200% 100%;
  animation: loading-wave-anim 1.5s infinite;
  border-radius: 4px;
}
.wave-item:nth-child(1) { height: 120px; border-radius: 12px; }
.wave-item:nth-child(2) { width: 60%; }
.wave-item:nth-child(3) { width: 85%; }

@keyframes loading-wave-anim {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ==========================================================================
   FOOTER STYLES
   ========================================================================== */

.footer {
  background: #05070e;
  border-top: 1px solid var(--card-border);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-content h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #ffffff;
}

.footer-content p {
  color: var(--text-secondary);
  font-size: 14px;
  max-width: 450px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}
.footer-links a:hover {
  color: var(--crimson);
}

.footer-bottom {
  border-top: 1px solid var(--card-border);
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-links {
    align-items: flex-start;
  }
}

/* ==========================================================================
   GOOGLE TRANSLATE STYLING OVERRIDES
   ========================================================================== */
#google_translate_element {
  display: inline-block;
  margin-right: 8px;
}
.goog-te-banner-frame.skiptranslate, .goog-te-banner-frame {
  display: none !important;
}
html {
  margin-top: 0px !important;
}
body {
  top: 0px !important;
  position: static !important;
}
/* Style the standard Google Simple Element */
.goog-te-gadget-simple {
  background-color: #0f172a !important; /* Navy Blue */
  border: 1px solid rgba(250, 204, 21, 0.5) !important; /* Translucent Yellow */
  border-radius: var(--radius-md) !important;
  padding: 8px 14px !important;
  font-family: var(--font-heading) !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  cursor: pointer !important;
  transition: var(--transition-fast) !important;
  box-shadow: 0 4px 12px rgba(250, 204, 21, 0.1) !important; /* Yellow glow */
}
.goog-te-gadget-simple:hover {
  background-color: #1e293b !important; /* Lighter Navy */
  border-color: #facc15 !important; /* Canary Yellow */
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(250, 204, 21, 0.25) !important; /* Stronger yellow glow */
}
.goog-te-gadget-simple img {
  display: none !important; /* Hide Google logo */
}
.goog-te-gadget-simple span {
  color: #facc15 !important; /* Canary Yellow text */
  font-family: var(--font-heading) !important;
}
.goog-te-menu-value {
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
}
.goog-te-menu-value span:first-child {
  margin-right: 6px !important;
}
.goog-te-menu-value span:nth-child(3) {
  display: none !important; /* Hide dropdown arrow from google */
}
.goog-te-menu-value::after {
  content: "\f0d7";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #facc15 !important; /* Canary Yellow arrow */
  font-size: 11px;
}

/* ==========================================================================
   SOCIAL CARD ACTIONS
   ========================================================================== */
.news-card-actions {
  display: flex;
  gap: 20px;
  border-top: 1px solid var(--card-border);
  padding: 14px 24px;
  background: rgba(0, 0, 0, 0.01);
}
.card-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
  user-select: none;
}
.card-action-btn:hover {
  color: var(--crimson);
}
.card-action-btn.liked {
  color: var(--crimson);
}
.card-action-btn.liked i {
  font-weight: 900; /* Filled heart */
  animation: heartBeat 0.3s ease-out;
}

@keyframes heartBeat {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* ==========================================================================
   COMMENT THREADS IN DETAIL MODAL
   ========================================================================== */
.comment-item {
  background: var(--bg-deep);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  animation: slideUp 0.2s ease-out;
}
.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.comment-author {
  font-weight: 700;
  color: var(--text-main);
  font-size: 14px;
  font-family: var(--font-heading);
}
.comment-date {
  font-size: 11px;
  color: var(--text-muted);
}
.comment-text {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  white-space: pre-wrap;
}

/* Share Tooltip styling */
.share-tooltip-container {
  position: relative;
}
.share-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: #111827;
  color: #ffffff;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: flex;
  gap: 10px;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  animation: fadeIn 0.15s ease-out;
}
.share-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #111827 transparent transparent transparent;
}
.share-tooltip-btn {
  color: #ffffff;
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.share-tooltip-btn:hover {
  color: var(--crimson-hover);
}

/* ==========================================================================
   5 PREMIUM FEATURES STYLING
   ========================================================================== */

/* 1. DARK MODE STYLING */
:root[data-theme="dark"] {
  --bg-deep: #121214;           /* Dark matte background */
  --bg-dark: #1c1c1e;           /* Pitch card background */
  --card-bg: #1c1c1e;
  --card-border: #2c2c2e;       /* Muted dark borders */
  --card-hover-border: #f43f5e; /* Rose crimson hover */
  
  --text-main: #f3f4f6;         /* Light silver text */
  --text-secondary: #d1d5db;    /* Silver grey text */
  --text-muted: #9ca3af;        /* Darker grey metadata */
  
  --glass-bg: rgba(28, 28, 30, 0.95);
  --glass-border: #2c2c2e;
  
  --gold: #f3f4f6;
  --gold-glow: rgba(255,255,255,0.05);
}

:root[data-theme="dark"] body {
  background-color: var(--bg-deep);
  color: var(--text-main);
}
:root[data-theme="dark"] .dashboard-sidebar {
  background: #121214 !important;
}
:root[data-theme="dark"] .sidebar-link:hover, 
:root[data-theme="dark"] .sidebar-link.active {
  background: rgba(255, 255, 255, 0.04) !important;
}
:root[data-theme="dark"] .data-table th {
  background: rgba(0, 0, 0, 0.2) !important;
}

/* 2. THEME TOGGLE BUTTON */
.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text-main);
  cursor: pointer;
  font-size: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}
.theme-toggle-btn:hover {
  border-color: var(--crimson);
  color: var(--crimson);
  transform: scale(1.05);
}

/* 3. MANDAL SELECTOR FILTERS */
.feed-filters {
  display: flex;
  gap: 12px;
  align-items: center;
}
.mandal-select-wrapper select {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: var(--transition-fast);
}
.mandal-select-wrapper select:hover {
  border-color: var(--crimson);
}
@media (max-width: 640px) {
  .feed-filters {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .mandal-select-wrapper select {
    width: 100%;
  }
}

/* 4. FLOATING TRANSLATOR */
.floating-translator {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1000;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 170px;
  transition: var(--transition-smooth);
}
.floating-translator:hover {
  transform: translateY(-3px);
  border-color: var(--crimson);
}
.translator-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--crimson);
}
/* Style Google Translate native select dropdown */
.goog-te-combo {
  background: var(--card-bg) !important;
  border: 1px solid var(--card-border) !important;
  color: var(--text-main) !important;
  padding: 6px 10px !important;
  font-size: 12px !important;
  border-radius: var(--radius-sm) !important;
  outline: none !important;
  cursor: pointer !important;
  font-family: var(--font-body) !important;
  width: 100% !important;
}
.goog-te-combo:hover {
  border-color: var(--crimson) !important;
}
.goog-logo-link {
  display: none !important;
}
.goog-te-gadget {
  color: transparent !important;
  font-size: 0 !important;
}
.goog-te-banner-frame {
  display: none !important;
}
body {
  top: 0 !important;
}

/* 5. WEATHER WIDGET styling */
.weather-widget {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #ffffff !important;
  border: none !important;
  border-radius: var(--radius-lg);
  padding: 18px !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.weather-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 8px;
}
.weather-city {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff !important;
  letter-spacing: 0.02em;
}
.weather-time {
  font-size: 10px;
  color: #94a3b8;
}
.weather-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.weather-temp-block {
  display: flex;
  flex-direction: column;
}
.weather-temp {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  font-family: var(--font-heading);
}
.weather-desc {
  font-size: 11px;
  color: #cbd5e1;
  margin-top: 2px;
}
.weather-icon {
  font-size: 32px;
  color: #f59e0b; /* Amber gold sun icon */
  animation: weatherBounce 3s ease-in-out infinite;
}
.weather-details {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #94a3b8;
  background: rgba(255,255,255,0.03);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}
@keyframes weatherBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* 6. BOOKMARKS LIST WIDGET styling */
.bookmarks-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bookmark-card {
  display: flex;
  gap: 10px;
  align-items: center;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--card-border);
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}
.bookmark-card:hover {
  border-color: var(--crimson);
}
.bookmark-img {
  width: 45px;
  height: 45px;
  object-fit: cover;
  border-radius: 4px;
}
.bookmark-title {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
}
.bookmark-title:hover {
  color: var(--crimson);
}
.bookmark-remove-btn {
  color: var(--text-muted);
  cursor: pointer;
  font-size: 11px;
  margin-left: auto;
  transition: var(--transition-fast);
  padding: 4px;
}
.bookmark-remove-btn:hover {
  color: #f43f5e;
}
/* Bookmark save icon on news cards */
.bookmark-toggle-btn {
  cursor: pointer;
  font-size: 13px;
  color: var(--text-muted);
  transition: var(--transition-fast);
}
.bookmark-toggle-btn:hover, .bookmark-toggle-btn.active {
  color: var(--crimson);
}

/* 7. CITIZENS NOTICE BOARD styling */
.community-notice-board {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-soft);
}
.notice-board-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 8px;
}
.notice-board-header h3 {
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.notice-board-sub {
  font-size: 11px;
  color: var(--text-muted);
}
.notice-board-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 180px;
  overflow-y: auto;
  padding-right: 6px;
}
.notice-item {
  background: rgba(255,255,255,0.01);
  border-left: 3px solid var(--crimson);
  border-top: 1px solid var(--card-border);
  border-right: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.notice-item-title {
  font-weight: 700;
  color: var(--text-main);
}
.notice-item-desc {
  color: var(--text-secondary);
  line-height: 1.4;
}
.notice-item-meta {
  font-size: 9.5px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

/* ==========================================================================
   WHATSAPP CUSTOM FEATURES
   ========================================================================== */

/* WhatsApp Sidebar Widget styling */
.whatsapp-widget {
  border-top: 3px solid #25D366 !important;
}

.wa-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.wa-header i {
  font-size: 32px;
  color: #25D366;
  filter: drop-shadow(0 2px 8px rgba(37, 211, 102, 0.2));
}

.wa-header h3 {
  font-size: 16px;
  margin-bottom: 2px;
  font-weight: 700;
  color: var(--text-main);
}

.wa-header p {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.btn-whatsapp-widget {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff;
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp-widget:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
  opacity: 0.95;
}

/* Floating WhatsApp Button styling */
.floating-whatsapp-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
}

.floating-whatsapp-tooltip {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-heading);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  opacity: 0;
  transform: translateX(15px);
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.floating-whatsapp-container:hover .floating-whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.floating-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff !important;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  position: relative;
}

.floating-whatsapp:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}

.floating-whatsapp::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0;
  animation: pulse-wa 2s infinite;
}

@keyframes pulse-wa {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* ==========================================================================
   MOBILE RESPONSIVENESS FIXES (PREVENT AUTO ZOOM-OUT)
   ========================================================================== */

@media (max-width: 600px) {
  /* Prevent Header buttons from overflowing the navbar */
  .nav-container {
    padding: 0 16px;
  }
  
  .logo {
    font-size: 20px; /* Scale logo down slightly */
  }
  
  /* Hide the outline button (Join as Reporter) in mobile header to save space */
  .nav-actions button.btn-outline,
  .nav-actions .btn-outline {
    display: none !important;
  }
  
  /* Compact 'Submit Tip' button on mobile - show only icon */
  .nav-actions button.btn-primary {
    font-size: 0 !important; /* Hide text node child */
    padding: 8px !important;
    width: 36px;
    height: 36px;
    border-radius: 50% !important; /* Make round */
    justify-content: center;
    box-shadow: none;
  }
  
  .nav-actions button.btn-primary i {
    font-size: 14px !important; /* Keep icon visible */
    margin: 0 !important;
  }
  
  .nav-actions {
    gap: 8px; /* Reduce gap on mobile */
  }
}

@media (max-width: 480px) {
  /* Adjust News ticker for small screens */
  .news-ticker-container {
    font-size: 11px;
    height: 34px;
  }
  .ticker-label {
    padding: 0 10px;
    font-size: 11px;
  }
  .main-header {
    top: 34px;
  }
  .page-layout {
    padding-top: 110px;
    padding-left: 12px;
    padding-right: 12px;
  }

  /* Make floating buttons more compact on small screens */
  .floating-whatsapp {
    width: 46px;
    height: 46px;
    font-size: 22px;
  }
  .floating-whatsapp-container {
    bottom: 16px;
    right: 16px;
  }
  .floating-whatsapp-tooltip {
    display: none !important; /* Hide tooltip on small screens */
  }
  
  .floating-translator {
    width: 130px;
    bottom: 16px;
    left: 16px;
    padding: 6px 10px;
  }
}

