/* ==============================
   IPIL TAMBAYAN — styles.css
   ============================== */

/* CSS VARIABLES */
:root {
  --teal:    #0B4C53;
  --amber:   #E67E22;
  --dark:    #1A252C;
  --ash:     #F4F6F7;
  --white:   #ffffff;
  --card-bg: #ffffff;
  --text:    #1A252C;
  --muted:   #6b7280;
  --border:  #e5e7eb;
  --teal-light: #e8f4f5;
  --amber-light: #fef3e2;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
  --radius:  12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --nav-h:   64px;
  --ticker-h: 36px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* DARK MODE */
body.dark-mode {
  --ash:        #0d1b22;
  --card-bg:    #1a2d38;
  --text:       #e8f0f3;
  --muted:      #8faab8;
  --border:     #2a3f4d;
  --teal-light: #0d3a40;
  --amber-light: #2d1f0a;
  background: var(--ash);
}

/* Navbar */
body.dark-mode .navbar { background: #0a2530; }
body.dark-mode .mobile-menu { background: #0a2530; }

/* Ticker */
body.dark-mode .ticker-wrap { background: #060f14; }

/* Footer */
body.dark-mode .site-footer { background: #060f14; }

/* Cards and surfaces */
body.dark-mode .news-card { background: var(--card-bg); border-color: var(--border); }
body.dark-mode .news-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.4); }
body.dark-mode .community-post { background: var(--card-bg); border-color: var(--border); }
body.dark-mode .sidebar-widget { background: var(--card-bg); border-color: var(--border); }
body.dark-mode .skeleton-card { background: var(--card-bg); border-color: var(--border); }
body.dark-mode .biz-dir-card { background: var(--card-bg); border-color: var(--border); }
body.dark-mode .stat-card { background: var(--card-bg); border-color: var(--border); }
body.dark-mode .admin-item { background: var(--card-bg); border-color: var(--border); }
body.dark-mode .latest-news-card { background: var(--card-bg); border-color: var(--border); }
body.dark-mode .article-editor { background: var(--card-bg); border-color: var(--border); }
body.dark-mode .pkg-card { background: #1a2d38; border-color: var(--border); }
body.dark-mode .spotlight-card { background: var(--card-bg); border-color: var(--border); }
body.dark-mode .biz-mini-card:hover { background: #223344; }

/* Modal */
body.dark-mode .modal-overlay { background: rgba(0, 0, 0, 0.75); }
body.dark-mode .modal-box {
  background: #1e3040;
  border: 1px solid #2e4a5a;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
body.dark-mode .modal-close { background: #2a3f4d; color: #8faab8; }
body.dark-mode .modal-close:hover { background: #354f61; color: #e8f0f3; }
body.dark-mode .auth-tabs { border-color: #2e4a5a; }
body.dark-mode .auth-divider::before,
body.dark-mode .auth-divider::after { background: #2e4a5a; }

/* Article / Post / Business modal content */
body.dark-mode .article-modal,
body.dark-mode .submit-modal,
body.dark-mode .auth-modal {
  background: #1e3040;
  border: 1px solid #2e4a5a;
}

/* Modal text contrast */
body.dark-mode .submit-modal h2 { color: #4db8c4; }
body.dark-mode .article-title { color: #e8f0f3; }
body.dark-mode .article-body { color: #cdd8e0; }
body.dark-mode .article-meta { color: #8faab8; }
body.dark-mode .article-cat-tag {
  background: #0d3a40;
  color: #4db8c4;
}

body.dark-mode #businessModalContent a[style*="color:var(--teal)"] {
  color: #ffffff !important;
}

body.dark-mode #businessModalContent h2 {
  color: #ffffff !important;
}


/* Auth modal specifics */
body.dark-mode .auth-tab-btn { color: #8faab8; }
body.dark-mode .auth-tab-btn.active { color: #4db8c4; border-bottom-color: #4db8c4; }
body.dark-mode .auth-logo p { color: #8faab8; }
body.dark-mode .auth-note { color: #8faab8; }

/* Edit modal */
body.dark-mode #editModal .modal-box {
  background: #1e3040;
  border: 1px solid #2e4a5a;
}
body.dark-mode #editModalTitle { color: #4db8c4; }

/* Business modal image area */
body.dark-mode .article-full-img {
  background: linear-gradient(135deg, #0d3a40, #0a2530);
}

/* Pending badge in dark */
body.dark-mode .pending-badge {
  background: #2a1f00;
  border-color: #6b4f00;
  color: #f5c842;
}

/* Search overlay box */
body.dark-mode .search-results-box {
  background: #1e3040;
  border: 1px solid #2e4a5a;
}
body.dark-mode .search-result-item { border-color: #2e4a5a; color: #e8f0f3; }
body.dark-mode .search-result-item:hover { background: #263d4d; }
body.dark-mode .search-result-item strong { color: #e8f0f3; }
body.dark-mode .search-result-item span { color: #8faab8; }

/* Modal overlay — darker backdrop */
body.dark-mode .modal-overlay {
  background: rgba(0, 0, 0, 0.85);
}

/* ALL modal boxes — bright enough to stand out */
body.dark-mode .modal-box {
  background: #243b4a !important;
  border: 2px solid #3d6070 !important;
  box-shadow: 0 24px 80px rgba(0,0,0,0.8), 0 0 0 1px #3d6070 !important;
  color: #e8f0f3;
}

body.dark-mode .modal-close {
  background: #2e4f63;
  color: #a0bfcc;
  border: 1px solid #3d6070;
}
body.dark-mode .modal-close:hover {
  background: #3a6070;
  color: #fff;
}

/* Article / Business / Post modal */
body.dark-mode .article-modal,
body.dark-mode .submit-modal,
body.dark-mode .auth-modal {
  background: #243b4a !important;
  border: 2px solid #3d6070 !important;
}

.modal-cat-badge {
  background: var(--teal-light);
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 50px;
}
.modal-sponsored-badge {
  background: var(--amber-light);
  color: var(--amber);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
}

body.dark-mode .modal-cat-badge {
  background: #0d3a40;
  color: #d4d6d6;
}
body.dark-mode .modal-sponsored-badge {
  background: #3d2000;
  color: #f5a442;
}
body.dark-mode .biz-featured-badge {
  background: #0d3a40;
  color: #4dd8e4;
}
.biz-featured-badge {
  background: var(--teal-light);
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
}

.section-block {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.section-block .news-grid,
.section-block .community-feed {
  margin-bottom: 0;
}

/* Edit modal */
body.dark-mode #editModal .modal-box {
  background: #243b4a !important;
  border: 2px solid #3d6070 !important;
}

/* Info box inside business modal (hours/phone/address) */
body.dark-mode #businessModalContent div[style*="background:var(--ash)"] {
  background: #1a2e3a !important;
  border: 1px solid #3d6070;
}

/* Article full image fallback background */
body.dark-mode .article-full-img {
  background: linear-gradient(135deg, #0d3a40, #0a2530) !important;
}

/* Category/status tags inside modals */
body.dark-mode .article-cat-tag {
  background: #0d3a40;
  color: #4dd8e4;
}

/* Text contrast inside modals */
body.dark-mode .article-title,
body.dark-mode #postModalContent,
body.dark-mode #businessModalContent,
body.dark-mode #articleContent { color: #e8f0f3; }

body.dark-mode .article-body,
body.dark-mode .article-meta { color: #b0ccd8; }

body.dark-mode .article-actions { border-color: #3d6070; }

/* Auth modal */
body.dark-mode .auth-tabs { border-color: #3d6070; }
body.dark-mode .auth-tab-btn { color: #8faab8; }
body.dark-mode .auth-tab-btn.active {
  color: #4dd8e4;
  border-bottom-color: #4dd8e4;
}
body.dark-mode .auth-divider::before,
body.dark-mode .auth-divider::after { background: #3d6070; }
body.dark-mode .auth-logo p,
body.dark-mode .auth-note { color: #8faab8; }

/* Submit modal */
body.dark-mode .submit-modal h2 { color: #4dd8e4; }
body.dark-mode #editModalTitle { color: #4dd8e4; }

/* Form inputs inside modals */
body.dark-mode .modal-box .form-row input,
body.dark-mode .modal-box .form-row select,
body.dark-mode .modal-box .form-row textarea {
  background: #1a2e3a;
  border-color: #3d6070;
  color: #e8f0f3;
}
body.dark-mode .modal-box .form-row input:focus,
body.dark-mode .modal-box .form-row select:focus,
body.dark-mode .modal-box .form-row textarea:focus {
  border-color: #4dd8e4;
  background: #1f3545;
}
body.dark-mode .modal-box .form-row label { color: #c0d8e4; }

/* Pending / payment badges inside modals */
body.dark-mode .modal-box .pending-badge {
  background: #2a1f00;
  border-color: #7a5f00;
  color: #f5c842;
}
body.dark-mode .modal-box .payment-info {
  background: #2a1800;
  border-color: #7a4500;
  color: #f5a442;
}

/* Search overlay */
body.dark-mode .search-results-box {
  background: #243b4a;
  border: 2px solid #3d6070;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
}
body.dark-mode .search-result-item { border-color: #3d6070; }
body.dark-mode .search-result-item:hover { background: #2e4f63; }
body.dark-mode .search-result-item strong { color: #e8f0f3; }
body.dark-mode .search-result-item span { color: #8faab8; }

/* Inputs */
body.dark-mode .form-row input,
body.dark-mode .form-row select,
body.dark-mode .form-row textarea {
  background: #0d1b22;
  border-color: var(--border);
  color: var(--text);
}
body.dark-mode .form-row input:focus,
body.dark-mode .form-row select:focus,
body.dark-mode .form-row textarea:focus { border-color: var(--teal); }
body.dark-mode .comment-input-row input {
  background: #0d1b22;
  border-color: var(--border);
  color: var(--text);
}
body.dark-mode .search-results-box { background: #1a2d38; }
body.dark-mode .search-result-item:hover { background: #223344; }
body.dark-mode .search-result-item { border-color: var(--border); }

/* Skeleton shimmer */
body.dark-mode .sk-img,
body.dark-mode .sk-line {
  background: linear-gradient(90deg, #1a2d38 25%, #223344 50%, #1a2d38 75%);
  background-size: 200%;
}

/* User dropdown */
body.dark-mode .user-dropdown { background: #1a2d38; border-color: var(--border); }
body.dark-mode .user-dropdown-header { background: #0d3a40; border-color: var(--border); }
body.dark-mode .user-dropdown a:hover,
body.dark-mode .user-dropdown button:hover { background: #223344; }
body.dark-mode .user-dropdown a,
body.dark-mode .user-dropdown button { border-color: var(--border); color: var(--text); }

/* Weather widget */
body.dark-mode .wx-detail-item { background: #0d1b22; }
body.dark-mode .wx-forecast-row { border-color: var(--border); }

/* Bottom nav */
body.dark-mode .mobile-bottom-nav {
  background: #1a2d38;
  border-color: var(--border);
}

/* Pending / payment badges */
body.dark-mode .pending-badge {
  background: #2d2000;
  border-color: #6b4f00;
  color: #f5c842;
}
body.dark-mode .payment-info {
  background: #2d1f0a;
  border-color: #6b3d00;
}
body.dark-mode .payment-info p { color: var(--text); }

/* Cat chips */
body.dark-mode .cat-chip {
  background: var(--card-bg);
  border-color: var(--border);
  color: var(--text);
}

/* Toast */
body.dark-mode .toast { background: #1a2d38; }

/* Ad banner fallback */
body.dark-mode .ad-banner-img { background: rgba(0,0,0,0.3); }

/* Google button in dark */
body.dark-mode .btn-google {
  background: #223344;
  border-color: var(--border);
  color: var(--text);
}
body.dark-mode .btn-google:hover { background: #2a3f4d; }

/* Section page header */
body.dark-mode .section-page-header { border-color: var(--border); }
body.dark-mode .admin-header { border-color: var(--border); }
body.dark-mode .admin-tabs { border-color: var(--border); }

/* Text and headings */
body.dark-mode .section-title { color: #4db8c4; }
body.dark-mode .news-card-cat { color: #4db8c4; }
body.dark-mode .article-cat-tag { background: #0d3a40; color: #4db8c4; }
body.dark-mode .widget-header { background: #0d3a40; }
body.dark-mode .stat-num { color: #4db8c4; }
body.dark-mode .wx-temp { color: #4db8c4; }
body.dark-mode .weather-temp { color: #4db8c4; }

/* Section title underline */
body.dark-mode .section-title::after { background: var(--amber); }

/* News card title and desc */
body.dark-mode .news-card-title { color: var(--text); }
body.dark-mode .news-card-desc { color: var(--muted); }
body.dark-mode .news-card-footer { border-color: var(--border); color: var(--muted); }

/* Latest news card */
body.dark-mode .latest-news-body { background: var(--card-bg); }
body.dark-mode .latest-news-title { color: var(--text); }
body.dark-mode .latest-news-desc { color: var(--muted); }
body.dark-mode .latest-news-footer { border-color: var(--border); }
body.dark-mode .latest-badge { background: #0d3a40; color: #4db8c4; }

/* Biz directory */
body.dark-mode .biz-dir-body { background: var(--card-bg); }
body.dark-mode .biz-dir-desc { color: var(--muted); }
body.dark-mode .biz-dir-info span { color: var(--muted); }

/* Admin */
body.dark-mode .article-editor h2 { color: #4db8c4; }
body.dark-mode .admin-header h1 { color: #4db8c4; }
body.dark-mode .admin-tab { color: var(--muted); }
body.dark-mode .admin-tab.active { color: #4db8c4; border-bottom-color: #4db8c4; }
body.dark-mode .admin-item-info strong { color: var(--text); }
body.dark-mode .admin-item-info span { color: var(--muted); }
body.dark-mode .form-row label { color: var(--text); }
body.dark-mode .user-dropdown-header {
  background: #0d3a40;
  border-color: var(--border);
}

body.dark-mode .user-dropdown-header {
  background: #0d3a40;
  border-color: var(--border);
}
body.dark-mode .user-dropdown-header strong {
  color: #e8f0f3;
}
body.dark-mode .user-dropdown-header span {
  color: #8faab8;
}

/* See all / outline buttons */
body.dark-mode .see-all { color: #4db8c4; }
body.dark-mode .see-all:hover { background: #0d3a40; }
body.dark-mode .btn-outline-full { color: #4db8c4; border-color: var(--border); }
body.dark-mode .btn-outline-full:hover { background: #0d3a40; }
body.dark-mode .btn-secondary { color: #4db8c4; border-color: #4db8c4; }
body.dark-mode .btn-secondary:hover { background: #0d3a40; }

/* Trending */
body.dark-mode .trending-item:hover { background: #223344; }
body.dark-mode .trend-text { color: var(--text); }

/* Footer links */
body.dark-mode .footer-links a { color: #8faab8; }
body.dark-mode .footer-links a:hover { color: var(--amber); }

/* Page headers */
body.dark-mode .section-page-header h1 { color: #4db8c4; }
body.dark-mode .page-desc { color: var(--muted); }

/* Trending numbers keep amber, first stays red — no change needed */
/* Article modal */
body.dark-mode .article-title { color: var(--text); }
body.dark-mode .article-body { color: var(--text); }
body.dark-mode .article-meta { color: var(--muted); }
body.dark-mode .article-actions { border-color: var(--border); }

/* Post modal content */
body.dark-mode #postModalContent { color: var(--text); }
body.dark-mode #businessModalContent { color: var(--text); }


/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--ash);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
  padding-top: calc(var(--nav-h) + var(--ticker-h));
  padding-bottom: 80px;
}

@media (min-width: 768px) { body { padding-bottom: 0; } }

img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
a { text-decoration: none; color: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ==============================
   NEWS TICKER
   ============================== */
.ticker-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--ticker-h);
  background: var(--dark);
  display: flex;
  align-items: center;
  z-index: 1001;
  overflow: hidden;
}
.ticker-label {
  flex-shrink: 0;
  background: var(--amber);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
}
.live-dot {
  width: 7px; height: 7px;
  background: #fff;
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform: scale(1); }
  50% { opacity:0.4; transform: scale(0.7); }
}
.ticker-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  color: #cdd8dd;
  font-size: 13px;
  gap: 60px;
  padding-left: 20px;
  animation: tickerScroll 45s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-track span { flex-shrink: 0; }
@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==============================
   NAVBAR
   ============================== */
.navbar {
  position: fixed;
  top: var(--ticker-h);
  left: 0; right: 0;
  height: var(--nav-h);
  background: var(--teal);
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(11,76,83,0.3);
  align-items: center;
  display: block;
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  position: relative;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  justify-self: start;
}
.brand-logo { flex-shrink: 0; }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-name {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 20px;
  color: #d84f4f;
  letter-spacing: 2px;
}
.brand-sub {
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--amber);
  font-weight: 600;
  text-transform: uppercase;
}
.nav-center {
  display: none;
}
.search-wrap {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.12);
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.2);
  overflow: hidden;
  transition: var(--transition);
  width: 100%;
}
.search-wrap:focus-within {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
}
.search-wrap input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  padding: 8px 14px;
  font-size: 13px;
}
.search-wrap input::placeholder { color: rgba(255,255,255,0.5); }
.search-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  padding: 8px 14px;
  transition: color var(--transition);
}
.search-btn:hover { color: #fff; }
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.nav-search-wrap {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.12);
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.2);
  overflow: hidden;
  transition: var(--transition);
}
.nav-search-wrap:focus-within {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
}
.nav-search-wrap input {
  background: none;
  border: none;
  outline: none;
  color: #fff;
  padding: 7px 14px;
  font-size: 13px;
  width: 200px;
}
.nav-search-wrap input::placeholder { color: rgba(255,255,255,0.5); }
@media (max-width: 900px) { .nav-search-wrap { display: none; } }

.nav-link {
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
  display: none;
}
@media (min-width: 900px) { .nav-link { display: block; } }
.nav-link:hover { background: rgba(255,255,255,0.12); color: #fff; }
.dark-toggle {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  border-radius: 50%;
  transition: var(--transition);
}
.dark-toggle:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-auth {
  background: var(--amber);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}
.btn-auth:hover { background: #d35400; transform: translateY(-1px);}
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  margin-left: 0;
}
@media (min-width: 900px) { .hamburger { display: none; } }
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  transition: var(--transition);
}
.mobile-menu {
  display: none;
  flex-direction: column;
  background: linear-gradient(180deg, #0a3d44 0%, #1A252C 100%);
  position: absolute;
  top: var(--nav-h);
  left: 0; right: 0;
  padding: 10px;
  gap: 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 3px solid var(--amber);
}
.mobile-menu.open { display: flex; }

.mobile-menu button {
  background: none;
  border: none;
  color: rgba(255,255,255,0.85);
  padding: 13px 16px;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  letter-spacing: 0.3px;
}

/* ==============================
   SECTIONS
   ============================== */
.section { display: none; max-width: 1280px; margin: 0 auto; padding: 20px 16px; }
.section.active { display: block; }

/* ==============================
   HERO SLIDER
   ============================== */
.hero-slider {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
  box-shadow: var(--shadow-lg);
}
.hero-slides {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
  align-items: flex-start;
}
.hero-slide {
  min-width: 100%;
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
}
@media (max-width: 600px) { .hero-slide { padding: 28px 20px; min-height: 240px; } }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  width: fit-content;
}
.hero-badge.breaking { background: #ef4444; color: #fff; }
.hero-badge.featured { background: var(--amber); color: #fff; }
.hero-badge.sports { background: #3b82f6; color: #fff; }
.hero-slide h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  color: #fff;
  line-height: 1.25;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero-slide p {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  max-width: 560px;
  margin-bottom: 16px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.hero-meta {
  display: flex;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  margin-bottom: 18px;
}
.btn-hero {
  background: #fff;
  color: var(--teal);
  border: none;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  transition: var(--transition);
  width: fit-content;
}
.btn-hero:hover { background: var(--amber); color: #fff; transform: translateY(-2px); }
.hero-controls {
  position: absolute;
  bottom: 16px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-prev, .hero-next {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}
.hero-prev:hover, .hero-next:hover { background: rgba(255,255,255,0.35); }
.hero-dots { display: flex; gap: 6px; align-items: center; }
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
}
.dot.active { background: #fff; width: 22px; border-radius: 4px; }

/* ==============================
   CATEGORIES STRIP
   ============================== */
.categories-strip {
  margin-bottom: 24px;
  overflow: hidden;
}
.cat-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-chip {
  flex-shrink: 0;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}
.cat-chip:hover, .cat-chip.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

/* ==============================
   MAIN GRID LAYOUT
   ============================== */
.main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 900px) {
  .main-grid { grid-template-columns: 1fr 320px; }
}

/* ==============================
   SECTION HEADERS
   ============================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-header.center { flex-direction: column; text-align: center; gap: 8px; }
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--teal);
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 40px; height: 3px;
  background: var(--amber);
  border-radius: 2px;
  margin-top: 4px;
}
.section-header.center .section-title::after { margin: 4px auto 0; }
.see-all {
  background: none;
  border: none;
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  transition: var(--transition);
}
.see-all:hover { background: var(--teal-light); }
.section-sub { color: var(--muted); font-size: 14px; }

/* ==============================
   NEWS CARDS
   ============================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.news-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.news-card-img {
  width: 100%;
  background: linear-gradient(135deg, var(--teal), var(--dark));
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

@media (min-width: 768px) {
  .news-card-img {
    aspect-ratio: 16 / 9;
  }

  .news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
}

.news-card-img img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.4s;
}

.news-card:hover .news-card-img img { transform: scale(1.05); }

.news-card-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--amber);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 50px;
}
.news-card-badge.breaking { background: #ef4444; }
.news-card-badge.sports { background: #3b82f6; }
.news-card-body { padding: 16px; }
.news-card-cat {
  font-size: 11px;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.news-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-desc {
  font-size: 13px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}
.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 10px;
}
.card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.card-action-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
  padding: 2px 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 3px;
  transition: var(--transition);
}
.card-action-btn:hover { background: var(--ash); color: var(--teal); }
.card-action-btn.liked { color: #ef4444; }

/* ==============================
   SKELETON LOADERS
   ============================== */
.skeleton-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 16px;
  border: 1px solid var(--border);
}
.sk-img {
  width: 100%; height: 170px;
  background: linear-gradient(90deg, var(--border) 25%, #e9ecef 50%, var(--border) 75%);
  background-size: 200%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}
.sk-line {
  height: 14px;
  background: linear-gradient(90deg, var(--border) 25%, #e9ecef 50%, var(--border) 75%);
  background-size: 200%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 8px;
}
.sk-line.short { width: 60%; }
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ==============================
   AD BANNER
   ============================== */
.ad-banner {
  border-radius: var(--radius);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;        
}

.ad-banner.premium {
  background: linear-gradient(135deg, var(--teal) 0%, var(--dark) 100%);
  color: #fff;
}


.ad-banner-content {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;     /* padding moved here, away from image */
}

/* ==============================
   AD CAROUSEL
   ============================== */
.ad-carousel-slide {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
}

/* ==============================
   AD BANNER IMAGE
   ============================== */
.ad-banner-img {
  width: 100%;             
  height: auto;
  max-height: 600px;
  object-fit: contain;
  object-position: center;
  display: block;
  background: rgba(0,0,0,0.15);
  cursor: pointer;
  transition: opacity 0.25s ease;
  padding: 0;
  border-radius: var(--radius) var(--radius) 0 0; 
}
.ad-banner-img:hover {
  opacity: 0.88;
}

@media (max-width: 600px) {
  .ad-banner-img {
    max-height: 300px;
  }
}

.ad-badge {
  position: absolute;
  top: 12px; right: 12px;
}
.ad-badge span {
  background: var(--amber);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 50px;
}
.ad-banner-content {
  display: flex;
  align-items: center;
  gap: 20px;
}
.ad-logo { font-size: 3rem; }
.ad-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  margin-bottom: 6px;
}
.ad-info p { font-size: 13px; opacity: 0.85; margin-bottom: 14px; }
.btn-amber {
  background: var(--amber);
  color: #fff;
  border: none;
  padding: 9px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}
.btn-amber:hover { background: #d35400; transform: translateY(-1px); }

/* ==============================
   COMMUNITY FEED
   ============================== */
.community-feed { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.community-post {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.community-post:hover { box-shadow: var(--shadow-md); }
.post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.post-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--amber));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}
.post-meta strong { font-size: 14px; display: block; }
.post-meta span { font-size: 12px; color: var(--muted); }
.post-type-badge {
  margin-left: auto;
  background: var(--teal-light);
  color: var(--teal);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
}
.post-type-badge.greeting { background: #fef9c3; color: #854d0e; }
.post-type-badge.announcement { background: #fee2e2; color: #991b1b; }
.post-type-badge.event { background: #dbeafe; color: #1e40af; }
.post-type-badge.hiring { background: #dcfce7; color: #166534; }
.post-type-badge.sponsored { background: var(--amber-light); color: #92400e; }
.post-content { font-size: 14px; line-height: 1.6; margin-bottom: 12px; }
.post-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}
.post-footer button {
  background: none;
  border: none;
  font-size: 13px;
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}
.post-footer button:hover { background: var(--ash); color: var(--teal); }

/* For options to be horizontal scroll */

.page-cats {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 8px;
  padding-bottom: 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.page-cats::-webkit-scrollbar {
  display: none;
}

.page-cats .cat-chip {
  flex-shrink: 0;
  scroll-snap-align: start;
}

/* ==============================
   SIDEBAR WIDGETS
   ============================== */
.sidebar-col { display: flex; flex-direction: column; gap: 16px; }
.sidebar-widget {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.widget-header {
  background: var(--teal);
  color: #fff;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding-left: 20px;
}
.trending-list { padding: 8px; }
.trending-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
}
.trending-item:hover { background: var(--ash); }
.trend-num {
  width: 24px; height: 24px;
  background: var(--amber);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.trend-num:nth-child(1) { background: #ef4444; }
.trend-text { font-size: 13px; line-height: 1.4; }

.biz-mini-cards { padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.biz-mini-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
  border-bottom: 1px solid var(--border);
}
.biz-mini-card:last-child { border-bottom: none; }
.biz-mini-card:hover { background: var(--ash); }
.biz-mini-icon { font-size: 22px; }
.biz-mini-info strong { display: block; font-size: 13px; margin-bottom: 2px; }
.biz-mini-info span { display: block; font-size: 11px; color: var(--muted); }
.sponsored-tag {
  background: var(--amber-light) !important;
  color: var(--amber) !important;
  font-size: 10px !important;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  display: inline-block !important;
  margin-top: 2px;
}
.btn-outline-full {
  width: 100%;
  background: none;
  border: none;
  color: var(--teal);
  padding: 12px;
  font-size: 13px;
  font-weight: 600;
  border-top: 1px solid var(--border);
  transition: background var(--transition);
}
.btn-outline-full:hover { background: var(--teal-light); }

.submit-widget .widget-header { background: var(--amber); }
.submit-widget p { padding: 12px 16px 8px; font-size: 13px; color: var(--muted); }
.submit-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 8px;
}
.submit-options button {
  background: var(--ash);
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 8px 6px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  transition: var(--transition);
}
.submit-options button:hover { background: var(--teal); color: #fff; border-color: var(--teal); }

.weather-display {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
}
.weather-icon { font-size: 3rem; }
.weather-temp { font-size: 2.2rem; font-weight: 700; line-height: 1; color: var(--teal); }
.weather-desc { font-size: 14px; font-weight: 500; }
.weather-sub { font-size: 12px; color: var(--muted); }

/* ==============================
   BUSINESS SPOTLIGHT
   ============================== */
.spotlight-section { margin: 32px 0; }
.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.spotlight-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  text-align: center;
}
.spotlight-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.spotlight-card.featured-biz {
  border-color: var(--amber);
  box-shadow: 0 0 0 2px rgba(230,126,34,0.15), var(--shadow-sm);
}
.biz-emoji { font-size: 2.5rem; margin-bottom: 10px; }
.biz-badge {
  position: absolute;
  top: 10px; right: 10px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 50px;
  background: var(--amber-light);
  color: var(--amber);
}
.biz-badge.premium { background: var(--teal-light); color: var(--teal); }
.spotlight-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.spotlight-card p { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.biz-meta { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; font-size: 11px; color: var(--muted); margin-bottom: 14px; }
.btn-biz {
  background: var(--teal);
  color: #fff;
  border: none;
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  transition: var(--transition);
}
.btn-biz:hover { background: #0d5f68; }

/* ==============================
   AD PACKAGES
   ============================== */
.ad-packages-preview {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  margin: 32px 0;
  border: 1px solid var(--border);
}
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.pkg-card {
  background: var(--ash);
  border-radius: var(--radius);
  padding: 24px 20px;
  border: 2px solid var(--border);
  text-align: center;
  position: relative;
  transition: var(--transition);
}
.pkg-card:hover { transform: translateY(-4px); border-color: var(--teal); }
.pkg-card.featured { border-color: var(--amber); background: var(--amber-light); }
.pkg-card.premium { border-color: var(--teal); }
.pkg-card.urgent { border-color: #ef4444; background: #fff5f5; }
.pkg-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--amber);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 50px;
  white-space: nowrap;
}
.pkg-icon { font-size: 2rem; margin-bottom: 8px; }
.pkg-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.pkg-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 16px;
}
.pkg-price span { font-size: 13px; color: var(--muted); font-weight: 400; }
.pkg-card ul {
  list-style: none;
  text-align: left;
  margin-bottom: 20px;
}
.pkg-card ul li {
  font-size: 13px;
  color: var(--muted);
  padding: 4px 0;
  padding-left: 18px;
  position: relative;
}
.pkg-card ul li::before { content: '✓'; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.btn-pkg {
  width: 100%;
  background: var(--teal);
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}
.btn-pkg:hover { background: #0d5f68; transform: translateY(-1px); }
.pkg-card.featured .btn-pkg { background: var(--amber); }
.pkg-card.featured .btn-pkg:hover { background: #d35400; }
.pkg-card.urgent .btn-pkg { background: #ef4444; }

/* ==============================
   FULL NEWS PAGE
   ============================== */
.section-page-header {
  padding: 20px 0 24px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
}
.section-page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--teal);
  margin-bottom: 16px;
}
.page-desc { color: var(--muted); font-size: 14px; margin-bottom: 16px; }

.page-cats {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 8px;
  padding-bottom: 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.page-cats::-webkit-scrollbar {
  display: none;
}

.page-cats .cat-chip {
  flex-shrink: 0;
  scroll-snap-align: start;
}

.full-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.load-more-wrap { text-align: center; padding: 32px 0; }
.btn-load-more {
  background: var(--teal);
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  display: inline-block;
}
.btn-load-more:hover { background: #0d5f68; transform: translateY(-2px); box-shadow: var(--shadow-md); }


/*
Hiding sidebar for mobile when in communioty tab
*/

@media (max-width: 899px) {
  #communitySidebar { display: none !important; }
}

/* ==============================
   BUSINESS DIRECTORY
   ============================== */
.biz-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.biz-dir-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.biz-dir-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.biz-dir-header {
  background: linear-gradient(135deg, var(--teal), var(--dark));
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
  position: relative;
}
.biz-dir-icon { font-size: 2.5rem; }
.biz-dir-name { font-size: 1.1rem; font-weight: 700; }
.biz-dir-cat { font-size: 12px; opacity: 0.75; }
.biz-dir-sponsored {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--amber);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 8px;
  border-radius: 50px;
}
.biz-dir-body { padding: 16px; }
.biz-dir-desc { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.biz-dir-info { display: flex; flex-direction: column; gap: 5px; }
.biz-dir-info span { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.biz-dir-actions { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); }
.btn-contact {
  flex: 1;
  background: var(--teal);
  color: #fff;
  border: none;
  padding: 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  transition: var(--transition);
}
.btn-contact:hover { background: #0d5f68; }

/* ==============================
   COMMUNITY PAGE
   ============================== */
.community-page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 900px) { .community-page-grid { grid-template-columns: 1fr 300px; } }
.community-main { display: flex; flex-direction: column; gap: 14px; }

.community-sidebar .post-types {
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.community-sidebar .post-types button {
  background: var(--ash);
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 10px 6px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  transition: var(--transition);
}
.community-sidebar .post-types button:hover { background: var(--teal); color: #fff; border-color: var(--teal); }

/* ==============================
   ADMIN DASHBOARD
   ============================== */
.admin-dashboard { padding: 8px 0; }
.admin-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border);
}
.admin-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--teal);
  margin-bottom: 4px;
}
.admin-header p { color: var(--muted); }
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--teal);
  font-family: 'DM Mono', monospace;
}
.stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; }
.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  overflow-x: auto;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
  scrollbar-width: none;
}
.admin-tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: var(--transition);
  margin-bottom: -2px;
}

#userManagement {
  margin-bottom: 20px;
}

.admin-tab:hover { color: var(--teal); }
.admin-tab.active { color: var(--teal); border-bottom-color: var(--teal); }
.admin-tab-content { display: none;}
.admin-tab-content.active { display: block; }
.article-editor {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
}
.article-editor h2 {
  font-family: 'Playfair Display', serif;
  color: var(--teal);
  margin-bottom: 20px;
  font-size: 1.3rem;
}
.editor-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row.two-col { grid-template-columns: 1fr; } }
.form-row label { font-size: 13px; font-weight: 600; color: var(--text); }
.form-row input,
.form-row select,
.form-row textarea {
  background: var(--ash);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
}
.form-row.loginpassword { margin-bottom: 10px; }
#loginpassword .form-row { margin-bottom: 10px; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus { border-color: var(--teal); }
.form-row textarea { resize: vertical; min-height: 160px; }
.form-row.checkboxes {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px;
}
.form-row.checkboxes label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 400;
}
.form-row.checkboxes input[type="checkbox"] { width: auto; }

.form-actions {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
  border: none;
  padding: 11px 28px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  margin-top: 15px;
}

.btn-primary:hover { background: #0d5f68; transform: translateY(-1px); }
.btn-primary.full { width: 100%; }
.btn-secondary {
  background: none;
  color: var(--teal);
  border: 2px solid var(--teal);
  padding: 11px 28px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
}
.btn-secondary:hover { background: var(--teal-light); }
.admin-list { display: flex; flex-direction: column; gap: 12px; }
.admin-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.admin-item-info strong { display: block; font-size: 14px; margin-bottom: 4px; }
.admin-item-info span { font-size: 12px; color: var(--muted); }
.admin-item-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-approve {
  background: #dcfce7;
  color: #166534;
  border: none;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  transition: var(--transition);
}
.btn-approve:hover { background: #bbf7d0; }
.btn-reject {
  background: #fee2e2;
  color: #991b1b;
  border: none;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  transition: var(--transition);
}
.btn-reject:hover { background: #fecaca; }
.btn-delete {
  background: #f1f5f9;
  color: #475569;
  border: none;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  transition: var(--transition);
}
.btn-delete:hover { background: #e2e8f0; }
.empty-state {
  text-align: center;
  padding: 40px;
  color: var(--muted);
  font-size: 14px;
}


/* ==============================
   FOOTER
   ============================== */
.site-footer {
  background: var(--dark);
  color: #aab4bb;
  margin-top: 48px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 40px;
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 560px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
.footer-brand .brand-name { font-size: 24px; color: #fff; }
.footer-brand .brand-sub { font-size: 10px; color: var(--amber); }
.footer-brand .brand-text { margin-bottom: 12px; }
.footer-brand p { font-size: 13px; line-height: 1.6; margin-bottom: 16px; }
.social-links { display: flex; gap: 12px; }
.social-links a {
  font-size: 1.4rem;
  transition: transform var(--transition);
  display: inline-block;
}
.social-links a:hover { transform: scale(1.2); }
.footer-links h4 { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; }
.footer-links a, .footer-links p {
  display: block;
  font-size: 13px;
  padding: 4px 0;
  color: #8a9ba3;
  cursor: pointer;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--amber); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 24px;
  text-align: center;
  font-size: 12px;
  color: #5a7078;
}
.footer-bottom p + p { margin-top: 4px; }

/* ==============================
   MOBILE BOTTOM NAV
   ============================== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 66px;
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  justify-content: space-around;
  align-items: center;
  padding: 0 8px;
  z-index: 999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}
@media (max-width: 768px) { .mobile-bottom-nav { display: flex; } }
.mobile-bottom-nav button {
  background: none;
  border: none;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 500;
  transition: var(--transition);
  flex: 1;
}
.mobile-bottom-nav button:hover, .mobile-bottom-nav button.active-nav { color: var(--teal); }
.mobile-bottom-nav svg { display: block; }
.fab-mobile {
  width: 52px !important;
  height: 52px !important;
  background: var(--amber) !important;
  color: #fff !important;
  border-radius: 50% !important;
  box-shadow: 0 4px 16px rgba(230,126,34,0.4) !important;
  margin-bottom: 8px;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
}

/* ==============================
   FLOATING ACTION BUTTON (Desktop)
   ============================== */
.fab-desktop {
  display: none;
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 56px; height: 56px;
  background: var(--amber);
  color: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 6px 24px rgba(230,126,34,0.45);
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 900;
  transition: transform var(--transition), box-shadow var(--transition);
}
@media (min-width: 769px) { .fab-desktop { display: flex; } }
.fab-desktop:hover { transform: scale(1.12) rotate(90deg); box-shadow: 0 8px 32px rgba(230,126,34,0.55); }

/* ==============================
   MODALS
   ============================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11,76,83,0.6);
  z-index: 2000;
  padding: 16px;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s;
  transform: translateZ(0);
}
.modal-overlay.open { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-box {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.3s cubic-bezier(0.4,0,0.2,1);
  box-shadow: var(--shadow-lg);
  will-change: transform, opacity;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--ash);
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 14px;
  color: var(--muted);
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--border); color: var(--text); }

/* Auth Modal */
.auth-tabs { display: flex; gap: 4px; margin-bottom: 24px; border-bottom: 2px solid var(--border); }
.auth-tab-btn {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: -2px;
  transition: var(--transition);
}
.auth-tab-btn.active { color: var(--teal); border-bottom-color: var(--teal); }
.auth-logo { text-align: center; margin-bottom: 24px; }
.auth-logo .brand-text { justify-content: center; flex-direction: row; gap: 4px; align-items: baseline; }
.auth-logo .brand-name { font-size: 26px; }
.auth-logo p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.btn-google {
  width: 100%;
  background: #fff;
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 11px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.btn-google:hover { background: #f8f9fa; box-shadow: var(--shadow-md); }
.btn-google.full { width: 100%; }
.auth-note { font-size: 11px; color: var(--muted); text-align: center; margin-top: 12px; }

/* Submit Modal */
.submit-modal { max-width: 580px; }
.submit-modal h2 {
  font-family: 'Playfair Display', serif;
  color: var(--teal);
  margin-bottom: 20px;
}

/* Article Modal */
.article-modal { max-width: 760px; }
.article-full-img {
  width: calc(100% + 64px);
  margin: -32px -32px 24px;
  min-height: 120px;        /* fallback for emoji-only articles */
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--teal), var(--dark));
  font-size: 5rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
}

.article-full-img img {
  width: 100%;
  height: auto;             
  max-height: none;        
  object-fit: contain;      
  display: block;
}

@media (max-width: 600px) {
  .article-full-img {
    width: calc(100% + 40px);
    margin: -20px -20px 20px;
    min-height: 80px;
  }
}

.article-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--muted);
  align-items: center;
}
.article-cat-tag {
  background: var(--teal-light);
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.article-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  line-height: 1.3;
  margin-bottom: 16px;
}
.article-body { font-size: 15px; line-height: 1.8; color: var(--text); }
.article-body p + p { margin-top: 16px; }
.article-actions { display: flex; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.article-comment-section { margin-top: 24px; }
.article-comment-section h3 { font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
.comment-input-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.comment-input-row input {
  flex: 1;
  background: var(--ash);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 9px 16px;
  font-size: 13px;
  color: var(--text);
  outline: none;
}
.comment-input-row input:focus { border-color: var(--teal); }
.btn-comment {
  background: var(--teal);
  color: #fff;
  border: none;
  padding: 9px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}
.btn-comment:hover { background: #0d5f68; }
.comment-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.comment-item:last-child { border-bottom: none; }
.comment-body strong { font-size: 13px; display: block; margin-bottom: 3px; }
.comment-body span { font-size: 13px; color: var(--muted); }
.comment-body em { font-size: 11px; color: var(--muted); display: block; margin-top: 4px; }

/* ==============================
   TOAST NOTIFICATIONS
   ============================== */
.toast-container {
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
@media (min-width: 769px) { .toast-container { bottom: 30px; } }
.toast {
  background: var(--dark);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.3s cubic-bezier(0.4,0,0.2,1);
  max-width: 320px;
  border-left: 4px solid var(--teal);
}
.toast.success { border-left-color: #10b981; }
.toast.error { border-left-color: #ef4444; }
.toast.warning { border-left-color: var(--amber); }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(30px); } }

/* ==============================
   SEARCH OVERLAY
   ============================== */
.search-results-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 3000;
  padding: 80px 20px 20px;
  backdrop-filter: blur(6px);
}
.search-results-overlay.open { display: block; }
.search-results-box {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  max-width: 680px;
  margin: 0 auto;
  max-height: 70vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--teal);
  color: #fff;
}
.search-header button {
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  width: 28px; height: 28px;
  border-radius: 50%;
  font-size: 13px;
  transition: background var(--transition);
}
.search-header button:hover { background: rgba(255,255,255,0.35); }
.search-results-list { overflow-y: auto; padding: 12px; }
.search-result-item {
  padding: 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
  border-bottom: 1px solid var(--border);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--ash); }
.search-result-item strong { display: block; font-size: 14px; margin-bottom: 4px; }
.search-result-item span { font-size: 12px; color: var(--muted); }


/* ==============================
   DYNAMIC WEATHER WIDGET
   ============================== */
.wx-current {
  padding: 16px;
  border-bottom: 1px solid var(--border);
}
.wx-main {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.wx-icon { font-size: 3rem; line-height: 1; }
.wx-temp {
  font-size: 2rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  font-family: 'DM Mono', monospace;
}
.wx-desc { font-size: 13px; font-weight: 500; color: var(--text); margin-top: 4px; }
.wx-details {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}
.wx-detail-item {
  background: var(--ash);
  border-radius: var(--radius-sm);
  padding: 8px 6px;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wx-detail-item span { font-size: 12px; font-weight: 600; color: var(--text); }
.wx-detail-item small { font-size: 10px; }
.wx-forecast { padding: 8px 16px; }
.wx-forecast-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.wx-forecast-row:last-child { border-bottom: none; }
.wx-day { font-weight: 600; width: 36px; color: var(--text); }
.wx-fc-icon { font-size: 1.1rem; }
.wx-rain { font-size: 12px; color: #3b82f6; width: 48px; text-align: center; }
.wx-range { font-size: 12px; color: var(--muted); font-family: 'DM Mono', monospace; }
.wx-footer {
  padding: 8px 16px 12px;
  font-size: 10px;
  color: var(--muted);
  text-align: center;
}

/* ==============================
   USER AUTH STATE UI
   ============================== */
.user-avatar-nav {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  border: 2px solid rgba(255,255,255,0.3);
  transition: transform var(--transition);
  overflow: hidden;
}
.user-avatar-nav:hover { transform: scale(1.1); }
.user-menu {
  position: relative;
}
.user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  overflow: hidden;
  z-index: 100;
}
.user-dropdown.open { display: block; }
.user-dropdown-header {
  padding: 16px;
  background: var(--teal-light);
  border-bottom: 1px solid var(--border);
}
.user-dropdown-header strong { display: block; font-size: 14px; color: var(--teal); }
.user-dropdown-header span { font-size: 12px; color: var(--muted); }
.user-dropdown a, .user-dropdown button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: 13px;
  color: var(--text);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition);
  border-bottom: 1px solid var(--border);
}
.user-dropdown a:last-child, .user-dropdown button:last-child { border-bottom: none; }
.user-dropdown a:hover, .user-dropdown button:hover { background: var(--ash); }
.user-dropdown .signout { color: #ef4444; }

/* ==============================
   PAYMENT INFO SECTION (in modal)
   ============================== */
.payment-info {
  background: var(--amber-light);
  border: 1.5px solid var(--amber);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin: 16px 0;
}
.payment-info h4 { color: var(--amber); font-size: 14px; margin-bottom: 8px; }
.payment-info p { font-size: 13px; color: var(--dark); line-height: 1.6; }
.payment-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.payment-method {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
}
.payment-method:hover { border-color: var(--amber); }
.payment-method span { display: block; font-size: 20px; margin-bottom: 4px; }

/* ==============================
   PENDING BADGE
   ============================== */
.pending-badge {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
  border-radius: var(--radius);
  padding: 16px;
  font-size: 13px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 10px;
}

.pending-badge strong { 
  display: block; 
  margin-bottom: 4px; 
}

/* ==============================
   REPORT BUTTON
   ============================== */
.btn-report {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
  margin-left: auto;
  transition: color var(--transition);
}
.btn-report:hover { color: #ef4444; }

/* ==============================
   LATEST NEWS BIG CARD
   ============================== */
.latest-news-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  margin-bottom: 28px;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.latest-news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.latest-news-img {
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, var(--teal), var(--dark));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  min-height: 160px;
}
.latest-news-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.latest-news-img:hover img {
  transform: scale(1.03);
}
.latest-news-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,76,83,0.45) 0%, transparent 60%);
}
.latest-emoji { font-size: 5rem; }
.latest-news-body { padding: 20px 24px 24px; }
.latest-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--teal-light); color: var(--teal);
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  padding: 4px 12px; border-radius: 50px;
  text-transform: uppercase; margin-bottom: 12px;
}
.latest-badge.breaking { background: #ef4444; color: #fff; }
.latest-news-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  font-weight: 900; line-height: 1.25;
  margin-bottom: 10px;
}
.latest-news-desc {
  font-size: 14px; color: var(--muted);
  line-height: 1.65; margin-bottom: 16px;
}
.latest-news-footer {
  display: flex; align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 12px; margin-bottom: 16px;
}
.latest-news-meta { font-size: 12px; color: var(--muted); }
.latest-news-actions { display: flex; gap: 8px; }
.latest-news-actions button {
  background: none; border: none;
  color: var(--muted); font-size: 13px;
  padding: 3px 8px; border-radius: 6px;
  transition: var(--transition);
}
.latest-news-actions button:hover { background: var(--ash); color: var(--teal); }
.latest-read-btn {
  background: var(--teal); color: #fff; border: none;
  padding: 11px 24px; border-radius: 50px;
  font-size: 14px; font-weight: 600;
  transition: var(--transition); width: 100%;
}
.latest-read-btn:hover { background: #0d5f68; transform: translateY(-1px); }


/* ==============================
   URGENT AD STYLE
   ============================== */
.urgent-post {
  border: 2px solid var(--amber) !important;
  position: relative;
}
.urgent-post::before {
  content: '🔴 URGENT';
  position: absolute;
  top: -10px;
  left: 12px;
  background: var(--amber);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 10px;
  border-radius: 50px;
}


/* LAYO NA KAYKO KAPOY NA BASA DIRI NALANG NAKO ILISAN HAHAHAHHAHA*/
#brandName { color: #fff ;}

/* Sidebar Ad */
.sidebar-ad-widget {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  position: relative;
}
.sidebar-ad-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.sidebar-ad-content img {
  flex: 1;
  min-height: 0;
  width: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}



@keyframes flash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ==============================
   PAGE-LEVEL SKELETON LOADER
   ============================== */
.page-skeleton {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: var(--ash);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.page-skeleton.fade-out { opacity: 0; visibility: hidden; pointer-events: none; }

.skel-ticker { height: var(--ticker-h); background: var(--dark); flex-shrink: 0; }
.skel-navbar {
  height: var(--nav-h); background: var(--teal); flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between; padding: 0 20px;
}
.skel-brand { display: flex; align-items: center; gap: 10px; }
.skel-logo-dot { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.15); }
.skel-brand-lines { display: flex; flex-direction: column; gap: 6px; }
.skel-brand-lines .skel-shimmer { background-color: rgba(255,255,255,0.12) !important; }
.skel-nav-right { display: flex; align-items: center; gap: 10px; }
.skel-search { width: 180px; height: 30px; border-radius: 50px; background-color: rgba(255,255,255,0.12) !important; display: none; }
@media (min-width: 900px) { .skel-search { display: block; } }
.skel-pill { width: 80px; height: 30px; border-radius: 50px; background-color: rgba(255,255,255,0.18) !important; }

.skel-content { max-width: 1280px; width: 100%; margin: 0 auto; padding: 20px 16px; flex: 1; overflow: hidden; }

.skel-shimmer {
  display: block;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--border) 25%, #e9ecef 50%, var(--border) 75%);
  background-size: 200%;
  animation: shimmer 1.5s infinite;
}
.skel-hero { height: 220px; border-radius: var(--radius-lg); margin-bottom: 20px; }

.skel-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 900px) { .skel-grid { grid-template-columns: 1fr 320px; } }

.skel-latest-img { height: 260px; border-radius: var(--radius) var(--radius) 0 0; }
.skel-latest-body {
  background: var(--card-bg); border: 1px solid var(--border); border-top: none;
  border-radius: 0 0 var(--radius) var(--radius); padding: 20px 24px;
  display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px;
}
.skel-line-sm { height: 14px; }
.skel-line-lg { height: 26px; }

.skel-news-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 16px; }
.skel-news-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.skel-news-img { height: 130px; border-radius: var(--radius-sm); }

.skel-sidebar { display: flex; flex-direction: column; gap: 16px; }
.skel-widget { height: 160px; border-radius: var(--radius); background: var(--card-bg); border: 1px solid var(--border); position: relative; overflow: hidden; }
.skel-widget::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 36px; background: var(--teal); opacity: 0.15; }
@media (max-width: 899px) { .skel-sidebar { display: none; } }

body.dark-mode .skel-shimmer {
  background: linear-gradient(90deg, #1a2d38 25%, #223344 50%, #1a2d38 75%);
  background-size: 200%;
}


/*   
    Scrolling background
*/

/* Lock background scroll whenever any modal is open */
html:has(.modal-overlay.open),
body:has(.modal-overlay.open) {
  overflow: hidden;
}

/* Prevent background rubber-banding on touch devices when tapping the backdrop */
.modal-overlay { touch-action: none; }

/* But still allow normal scrolling inside the modal content itself */
.modal-box { touch-action: pan-y; }


.article-inline-ad {
  position: relative;
  margin: 28px 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  background: var(--ash);
  transition: var(--transition);
}
.article-inline-ad:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.inline-ad-label {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--amber);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 50px;
  z-index: 2;
}
.inline-ad-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.inline-ad-text { display: flex; gap: 14px; align-items: center; padding: 18px; }
.inline-ad-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; flex-shrink: 0;
}
.inline-ad-text h4 { font-family: 'Playfair Display', serif; font-size: 15px; margin-bottom: 4px; }
.inline-ad-text p {
  font-size: 13px; color: var(--muted); margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.inline-ad-cta { font-size: 12px; font-weight: 700; color: var(--teal); }

@media (max-width: 420px) {
  .inline-ad-text { flex-direction: column; align-items: flex-start; }
}

body.dark-mode .article-inline-ad { background: #1a2e3a; border-color: #3d6070; }
body.dark-mode .inline-ad-text h4 { color: #e8f0f3; }


/* ==============================
   RESPONSIVE UTILITIES
   ============================== */
@media (max-width: 600px) {
  .nav-center { display: none; }
  .hero-slide { min-height: 200px; }
  .ad-banner-content { flex-direction: column; }
  .modal-box { padding: 20px; }
  .article-full-img { width: calc(100% + 40px); margin: -20px -20px 20px; }
}

/* ==============================
   PRINT STYLES
   ============================== */
@media print {
  .navbar, .ticker-wrap, .fab-desktop, .mobile-bottom-nav, .modal-overlay, .toast-container { display: none; }
  body { padding-top: 0; }
}
