/* ============================================
   TheFoundora — Premium Business Magazine
   Palette: #1A2B3C (navy), #B22222 (crimson),
            #F8F9FA (off-white), #333333 (slate gray)
   Fonts: Playfair Display (headlines), Inter (body)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&display=swap');

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1a1a2e;
  background: #f7f5f0;
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { color: #16213e; text-decoration: none; transition: all 0.3s ease; }
a:hover { color: #c9a227; }

/* --- Top Bar (date + ticker) --- */
.top-bar {
  background: linear-gradient(135deg, #0a0f1a 0%, #16213e 100%);
  color: rgba(255,255,255,0.6);
  font-size: 0.72rem;
  padding: 0.4rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(201,162,39,0.3);
}
.top-bar a { color: rgba(255,255,255,0.7); font-weight: 500; }
.top-bar a:hover { color: #c9a227; }

/* --- Main Navbar --- */
.site-navbar {
  background: linear-gradient(180deg, #0a0f1a 0%, #121829 100%);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  border-bottom: 2px solid #c9a227;
  overflow: visible;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 1;
  min-width: 0;
}

.nav-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-brand:hover { color: #c9a227; }
.nav-brand .accent { color: #c9a227; font-style: italic; text-transform: none; }

.nav-links { display: flex; gap: 0; align-items: center; flex-wrap: nowrap; }
.nav-links > span { display: contents; }
.nav-links a {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  padding: 0.5rem 0.55rem;
  border-radius: 0;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  position: relative;
  white-space: nowrap;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #c9a227;
  transition: width 0.3s ease;
}
.nav-links a:hover {
  color: #fff;
  background: transparent;
}
.nav-links a:hover::after {
  width: 80%;
}

/* --- Admin Dropdown --- */
.nav-dropdown {
  position: relative;
  display: inline-block;
}
.nav-dropdown-toggle {
  cursor: pointer;
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #121829;
  border: 1px solid rgba(201,162,39,0.15);
  border-radius: 6px;
  min-width: 180px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 1000;
  padding: 0.4rem 0;
}
.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}
.nav-dropdown-menu a {
  display: block;
  padding: 0.55rem 1rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
}
.nav-dropdown-menu a::after { display: none; }
.nav-dropdown-menu a:hover {
  background: rgba(201,162,39,0.1);
  color: #c9a227;
}
.nav-dropdown-menu a .fa {
  width: 18px;
  text-align: center;
  margin-right: 0.4rem;
  color: rgba(201,162,39,0.5);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  flex-shrink: 0;
}
.nav-right b { color: #c9a227; }
.nav-right a { color: rgba(255,255,255,0.6); }
.nav-right a:hover { color: #c9a227; }

.nav-right .btn-logout {
  color: #c9a227;
  font-weight: 600;
  font-size: 0.78rem;
  border: 1px solid rgba(201,162,39,0.4);
  padding: 0.25rem 0.75rem;
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-right .btn-logout:hover { background: #c9a227; color: #0a0f1a; }

/* --- Container --- */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2rem;
  min-height: calc(100vh - 70px - 80px - 36px);
}

/* --- Notification Messages --- */
ul#messages {
  list-style: none;
  padding: 0;
  margin: 0;
}
ul#messages:empty {
  display: none;
}
ul#messages:not(:empty) {
  margin: 0 0 2rem 0;
}
ul#messages li {
  display: block;
  max-width: 700px;
  margin: 0.5rem auto;
  text-align: center;
  padding: 0.85rem 1.25rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
}
ul#messages li.info {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
  border-left: 4px solid #10b981;
}
ul#messages li.error {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #991b1b;
  border-left: 4px solid #dc2626;
}

/* --- Section Headers --- */
.section-label {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: #c9a227;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid #c9a227;
  display: inline-block;
}

/* --- Home Page Layout --- */
.home-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .home-layout { grid-template-columns: 1fr; }
}

/* --- Hero Article (first post on home) --- */
.hero-article {
  background: #fff;
  border-radius: 8px;
  margin-bottom: 2rem;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
  position: relative;
}
.hero-article::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #c9a227, #e8d5a3, #c9a227);
}
.hero-article .hero-body {
  padding: 2rem 2.25rem;
}
.hero-article .post-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0.5rem 0 0.75rem 0;
}
.hero-article .post-title a { color: #0a0f1a; }
.hero-article .post-title a:hover { color: #c9a227; }
.hero-article .post-body {
  font-size: 0.95rem;
  color: #555;
  max-height: 100px;
  overflow: hidden;
  line-height: 1.7;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* --- News Cards (grid articles) --- */
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 600px) {
  .news-grid { grid-template-columns: 1fr; }
}

.news-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.35rem 1.5rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  position: relative;
}
.news-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #c9a227, #e8d5a3);
  border-radius: 8px 8px 0 0;
  opacity: 0;
  transition: opacity 0.3s;
}
.news-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.news-card:hover::before { opacity: 1; }
.news-card .post-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.4rem 0;
}
.news-card .post-title a { color: #0a0f1a; }
.news-card .post-title a:hover { color: #c9a227; }

.post-meta {
  font-size: 0.72rem;
  color: #999;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.news-card .post-body {
  max-height: 60px;
  overflow: hidden;
  font-size: 0.85rem;
  color: #666;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.read-more {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #c9a227;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
}
.read-more:hover { color: #a88520; letter-spacing: 1.5px; }

/* --- Sidebar --- */
.sidebar {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
}
.sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0a0f1a, #16213e, #c9a227);
}

.sidebar h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #c9a227;
  margin: 0.25rem 0 1rem 0;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #eee;
}

.sidebar .sidebar-item {
  display: flex;
  padding: 0.7rem 0;
  border-bottom: 1px solid #f5f5f5;
  align-items: flex-start;
}
.sidebar .sidebar-item:last-child { border-bottom: none; }

.sidebar .sidebar-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #c9a227;
  min-width: 2.25rem;
  line-height: 1;
  margin-right: 0.75rem;
  margin-top: 2px;
  opacity: 0.7;
}

