@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --brand-primary: #c0392b;
  --brand-accent: #e74c3c;
  --brand-dark: #1a1a2e;
  --brand-teal: #0d9488;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --border: #e2e8f0;
  --text: #1e293b;
  --text-muted: #64748b;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.1);
  --radius: 12px;
  --radius-lg: 16px;
  --font-ar: 'Cairo', sans-serif;
  --font-ui: 'Inter', 'Cairo', sans-serif;
}

*,
*::before,ticker-scroll
*::after {
  box-sizing: border-box;
}

.home-modern {
  font-family: var(--font-ar);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface-muted);
  margin: 0;
  padding: 0;
}

.home-modern a {
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.home-modern img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Top bar */
.site-topbar {
  background: linear-gradient(135deg, var(--brand-dark) 0%, #16213e 100%);
  color: #fff;
  font-size: 0.85rem;
}

.site-topbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.5rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.site-social a:hover {
  background: var(--brand-accent);
  color: #fff;
}

.site-clock {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.02em;
}

.site-topnav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-topnav a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 0.9rem;
}

.site-topnav a:hover {
  color: #fff;
}

/* Hero */
.site-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.site-hero-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem;
}

.hero-featured {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-featured:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.15);
}

.hero-featured img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
}

.site-logo img {
  height: 56px;
  width: auto;
}

/* Breaking news ticker */
.breaking-bar {
  background: linear-gradient(90deg, var(--brand-accent), #c0392b);
  color: #fff;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  min-height: 44px;
}

.breaking-label {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1.25rem;
  background: rgba(0, 0, 0, 0.2);
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}

.breaking-label i {
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.breaking-ticker-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
  direction: ltr;
}

.breaking-ticker {
  display: flex;
  width: max-content;
  animation: ticker-scroll 45s linear infinite;
  will-change: transform;
}

.breaking-ticker:hover {
  animation-play-state: paused;
}

.breaking-ticker-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 0.65rem 1.25rem;
  flex-shrink: 0;
}

@keyframes ticker-scroll {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0%); }
}

.breaking-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  direction: rtl;
}

.breaking-item span {
  unicode-bidi: plaintext;
}

.breaking-item img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.breaking-item:hover {
  color: #ffe4e1;
}

/* Main layout */
.site-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 240px;
  gap: 1.5rem;
  align-items: start;
}

/* Sidebar images */
.sidebar-images {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.search-box {
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 0.75rem 2.75rem 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-ar);
  font-size: 0.95rem;
  background: var(--surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus {
  outline: none;
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
}

.search-box button {
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: var(--brand-accent);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.search-box button:hover {
  background: var(--brand-primary);
}

.search-page-form {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.search-page-form input {
  flex: 1;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-ar);
  font-size: 1rem;
  background: var(--surface);
}

.search-page-form input:focus {
  outline: none;
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
}

.search-page-form button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand-accent), var(--brand-primary));
  color: #fff;
  font-family: var(--font-ar);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.search-page-form button:hover {
  opacity: 0.92;
}

.sidebar-image-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  background: var(--surface);
}

.sidebar-image-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.sidebar-image-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

/* News feed */
.news-feed {
  min-width: 0;
}

.news-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--brand-accent);
}

.news-feed-header h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.news-feed-header h2 i {
  color: var(--brand-accent);
}

.news-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--surface);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem 1rem;
  align-items: start;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
}

.news-card::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--brand-accent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.news-card:hover {
  border-color: rgba(231, 76, 60, 0.35);
  box-shadow: var(--shadow-md);
  transform: translateX(-3px);
}

.news-card:hover::before {
  opacity: 1;
}

