/* ======================================================
   GLOBAL STYLING - PROFESSIONAL GOVERNMENT
====================================================== */
:root {
    --primary-blue: #0d2d5c;
    --secondary-blue: #1e4a8c;
    --accent-gold: #c9a357;
    --light-bg: #f8fafc;
    --dark-text: #1e293b;
    --gray-text: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Almarai', sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.page-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ======================================================
   HEADER & HERO SECTION - REDUCED HEIGHT
====================================================== */
.main-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0a1f3d 100%);
    padding: 20px 0; /* Reduced from 30px */
    border-bottom: 4px solid var(--accent-gold);
    position: relative;
    overflow: hidden;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px; /* Reduced from 20px */
}

.emblem {
    width: 60px; /* Reduced from 70px */
    height: 60px; /* Reduced from 70px */
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent-gold);
}

.emblem i {
    font-size: 28px; /* Reduced from 32px */
    color: var(--accent-gold);
}

.header-titles h1 {
    color: white;
    font-size: 24px; /* Reduced from 28px */
    font-weight: 800;
    margin-bottom: 5px;
}

.header-titles p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px; /* Reduced from 16px */
}

.official-stamp {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px; /* Reduced from 14px */
    border-right: 2px solid var(--accent-gold);
    padding-right: 15px;
}

.hero-section {
    background: linear-gradient(rgba(13, 45, 92, 0.9), rgba(13, 45, 92, 0.95));
    background-size: cover;
    background-position: center;
    padding: 60px 0; /* Reduced from 100px */
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    color: white;
    font-size: 32px; /* Reduced from 42px */
    font-weight: 800;
    margin-bottom: 15px; /* Reduced from 20px */
    line-height: 1.3;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px; /* Reduced from 20px */
    margin-bottom: 20px; /* Reduced from 30px */
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-divider {
    width: 80px; /* Reduced from 100px */
    height: 3px;
    background: var(--accent-gold);
    margin: 20px auto; /* Reduced from 30px */
}

/* ======================================================
   BREADCRUMB
====================================================== */
.breadcrumb {
    background: white;
    padding: 20px 0; /* Reduced from 25px */
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px; /* Reduced from 40px */
}

.breadcrumb-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px; /* Reduced from 15px */
}

.breadcrumb a {
    color: var(--secondary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary-blue);
}

.breadcrumb span {
    color: var(--gray-text);
}

.breadcrumb i {
    color: var(--accent-gold);
    margin: 0 8px;
}

/* ======================================================
   BLOG GRID & CARDS
====================================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 35px;
    margin-bottom: 60px;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-blue);
}

.card-header {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .card-img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-gold);
    color: var(--primary-blue);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--gray-text);
    font-size: 14px;
}

.card-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-date i {
    color: var(--accent-gold);
}

.card-category {
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
}

.card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-text);
    text-decoration: none;
    margin-bottom: 15px;
    line-height: 1.4;
    display: block;
    flex-grow: 1;
}

.card-title:hover {
    color: var(--secondary-blue);
}

.card-excerpt {
    color: var(--gray-text);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.read-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary-blue);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.read-btn:hover {
    background: var(--secondary-blue);
    transform: translateX(-5px);
}

.official-icon {
    color: var(--accent-gold);
    font-size: 18px;
}

/* ======================================================
   PAGINATION - PROFESSIONAL
====================================================== */
.pagination-container {
    margin: 60px 0;
    text-align: center;
}

