/*
Theme Name: AMCTAG News
Version: 1.0
*/

/* ========== Variables ========== */
:root {
  --primary: #c4161c;
  --dark: #111;
  --gray: #777;
  --light: #f5f5f5;
  --white: #fff;
  --blue:#0a5b80
}

/* ========== Global ========== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Cairo', sans-serif;
  background: var(--white);
  color: #222;
  line-height: 1.6;
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: auto;
  padding: 0 10px;
}

/* ========== Top Bar ========== */
.top-bar {
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  padding: 8px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar .social a {
  margin-left: 12px;
  opacity: 0.8;
  transition: 0.3s;
}
.top-bar .social a:hover {
  opacity: 1;
}

.edit-section{
        background-color: white;
    border-radius: 15px;
    padding: 10px;
}
/* ========== Header ========== */
.main-header {
  background: var(--white);
  border-bottom: 1px solid #ddd;
  margin-bottom: 20px;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 20px 0;
}
.logo {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
}
nav ul {
  display: flex;
  gap: 25px;
  list-style: none;
  padding: 0;
  margin: 0;
}
nav ul li a {
  font-weight: 600;
  position: relative;
}
nav ul li a::after {
  content: '';
  height: 2px;
  width: 0;
  background: var(--primary);
  position: absolute;
  bottom: -6px;
  left: 0;
  transition: 0.3s;
}
nav ul li a:hover::after {
  width: 100%;
}

/* ========== Breaking News ========== */
.breaking-news {
  background: var(--blue);
  color: #fff;
  padding: 12px 20px;
  font-weight: 600;
  margin-bottom: 30px;
  border-radius: 6px;
      margin: 0px !important;
      position:relative;
      
}

/* ========== Featured Section ========== */
.featured-section {
  /*display: grid;*/
  /*grid-template-columns: 2.5fr 1fr;*/
  /*gap: 25px;*/
  margin-bottom: 40px;
}

/* Slider */
.main-slider article {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 350px;
}
.main-slider article img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.main-slider h2 {
  position: absolute;
  bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  padding: 20px;
  font-size: 24px;
  width: 100%;
}

/* Grid */
.news-grid article {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}
.news-grid article:hover {
  transform: translateY(-5px);
}
.news-grid h4 {
  padding: 10px 15px;
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
}
.news-grid img {
  height: 180px;
  object-fit: cover;
  width: 100%;
}

/* ========== Widgets Section ========== */
.full-widgets {
  margin: 50px 0;
}
.widget {
  background: #fff;
  padding: 20px;
  margin-bottom: 25px;
  border-radius: 6px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* ========== Posts / Index Page ========== */
article.post {
  background: #fff;
  padding: 25px;
  /*margin-bottom: 35px;*/
  border-radius: 8px;
  /*box-shadow: 0 6px 20px rgba(0,0,0,0.05);*/
  transition: transform 0.3s;
}
article.post:hover {
  transform: translateY(-5px);
}
article.post h2 {
  font-size: 22px;
  margin-bottom: 15px;
  border-right: 4px solid var(--primary);
  padding-right: 10px;
}

/* ========== Footer ========== */
.footer-bar {
  background: var(--dark);
  color: #ccc;
  text-align: center;
  padding: 25px 10px;
  margin-top: 50px;
  border-top: 3px solid var(--primary);
  font-weight: 600;
}

/* ========== Responsive ========== */
@media (max-width: 992px) {
  .featured-section {
    grid-template-columns: 1fr;
  }
  nav ul {
    flex-wrap: wrap;
    gap: 12px;
  }
}
@media (max-width: 768px) {
  .main-slider article {
    height: 250px;
  }
  .news-grid img {
    height: 150px;
  }
}
.container { max-width: 1320px; margin:auto; padding:0 10px; }
.row { display:flex; }
.col-8 { flex:0 0 66.66%; padding: 0px 15px; }
.col-4 { flex:0 0 33.33%; padding: 0px 15px; }
.col-6 { flex:0 0 50%; padding: 0px 15px; }
.col-3 { flex:0 0 25%; padding: 0px 15px; }
    
   

section { margin-bottom:50px; }
section h3 { font-size:24px; margin-bottom:20px; border-right:4px solid var(--primary); padding-right:10px; }

.main-slider article { height:350px; border-radius:8px; overflow:hidden; position:relative;margin-top:25px; }
.main-slider article img { width:100%; height:100%; object-fit:cover; }
.main-slider h2 { position:absolute; bottom:0; padding:15px; background:linear-gradient(transparent, rgba(0,0,0,0.7)); color:#fff; width:100%; }

.side-news article { margin-bottom:20px; background:#fff; border-radius:6px; overflow:hidden; box-shadow:0 5px 15px rgba(0,0,0,0.05); }
.side-news h4 { padding:10px; font-size:16px; }

section.article article { background:#fff; padding:15px; border-radius:6px; box-shadow:0 5px 15px rgba(0,0,0,0.05); transition:.3s; }
section.article article:hover { transform:translateY(-5px); }

.view-all { margin-top:15px; text-align:right; }
.view-all a.btn { background:var(--primary); color:#fff; padding:8px 15px; border-radius:5px; text-decoration:none; transition:.3s; }
.view-all a.btn:hover { background:#a00; }

@media (max-width:992px) { .col-8,.col-4,.col-6,.col-3 { flex:0 0 100%; } }





/* ===== General ===== */
.home-page section {
    margin: 50px 0;
}

.row {
    display: flex;
    
}

.col-8 { width: 66.66%; }
.col-6 { width: 50%; }
.col-4 { width: 33.33%; }
.col-3 { width: 25%; }

/* ===== Featured ===== */
.main-slider article {
    position: relative;
}

.main-slider img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.main-slider h2 {
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: #fff;
    background: rgba(0,0,0,0.6);
    padding: 10px 15px;
}

/* Side news */
.side-news article {
    margin-bottom: 20px;
}

.side-news img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* ===== Sections ===== */
.section-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid #eee;
    margin-bottom: 25px;
    align-items:center;
}

.section-header h3 {
    font-size: 22px;
}

.view-all {
    color: #c00;
    font-size: 14px;
    text-decoration: none;
}

/* News card */
.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

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

.news-card h4 {
    padding: 10px;
    font-size: 15px;
}

/* Banner */
.banner img {
    width: 100%;
    margin: 40px 0;
}

/* Breaking news */
.breaking-news {
    /*background: #111;*/
    color: #fff;
    padding: 10px;
}
.custom-logo-link img{
    width: 100px;
    height: auto;
    object-fit: contain;
}
.home-banner{
        background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.featured-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

/* LEFT */
.featured-left {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    height:max-content;
}

.featured-small {
    border-radius: 10px;
    overflow: hidden;
}

.featured-small img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.featured-small h4 {
    font-size: 14px;
    margin-top: 8px;
}

/* RIGHT */
.featured-right {
    position: relative;
}


.featured-big img {
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover;
}

.big-content {
    position: absolute;
    bottom: 0;
    padding: 25px;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,.8), transparent);
    color: #fff;
}

@media (max-width: 992px) {
    .featured-layout {
        grid-template-columns: 1fr;
    }

    .featured-big img {
        min-height: 260px;
    }
}

/* أضف هذه الأنماط في <style> داخل ملف الـ PHP */




/* أضف أو استبدل هذه الأنماط في CSS */

.custom-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 450px;
    border-radius: 12px;
}

.slides-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    width: 100% ;
        height: 450px;

}
.slide {
    flex: 0 0 100%; /* كل سلايد يأخذ العرض الكامل */
    height: 100%;
    position: relative;
    display: block;
}

.featured-big {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.featured-big a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.featured-big img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-big:hover img {
    transform: scale(1.05);
}

.big-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.9) 0%, 
        rgba(0, 0, 0, 0.7) 50%, 
        rgba(0, 0, 0, 0) 100%);
    color: white;
    z-index: 2;
}

.big-content h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

.big-content span {
    font-size: 14px;
    opacity: 0.9;
}

/* تحسين أزرار التنقل */
.slider-prev, .slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.slider-prev:hover, .slider-next:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev { left: 20px; }
.slider-next { right: 20px; }

/* تحسين النقاط */
.slider-pagination {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 20;
}

.slider-pagination .dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-pagination .dot.active {
    background: white;
    transform: scale(1.3);
}

/* للموبايل */
@media (max-width: 768px) {
    .custom-slider {
        height: 350px;
    }
    
    .big-content h2 {
        font-size: 18px;
    }
    
    .big-content {
        padding: 20px;
    }
}








/* ---------- Swiper Section Wrapper ---------- */
.swiper-news-section {
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px 36px;
    margin-bottom: 50px;
    box-shadow: 0 4px 30px rgba(0,0,0,.07);
    overflow: hidden;
    position: relative;
}

/* ---------- Section Header ---------- */
.swiper-news-section .sec-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.swiper-news-section .sec-head .title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.swiper-news-section .sec-head .accent-bar {
    width: 5px;
    height: 36px;
    border-radius: 4px;
    background: var(--primary, #c4161c);
}

.swiper-news-section .sec-head h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #111;
    letter-spacing: -.3px;
}

.swiper-news-section .sec-head .badge-count {
    background: #fef2f2;
    color: var(--primary, #c4161c);
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid #fecaca;
}

.swiper-news-section .view-all {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary, #c4161c);
    border: 1.5px solid var(--primary, #c4161c);
    padding: 7px 16px;
    border-radius: 8px;
    transition: .25s;
}
.swiper-news-section .view-all:hover {
    background: var(--primary, #c4161c);
    color: #fff;
}
.swiper-news-section .view-all svg {
    transition: transform .25s;
}
.swiper-news-section .view-all:hover svg {
    transform: translateX(-4px);
}

/* ---------- Swiper Navigation ---------- */
.swiper-news-section .swiper-button-prev,
.swiper-news-section .swiper-button-next {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 3px 12px rgba(0,0,0,.15);
    top: auto;
    bottom: -6px;
    color: var(--primary, #c4161c);
    transition: .25s;
}
.swiper-news-section .swiper-button-prev::after,
.swiper-news-section .swiper-button-next::after {
    font-size: 13px;
    font-weight: 900;
}
.swiper-news-section .swiper-button-prev:hover,
.swiper-news-section .swiper-button-next:hover {
    background: var(--primary, #c4161c);
    color: #fff;
}
.swiper-news-section .swiper-button-prev { right: 60px; left: auto; }
.swiper-news-section .swiper-button-next { right: 12px; left: auto; }

/* ---------- Swiper Pagination ---------- */
.swiper-news-section .swiper-pagination {
    position: static;
    margin-top: 20px;
    text-align: right;
    padding-right: 110px;
}
.swiper-news-section .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #ddd;
    opacity: 1;
    transition: .25s;
}
.swiper-news-section .swiper-pagination-bullet-active {
    background: var(--primary, #c4161c);
    width: 24px;
    border-radius: 4px;
}

/* ---------- News Card ---------- */
.sn-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    transition: box-shadow .3s, transform .3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.sn-card:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,.12);
    transform: translateY(-4px);
}

.sn-card .thumb-wrap {
    position: relative;
    overflow: hidden;
}
.sn-card .thumb-wrap img {
    width: 100%;
    height: 195px;
    object-fit: cover;
    transition: transform .5s ease;
    display: block;
}
.sn-card:hover .thumb-wrap img {
    transform: scale(1.06);
}

.sn-card .cat-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary, #c4161c);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: .3px;
}

.sn-card .card-body {
    padding: 14px 15px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sn-card .card-body h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    color: #111;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    transition: color .2s;
}
.sn-card:hover .card-body h4 {
    color: var(--primary, #c4161c);
}

.sn-card .card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: #999;
    border-top: 1px solid #f5f5f5;
    padding-top: 10px;
}
.sn-card .card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}
.sn-card .card-meta svg {
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .swiper-news-section { padding: 20px 16px 30px; }
    .sn-card .thumb-wrap img { height: 160px; }
}







/* ===== Top Bar ===== */
.top-bar {
    /*background: #0A5B80;*/
    padding: 8px 0;
    font-size: 14px;
    color: #fff;
}

.topbar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.date {
    color: #fff;
}

/* ===== Social Icons ===== */
.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    color: #fff; /* 👈 الأيقونات بيض */
    font-size: 14px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: #fff;
    color: #000;
    transform: translateY(-3px);
}

/* ===== Header ===== */
.main-header {
    background: #fff;
    padding: 15px 0;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
}

.main-nav a:hover {
    color: #0073aa;
}







/* ===== Contact Form 7 Styling ===== */
.wpcf7 {
    max-width: 600px;
    margin: 60px auto;
}

.wpcf7 form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Half columns */
.form-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.form-row .half {
    flex: 1;
    min-width: 200px;
}

.wpcf7 input,
.wpcf7 textarea {
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    background: #f5f7fa;
    font-size: 14px;
    width: 100%;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
    background: white;
    border-color: #0d6efd;
}

.wpcf7 input[type="submit"] {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: white;
    padding: 14px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.wpcf7 input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(13,110,253,0.2);
}

/* ===== Contact Info Boxes under form ===== */
.contact-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

.contact-col {
    flex: 1;
    min-width: 180px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-col:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.contact-col .icon {
    font-size: 28px;
    color: #0d6efd;
    margin-bottom: 12px;
}

.contact-col h3 {
    margin-bottom: 8px;
    font-size: 16px;
    color: #0073aa;
}

.contact-col p {
    font-size: 14px;
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }

    .contact-info-row {
        flex-direction: column;
    }
}






.contact-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 40px 0;
}