.news-card-body {
  min-width: 0;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.news-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-policy { background: #dbeafe; color: #1d4ed8; }
.badge-security { background: #fee2e2; color: #b91c1c; }
.badge-economic { background: #d1fae5; color: #047857; }
.badge-sport { background: #fef3c7; color: #b45309; }
.badge-cultural { background: #ede9fe; color: #6d28d9; }
.badge-local { background: #cffafe; color: #0e7490; }
.badge-international { background: #fce7f3; color: #be185d; }
.badge-social { background: #f1f5f9; color: #475569; }
.badge-aaraa { background: #e0f2fe; color: #0369a1; }
.badge-environment { background: #dcfce7; color: #15803d; }
.badge-default { background: #f1f5f9; color: #64748b; }

.news-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-ui);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.news-title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.5;
}

.news-title a {
  color: var(--text);
}

.news-title a:hover {
  color: var(--brand-accent);
}

.news-source {
  font-size: 0.85rem;
  color: var(--brand-accent);
  font-weight: 600;
}

.news-card-date {
  text-align: left;
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  font-family: var(--font-ui);
  padding-top: 0.15rem;
}

/* Category sidebar */
.sidebar-nav {
  position: sticky;
  top: 1rem;
}

.sidebar-nav-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.sidebar-nav-title {
  background: linear-gradient(135deg, var(--brand-dark), #16213e);
  color: #fff;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-list {
  list-style: none;
  margin: 0;
  padding: 0.5rem;
}

.category-list li a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.92rem;
  transition: background 0.2s ease, color 0.2s ease, padding-right 0.2s ease;
}

.category-list li a i {
  width: 18px;
  color: var(--brand-accent);
  text-align: center;
}

.category-list li a:hover,
.category-list li a.active {
  background: rgba(231, 76, 60, 0.08);
  color: var(--brand-accent);
  padding-right: 1.1rem;
}

/* Pagination */
.pagination-wrap {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
}

.pagination-modern {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination-modern a,
.pagination-modern span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-ui);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: all 0.2s ease;
}

.pagination-modern a:hover {
  border-color: var(--brand-accent);
  color: var(--brand-accent);
  background: rgba(231, 76, 60, 0.06);
}

.pagination-modern .active span {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  color: #fff;
}

.pagination-modern .disabled span {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Footer */
.site-footer {
  background: var(--brand-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 1.75rem 1.25rem;
  margin-top: 1rem;
}

.site-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.site-footer .copyright {
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.site-footer .credits {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.site-footer a {
  color: var(--brand-accent);
}

.site-footer a:hover {
  color: #fff;
}

/* Back to top */
.home-modern .back-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-accent);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 999;
  transition: transform 0.2s ease, background 0.2s ease;
}

.home-modern .back-to-top:hover {
  background: var(--brand-primary);
  color: #fff;
  transform: translateY(-3px);
}

/* Login modal */
.home-modern .modal-content {
  border-radius: var(--radius-lg);
  border: none;
  overflow: hidden;
}

.home-modern .modal-header {
  background: var(--brand-dark);
  color: #fff;
  border: none;
}

.home-modern .modal-header .close {
  color: #fff;
  opacity: 0.8;
}

.home-modern .modal-body {
  padding: 2rem;
}

.home-modern .modal-body .form-control {
  border-radius: 10px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
}

.home-modern .modal-body .btn-primary {
  background: var(--brand-accent);
  border: none;
  border-radius: 10px;
  padding: 0.65rem 2rem;
  font-weight: 600;
}

.home-modern .modal-body .btn-primary:hover {
  background: var(--brand-primary);
}

/* Mobile menu toggle */
.mobile-nav-toggle {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--brand-dark);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-md);
  z-index: 998;
  font-size: 1.25rem;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 1100px) {
  .site-main {
    grid-template-columns: 200px minmax(0, 1fr) 200px;
    gap: 1rem;
  }
}

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

  .sidebar-nav {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    z-index: 1000;
    transition: right 0.3s ease;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
  }

  .sidebar-nav.open {
    right: 0;
  }

  .sidebar-nav-card {
    height: calc(100vh - 2rem);
    overflow-y: auto;
  }

  .mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .sidebar-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .sidebar-image-card img {
    height: 100px;
  }

  .site-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .site-logo {
    order: -1;
  }

  .site-logo img {
    margin: 0 auto;
  }

  .news-card {
    grid-template-columns: 1fr;
  }

  .news-card-date {
    text-align: right;
  }
}

@media (max-width: 576px) {
  .site-topbar-inner {
    justify-content: center;
  }

  .site-topnav {
    display: none;
  }

  .breaking-label span {
    display: none;
  }

  .news-feed-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* Article page - AlabrazNews.php */
.article-page {
  min-width: 0;
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.article-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.article-back-link:hover {
  color: var(--brand-accent);
}

.article-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.article-title {
  margin: 0.75rem 0 0.85rem;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.45;
  color: var(--brand-dark);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text);
  text-align: justify;
  margin-top: 1.5rem;
}

.article-video-wrap {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.article-video-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-video-title i {
  color: #c0392b;
}

.article-video {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.article-not-found {
  text-align: center;
  padding: 3rem 1.5rem;
}

.article-not-found i {
  font-size: 3rem;
  color: var(--brand-accent);
  margin-bottom: 1rem;
}

.article-not-found h1 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.article-not-found p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.article-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--brand-accent);
  color: #fff;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
}

.article-back-btn:hover {
  background: var(--brand-primary);
  color: #fff;
}

.home-modern .article-gallery-wrap {
  width: 100%;
  margin: 0 0 1.5rem;
  border: 2px solid var(--brand-accent);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.home-modern .article-gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, var(--brand-accent), var(--brand-primary));
  color: #fff;
}

.home-modern .article-gallery-title {
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.home-modern .article-gallery-count {
  background: rgba(255, 255, 255, 0.22);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.home-modern .article-gallery-carousel .carousel-item img,
.home-modern .article-single-image {
  width: 100%;
  height: 420px;
  max-height: 55vh;
  object-fit: cover;
}

.home-modern .article-gallery-hint {
  font-size: 0.85rem;
  text-align: center;
  padding: 0.6rem 1rem;
  color: var(--text-muted);
  background: var(--surface-muted);
  border-bottom: 1px solid var(--border);
}

.home-modern .article-gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  background: var(--surface-muted);
  justify-content: center;
}

.home-modern .article-gallery-thumb {
  width: 72px;
  height: 54px;
  padding: 0;
  border: 3px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #ddd;
  opacity: 0.65;
  transition: all 0.2s ease;
}

.home-modern .article-gallery-thumb.active {
  border-color: var(--brand-accent);
  opacity: 1;
}

.home-modern .article-gallery-carousel .carousel-control-prev,
.home-modern .article-gallery-carousel .carousel-control-next {
  width: 48px;
  height: 48px;
  background: rgba(231, 76, 60, 0.92);
  border-radius: 50%;
  border: 3px solid #fff;
  opacity: 1;
  top: 50%;
  transform: translateY(-50%);
}

.category-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
}

.category-empty i {
  font-size: 2.5rem;
  color: var(--brand-accent);
  margin-bottom: 0.75rem;
  display: block;
}

/* Static pages - About Us, Contact */
.static-page {
  min-width: 0;
}

.static-page-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.static-page-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand-dark);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.static-page-title i {
  color: var(--brand-accent);
}

.static-page-lead {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text);
  text-align: justify;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.static-page-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.static-feature {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}

.static-feature i {
  font-size: 2rem;
  color: var(--brand-accent);
  margin-bottom: 0.75rem;
}

.static-feature h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin: 0 0 0.5rem;
}

.static-feature p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

.contact-form-modern .form-group {
  margin-bottom: 1.25rem;
}

.contact-form-modern label {
  display: block;
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.contact-form-modern .form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-ar);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form-modern .form-control:focus {
  outline: none;
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
}

.btn-contact-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--brand-accent), var(--brand-primary));
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 10px;
  font-family: var(--font-ar);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-contact-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.contact-flash {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
}

.contact-flash-success {
  background: #e8f8ef;
  border: 1px solid #a8e6c1;
  color: #1e7e45;
}

.contact-flash-error {
  background: #fdecea;
  border: 1px solid #f5b7b1;
  color: #c0392b;
}

@media (max-width: 768px) {
  .article-title {
    font-size: 1.35rem;
  }

  .home-modern .article-gallery-carousel .carousel-item img,
  .home-modern .article-single-image {
    height: 240px;
  }
}