.sidebar .sidebar-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a1a2e;
  line-height: 1.35;
}
.sidebar .sidebar-link:hover { color: #c9a227; }

/* --- Post View (single article) --- */
.post-view {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  padding: 3rem 3.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  position: relative;
}
.post-view::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #c9a227, #e8d5a3, #c9a227);
  border-radius: 8px 8px 0 0;
}

.post-view .post-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0.5rem 0 0.75rem 0;
  color: #0a0f1a;
}

.post-view .post-meta {
  font-size: 0.8rem;
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #eee;
}

.post-view .post-body {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #333;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* --- Responsive Images --- */
.post-body img,
.news-card img,
.hero-article img,
article img,
main img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem 0;
  border-radius: 6px;
}

/* --- Form Cards --- */
.form-card {
  max-width: 480px;
  margin: 3rem auto;
  background: #fff;
  border-radius: 12px;
  padding: 2.5rem 3rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
}
.form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0a0f1a, #c9a227, #0a0f1a);
}

.form-card h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0.25rem 0 1.75rem 0;
  color: #0a0f1a;
  text-align: center;
}

.form-card label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-card .form-control {
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  transition: all 0.3s;
  background: #fafafa;
}
.form-card .form-control:focus {
  border-color: #c9a227;
  box-shadow: 0 0 0 3px rgba(201,162,39,0.15);
  background: #fff;
}

