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

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

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

body {
  margin: 0;
  font-family: 'Cairo', sans-serif;
  background: var(--light);
  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(--dark);
  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(--primary);
  color: #fff;
  padding: 12px 20px;
  font-weight: 600;
  margin-bottom: 30px;
  border-radius: 6px;
}

/* ========== 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: 200px;
    height: auto;
    object-fit: contain;
}
.home-banner{
        background-size: cover;
    background-position: center;
    height: 450px;
    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;
    }
}

