/* === RESET & BASE === */
body {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Noto Sans Devanagari', 'Segoe UI', Tahoma, sans-serif;
  background-color: #f5f5f5;
  color: #333;
  height: 100%;
  overflow-x: hidden;
}

html {
  height: 100%;
}

* {
  box-sizing: border-box;
}

.app-wrapper {
  width: 100%;
  height: 100%;
  overflow-y: auto;
}

/* === HEADER === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #ff6a00 0%, #c9c950 100%);
  color: #186b01;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
}

.menu-btn {
  background: none;
  border: none;
  color: white;
  font-size: 26px;
  cursor: pointer;
  padding: 4px 8px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  transition: opacity 0.2s;
}

.menu-btn:hover {
  opacity: 0.8;
}

.logo {
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.logo-box {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.tagline {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 2px;
}

.header-right {
  display: flex;
  gap: 8px;
}

.header-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}

.header-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* === MENU OVERLAY === */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* === SLIDE MENU === */
.slide-menu {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100%;
  background: white;
  z-index: 201;
  transition: left 0.3s;
  overflow-y: auto;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.2);
}

.slide-menu.active {
  left: 0;
}

.menu-header {
  background: linear-gradient(135deg, #186b01 0%, #c9c950 100%);
  color: white;
  padding: 20px 16px;
  font-size: 20px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-close-btn {
  background: none;
  border: none;
  font-size: 22px;
  color: white;
  cursor: pointer;
  transition: transform 0.2s;
}

.menu-close-btn:hover {
  transform: rotate(90deg);
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #eee;
  font-size: 16px;
  transition: background 0.2s;
  cursor: pointer;
}

.menu-item:hover {
  background: #f9f9f9;
}

.menu-item.active {
  background: #fff5f0;
  color: #186b01;
  border-left: 4px solid #186b01;
}

.menu-icon {
  margin-right: 12px;
  font-size: 20px;
  width: 24px;
  text-align: center;
}

.menu-follow {
  padding: 20px;
  text-align: center;
}

.follow-title {
  font-weight: bold;
  margin-bottom: 12px;
}

.follow-icons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: #eee;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  text-decoration: none;
  transition: transform 0.2s;
}

.social-icon:visited,
.social-icon:active,
.social-icon:hover {
  color: inherit;              /* prevent red/blue link behavior */
}

.social-icon .fa-facebook-f {
  color: #1877F2;              /* Facebook blue */
}

.social-icon .fa-x-twitter {
  color: #000000;              /* X (Twitter) black */
}

.social-icon .fa-youtube {
  color: #FF0000;              /* YouTube red */
}

.social-icon .fa-whatsapp {
  color: #25D366;              /* WhatsApp green */
}

.social-icon:hover {
  transform: scale(1.1);
}

.social-icon i {
  transition: transform 0.2s ease;
  font-size: 20px;
}

/* === MAIN CONTENT === */
.main-content {
  margin-top: 56px;
  padding: 16px;
  min-height: calc(100vh - 56px - 120px);
}

.page {
  display: none;
}

.page.active {
  display: block;
}

/* === SECTION TITLES === */
.section-title {
  font-size: 24px;
  font-weight: bold;
  color: #186b01;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 3px solid #186b01;
}

/* === NEWS CARDS === */
.news-card {
  background: white;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  display: flex;
  gap: 12px;
  padding: 12px;
  align-items: flex-start;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}

.news-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.news-image {
  width: 120px;
  height: 90px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #186b01 0%, #c9c950 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 30px;
}

.news-image img,
.news-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-content {
  flex: 1;
  padding: 0;
  min-width: 0;
}

.news-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 11px;
  color: #666;
  margin-bottom: 4px;
}

.news-category {
  background: #186b01;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 11px;
}

.news-excerpt {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}

.news-headline {
  font-size: 15px;
  font-weight: 700;
  color: #222;
  line-height: 1.4;
  margin-bottom: 6px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

@media (max-width: 768px) {
  .news-image {
    width: 110px;
    height: 82px;
  }
  .news-headline {
    font-size: 14px;
  }
}


/* === BACK BUTTON === */
.back-btn {
  background: #186b01;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
  text-decoration: none;
}

.back-btn:hover {
  background: #c9c950;
}

.page-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}