/* --- Buttons --- */
.btn-primary {
  background: linear-gradient(135deg, #c9a227 0%, #a88520 100%);
  border-color: #c9a227;
  border-radius: 6px;
  font-weight: 600;
  padding: 0.6rem 1.75rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  color: #fff;
  box-shadow: 0 2px 8px rgba(201,162,39,0.25);
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(135deg, #a88520 0%, #8a6d1a 100%);
  border-color: #a88520;
  box-shadow: 0 4px 16px rgba(201,162,39,0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
}

.btn-danger {
  border-radius: 6px;
  font-weight: 600;
}

/* --- Tables --- */
.clean-table {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  overflow: hidden;
  position: relative;
}
.clean-table::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0a0f1a, #c9a227);
}

.clean-table .table { margin-bottom: 0; }

.clean-table .table thead th {
  border-top: none;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #0a0f1a;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid #eee;
}

.clean-table .table td {
  vertical-align: middle;
  font-size: 0.88rem;
  padding: 0.8rem;
  border-color: #f5f5f5;
}

/* --- Pagination --- */
.pagination .page-link {
  border-radius: 6px;
  margin: 0 2px;
  font-size: 0.8rem;
  color: #16213e;
  border-color: #e0e0e0;
  transition: all 0.2s;
}
.pagination .page-link:hover {
  background: #f7f5f0;
  color: #c9a227;
}
.pagination .page-item.active .page-link {
  background: linear-gradient(135deg, #0a0f1a, #16213e);
  border-color: #0a0f1a;
}

/* --- Search Bar --- */
.search-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.search-bar .form-control {
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  max-width: 350px;
}

/* --- Footer --- */
.site-footer {
  background: linear-gradient(135deg, #0a0f1a 0%, #16213e 100%);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 2rem 2.5rem;
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-top: 2px solid #c9a227;
}
.site-footer a { color: rgba(255,255,255,0.5); }
.site-footer a:hover { color: #c9a227; }
.site-footer .footer-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  color: #c9a227;
  display: block;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

/* --- Error Pages --- */
.error-page {
  text-align: center;
  padding: 4rem 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  max-width: 500px;
  margin: 3rem auto;
  position: relative;
}
.error-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #c9a227, #e8d5a3, #c9a227);
  border-radius: 12px 12px 0 0;
}
.error-page img {
  max-width: 250px;
  margin-bottom: 1.5rem;
  opacity: 0.85;
}
.error-page h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #0a0f1a;
}

/* --- Form validation --- */
.formError {
  color: #dc2626;
  font-style: italic;
  font-size: 0.82rem;
}

/* --- Summernote fix --- */
.form-card .note-editor {
  border-radius: 6px;
  border-color: #e0e0e0;
}

/* --- Page title --- */
.page-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: #0a0f1a;
  padding-bottom: 0.6rem;
  border-bottom: 3px solid #c9a227;
  display: inline-block;
}

/* --- Breaking / Latest label --- */
.breaking-label {
  background: linear-gradient(135deg, #0a0f1a, #16213e);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 0.25rem 0.75rem;
  display: inline-block;
  margin-bottom: 0.5rem;
  border-radius: 3px;
}
.breaking-label.gold {
  background: linear-gradient(135deg, #c9a227, #a88520);
}

/* --- Nav search (extracted inline styles) --- */
.nav-search-input {
  padding: 5px 10px;
  font-size: 0.75rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  width: 140px;
  max-width: 140px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  transition: all 0.3s;
}
.nav-search-input::placeholder { color: rgba(255,255,255,0.4); }
.nav-search-input:focus {
  background: rgba(255,255,255,0.12);
  border-color: #c9a227;
  outline: none;
}
.nav-search-btn {
  background: #c9a227;
  border: none;
  color: #0a0f1a;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.2s;
}
.nav-search-btn:hover { background: #e8d5a3; }

/* --- Hamburger Button --- */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #c9a227;
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

/* --- Tablet & below (< 900px) --- */
@media (max-width: 900px) {
  .top-bar {
    font-size: 0.65rem;
    padding: 0.3rem 1rem;
  }
  .site-navbar {
    padding: 0 1rem;
    flex-wrap: wrap;
    height: auto;
    min-height: 56px;
  }
  .nav-left {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    min-height: 56px;
  }
  .hamburger {
    display: flex;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 0.5rem 0 0.75rem;
    gap: 0;
    order: 3;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 0.65rem 0.75rem;
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(201,162,39,0.1);
  }
  .nav-links a::after { display: none; }
  .nav-links span { display: contents; }
  .nav-dropdown { display: block; width: 100%; }
  .nav-dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding-left: 1rem;
    background: rgba(201,162,39,0.05);
  }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-right {
    position: absolute;
    right: 1rem;
    top: 12px;
  }
  .nav-search-input {
    width: 100px;
  }
  .page-container {
    padding: 1.25rem;
  }
  .post-view {
    padding: 1.75rem 1.5rem;
  }
  .form-card {
    padding: 1.75rem 1.5rem;
    margin: 1.5rem auto;
  }
}

/* --- Phone (< 600px) --- */
@media (max-width: 600px) {
  .top-bar {
    flex-direction: column;
    gap: 0.2rem;
    text-align: center;
    padding: 0.4rem 0.75rem;
  }
  .site-navbar {
    padding: 0 0.75rem;
  }
  .nav-brand {
    font-size: 1.3rem;
  }
  .nav-right {
    position: static;
    width: 100%;
    padding: 0.5rem 0;
    order: 2;
  }
  .nav-right form {
    width: 100%;
  }
  .nav-search-input {
    flex: 1;
    width: auto !important;
  }
  .page-container {
    padding: 0.75rem;
  }
  .hero-article .hero-body {
    padding: 1.25rem;
  }
  .hero-article .post-title {
    font-size: 1.4rem;
  }
  .news-card {
    padding: 1rem 1.25rem;
  }
  .post-view {
    padding: 1.5rem 1.25rem;
  }
  .post-view .post-title {
    font-size: 1.6rem;
  }
  .post-view .post-body {
    font-size: 0.95rem;
  }
  .form-card {
    padding: 1.5rem 1.25rem;
  }
  .clean-table {
    padding: 0.75rem;
    overflow-x: auto;
  }
  .clean-table .table td,
  .clean-table .table th {
    font-size: 0.75rem;
    padding: 0.5rem;
  }
  .page-title {
    font-size: 1.3rem;
  }
  .sidebar {
    padding: 1.25rem;
  }
}

/* ============================================
   MAGAZINE-SPECIFIC STYLES
   ============================================ */

/* --- Magazine Card --- */
.magazine-card {
  text-align: center;
  padding: 1.75rem 1.25rem;
}
.magazine-cover-thumb {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin: 0 auto 1.25rem;
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}
.magazine-card:hover .magazine-cover-thumb {
  transform: scale(1.03);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

/* --- Magazine Detail Page --- */
.magazine-detail {
  display: flex;
  gap: 3rem;
  background: #fff;
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  position: relative;
}
.magazine-detail::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #c9a227, #e8d5a3, #c9a227);
  border-radius: 8px 8px 0 0;
}
.magazine-detail-cover {
  flex: 0 0 300px;
}
.magazine-cover-img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.2);
}
.magazine-cover-placeholder {
  width: 300px;
  height: 400px;
  background: linear-gradient(135deg, #f7f5f0, #eee);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}
.magazine-detail-info {
  flex: 1;
}
.magazine-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #0a0f1a;
  margin: 0.5rem 0 0.75rem 0;
  line-height: 1.2;
}
.magazine-description {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
}

/* --- Foundora Button --- */
.btn-foundora {
  display: inline-block;
  background: linear-gradient(135deg, #c9a227 0%, #a88520 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: 2px solid #c9a227;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px rgba(201,162,39,0.3);
}
.btn-foundora:hover {
  background: linear-gradient(135deg, #a88520 0%, #8a6d1a 100%);
  border-color: #a88520;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(201,162,39,0.4);
}
.btn-foundora.btn-outline {
  background: transparent;
  color: #c9a227;
  box-shadow: none;
}
.btn-foundora.btn-outline:hover {
  background: linear-gradient(135deg, #c9a227, #a88520);
  color: #fff;
}

/* --- Premium Notice --- */
.premium-notice {
  background: linear-gradient(135deg, #faf8f0 0%, #f5f0e0 100%);
  border: 1px solid #e8d5a3;
  border-left: 4px solid #c9a227;
  padding: 1.5rem 1.75rem;
  border-radius: 8px;
}
.premium-notice strong {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  color: #0a0f1a;
}
.premium-notice p {
  font-size: 0.88rem;
  color: #666;
  margin: 0.5rem 0 1.25rem;
}

/* --- Admin Table --- */
.admin-table {
  width: 100%;
  background: #fff;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.admin-table th {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #0a0f1a;
  padding: 0.85rem;
  border-bottom: 2px solid #eee;
  background: #faf8f0;
}
.admin-table td {
  padding: 0.85rem;
  border-bottom: 1px solid #f5f5f5;
  font-size: 0.88rem;
  vertical-align: middle;
}

/* --- Admin Form Card --- */
.admin-form-card {
  background: #fff;
  border-radius: 8px;
  padding: 2rem 2.25rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  position: relative;
}
.admin-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #c9a227, #e8d5a3);
  border-radius: 8px 8px 0 0;
}
.admin-form-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0.25rem 0 1.5rem 0;
  color: #0a0f1a;
}

/* --- Pagination Bar --- */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2.5rem;
  font-size: 0.85rem;
}
.pagination-bar a {
  color: #16213e;
  font-weight: 600;
  transition: color 0.2s;
}
.pagination-bar a:hover {
  color: #c9a227;
}

/* --- Magazine responsive --- */
@media (max-width: 768px) {
  .magazine-detail {
    flex-direction: column;
    padding: 1.75rem;
  }
  .magazine-detail-cover {
    flex: 0 0 auto;
    text-align: center;
  }
  .magazine-cover-img {
    max-width: 250px;
  }
  .magazine-title {
    font-size: 1.6rem;
  }
}

/* ============================================
   ADDITIONAL PREMIUM EFFECTS
   ============================================ */

/* Divider ornament */
.foundora-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
}
.foundora-divider::before,
.foundora-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c9a227, transparent);
}
.foundora-divider span {
  color: #c9a227;
  font-size: 1.2rem;
}

/* Gold accent underline for inline headers */
.gold-underline {
  position: relative;
  display: inline-block;
}
.gold-underline::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 50px;
  height: 3px;
  background: #c9a227;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection color */
::selection {
  background: rgba(201, 162, 39, 0.2);
  color: #0a0f1a;
}

/* ============================================
   HOMEPAGE — TheFoundora Sections
   ============================================ */

/* --- Hero Banner --- */
.hero-banner {
  background: linear-gradient(135deg, #0d1b2a 0%, #16213e 50%, #1a1a2e 100%);
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(201,162,39,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-banner-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.hero-banner-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}
.hero-banner-title span { color: #c9a227; }
.hero-banner-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  font-weight: 400;
  margin-bottom: 2rem;
  line-height: 1.6;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat-num {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: #c9a227;
}
.hero-stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
}

/* --- Section Full-width (break out of page-container) --- */
.section-full {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}
.hero-banner {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}
.section-container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section-heading-center {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-heading-center h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: #0a0f1a;
  margin-bottom: 0.5rem;
}
.section-heading-center p {
  font-size: 0.92rem;
  color: #888;
  max-width: 550px;
  margin: 0 auto;
}

/* --- Publications Shelf (Cover-dominant) --- */
.publications-shelf {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.pub-cover-card {
  flex: 0 0 auto;
  width: 240px;
}
.pub-cover-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.pub-cover-image {
  position: relative;
  width: 240px;
  height: 340px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2), 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}
.pub-cover-card:hover .pub-cover-image {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 8px 20px rgba(0,0,0,0.15);
}
.pub-cover-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pub-cover-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #0d1b2a 0%, #1d3557 60%, #16213e 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  text-align: center;
}
.pub-cover-placeholder .fa-book {
  font-size: 3.5rem;
  color: #c9a227;
}
.pub-placeholder-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
}
.pub-cover-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1rem 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.pub-cover-card:hover .pub-cover-overlay { opacity: 1; }
.pub-cover-read {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #c9a227;
  background: rgba(0,0,0,0.5);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(201,162,39,0.4);
}
.pub-cover-info {
  text-align: center;
  margin-top: 0.75rem;
}
.pub-cover-date {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #888;
}

/* --- Hall of Fame --- */
.hall-of-fame-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}
.hof-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}
.hof-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
.hof-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #c9a227;
  background: rgba(201,162,39,0.1);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}
