/*
Theme Name: Arib7 Professional
Theme URI: https://arib7.net/
Author: OpenAI
Description: قالب ووردبريس احترافي مخصص لموقع أخبار الوظيفة والهجرة مع صفحة رئيسية ديناميكية وسلايدر تلقائي لآخر المقالات وبنية أقسام مطابقة للموقع الحالي.
Version: 1.3.0
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: arib7-professional
*/

:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #eef3ff;
  --surface-3: #f2f8f5;
  --text: #111827;
  --muted: #5b6475;
  --line: #e5e7eb;
  --primary: #1d4ed8;
  --primary-dark: #173ea8;
  --accent: #0f766e;
  --warning: #b45309;
  --danger: #b42318;
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --container: min(1180px, calc(100% - 32px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Tahoma, Arial, sans-serif;
  line-height: 1.8;
}
body.rtl { direction: rtl; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
.container { width: var(--container); margin-inline: auto; }
.section { padding: 34px 0; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.section-head h2,
.section-head h1 {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  line-height: 1.3;
}
.section-head p { margin: 8px 0 0; color: var(--muted); }
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(29, 78, 216, 0.09);
  color: var(--primary);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
}
.section-link,
.text-button {
  color: var(--primary);
  font-weight: 700;
}
.card,
.post-card,
.mini-card,
.empty-card,
.widget-card,
.feature-box,
.meta-card,
.page-shell,
.archive-card,
.single-shell,
.search-empty,
.footer-card {
  background: var(--surface);
  border: 1px solid rgba(229, 231, 235, 0.75);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(246, 248, 252, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 80px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.brand-logo,
.brand-logo-wrap {
  line-height: 0;
}
.brand-logo-image {
  width: 168px;
  max-width: 100%;
  height: auto;
  display: block;
}
.brand-logo .custom-logo {
  max-height: 60px;
  width: auto;
}
.brand-copy { min-width: 0; }
.site-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.2;
}
.site-tagline {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.93rem;
}
.nav-shell {
  display: flex;
  align-items: center;
  gap: 14px;
}
.primary-nav .menu,
.footer-nav .menu,
.footer-links,
.footer-quick,
.footer-latest,
.category-tiles,
.benefits-list,
.meta-list,
.post-meta-list,
.pagination,
.breadcrumbs,
.slider-dots,
.mobile-actions {
  list-style: none;
  padding: 0;
  margin: 0;
}
.primary-nav .menu {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
}
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a,
.primary-nav a:hover {
  background: rgba(29, 78, 216, 0.09);
  color: var(--primary);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
}
.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.95fr);
  gap: 24px;
  align-items: stretch;
  padding-top: 28px;
}
.hero-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 46px);
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.35), transparent 30%),
    linear-gradient(145deg, #0f172a 0%, #173ea8 55%, #0f766e 100%);
  color: #fff;
}
.hero-panel::after {
  content: '';
  position: absolute;
  inset-inline-end: -55px;
  inset-block-end: -70px;
  width: 220px;
  height: 220px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}