.contact-col {
    flex: 1;
    min-width: 200px;
    background: #f9f9f9;
    padding: 25px 15px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-col:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.contact-col .icon {
    font-size: 28px;
    color: #0073aa;
    margin-bottom: 12px;
}

.contact-col h3 {
    margin-bottom: 8px;
    color: #0073aa;
    font-size: 18px;
}

.contact-col p {
    font-size: 14px;
    color: #333;
}





/*.main-nav ul {*/
/*    list-style: none;*/
/*    display: flex;*/
/*    gap: 20px;*/
/*}*/

/*.main-nav ul li a {*/
/*    text-decoration: none;*/
/*    color: black;*/
/*    font-weight: 500;*/
/*    transition: 0.3s;*/
/*}*/

/* Hover */
/*.main-nav ul li a:hover {*/
/*    color: var(--blue);*/
/*}*/

/* Active Page */
.main-nav ul li.current-menu-item > a,
.main-nav ul li.current_page_item > a {
    color: var(--blue);
    font-weight: bold;
}





/* Container لازم يكون relative */
.main-nav ul li {
    position: relative;
}

/* الخط التحت */
.main-nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    height: 2px;
    width: 0;
    background: var(--primary); /* اللون اللي بدك */
    transition: width 0.3s ease;
}

/* Hover */
.main-nav ul li a:hover::after {
    width: 100%;
}