.hof-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.hof-card h3 a { color: #0a0f1a; }
.hof-card h3 a:hover { color: #c9a227; }
.hof-excerpt {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.7;
  max-height: 80px;
  overflow: hidden;
  margin: 0.75rem 0;
}

/* --- Articles Grid (dark + light) --- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.article-card-dark {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 1.5rem;
  transition: transform 0.3s, background 0.3s;
}
.article-card-dark:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.08);
}
.article-card-dark h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0.5rem 0;
  line-height: 1.4;
}
.article-card-dark h3 a { color: #fff; }
.article-card-dark h3 a:hover { color: #c9a227; }
.article-card-body {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  max-height: 60px;
  overflow: hidden;
  margin: 0.5rem 0;
}
.article-card-light {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}
.article-card-light:hover { transform: translateY(-3px); }
.article-card-light h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.article-card-light h3 a { color: #0a0f1a; }
.article-card-light h3 a:hover { color: #c9a227; }

/* --- Thought Leadership --- */
.thought-leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.tl-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
  border-left: 4px solid #c9a227;
  transition: transform 0.3s;
}
.tl-card:hover { transform: translateY(-3px); }
.tl-likes {
  font-size: 0.78rem;
  font-weight: 600;
  color: #888;
  margin-bottom: 0.5rem;
}
.tl-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.tl-card h3 a { color: #0a0f1a; }
.tl-card h3 a:hover { color: #c9a227; }

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.testimonial-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 1.75rem;
  transition: transform 0.3s;
}
.testimonial-card:hover { transform: translateY(-3px); }
.testimonial-card p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.25rem;
}
.testimonial-author {
  display: flex;
  flex-direction: column;
}
.testimonial-author strong {
  color: #c9a227;
  font-size: 0.88rem;
}
.testimonial-author span {
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
}

/* --- Hero Featured Article --- */
.hero-featured-section {
  background: #0d1b2a;
  padding: 0;
}
.hero-featured {
  display: flex;
  min-height: 480px;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-featured-img {
  flex: 0 0 50%;
  position: relative;
  overflow: hidden;
}
.hero-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-featured-content {
  flex: 1;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-featured-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #c9a227;
  margin-bottom: 1rem;
}
.hero-featured-content h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.75rem;
}
.hero-featured-content h1 a {
  color: #fff;
  text-decoration: none;
}
.hero-featured-content h1 a:hover {
  color: #c9a227;
}
.hero-featured-excerpt {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-height: 5.1em;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-featured-excerpt * {
  color: #fff !important;
}
.hero-featured-excerpt img {
  display: none;
}

/* --- Article Image Cards --- */
.articles-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}
.article-img-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}
.article-img-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.article-img-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.article-img-thumb {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #e8e4dc;
}
.article-img-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.article-img-card:hover .article-img-thumb img {
  transform: scale(1.06);
}
.article-img-info {
  padding: 1.25rem 1.5rem;
}
.article-img-cat {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #c9a227;
  margin-bottom: 0.5rem;
}
.article-img-info h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0a0f1a;
  margin: 0 0 0.5rem;
  line-height: 1.35;
}

/* --- Contributors Grid --- */
.contributors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.5rem;
}
.contributor-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 3/4;
  display: block;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}