.pagination {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    color: var(--dark-text);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination a:hover:not(.disabled) {
    background: var(--light-bg);
    color: var(--primary-blue);
}

.pagination .active {
    background: var(--primary-blue);
    color: white;
}

.pagination .disabled {
    color: #cbd5e1;
    cursor: not-allowed;
}

.pagination .page-numbers {
    display: flex;
    gap: 5px;
}

/* ======================================================
   EMPTY STATE
====================================================== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin: 40px 0;
}

.empty-state i {
    font-size: 64px;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: var(--dark-text);
    margin-bottom: 15px;
    font-size: 24px;
}

.empty-state p {
    color: var(--gray-text);
    max-width: 500px;
    margin: 0 auto 30px;
}

/* Post Count Info */
.post-count-info {
    text-align: center;
    color: var(--gray-text);
    font-size: 14px;
    margin-top: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* ======================================================
   RESPONSIVE DESIGN
====================================================== */
@media (max-width: 992px) {
    .page-wrapper {
        padding: 0 20px;
    }
    
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 25px;
    }
    
    .hero-title {
        font-size: 28px; /* Reduced for tablet */
    }
    
    .hero-section {
        padding: 50px 0; /* Reduced for tablet */
    }
    
    .hero-subtitle {
        font-size: 16px; /* Reduced for tablet */
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .official-stamp {
        border: none;
        padding: 0;
        font-size: 12px;
    }
    
    .hero-section {
        padding: 40px 0; /* Further reduced for mobile */
    }
    
    .hero-title {
        font-size: 24px; /* Reduced for mobile */
    }
    
    .hero-subtitle {
        font-size: 15px; /* Reduced for mobile */
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .page-wrapper {
        padding: 0 15px;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .card-title {
        font-size: 20px;
    }
    
    .card-header {
        height: 200px;
    }
    
    .breadcrumb-content {
        font-size: 13px;
    }
    
    .emblem {
        width: 50px;
        height: 50px;
    }
    
    .emblem i {
        font-size: 24px;
    }
    
    .header-titles h1 {
        font-size: 20px;
    }
    
    .header-titles p {
        font-size: 13px;
    }
}

.main-footer {
    background: var(--primary-blue);
    color: white;
    padding: 60px 0 30px;
    margin-top: 80px;
    border-top: 4px solid var(--accent-gold);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background: var(--accent-gold);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover {
    color: var(--accent-gold);
    transform: translateX(-5px);
}

.footer-contact {
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact div {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.copyright strong {
    color: var(--accent-gold);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.blog-grid {
    display: grid;
    gap: 28px;
    margin-top: 30px;
}

/* Desktop – admin controlled */
.blog-grid.columns-2 { grid-template-columns: repeat(2, 1fr); }
.blog-grid.columns-3 { grid-template-columns: repeat(3, 1fr); }
.blog-grid.columns-4 { grid-template-columns: repeat(4, 1fr); }
.blog-grid.columns-5 { grid-template-columns: repeat(5, 1fr); }
.blog-grid.columns-6 { grid-template-columns: repeat(6, 1fr); }

/* Tablet */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .blog-grid {
        grid-template-columns: 1fr !important;
    }
}

/* BLOG GRID */
.blog-grid {
    display: grid;
    gap: 24px;
    margin-top: 25px;
}

/* Dynamic columns from settings */
.blog-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.blog-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.blog-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.blog-grid.columns-5 {
    grid-template-columns: repeat(5, 1fr);
}

.blog-grid.columns-6 {
    grid-template-columns: repeat(6, 1fr);
}

/* Responsive fallback */
@media (max-width: 1200px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .blog-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ====== POLITICAL NEWSROOM REVOLUTION (same theme colors) ====== */

.hero-section.hero-news {
  position: relative;
  overflow: hidden;
}
.hero-news-inner { padding: 10px 0 4px; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 14px;
  opacity: .9;
  margin-bottom: 10px;
}
.hero-kicker::before{
  content:"";
  width:10px; height:10px;
  border-radius: 999px;
  background: currentColor;
  opacity:.65;
}

.news-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin: 18px 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(8px);
}

.view-switch{
  display:flex;
  gap:10px;
  align-items:center;
}
.view-btn{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.08);
  text-decoration:none;
  font-weight:800;
  font-size:14px;
  opacity:.9;
}
.view-btn.active{
  opacity:1;
  border-color: rgba(0,0,0,.18);
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
}

.newsroom-grid{
  margin-top: 8px;
}

.news-card{
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  box-shadow: 0 12px 34px rgba(0,0,0,.06);
  transition: transform .18s ease, box-shadow .18s ease;
}
.news-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,.08);
}
.news-card-media{
  position:relative;
  aspect-ratio: 16/10;
  background: #f3f4f6;
}
.news-card-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.news-badges{
  position:absolute;
  bottom: 12px;
  right: 12px;
  left: 12px;
  display:flex;
  justify-content:flex-start;
  gap:10px;
}
.news-badge{
  display:inline-flex;
  align-items:center;
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
}

.news-card-body{
  padding: 14px 14px 16px;
}
.news-meta{
  display:flex;
  justify-content:flex-start;
  gap:12px;
  font-weight:700;
  font-size: 13px;
  opacity:.85;
  margin-bottom: 8px;
}
.meta-item{
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.news-title{
  display:block;
  text-decoration:none;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.6;
  margin: 2px 0 8px;
}
.news-excerpt{
  margin:0 0 12px;
  opacity:.88;
  line-height:1.9;
}
.news-actions{ display:flex; justify-content:flex-start; }

/* ====== LIST VIEW ====== */
.news-list{
  display:flex;
  flex-direction:column;
  gap: 14px;
  margin-top: 8px;
}
.news-row{
  display:grid;
  grid-template-columns: 230px 1fr;
  gap: 14px;
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(0,0,0,.08);
  background:#fff;
  box-shadow: 0 12px 34px rgba(0,0,0,.06);
}
.news-row-thumb{
  display:block;
  height: 100%;
  background:#f3f4f6;
}
.news-row-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.news-row-content{
  padding: 14px 14px 16px;
}
.news-row-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.news-pill{
  display:inline-flex;
  align-items:center;
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 13px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(0,0,0,.03);
}
.news-date{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  font-weight:800;
  font-size: 13px;
  opacity:.85;
}
.news-row-title{
  display:block;
  text-decoration:none;
  font-size: 20px;
  font-weight: 900;
  line-height:1.6;
  margin: 0 0 8px;
}
.news-row-excerpt{
  margin: 0 0 12px;
  opacity:.88;
  line-height:1.9;
}
.news-row-actions{
  display:flex;
  justify-content:flex-start;
}

/* Responsive */
@media (max-width: 900px){
  .news-row{ grid-template-columns: 1fr; }
  .news-row-thumb{ height: 210px; }
  .news-toolbar{ flex-direction:column; align-items:stretch; }
  .view-switch{ justify-content:center; }
}