/* الصفحة الحالية */
.main-nav ul li.current-menu-item a::after,
.main-nav ul li.current_page_item a::after {
    width: 100%;
}





/* ===== Post Meta Container ===== */
.post-meta1 {
    display: flex;
    justify-content: space-between; /* views يسار - share يمين */
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

/* ===== Views Count ===== */
.views-count {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #555;
    opacity: 0.7;              /* fade effect */
    transition: opacity 0.3s ease;
}

.views-count i {
    color: #e63946;
}

/* Hover على البوست أو على share تظهر بشكل أوضح */
.post-meta:hover .views-count {
    opacity: 1;
}

/* ===== Share Buttons ===== */
.share-buttons {
    display: flex;
    gap: 10px;
}

/* Individual Buttons */
.share-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: #eee;
    color: #333;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

/* Hover effect لكل زر */
.share-buttons a:hover {
    background-color: #e63946;
    color: #fff;
}

/* WhatsApp زر باللون الأخضر الرسمي */
.share-buttons a[href*="whatsapp"] {
    background-color: #25D366;
    color: #fff;
}

.share-buttons a[href*="whatsapp"]:hover {
    background-color: #128C7E;
}




/* ===== Footer Grid ===== */
.footer-bar {
    background-color: #1a1a1a;
    color: #fff;
    padding: 40px 20px 20px;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    align-items: start;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #e63946;
    text-align:justify;
}

/* Column 1: Logo + About */
.footer-logo img {
    max-width: 120px;
    margin-bottom: 15px;
}

.footer-about {
    font-size: 13px;
    line-height: 1.6;
    
        text-align: justify;

}

/* Column 2: Pages */
.footer-pages ul {
    list-style: none;
    padding: 0;
        text-align: justify;

}

.footer-pages ul li {
    margin-bottom: 8px;
}

.footer-pages ul li a {
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.footer-pages ul li a:hover {
    color: #e63946;
}

/* Column 3: Social Icons */
.footer-social-icons {
    display: flex;
    gap: 10px;
}

.footer-social-icons a {
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #333;
    color: #fff;
    border-radius: 50%;
    transition: 0.3s;
}

.footer-social-icons a:hover {
    background-color: #e63946;
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 13px;
    opacity: 0.7;
}

/* Responsive */
@media(max-width:768px){
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-social-icons {
        justify-content: center;
    }
}

.breaking-label{
        position: absolute;
    z-index: 1;
    background-color: red;
    width: max-content;
    height: 100%;
    top: 0px;
    right: 0px;
    border-radius: 0px 6px 6px 0px;
    padding: 12px;
}











/* =====================================================
   AMCTAG NEWS — MOBILE RESPONSIVE STYLES
   أضف هذا الكود في نهاية ملف style.css
   ===================================================== */


/* ========== HAMBURGER BUTTON ========== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    background: none;
    border: none;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--dark, #111);
    border-radius: 3px;
    transition: all 0.35s ease;
    transform-origin: center;
}

/* Animation when open */
.hamburger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* ========== MOBILE BREAKPOINT ========== */
@media (max-width: 992px) {

    /* ----- Header ----- */
    .header-flex {
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 12px 0;
        position: relative;
    }

    .hamburger {
        display: flex;
    }

    /* ----- Navigation ----- */
    .main-nav {
        display: none;
        width: 100%;
        order: 3;
        background: #fff;
        border-top: 2px solid var(--primary, #c4161c);
        padding: 10px 0 20px;
        animation: slideDown 0.3s ease;
    }

    .main-nav.open {
        display: block;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    .main-nav ul li a {
        display: block;
        padding: 12px 16px;
        border-bottom: 1px solid #f0f0f0;
        font-size: 15px;
        font-weight: 600;
    }

    .main-nav ul li a:hover {
        background: #fef2f2;
        color: var(--primary, #c4161c);
        padding-right: 22px;
    }

    .main-nav ul li a::after {
        display: none;
    }

    /* ----- Top Bar ----- */
    .topbar-flex {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }

    /* ----- Breaking News ----- */
    .breaking-news {
        font-size: 13px;
        padding: 10px 12px;
    }

    .breaking-label {
        font-size: 12px;
        padding: 8px 10px;
    }

    /* ----- Featured Layout ----- */
    .featured-layout {
        grid-template-columns: 1fr;
    }

    /* اللي بالشمال (4 أخبار صغيرة) يجي بعد السلايدر */
    .featured-left {
        order: 2;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .featured-right {
        order: 1;
    }

    .featured-small img {
        height: 110px;
    }

    .featured-small h4 {
        font-size: 12px;
    }

    /* ----- Custom Slider ----- */
    .custom-slider {
        height: 280px;
        border-radius: 8px;
    }

    .slides-wrapper {
        height: 280px;
    }

    .big-content h2 {
        font-size: 16px;
    }

    .big-content {
        padding: 15px;
    }

    .big-content span {
        font-size: 12px;
    }

    .slider-prev,
    .slider-next {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .slider-prev { left: 8px; }
    .slider-next { right: 8px; }

    /* ----- Swiper News Sections ----- */
    .swiper-news-section {
        padding: 18px 14px 28px;
        border-radius: 12px;
        margin-bottom: 30px;
    }

    .swiper-news-section .sec-head h3 {
        font-size: 17px;
    }

    .swiper-news-section .view-all {
        font-size: 12px;
        padding: 5px 12px;
    }

    .sn-card .thumb-wrap img {
        height: 160px;
    }

    .sn-card .card-body h4 {
        font-size: 13px;
    }

    /* ----- News Section (اخبار الشمال) ----- */
    .news-section .row {
        flex-direction: column;
    }

    .news-section .col-6 {
        width: 100%;
        padding: 0;
        margin-bottom: 15px;
    }

    .news-card img {
        height: 180px;
    }

    /* ----- Columns Global ----- */
    .col-8, .col-4, .col-6, .col-3 {
        flex: 0 0 100%;
        width: 100%;
        padding: 0;
    }

    /* ----- Banner Widget Slider ----- */
    .banner-widget-slider {
        height: 220px;
        border-radius: 8px;
    }

    .bws-content h2 {
        font-size: 16px;
    }

    .bws-prev { left: 8px; }
    .bws-next { right: 8px; }

    /* ----- Post Meta / Share ----- */
    .post-meta1 {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    /* ----- Footer ----- */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }

    .footer-social-icons {
        justify-content: center;
    }

    .footer-pages ul {
        text-align: center;
    }

    .footer-col h4 {
        text-align: center;
    }

    .footer-about {
        text-align: center;
    }
}


/* ========== SMALL PHONES (max 480px) ========== */
@media (max-width: 480px) {

    .custom-slider {
        height: 230px;
    }

    .slides-wrapper {
        height: 230px;
    }

    .featured-left {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .featured-small img {
        height: 90px;
    }

    .featured-small h4 {
        font-size: 11px;
        line-height: 1.3;
    }

    .banner-widget-slider {
        height: 180px;
    }

    .sn-card .thumb-wrap img {
        height: 140px;
    }

    .swiper-news-section .sec-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .breaking-news marquee {
        font-size: 12px;
    }

    .section-header h3 {
        font-size: 17px;
    }

    .news-card img {
        height: 160px;
    }

    .container {
        padding: 0 8px;
    }
}


/* ========== HAMBURGER JS — أضف هذا الـ Script في footer.php قبل </body> ========== */
/*
<script>
document.addEventListener('DOMContentLoaded', function () {
    const btn = document.querySelector('.hamburger');
    const nav = document.querySelector('.main-nav');
    if (!btn || !nav) return;

    btn.addEventListener('click', function () {
        btn.classList.toggle('open');
        nav.classList.toggle('open');
    });

    // إغلاق القائمة عند الضغط على رابط
    nav.querySelectorAll('a').forEach(function(link) {
        link.addEventListener('click', function () {
            btn.classList.remove('open');
            nav.classList.remove('open');
        });
    });
});
</script>
*/