.hero-panel h1 {
  margin: 16px 0 12px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.15;
}
.hero-panel p {
  margin: 0;
  max-width: 60ch;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.btn,
button[type="submit"],
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 14px;
  border: 0;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover,
button[type="submit"]:hover,
input[type="submit"]:hover { transform: translateY(-1px); }
.btn-primary,
button[type="submit"],
input[type="submit"] {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 18px 30px rgba(29, 78, 216, 0.25);
}
.btn-primary:hover,
button[type="submit"]:hover,
input[type="submit"]:hover { background: var(--primary-dark); color: #fff; }
.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}
.hero-point {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.hero-point strong { display: block; margin-bottom: 6px; font-size: 1rem; }
.hero-point span { color: rgba(255, 255, 255, 0.86); font-size: 0.94rem; }
.hero-sidebar {
  display: grid;
  gap: 18px;
}
.hero-stat,
.hero-search-card {
  padding: 24px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid rgba(229, 231, 235, 0.8);
  box-shadow: var(--shadow);
}
.hero-stat h2,
.hero-search-card h2 { margin: 0 0 14px; font-size: 1.35rem; }
.stat-list,
.search-hints,
.footer-links,
.footer-quick,
.footer-latest,
.benefits-list,
.meta-list,
.post-meta-list {
  display: grid;
  gap: 12px;
}
.stat-list li,
.search-hints li,
.benefits-list li,
.meta-list li,
.post-meta-list li,
.footer-links li,
.footer-quick li,
.footer-latest li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
}
.stat-list li::before,
.search-hints li::before,
.benefits-list li::before,
.meta-list li::before,
.post-meta-list li::before,
.footer-links li::before,
.footer-quick li::before,
.footer-latest li::before {
  content: '•';
  color: var(--accent);
  font-size: 1.3rem;
  line-height: 1;
}
.hero-search-card form,
.search-panel form,
.searchform {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-search-card input[type="search"],
.search-panel input[type="search"],
.searchform input[type="search"],
input[type="text"],
input[type="email"],
textarea {
  flex: 1 1 220px;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
}
textarea { min-height: 140px; padding-block: 16px; }
.category-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.feature-box {
  display: block;
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.feature-box::after {
  content: '';
  position: absolute;
  inset-inline-end: -22px;
  inset-block-start: -22px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(29,78,216,0.12), rgba(15,118,110,0.12));
}
.feature-box strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.feature-box span { display: block; color: var(--muted); }
.slider-shell {
  position: relative;
  overflow: hidden;
  padding: 28px;
}
.slider-viewport {
  overflow: hidden;
  border-radius: 24px;
}
.slider-track {
  display: flex;
  gap: 0;
  transition: transform 0.65s ease;
  will-change: transform;
}
.slide-card {
  width: 100%;
  min-width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  overflow: hidden;
  background: linear-gradient(180deg, #fff, #f9fbff);
  border: 1px solid rgba(229,231,235,0.9);
  border-radius: 24px;
  flex: 0 0 100%;
  min-height: 430px;
}
.slide-media {
  min-height: 100%;
  background: linear-gradient(135deg, #dbeafe, #e0f2fe);
  display: block;
  width: 100%;
}
.slide-media img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}
.slide-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 30px;
  min-width: 0;
  background: #fff;
}
.post-tag,
.term-badge,
.meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15,118,110,0.1);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.85rem;
}
.slide-title,
.post-card-title,
.archive-title,
.single-title,
.latest-list-title {
  margin: 0;
  line-height: 1.35;
  font-weight: 900;
}
.slide-title { font-size: clamp(1.4rem, 2vw, 2rem); }
.slide-excerpt,
.post-card-excerpt,
.archive-excerpt,
.latest-list-excerpt,
.empty-card p,
.widget-card p,
.meta-card p,
.single-excerpt {
  color: var(--muted);
  margin: 0;
}
.slider-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}
.slider-buttons {
  display: flex;
  gap: 10px;
}
.slider-button {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}
.slider-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.slider-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}
.slider-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #cbd5e1;
}
.slider-dots button.is-active { background: var(--primary); }
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.posts-grid.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.post-card,
.archive-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.post-card-image,
.archive-card-image {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #e5efff, #f2f8f5);
  display: block;
  width: 100%;
  min-height: 230px;
  overflow: hidden;
}
.post-card-image img,
.archive-card-image img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
}
.post-card-body,
.archive-card-body {
  display: grid;
  gap: 10px;
  padding: 20px;
  background: #fff;
  flex: 1 1 auto;
  align-content: start;
}
.post-meta,
.single-meta,
.archive-meta,
.latest-list-meta,
.widget-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}
.post-card-title,
.archive-title { font-size: 1.1rem; }
.post-card-footer,
.latest-list-actions,
.single-shell .post-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.read-more {
  color: var(--primary);
  font-weight: 800;
}
.search-panel,
.benefits-panel,
.widget-card,
.meta-card,
.page-shell,
.single-shell,
.archive-shell,
.not-found-shell,
.search-empty,
.footer-card {
  padding: 24px;
}
.info-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}
.benefits-list li strong,
.meta-list li strong,
.post-meta-list li strong {
  color: var(--text);
}
.home-split {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
  gap: 18px;
}
.latest-list {
  display: grid;
  gap: 16px;
}
.latest-list-item {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(229,231,235,0.92);
  align-items: stretch;
  overflow: hidden;
}
.latest-list-thumb {
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #e0e7ff, #d1fae5);
  min-height: 170px;
}
.latest-list-thumb img {
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
}

