/* =========================================================
   Front Page Styles (Alostaz)
   File: front-page.css
   Notes:
   - This file is loaded ONLY on the front page via functions.php
   - Do NOT wrap CSS with <style> tags
========================================================= */

/* تحسينات عامة */
.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: white !important;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* عناوين الأقسام */
.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  color: var(--dark-color);
  font-size: 32px;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

.section-title p {
  color: var(--gray-color);
  max-width: 600px;
  margin: 20px auto 0;
  line-height: 1.6;
}

/* تحسينات الكروت */
.article-card:hover,
.app-card:hover,
.article-card:hover .read-more-btn i,
.app-card:hover .download-btn-small {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.article-card:hover .read-more-btn i {
  transform: translateX(-5px);
}

/* الفئات */
.categories {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.category-btn {
  padding: 10px 20px;
  background: var(--light-color);
  border: none;
  border-radius: 25px;
  color: var(--dark-color);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
}

.category-btn:hover,
.category-btn.active {
  background: var(--primary-color);
  color: white;
}

/* تأثيرات hover إضافية */
.download-btn-small:hover {
  background: var(--primary-dark) !important;
}

/* =========================================================
   Responsive
========================================================= */
@media (max-width: 768px) {

  .section-title h2 {
    font-size: 26px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .cta-button {
    width: 100%;
    max-width: 250px;
  }

  .articles-grid,
  .apps-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  }

  .featured-item {
    flex-direction: column;
  }

  .featured-image,
  .featured-content {
    min-width: 100% !important;
  }

  .categories {
    gap: 8px;
  }

  .category-btn {
    padding: 8px 16px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {

  .section-title h2 {
    font-size: 22px;
  }

  .articles-grid,
  .apps-grid {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================
   Hero (Front Page)
========================================================= */

.hero{
  position: relative;
  padding: 70px 0;
  overflow: hidden;
  border-radius: 20px;
  margin: 18px auto 0;
  background:
    radial-gradient(1200px 500px at 85% -20%, rgba(37,99,235,.22), transparent 60%),
    radial-gradient(900px 420px at 10% 0%, rgba(249,115,22,.18), transparent 55%),
    linear-gradient(180deg, rgba(15,23,42,.03), rgba(15,23,42,.00));
  border: 1px solid rgba(15,23,42,.06);
}

.hero .container{
  text-align: center;
  max-width: 900px;
}

.hero h2{
  margin: 0 0 14px;
  font-size: 38px;
  line-height: 1.25;
  color: var(--dark-color);
}

.hero p{
  margin: 0 auto;
  max-width: 720px;
  color: var(--gray-color);
  font-size: 16px;
  line-height: 1.9;
}

.hero-buttons{
  margin-top: 26px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* زر الأخبار (شكل مختلف بسيط واحترافي) */
.cta-button--news{
  background: rgba(15,23,42,.08) !important;
  color: var(--dark-color) !important;
  border: 1px solid rgba(15,23,42,.12);
}

.cta-button--news:hover{
  background: rgba(15,23,42,.10) !important;
}

/* تحسينات للموبايل */
@media (max-width: 768px){
  .hero{
    padding: 46px 12px;
    border-radius: 18px;
  }
  .hero h2{ font-size: 26px; }
  .hero p{ font-size: 14px; }
  .hero-buttons{ flex-direction: column; }
  .hero-buttons .cta-button{
    width: 100%;
    max-width: 260px;
  }
}

.newsletter{
  margin-top: 15px !important;
}















.fp-cats {
  padding: 20px 12px;
  direction: rtl;
}

.fp-cats__grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.fp-cat {
  background: #fff;
  border-radius: 18px;
  padding: 20px 10px;
  text-align: center;
  text-decoration: none;

  border: 1px solid #edf1f6;
  box-shadow: 0 10px 25px rgba(0,0,0,.05);
  transition: all .2s ease;
}

.fp-cat:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 35px rgba(0,0,0,.08);
}

.fp-cat__icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #f3f6ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fp-cat__icon img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.15));
}

.fp-cat__label {
  font-size: 16px;
  font-weight: 800;
  color: #1c2430;
}

/* موبايل */
@media (max-width: 768px) {
  .fp-cats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