/* === ARTICLE PAGE === */
.article-header {
  background: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.article-headline {
  font-size: 20px;
  font-weight: bold;
  color: #222;
  line-height: 1.4;
  margin-bottom: 12px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: #666;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0f0f0;
}

.article-image {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 0;
  overflow: hidden;
  position: relative;
  z-index: 0;
  line-height: 0;
}

.article-image img,
.article-image video {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  position: relative;
  z-index: 0;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .article-image img,
  .article-image video {
    max-height: 280px;
    border-radius: 6px;
  }
}


.article-body {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  line-height: 1.8;
  font-size: 16px;
  color: #333;
  position: relative;
  z-index: 1;
  margin-top: 16px;
}

.article-body p {
  margin-bottom: 16px;
}

/* === DASHBOARD CARDS === */
.dashboard-grid {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.dashboard-card {
  background: white;
  padding: 12px 8px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.dashboard-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.dashboard-icon {
  font-size: 28px;
  margin-bottom: 6px;
}

.dashboard-title {
  font-size: 13px;
  font-weight: bold;
  color: #333;
  margin-bottom: 4px;
}

.dashboard-count {
  font-size: 24px;
  font-weight: bold;
  color: #186b01;
}

/* === FORMS === */
.form-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
  font-size: 16px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #186b01;
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.file-upload {
  background: #f9f9f9;
  border: 2px dashed #ddd;
  padding: 20px;
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
}

.file-upload:hover {
  border-color: #186b01;
}

.file-upload input {
  display: block;
  margin-top: 10px;
  width: 100%;
}

.submit-btn {
  background: #186b01;
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 6px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s;
}

.submit-btn:hover {
  background: #145a01;
}

.submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* === LOGIN SCREEN === */
.login-container {
  max-width: 400px;
  margin: 40px auto;
}

.login-card {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.login-title {
  font-size: 24px;
  font-weight: bold;
  color: #186b01;
  text-align: center;
  margin-bottom: 24px;
}

.role-selector {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.role-btn {
  flex: 1;
  padding: 12px;
  border: 2px solid #ddd;
  background: white;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.role-btn.active {
  background: #186b01;
  color: white;
  border-color: #186b01;
}

/* === ADMIN TABLES === */
.admin-table {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 16px;
}

.table-row {
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.table-row:last-child {
  border-bottom: none;
}

.row-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 8px;
}

.row-headline {
  font-weight: bold;
  color: #333;
  font-size: 16px;
  flex: 1;
  line-height: 1.4;
}

.row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.status-draft {
  background: #e2e3e5;
  color: #383d41;
}

.status-pending {
  background: #fff3cd;
  color: #856404;
}

.status-approved {
  background: #d4edda;
  color: #155724;
}

.status-rejected {
  background: #f8d7da;
  color: #721c24;
}

.action-buttons {
  display: flex;
  gap: 8px;
}

.action-btn {
  flex: 1;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.action-btn:hover {
  opacity: 0.9;
}

.approve-btn {
  background: #28a745;
  color: white;
}

.reject-btn {
  background: #dc3545;
  color: white;
}

.view-btn {
  background: #007bff;
  color: white;
}

/* === SLUG + HEADLINE HIERARCHY === */

.headline-box {
  display: flex;
  flex-direction: column;
}

/* SLUG (sub-heading) */
.row-slug {
  font-size: 18px;          /* bigger than normal text */
  font-weight: 800;        /* strong bold */
  color: #ff5a28;          /* breaking-news red */
  margin-bottom: 6px;
  line-height: 1.35;
  letter-spacing: 0.3px;
}


/* === EMPTY STATE === */
.empty-state {
  background: white;
  padding: 40px 20px;
  border-radius: 8px;
  text-align: center;
  color: #666;
}

.empty-icon {
  font-size: 60px;
  margin-bottom: 16px;
}

/* === STATS COUNTER === */
.stats-row {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  flex: 1;
  background: white;
  padding: 10px 12px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-number {
  font-size: 22px;
  font-weight: bold;
  color: #186b01;
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: #666;
  text-align: left;
  line-height: 1.3;
}

/* === FOOTER === */
.footer {
  background: linear-gradient(135deg, #ff3300 0%, #c9c950 100%);
  color: #ffffff;
  padding: 1.5rem 1rem;
  text-align: center;
  margin-top: 3rem;
}

.footer div a {
  color: white;
  font-size: 13px;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .footer div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
  }
  .footer div a {
    margin: 0 !important;
  }
}

.footer p {
  opacity: 0.9;
  margin: 0.5rem 0;
}


/* === RESPONSIVE === */
@media (max-width: 768px) {
  .header {
    padding: 12px;
  }

  .logo {
    font-size: 18px;
  }

  .tagline {
    font-size: 10px;
  }

  .main-content {
    padding: 12px;
  }

  .section-title {
    font-size: 20px;
  }

  .action-buttons {
    flex-direction: column;
  }
}
.page-heading {
  background: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.news-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}


/* === RESPONSIVE MEDIA === */
img, video {
  max-width: 100%;
  height: auto;
}

.article-container img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .article-container {
    max-width: 100%;
    padding: 0;
  }
  .news-preview-row {
    flex-direction: column;
  }
}



.flash-message{
    padding:12px;
    margin-bottom:12px;
    border-radius:8px;
    font-weight:600;
}

.flash-success{
    background:#d4edda;
    color:#155724;
}

.flash-danger{
    background:#f8d7da;
    color:#721c24;
}

.flash-warning{
    background:#fff3cd;
    color:#856404;
}

.flash-info{
    background:#d1ecf1;
    color:#0c5460;
}

/* === PAGINATION === */
.page-btn {
  padding: 8px 14px;
  border-radius: 6px;
  background: white;
  color: #186b01;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border: 2px solid #186b01;
  transition: all 0.2s;
  cursor: pointer;
}

.page-btn:hover {
  background: #186b01;
  color: white;
}

.page-btn-active {
  background: #186b01;
  color: white;
}

.news-preview-row{
    display:flex;
    gap:16px;
    align-items:flex-start;
}

.news-preview-media{
    width:220px;
    flex-shrink:0;
}

.news-preview-media img,
.news-preview-media video{
    width:220px;
    height:125px;
    object-fit:cover;
    border-radius:8px;
}

.news-preview-content{
    flex:1;
}

.breaking-active-btn {
  background: #cc0000;
  color: white;
}

.breaking-inactive-btn {
  background: #6c757d;
  color: white;
}