.post-image-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 180px;
  padding: 20px;
  text-align: center;
  background: linear-gradient(135deg, #dbeafe, #dcfce7);
  color: var(--primary-dark);
  font-weight: 800;
}
.slide-fallback-media {
  min-height: 100%;
}
.latest-list-placeholder {
  min-height: 100%;
  border-radius: 16px;
}
.latest-list-content {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
}
.latest-list-title {
  font-size: 1.08rem;
  word-break: break-word;
}
.latest-list-excerpt,
.post-card-excerpt,
.archive-excerpt,
.slide-excerpt {
  overflow-wrap: anywhere;
}
.empty-card,
.search-empty,
.not-found-shell {
  text-align: center;
}
.empty-card h3,
.not-found-shell h1,
.search-empty h2 { margin-top: 0; }
.layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
}
.sidebar-stack {
  display: grid;
  gap: 18px;
}
.widget-title,
.sidebar-title,
.footer-title {
  margin: 0 0 14px;
  font-size: 1.1rem;
}
.widget-card ul,
.widget-card ol {
  padding-inline-start: 20px;
  margin: 0;
}
.widget-card li + li { margin-top: 10px; }
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 18px;
}
.breadcrumbs span.sep { color: #a0aec0; }
.page-shell h1,
.single-title,
.archive-shell h1,
.not-found-shell h1 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.25;
}
.entry-content,
.archive-description,
.page-shell .entry-summary,
.page-shell .entry-content {
  color: #233044;
}
.single-featured {
  margin-bottom: 22px;
  border-radius: 24px;
  overflow: hidden;
}
.single-featured img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}
.single-shell .entry-content > *:first-child,
.page-shell .entry-content > *:first-child { margin-top: 0; }
.single-shell .entry-content > *:last-child,
.page-shell .entry-content > *:last-child { margin-bottom: 0; }
.single-shell .entry-content a,
.page-shell .entry-content a { color: var(--primary); font-weight: 700; }
.single-shell .entry-content h2,
.page-shell .entry-content h2,
.single-shell .entry-content h3,
.page-shell .entry-content h3,
.single-shell .entry-content h4,
.page-shell .entry-content h4 { line-height: 1.35; }
.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}
.pagination .current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.site-footer {
  margin-top: 42px;
  background: #0f172a;
  color: #dbe4f0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr 0.9fr 1fr;
  gap: 20px;
  padding: 34px 0;
}
.footer-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255,255,255,0.08);
  box-shadow: none;
}
.footer-card a:hover { color: #fff; }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.footer-logo-link,
.footer-logo {
  line-height: 0;
}
.footer-logo-image {
  width: 148px;
  max-width: 100%;
  height: auto;
  display: block;
}
.footer-logo .custom-logo {
  max-height: 52px;
  width: auto;
}
.footer-about {
  margin: 0;
  color: #c2ccda;
}
.footer-note {
  margin-top: 14px;
  color: #aab6c8;
  font-size: 0.95rem;
}
.footer-card .footer-title { color: #fff; }
.footer-bottom {
  padding: 16px 0 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: #aab6c8;
  text-align: center;
}
.alignwide,
.alignfull { width: 100%; }
.wp-caption,
.gallery-caption,
.bypostauthor { max-width: 100%; }

@media (max-width: 1100px) {
  .hero-grid,
  .home-split,
  .info-grid,
  .layout-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .posts-grid.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slide-card { grid-template-columns: 1fr; min-height: 0; }
}

@media (max-width: 920px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-shell {
    position: absolute;
    inset-inline: 16px;
    inset-block-start: calc(100% + 12px);
    background: var(--surface);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
  }
  .nav-shell.is-open { display: flex; }
  .primary-nav .menu { flex-direction: column; align-items: stretch; }
  .primary-nav a { justify-content: space-between; border-radius: 14px; }
  .header-actions .header-search { display: none; }
  .posts-grid,
  .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .container { width: min(100% - 20px, var(--container)); }
  .section { padding: 24px 0; }
  .hero-points,
  .category-tiles,
  .posts-grid,
  .archive-grid,
  .posts-grid.grid-4 { grid-template-columns: 1fr; }
  .latest-list-item { grid-template-columns: 1fr; }
  .slide-card { grid-template-columns: 1fr; min-height: 0; }
  .slide-media img { min-height: 260px; }
  .brand-logo-image { width: 138px; }
  .slider-shell,
  .hero-stat,
  .hero-search-card,
  .search-panel,
  .benefits-panel,
  .widget-card,
  .meta-card,
  .page-shell,
  .single-shell,
  .archive-shell,
  .footer-card { padding: 18px; }
  .hero-panel { padding: 24px; }
  .hero-actions,
  .slider-nav,
  .section-head,
  .header-inner { align-items: flex-start; }
  .slider-nav,
  .section-head,
  .header-inner { flex-direction: column; }
  .hero-actions .btn,
  .search-panel form > * { width: 100%; }
}


/* ===== v1.3 slider + latest list + ads overrides ===== */

.slider-track {
  position: relative;
  min-height: 430px;
}

.slide-card {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  position: absolute;
  inset: 0;
  width: 100%;
  min-width: 0;
  flex: none;
  transform: translateX(24px);
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s ease;
}

.slide-card.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  position: relative;
  transform: translateX(0);
}

.latest-list-item {
  display: flex;
  flex-direction: row-reverse;
  align-items: stretch;
  gap: 18px;
}

.latest-list-thumb {
  flex: 0 0 clamp(300px, 42%, 420px);
  max-width: clamp(300px, 42%, 420px);
  aspect-ratio: auto;
  min-height: 220px;
}

.latest-list-thumb img {
  min-height: 220px;
}

.latest-list-content {
  flex: 1 1 auto;
  min-width: 0;
  padding: 6px 2px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.latest-list-title {
  font-size: 1.12rem;
}

.latest-list-title a,
.latest-list-excerpt {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.latest-list-title a {
  -webkit-line-clamp: 2;
}

.latest-list-excerpt {
  -webkit-line-clamp: 3;
}

.ad-slot {
  margin: 22px 0;
}

.ad-slot .widget,
.ad-slot .widget-card,
.ad-slot section {
  margin: 0;
}

.ad-box {
  background: #fff;
  border: 1px dashed rgba(29, 78, 216, 0.25);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ad-box ins,
.ad-box iframe,
.ad-box img,
.ad-box script {
  max-width: 100%;
}

.ad-box .widget-title {
  margin-bottom: 10px;
}

@media (max-width: 900px) {
  .slide-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .slide-media img {
    min-height: 260px;
  }

  .latest-list-item {
    flex-direction: column;
  }

  .latest-list-thumb {
    flex-basis: auto;
    max-width: 100%;
    width: 100%;
  }

  .latest-list-content {
    padding: 0;
  }
}