.contributor-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.contributor-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.contributor-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 0.75rem 0.75rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  display: flex;
  flex-direction: column;
}
.contributor-overlay strong {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}
.contributor-overlay span {
  color: #c9a227;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Testimonials Light --- */
.testimonials-grid-light {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.testimonial-card-light {
  background: #fff;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  border-left: 4px solid #c9a227;
}
.testimonial-card-light p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  font-style: italic;
  color: #333;
  line-height: 1.7;
  margin: 0 0 1rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero-featured { flex-direction: column; min-height: auto; }
  .hero-featured-img { flex: none; height: 280px; }
  .hero-featured-content { padding: 2rem 1.5rem; }
  .hero-featured-content h1 { font-size: 1.5rem; }
  .hero-banner { padding: 2.5rem 1rem; }
  .hero-banner-title { font-size: 2.2rem; }
  .hero-stats { gap: 1.5rem; }
  .hero-stat-num { font-size: 1.5rem; }
  .publications-shelf { gap: 1.5rem; }
  .pub-cover-card { width: 180px; }
  .pub-cover-image { width: 180px; height: 260px; }
  .articles-image-grid { grid-template-columns: 1fr; }
  .contributors-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonials-grid-light { grid-template-columns: 1fr; }
  .hall-of-fame-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .thought-leadership-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ============================================
   POST VIEW — extracted inline styles
   ============================================ */
.post-category-bar { display:flex; gap:0.5rem; align-items:center; flex-wrap:wrap; margin-bottom:0.5rem; }
.post-meta-bar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; padding-bottom:1.25rem; border-bottom:1px solid #eee; }
.post-actions { display:flex; gap:0.75rem; align-items:center; }
.post-action-btn { background:none; border:none; cursor:pointer; padding:0; }
.post-action-btn.crimson { color:#B22222; }
.post-action-btn.navy { color:#1A2B3C; }
.post-stat { font-size:0.8rem; color:#888; }
.inline-form { display:inline; }

/* Share buttons */
.share-bar { margin-top:1.5rem; padding:1rem 0; border-top:1px solid #eee; display:flex; gap:0.75rem; align-items:center; flex-wrap:wrap; }
.share-label { font-size:0.78rem; font-weight:600; color:#888; text-transform:uppercase; letter-spacing:1px; }
.share-btn { color:#fff; padding:0.35rem 0.85rem; border-radius:20px; font-size:0.72rem; text-decoration:none; display:inline-block; }
.share-btn.twitter { background:#1DA1F2; }
.share-btn.linkedin { background:#0077B5; }
.share-btn.facebook { background:#4267B2; }
.share-btn.email { background:#333; }

/* Subscribe CTA */
.subscribe-cta { margin-top:2rem; padding:1.25rem; background:linear-gradient(135deg,#F0F2F4,#E8ECEF); border-left:4px solid #B22222; border-radius:6px; }
.subscribe-cta .btn-foundora { margin-left:0.75rem; padding:0.4rem 1.2rem; font-size:0.75rem; }
.icon-crimson { color:#B22222; }
.icon-success { color:#28a745; }

/* Admin panel */
.admin-panel { margin-top:1.25rem; padding:1.25rem; background:#f8f9fa; border-left:4px solid #263545; border-radius:6px; display:flex; gap:1rem; align-items:center; flex-wrap:wrap; }
.admin-panel .icon-admin { color:#263545; }
.admin-panel strong { color:#263545; }
.admin-inline-form { display:inline-flex; gap:4px; align-items:center; }
.admin-select { padding:5px 10px; font-size:0.8rem; border:1px solid #dee2e6; border-radius:6px; }
.btn-sm { padding:0.35rem 1rem; font-size:0.72rem; }

/* Comments section */
.comments-section { margin-top:2.5rem; padding-top:2rem; }
.comment-form-area { margin-bottom:1.5rem; }
.comment-textarea { font-size:0.9rem; border-radius:6px; margin-bottom:0.75rem; border:1px solid #e0e0e0; }
.btn-comment { padding:0.45rem 1.2rem; font-size:0.75rem; }
.login-prompt { margin-bottom:1.25rem; color:#888; font-size:0.85rem; }
.login-link { color:#B22222; font-weight:600; }
.comment-item { padding:1rem 0; border-bottom:1px solid #f0f0f0; }
.comment-header { display:flex; justify-content:space-between; align-items:center; }
.comment-author { font-size:0.85rem; color:#333333; }
.comment-date { font-size:0.72rem; color:#aaa; }
.comment-body { margin:0.4rem 0 0 0; font-size:0.9rem; color:#444; line-height:1.6; }
.reply-toggle-area { margin-top:0.4rem; }
.reply-link { font-size:0.75rem; color:#B22222; cursor:pointer; }
.reply-form { display:none; margin-top:0.5rem; }
.reply-textarea { font-size:0.85rem; border-radius:6px; margin-bottom:0.5rem; border:1px solid #e0e0e0; }
.btn-reply { padding:0.3rem 0.8rem; font-size:0.7rem; }
.replies-container { margin-left:1.5rem; border-left:2px solid #e0e0e0; padding-left:1rem; margin-top:0.5rem; }
.reply-item { padding:0.5rem 0; }
.reply-author { font-size:0.8rem; color:#555; }
.reply-date { font-size:0.68rem; color:#bbb; }
.reply-body { margin:0.3rem 0 0 0; font-size:0.85rem; color:#555; line-height:1.5; }
.no-comments { color:#aaa; font-size:0.88rem; padding:1.5rem 0; text-align:center; }

/* Related articles */
.related-section { margin-top:2.5rem; padding-top:2rem; border-top:2px solid #f0f0f0; }
.related-heading { font-family:'Playfair Display',serif; color:#1A2B3C; margin-bottom:1rem; }
.related-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:1rem; }
.related-card { background:#fff; border-radius:8px; box-shadow:0 2px 8px rgba(0,0,0,0.04); padding:1rem; }
.related-card a { text-decoration:none; color:#1A2B3C; }
.related-card h5 { font-family:'Playfair Display',serif; margin:0 0 0.4rem; font-size:0.9rem; }
.related-card-meta { font-size:0.72rem; color:#888; }

/* ============================================
   PROFILE PAGE — extracted inline styles
   ============================================ */
.profile-container { max-width:800px; margin:0 auto; }
.profile-card { background:#fff; border-radius:12px; box-shadow:0 2px 16px rgba(0,0,0,0.06); overflow:hidden; margin-bottom:2rem; }
.profile-banner { height:120px; background:linear-gradient(135deg,#1A2B3C,#2C4050); }
.profile-info { padding:0 2rem 2rem; position:relative; }
.profile-avatar { width:80px; height:80px; border-radius:50%; background:#B22222; color:#fff; display:flex; align-items:center; justify-content:center; font-size:2rem; font-weight:700; font-family:'Playfair Display',serif; margin-top:-40px; border:4px solid #fff; }
.profile-name { margin:1rem 0 0.25rem; font-family:'Playfair Display',serif; color:#1A2B3C; }
.profile-username { color:#888; font-size:0.85rem; }
.profile-badge { margin-left:0.5rem; font-size:0.65rem; padding:0.15rem 0.5rem; border-radius:20px; font-weight:700; }
.profile-badge.admin { background:#1A2B3C; color:#B22222; }
.profile-badge.author { background:#F0F2F4; color:#B22222; border:1px solid #D4A0A0; }
.profile-bio { margin-top:0.75rem; color:#555; font-size:0.9rem; }
.profile-stats { display:flex; gap:1.5rem; margin-top:1rem; font-size:0.85rem; color:#666; }
.profile-actions { margin-top:1rem; }
.profile-heading { font-family:'Playfair Display',serif; color:#1A2B3C; margin-bottom:1rem; }
.profile-empty { color:#888; font-size:0.9rem; }
.profile-article-card { background:#fff; border-radius:8px; box-shadow:0 2px 8px rgba(0,0,0,0.04); padding:1.25rem; margin-bottom:1rem; }
.profile-article-card a { text-decoration:none; color:#1A2B3C; }
.profile-article-card h4 { font-family:'Playfair Display',serif; margin:0 0 0.5rem; }
.profile-article-meta { font-size:0.78rem; color:#888; }
.profile-pagination { text-align:center; margin:1.5rem 0; }
.profile-page-info { color:#888; margin:0 1rem; }

/* ============================================
   DASHBOARD — extracted inline styles
   ============================================ */
.dash-subtitle { font-size:0.85rem; color:#888; margin-bottom:2rem; }
.dash-stats-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(180px,1fr)); gap:1rem; margin-bottom:2rem; }
.dash-stat-card { background:#fff; border-radius:10px; padding:1.25rem; box-shadow:0 2px 10px rgba(0,0,0,0.05); text-align:center; }
.dash-stat-value { font-size:2rem; font-weight:700; }
.dash-stat-value.navy { color:#1A2B3C; }
.dash-stat-value.crimson { color:#B22222; }
.dash-stat-label { font-size:0.78rem; color:#888; text-transform:uppercase; letter-spacing:1px; }
.dash-actions { display:flex; gap:0.75rem; flex-wrap:wrap; margin-bottom:2rem; }
.dash-actions .btn-foundora { padding:0.5rem 1.25rem; font-size:0.78rem; }
.dash-panel { background:#fff; border-radius:10px; padding:1.5rem; box-shadow:0 2px 10px rgba(0,0,0,0.05); margin-bottom:2rem; }
.dash-panel.narrow { max-width:600px; }
.dash-panel-title { font-family:'Playfair Display',serif; color:#1A2B3C; margin-bottom:1rem; }
.dash-form-group { margin-bottom:1rem; }
.dash-form-label { font-size:0.78rem; font-weight:600; color:#555; }
.dash-form-input { border-radius:6px; }
.dash-empty { color:#888; font-size:0.85rem; }
.dash-empty a { color:#B22222; }
.dash-table-link { color:#1A2B3C; font-weight:600; }
.dash-table-muted { color:#888; }
.status-badge { font-size:0.65rem; padding:0.15rem 0.5rem; border-radius:20px; }
.status-badge.published { background:#d4edda; color:#155724; }
.status-badge.pending { background:#fff3cd; color:#856404; }
.dash-edit-link { color:#B22222; font-size:0.8rem; }
.dash-bookmark-item { padding:0.5rem 0; border-bottom:1px solid #f0f0f0; }
.dash-bookmark-link { color:#1A2B3C; font-weight:600; font-size:0.85rem; }
.dash-bookmark-date { font-size:0.72rem; color:#888; margin-left:0.5rem; }
.dash-view-all { color:#B22222; font-size:0.8rem; }
.dash-view-all-wrap { margin-top:0.75rem; }

/* ============================================
   BOOKMARKS PAGE — extracted inline styles
   ============================================ */
.bookmarks-subtitle { font-size:0.85rem; color:#888; margin-bottom:2rem; }
.bookmarks-empty { text-align:center; padding:3rem 0; color:#888; }
.bookmarks-empty .fa { font-size:3rem; color:#ddd; }
.bookmarks-empty p { margin-top:1rem; }
.bookmarks-empty a { color:#B22222; }
.bookmarks-list { max-width:800px; margin:0 auto; }
.bookmark-card { background:#fff; border-radius:8px; box-shadow:0 2px 8px rgba(0,0,0,0.04); padding:1.25rem; margin-bottom:1rem; display:flex; justify-content:space-between; align-items:center; }
.bookmark-card a { text-decoration:none; color:#1A2B3C; }
.bookmark-card h4 { font-family:'Playfair Display',serif; margin:0 0 0.4rem; font-size:1rem; }
.bookmark-card-meta { font-size:0.78rem; color:#888; }
.bookmark-remove-btn { background:none; border:none; cursor:pointer; color:#B22222; font-size:1rem; }



/* --- Contributor avatar placeholder --- */
.contributor-avatar-placeholder {
  width: 100%;
  height: 100%;
  min-height: 180px;
  background: linear-gradient(135deg, #263545, #2C4050);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
  color: #B22222;
  font-family: 'Playfair Display', Georgia, serif;
}

.hero-placeholder { min-height: 300px; font-size: 5rem; }

/* --- Homepage Section Helpers --- */
.section-light { background: #F8F9FA; padding: 3.5rem 0; }
.section-default { padding: 3.5rem 0; }
.section-dark { background: #1A2B3C; padding: 3.5rem 0; }
.section-white { background: #fff; padding: 3rem 0; }
.section-compact { padding: 3rem 0; }
.section-cta { text-align: center; margin-top: 2.5rem; }
.section-heading-light { color: #fff; }
.section-heading-light h2 { color: #fff; }
.section-heading-light p { color: rgba(255,255,255,0.6); }
.hero-meta { color: rgba(255,255,255,0.5); margin-bottom: 1rem; }
.hero-banner-compact { padding: 3rem 2rem; }
.hero-banner-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 0.5rem;
}
.hero-banner-subtitle-spaced { margin-bottom: 1.5rem; }
.hero-banner-cta { margin-top: 1.5rem; }
.article-img-info-padded { padding: 1.25rem; }

/* --- Articles Listing Page --- */
.articles-filter-form {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.filter-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  display: block;
  margin-bottom: 0.3rem;
}
.filter-input {
  border-radius: 6px;
  font-size: 0.85rem;
  padding: 0.5rem 0.85rem;
  min-width: 200px;
}
.filter-select {
  border-radius: 6px;
  font-size: 0.85rem;
  padding: 0.5rem 0.85rem;
  min-width: 150px;
}
.filter-btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.75rem;
}
.active-filters {
  margin-bottom: 1.25rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.active-filters-label {
  font-size: 0.78rem;
  color: #888;
}
.filter-chip {
  font-size: 0.78rem;
  color: #fff;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
}
.filter-chip.navy { background: #263545; }
.filter-chip.crimson { background: #B22222; }
.articles-table-wrap {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.articles-table { margin: 0; }
.articles-thead-row { background: #F0F2F4; }
.col-header {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #333;
}
.articles-row { transition: background 0.2s; }
.articles-row:hover { background: #F0F2F4; }
.article-title-link { font-weight: 600; color: #333; }
.article-preview-cell {
  max-width: 280px;
  text-align: center;
  vertical-align: middle;
}
.article-preview-thumb {
  max-width: 200px;
  max-height: 80px;
  object-fit: cover;
  border-radius: 4px;
}
.article-preview-noimg {
  color: #aaa;
  font-size: 0.85rem;
}
.category-chip {
  font-size: 0.72rem;
  background: #263545;
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-weight: 600;
}
.no-category { color: #ccc; font-size: 0.8rem; }
.article-date { white-space: nowrap; font-size: 0.85rem; color: #888; }
.article-author { font-size: 0.85rem; }
.article-actions { white-space: nowrap; }
.action-edit { color: #B22222; }
.action-delete { color: #dc3545; }
.delete-modal-content { border-radius: 12px; overflow: hidden; }
.delete-modal-header { background: #263545; color: #fff; }
.delete-modal-title { font-family: 'Playfair Display', serif; }
.delete-modal-close { color: #fff; }
.btn-delete {
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  background: #dc3545;
  border-color: #dc3545;
}
.pagination-info { color: #888; }

/* --- Authors / Contributors Page --- */
.authors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.author-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
.author-card-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #B22222, #D4A0A0);
}
.author-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.author-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #263545, #2C4050);
  color: #B22222;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
}
.author-name {
  font-weight: 700;
  font-size: 1rem;
  color: #333;
}
.author-username {
  font-size: 0.78rem;
  color: #aaa;
}
.author-stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}
.author-stat-articles {
  font-size: 0.8rem;
  color: #B22222;
  font-weight: 600;
}
.author-stat-followers {
  font-size: 0.8rem;
  color: #aaa;
  margin-left: 0.5rem;
}
.author-role-badge {
  font-size: 0.6rem;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.author-role-badge.admin {
  background: #263545;
  color: #B22222;
}
.author-role-badge.author {
  background: #F0F2F4;
  color: #B22222;
  border: 1px solid #D4A0A0;
}
.author-email {
  font-size: 0.78rem;
  color: #aaa;
  margin-bottom: 0.85rem;
}
.author-follow-btn {
  width: 100%;
  text-align: center;
  padding: 0.5rem;
  font-size: 0.72rem;
}
.author-self-label {
  font-size: 0.8rem;
  color: #aaa;
  text-align: center;
  margin-bottom: 0.5rem;
}
.author-followers-box {
  background: linear-gradient(135deg, #F0F2F4, #E8ECEF);
  border-radius: 6px;
  padding: 0.85rem;
  margin-top: 0.5rem;
}
.author-followers-heading {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #B22222;
  margin-bottom: 0.4rem;
}
.author-follower-item {
  font-size: 0.8rem;
  color: #555;
  padding: 0.2rem 0;
}
.author-follower-item .fa-user {
  font-size: 0.7rem;
}
.author-no-followers {
  font-size: 0.78rem;
  color: #aaa;
  text-align: center;
  margin-top: 0.5rem;
}
.author-login-prompt {
  font-size: 0.8rem;
  color: #aaa;
  text-align: center;
}
.author-login-link {
  color: #B22222;
  font-weight: 600;
}

/* --- Shared page subtitle --- */
.page-subtitle {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 2rem;
}

/* --- Trending Page --- */
.trending-empty {
  text-align: center;
  padding: 3rem 0;
  color: #888;
}
.trending-empty .fa {
  font-size: 3rem;
  color: #ddd;
  display: block;
}
.trending-empty p {
  margin-top: 1rem;
}
.trending-list {
  max-width: 800px;
  margin: 0 auto;
}
.trending-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.trending-rank {
  min-width: 40px;
  text-align: center;
}
.trending-rank span {
  font-size: 1.5rem;
  font-weight: 800;
  color: #B22222;
  font-family: 'Playfair Display', serif;
}
.trending-info {
  flex: 1;
}
.trending-title-link {
  text-decoration: none;
  color: #1A2B3C;
}
.trending-title-link h4 {
  font-family: 'Playfair Display', serif;
  margin: 0 0 0.4rem;
  font-size: 1rem;
}
.trending-meta {
  font-size: 0.78rem;
  color: #888;
}
.trending-views {
  text-align: right;
  min-width: 60px;
}
.trending-views-count {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1A2B3C;
}
.trending-views-label {
  font-size: 0.65rem;
  color: #888;
  text-transform: uppercase;
}



/* --- Admin Approvals Page --- */
.admin-section-heading { display: flex; align-items: center; gap: 0.5rem; }
.admin-section-heading .fa { color: #B22222; }
.admin-count-badge {
  font-size: 0.65rem; background: #B22222; color: #fff;
  padding: 0.15rem 0.5rem; border-radius: 20px; font-weight: 700;
}
.admin-empty-msg { color: #aaa; font-size: 0.9rem; padding: 1rem 0; }
.admin-table td.admin-td-bold { font-weight: 600; color: #333; }
.admin-td-nowrap { white-space: nowrap; }
.admin-inline-action { display: inline; }
.admin-btn-sm { padding: 0.35rem 1rem; font-size: 0.72rem; }
.admin-btn-reject { padding: 0.35rem 1rem; font-size: 0.72rem; color: #dc3545; border-color: #dc3545; }
.admin-post-link { font-weight: 600; color: #333; }
.admin-td-date { white-space: nowrap; color: #888; }
.admin-td-preview { max-width: 200px; overflow: hidden; }
.admin-preview-body { max-height: 40px; overflow: hidden; font-size: 0.85rem; color: #777; }
.admin-form-card-mb { margin-bottom: 2rem; }


/* --- Admin Categories Page --- */
.categories-form-card { max-width: 500px; margin: 0 0 1.5rem 0; }
.categories-form-title { font-size: 0.9rem; font-weight: 700; margin-bottom: 1rem; }
.categories-form-row { display: flex; gap: 0.5rem; align-items: flex-end; flex-wrap: wrap; }
.categories-form-group-inline { margin-bottom: 0; flex: 1; }
.categories-table-wrap { max-width: 500px; }
.cat-td-bold { font-weight: 600; }
.cat-td-desc { font-size: 0.85rem; color: #868e96; }
.cat-empty { color: #868e96; font-size: 0.85rem; }


/* --- Admin Magazines Page --- */
.mag-form-card-mb { margin-bottom: 2.5rem; }
.mag-upload-icon { color: #B22222; margin-right: 0.5rem; }
.mag-form-input { border-radius: 6px; }
.mag-section-label { margin-bottom: 1rem; }
.mag-empty-state { text-align: center; padding: 2rem; color: #aaa; }
.mag-empty-icon { font-size: 2rem; display: block; margin-bottom: 0.5rem; }
.mag-cover-thumb { width: 50px; height: auto; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.mag-no-cover { font-size: 2rem; color: #ddd; }
.mag-td-title { font-weight: 600; color: #333; }
.mag-td-date { color: #888; }
.mag-status-published { font-size: 0.7rem; background: #d4edda; color: #155724; padding: 0.2rem 0.6rem; border-radius: 20px; font-weight: 600; }
.mag-status-draft { font-size: 0.7rem; background: #f5f5f5; color: #888; padding: 0.2rem 0.6rem; border-radius: 20px; font-weight: 600; }
.mag-action-btn { padding: 0.3rem 0.85rem; font-size: 0.68rem; }
.mag-btn-delete { padding: 0.3rem 0.85rem; font-size: 0.68rem; color: #dc3545; border-color: #dc3545; }


/* --- Admin Edit User Page --- */
.edit-user-card { max-width: 600px; }
.edit-user-approve-inline { display: inline; margin-left: 0.5rem; }
.edit-user-sub-section { max-width: 600px; margin: 1.5rem auto; }
.sub-section-title {
  margin: 0 0 1rem 0; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
}
.sub-section-title.crimson { color: #e63946; }
.sub-section-title.navy { color: #1d3557; }
.sub-section-empty { color: #868e96; font-size: 0.85rem; }
.sub-td-bold { font-weight: 600; }
.sub-td-muted { font-size: 0.82rem; color: #868e96; }


/* --- Users List Page --- */
.users-td-name { font-weight: 600; }
.users-td-email { font-size: 0.82rem; color: #868e96; }
.users-badge-author { background: #1d3557; }


/* --- Auth Pages (Login / Register) --- */
.auth-header { text-align: center; margin-bottom: 1.5rem; }
.auth-icon { font-size: 2rem; color: #B22222; margin-bottom: 0.5rem; }
.auth-title { font-family: 'Playfair Display', Georgia, serif; font-size: 1.6rem; color: #333; margin: 0; }
.auth-subtitle { font-size: 0.85rem; color: #888; margin: 0.25rem 0 0; }
.auth-alert { border-radius: 6px; font-size: 0.85rem; border-left: 4px solid #dc3545; }
.auth-btn-full { width: 100%; text-align: center; }
.auth-footer { font-size: 0.85rem; color: #888; margin-top: 1rem; }
.auth-footer a { color: #B22222; font-weight: 600; }
.auth-success-alert { border-radius: 8px; }


/* --- Posts Create/Edit --- */
.post-form-card { max-width: 720px; }
.post-form-icon { color: #e63946; }
.icon-crimson { color: #e63946; }
.icon-navy { color: #1d3557; }

/* --- Nav search inline fix --- */
.nav-search-form { display: flex; gap: 4px; flex-shrink: 0; max-width: 200px; }
.nav-dropdown-caret { font-size: 0.65rem; }

/* --- Reply toggle (posts/view) --- */
.reply-form { display: none; }

/* --- Magazine Public Index Page --- */
.mag-page-header { text-align: center; margin-bottom: 2.5rem; }
.mag-page-title { margin-bottom: 0.5rem; }
.mag-page-subtitle { color: #888; font-size: 0.92rem; max-width: 500px; margin: 0 auto; }
.mag-empty-icon { font-size: 3rem; color: #ddd; display: block; margin-bottom: 1rem; }
.mag-empty-text { color: #888; font-size: 0.95rem; }
.mag-cover-placeholder { width: 180px; height: 240px; background: linear-gradient(135deg, #263545, #2C4050); border-radius: 6px; margin: 0 auto 1.25rem; display: flex; align-items: center; justify-content: center; }
.mag-cover-placeholder-icon { font-size: 3rem; color: #B22222; }
.mag-card-desc { font-size: 0.85rem; color: #777; line-height: 1.6; margin: 0.5rem 0; }
.pagination-info { color: #888; }

/* --- Magazine View Page --- */
.mag-detail-placeholder-icon { font-size: 4rem; color: #B22222; }
.mag-edition-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: #B22222; margin-bottom: 0.25rem; }
.mag-detail-meta { margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid #eee; }
.mag-download-mt { margin-top: 2rem; }
.mag-back-link { margin-top: 2rem; }

