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

:root {
  --brand-blue: #1a73c7;
  --brand-red: #c0202a;
  --brand-green: #1c8a3c;
  --text-dark: #222;
  --text-muted: #666;
  --border: #e2e2e2;
  --bg-light: #f5f6f7;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--text-dark);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }

/* Header */
.header {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
.header-link {
  position: absolute;
  display: block;
  z-index: 5;
}
/* Left/right translation ad boxes -> translation-services.html */
.header-ad-left {
  top: 0;
  left: 0;
  width: 25.2%;
  height: 75.5%;
}
.header-ad-right {
  top: 0;
  right: 0;
  width: 25.8%;
  height: 75.5%;
}
/* Middle logo (dove + AL-FURAT + الفرات) -> home page */
.header-home {
  top: 0;
  left: 25.2%;
  width: 49%;
  height: 73.2%;
}
/* Bottom-left dark strip: INFO@FURATNEWS.COM -> email */
.header-email {
  left: 0;
  width: 27.9%;
  top: 88.8%;
  height: 11.2%;
}
/* Bottom-right dark strip: MOBILE number -> WhatsApp */
.header-phone {
  right: 0;
  width: 25.8%;
  top: 88.8%;
  height: 11.2%;
}
.masthead-img {
  display: block;
  width: 100%;
  height: auto;
}

/* Navigation */
.main-nav {
  max-width: 1200px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--brand-blue), #0d2f8a);
  border-top: 3px solid var(--brand-blue);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  position: sticky;
  top: 0;
  z-index: 100;
}
.main-nav ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  padding: 2px 14px;
}
.main-nav a {
  display: block;
  padding: 6px 10px;
  font-size: 13px;
  line-height: 1.3;
  font-family: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.1px;
  color: rgba(255, 255, 255, 0.92);
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.main-nav a:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  transform: translateY(-1px);
}
.main-nav a.active {
  background: #fff;
  color: var(--brand-blue);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}
.nav-toggle {
  display: none;
  width: 100%;
  padding: 12px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  text-align: center;
}

/* Content layout */
.content-wrap {
  max-width: 1200px;
  margin: 0 auto 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
}

.section-title {
  font-size: 16px;
  border-bottom: 2px solid var(--brand-blue);
  padding-bottom: 8px;
  margin: 0 0 12px;
  color: var(--brand-blue);
}

.main-article { min-width: 0; }

/* Sidebar: a flex column so the sidebar's bottom edge stays level with the
   PDF viewer + page-nav column next to it (the grid's default
   align-items:stretch already gives both columns the same overall height —
   this just decides which block absorbs the leftover space). The "current
   issue" card grows to fill it, since it's a plain gradient block with no
   image to distort; the ad grid keeps a fixed aspect-ratio so the ad
   graphics are never stretched or cropped out of shape. */
.sidebar {
  display: flex;
  flex-direction: column;
}
.flipbook-btn,
.issues-list,
.banner-grid {
  flex: 0 0 auto;
}

/* Sidebar: current issue card */
.issue-card {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(160deg, #1a4fc7, #0d2f8a);
  color: #fff;
  border-radius: 0;
  padding: 24px 20px;
  text-align: center;
  margin-bottom: 24px;
}
.issue-card-icon {
  font-size: 32px;
  margin-bottom: 10px;
}
.issue-card h3 {
  margin: 0 0 14px;
  font-size: 17px;
}
.btn-open-cover {
  display: inline-block;
  background: var(--brand-red);
  color: #fff;
  padding: 8px 24px;
  border-radius: 0;
  font-size: 14px;
  font-weight: 600;
}
.btn-open-cover:hover { background: #8f0000; }

/* Sidebar: FlipBook preview button */
.flipbook-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #fff;
  border: 2px solid var(--brand-blue);
  color: var(--brand-blue);
  padding: 14px;
  border-radius: 0;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 24px;
}
.flipbook-btn:hover {
  background: var(--brand-blue);
  color: #fff;
}
.flipbook-btn-icon { font-size: 20px; }

/* Sidebar: past issues list */
.issues-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.issues-list .doc-icon {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.issues-list .issue-info { flex: 1; }
.issues-list .issue-title {
  font-size: 13px;
  margin-bottom: 2px;
}
.issues-list .issue-download {
  font-size: 12px;
  color: var(--brand-blue);
  font-weight: 600;
}

/* Sidebar: dynamic banner slots. aspect-ratio matches the real ad graphics'
   own pixel dimensions (2153x3032) exactly, so object-fit:cover below never
   has to crop any edges off the design — see .issue-card above for how the
   leftover sidebar height is absorbed instead. */
.banner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.banner-slot {
  aspect-ratio: 2153 / 3032;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
}
.banner-slot-link {
  display: block;
  width: 100%;
  height: 100%;
}
.banner-slot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: opacity 0.3s ease;
}
.banner-slot-img.fade-out { opacity: 0; }

/* Static content pages (e.g. About Us) shown in place of the PDF viewer */
.about-content {
  direction: ltr;
  text-align: left;
}

/* Hero: diagonal blue "river" stripes, evoking the Euphrates (Al-Furat) */
.about-hero {
  position: relative;
  overflow: hidden;
  padding: 48px 24px 64px;
  text-align: center;
  color: #fff;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(135deg, #1a4fc7, #0d2f8a);
}
.about-hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: repeating-linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.09) 0px,
    rgba(255, 255, 255, 0.09) 22px,
    transparent 22px,
    transparent 48px
  );
  pointer-events: none;
}
.about-hero-inner { position: relative; z-index: 2; }
.about-hero-kicker {
  display: inline-block;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 700;
  color: #bcd4f7;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  padding: 4px 14px;
  margin-bottom: 14px;
}
.about-hero h1 {
  margin: 0 0 8px;
  font-size: 42px;
  font-weight: 900;
  letter-spacing: 2px;
}
.about-hero-tagline {
  margin: 0;
  font-size: 15px;
  opacity: 0.9;
}
.about-hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 40px;
  display: block;
}

/* Stat cards float over the hero's wave edge */
.about-stats {
  display: flex;
  gap: 16px;
  margin: -28px 20px 24px;
  position: relative;
  z-index: 3;
}
.stat-card {
  flex: 1;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  padding: 16px 8px;
  text-align: center;
}
.stat-icon { display: block; font-size: 22px; margin-bottom: 6px; }
.stat-number { display: block; font-size: 19px; font-weight: 800; color: var(--brand-blue); }
.stat-label { display: block; font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.about-body {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
}
.about-body p {
  margin: 0 0 16px;
  line-height: 1.8;
  font-size: 15px;
  color: var(--text-dark);
}
.about-body p:last-child { margin-bottom: 0; }
.about-body a { color: var(--brand-blue); text-decoration: underline; }

.about-contact-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cta-btn {
  background: linear-gradient(135deg, var(--brand-blue), #0d2f8a);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 14px 26px;
  border-radius: 30px;
}
.cta-btn:hover { background: linear-gradient(135deg, #0d2f8a, #082166); }

@media (max-width: 600px) {
  .about-stats { flex-direction: column; }
}

/* Editor-in-Chief articles page */
.editor-article-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
}
.editor-article-title {
  font-size: 21px;
  color: var(--brand-blue);
  margin: 0 0 14px;
  line-height: 1.5;
}
.editor-article-byline {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.editor-article-byline img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 12%;
  flex-shrink: 0;
}
.editor-article-byline-name { font-weight: 700; font-size: 14.5px; color: var(--text-dark); }
.editor-article-byline-role { font-size: 12.5px; color: var(--text-muted); }
.editor-article-hero-img {
  display: block;
  width: 100%;
  border-radius: 8px;
  margin-bottom: 18px;
}

/* Elegant, tightly-set Arabic body face + newspaper-style 3-column layout */
.editor-article-body {
  font-family: "Simplified Arabic", "Sakkal Majalla", "Traditional Arabic", "Tahoma", sans-serif;
  column-count: 3;
  column-gap: 26px;
  column-rule: 1px solid var(--border);
  column-fill: balance;
  text-align: justify;
}
.editor-article-body h2 {
  break-inside: avoid;
  font-size: 18px;
  color: var(--brand-blue);
  border-bottom: 2px solid var(--brand-blue);
  padding-bottom: 6px;
  margin: 22px 0 12px;
}
.editor-article-body h2:first-child { margin-top: 0; }
.editor-article-body p {
  margin: 0 0 12px;
  line-height: 1.4;
  font-size: 14.5px;
  letter-spacing: -0.7px;
  word-spacing: -2.5px;
  color: var(--text-dark);
}
.editor-article-body p:last-child { margin-bottom: 0; }
.editor-article-body strong { color: var(--brand-red); }
.editor-article-body ul,
.editor-article-body ol {
  margin: 0 0 12px;
  padding-right: 20px;
  padding-left: 0;
  break-inside: avoid;
}
.editor-article-body ul { list-style: disc; }
.editor-article-body ol { list-style: decimal; }
.editor-article-body ul li,
.editor-article-body ol li {
  line-height: 1.4;
  font-size: 14.5px;
  letter-spacing: -0.7px;
  color: var(--text-dark);
  margin-bottom: 5px;
}
.editor-article-body blockquote {
  margin: 0 0 12px;
  padding: 4px 12px;
  border-right: 3px solid var(--brand-red);
  font-style: italic;
  font-size: 14px;
  color: var(--text-muted);
  break-inside: avoid;
}
.editor-article-body table {
  column-span: all;
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 16px;
  font-size: 13px;
}
.editor-article-body table th,
.editor-article-body table td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: right;
}
.editor-article-body table th {
  background: var(--bg-light);
  color: var(--brand-blue);
}

@media (max-width: 900px) {
  .editor-article-body { column-count: 2; }
}
@media (max-width: 600px) {
  .editor-article-body { column-count: 1; }
}

/* Editor-in-Chief articles: index/list page */
.editor-articles-list-card {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 16px;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}
.editor-articles-list-card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}
.editor-articles-list-card img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 12%;
  flex-shrink: 0;
}
.editor-articles-list-info { flex: 1; min-width: 0; }
.editor-articles-list-title {
  font-size: 17px;
  color: var(--brand-blue);
  margin: 0 0 6px;
  line-height: 1.4;
}
.editor-articles-list-excerpt {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0 0 8px;
}
.editor-articles-list-readmore {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-red);
}

/* Distribution page: state-grouped location tables */
.distribution-content {
  direction: ltr;
  text-align: left;
}
.distribution-content h1 {
  color: var(--brand-blue);
  font-size: 26px;
  margin: 0 0 20px;
}
.distribution-state {
  color: var(--brand-blue);
  font-size: 18px;
  border-bottom: 2px solid var(--brand-blue);
  padding-bottom: 6px;
  margin: 28px 0 12px;
}
.distribution-state:first-child { margin-top: 0; }
.distribution-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.distribution-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.distribution-table th {
  background: var(--brand-blue);
  color: #fff;
  text-align: left;
  padding: 10px 12px;
  white-space: nowrap;
}
.distribution-table td {
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  color: var(--text-dark);
}
.distribution-table tr:nth-child(even) td { background: var(--bg-light); }

/* Translation Services page */
.translation-content { text-align: left; }

/* Migration Services page: this content is Arabic/English mixed and must
   stay right-to-left, unlike the English-only translation-services page
   that shares these classes. */
.migration-content { text-align: right; }
.migration-content .translation-body { direction: rtl; text-align: right; }
.migration-content .translation-list { padding-left: 0; padding-right: 20px; }
.migration-content .translation-body p,
.migration-content .translation-contact { direction: rtl; text-align: right; }

.upload-options {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.upload-docs-btn {
  display: block;
  width: fit-content;
  margin: 0;
  padding: 16px 32px;
  background: var(--brand-green);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(28, 138, 60, 0.35);
  transition: background 0.2s ease, transform 0.15s ease;
}
.upload-docs-btn:hover { background: #157030; transform: translateY(-1px); }

.upload-whatsapp-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 16px 32px;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
  transition: background 0.2s ease, transform 0.15s ease;
}
.upload-whatsapp-btn:hover { background: #1fb958; transform: translateY(-1px); }
.upload-whatsapp-icon { font-size: 18px; }

.upload-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.upload-overlay[hidden] { display: none; }

.upload-modal {
  position: relative;
  width: min(94vw, 640px);
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 10px;
  padding: 32px;
  direction: ltr;
  text-align: left;
}
.upload-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: #333;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.upload-title {
  margin: 0 0 4px;
  text-align: center;
  color: var(--brand-green);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.upload-subtitle {
  margin: 0 0 24px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-dark);
}
.upload-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
  margin-bottom: 14px;
}
.upload-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 14px;
}
.upload-form-grid label { margin-bottom: 0; }
.upload-form input[type="text"],
.upload-form input[type="email"],
.upload-form input[type="tel"],
.upload-form select,
.upload-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  background: #ececec;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-dark);
}
.upload-form textarea { resize: vertical; }
.upload-file-label { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.upload-file-trigger {
  display: inline-block;
  margin-top: 6px;
  color: var(--brand-green);
  font-weight: 700;
  font-style: italic;
  text-decoration: underline;
  cursor: pointer;
}
.upload-file-name { font-size: 12px; color: var(--text-muted); }
.upload-consent-label {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-weight: 400 !important;
}
.upload-consent-label input { margin: 0; }
.upload-submit-btn {
  display: block;
  margin: 10px 0 0 auto;
  padding: 14px 30px;
  background: var(--brand-green);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.upload-submit-btn:hover { background: #157030; }
.upload-form-note {
  margin: 14px 0 0;
  padding: 10px 14px;
  background: #eaf7ee;
  border: 1px solid var(--brand-green);
  border-radius: 6px;
  color: #157030;
  font-size: 13px;
}
.upload-form-note[hidden] { display: none; }

@media (max-width: 600px) {
  .upload-form-grid { grid-template-columns: 1fr; }
  .upload-modal { padding: 24px 18px; }
  .upload-title { font-size: 21px; }
}

.translation-banner-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
.translation-intro {
  direction: rtl;
  text-align: right;
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-dark);
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 20px;
}
.translation-body {
  direction: ltr;
  text-align: left;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}
.translation-body h2 { margin: 0 0 10px; font-size: 20px; color: var(--brand-blue); }
.translation-body h3 {
  margin: 22px 0 8px;
  font-size: 16px;
  color: var(--brand-blue);
}
.translation-body p {
  margin: 0 0 14px;
  line-height: 1.8;
  font-size: 15px;
  color: var(--text-dark);
}
.translation-list {
  margin: 0 0 14px;
  padding-left: 20px;
  line-height: 1.8;
  font-size: 15px;
  color: var(--text-dark);
}
.translation-list li { margin-bottom: 6px; }
.trust-badges {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}
.trust-card {
  flex: 1;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 16px;
  text-align: center;
}
.trust-card-img {
  display: block;
  max-height: 60px;
  width: auto;
  margin: 0 auto 12px;
}
.trust-card-img-gov { max-height: 70px; }
.trust-card p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.trust-card-stat { display: flex; flex-direction: column; justify-content: center; }
.trust-card-number {
  font-size: 32px;
  font-weight: 900;
  color: var(--brand-blue);
  line-height: 1;
}
.trust-card-number-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-blue);
  margin: 4px 0 10px;
}

@media (max-width: 600px) {
  .trust-badges { flex-direction: column; }
}
.translation-contact {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 15px;
  line-height: 2;
}
.translation-contact a { color: var(--brand-blue); text-decoration: underline; }

/* Main article */
.front-page {
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  background: var(--bg-light);
}
/* Desktop: iframe pointed straight at the PDF (native browser PDF viewer —
   zoom, print, toolbar). Mobile: script.js swaps the iframe for an <img>
   rendered via pdf.js instead, since most mobile browsers have no built-in
   inline PDF viewer and would otherwise just prompt a download. Shared
   sizing/appearance rule covers both cases; object-fit only affects the
   <img> variant. */
.pdf-viewer {
  width: 100%;
  height: 700px;
  border: none;
  display: block;
  object-fit: contain;
  background: var(--bg-light);
}

/* Page navigator */
.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

/* News carousel: now full page width (not confined to the main-article
   column), so all 4 video cards render at one equal, wider size. */
.news-carousel-wrap {
  max-width: 1200px;
  margin: 0 auto 20px;
}
.news-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.carousel-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 16px;
  transition: transform 0.4s ease;
}

.news-card {
  flex: 1 1 0;
  min-width: 0;
}
.news-card-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0;
  background: #000;
  border: 1px solid var(--border);
  margin-bottom: 8px;
  overflow: hidden;
  position: relative;
}
.news-card-media-link {
  cursor: pointer;
}
.news-card-media-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.08);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.news-card-media-link:hover::after {
  opacity: 1;
}
.news-card-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}
.news-card-embed {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.news-card-title {
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 6px;
}
.news-card-byline {
  font-size: 12px;
  color: var(--text-muted);
}

.carousel-arrow {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--brand-red);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}
.carousel-arrow:hover { background: #8f0000; }
.carousel-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

@media (max-width: 768px) {
  .news-card { flex: 1 1 100%; min-width: 100%; }
}
.page-btn {
  display: inline-block;
  border: 1px solid var(--border);
  background: #fff;
  min-width: 34px;
  padding: 6px 8px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-dark);
  text-decoration: none;
  cursor: pointer;
  border-radius: 0;
}
.page-nav-ad-btn {
  color: var(--brand-blue);
  font-weight: 700;
  border-color: var(--brand-blue);
}
.page-btn.active {
  background: var(--brand-blue);
  color: #fff;
  border-color: var(--brand-blue);
}

/* FlipBook modal */
.flipbook-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.flipbook-overlay[hidden] { display: none; }

.flipbook-modal {
  position: relative;
  width: min(92vw, 720px);
  background: #111;
  border-radius: 8px;
  padding: 16px;
}

.flipbook-close {
  position: absolute;
  top: 8px;
  left: 12px;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
}

.flipbook-stage {
  position: relative;
  height: 74vh;
  perspective: 2000px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flipbook-loading {
  position: absolute;
  color: #ccc;
  font-size: 14px;
}

.flipbook-page {
  position: absolute;
  top: 0;
  right: 50%;
  transform: translateX(50%);
  width: min(90vw, 55vh);
  height: 100%;
  max-width: 100%;
  background-color: #fff;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  backface-visibility: hidden;
}

.flipbook-front {
  z-index: 2;
  transform-origin: right center;
}
.flipbook-front.turning-next {
  transition: transform 0.6s ease-in;
  transform: translateX(50%) rotateY(-140deg);
}
.flipbook-front.turning-prev {
  transform-origin: left center;
  transition: transform 0.6s ease-in;
  transform: translateX(50%) rotateY(140deg);
}
.flipbook-front.no-transition { transition: none; }

.flipbook-back { z-index: 1; }

.flipbook-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
  color: #fff;
  font-size: 14px;
}
.flipbook-nav-btn {
  background: var(--brand-blue);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
}
@media (min-width: 769px) {
  .flipbook-modal { width: min(96vw, 1400px); padding: 24px; }
  .flipbook-stage { height: 90vh; }
  .flipbook-page { width: min(70vw, 63vh); }
}

.flipbook-nav-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Migration page: clickable visa list buttons */
.migration-visa-list { padding-right: 0; }
.migration-visa-list li { padding: 0; border: none; margin-bottom: 8px; }
.visa-info-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: right;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 12px 16px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-dark);
  cursor: pointer;
  transition: filter 0.15s ease, border-color 0.15s ease;
}
.visa-info-btn:hover {
  filter: brightness(0.96);
  border-color: var(--brand-blue);
}
.visa-ar {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-dark);
  white-space: nowrap;
}
.visa-en {
  font-size: 13px;
  color: var(--text-muted);
  text-align: left;
  direction: ltr;
}
.visa-color-1 { background: #eaf2fc; }
.visa-color-2 { background: #eafaf0; }
.visa-color-3 { background: #fdf3e7; }
.visa-color-4 { background: #f8eef8; }
.visa-color-5 { background: #eef9fa; }
.visa-color-6 { background: #fdf0f0; }
.visa-color-7 { background: #f5f7e8; }
.visa-color-8 { background: #eeeffb; }
.visa-color-9 { background: #fff8e1; }

@media (max-width: 600px) {
  .visa-info-btn { flex-direction: column; align-items: flex-start; gap: 4px; }
  .visa-en { text-align: right; direction: rtl; }
}

/* Migration page: visa info modal */
.visa-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}
.visa-modal-overlay[hidden] { display: none; }
.visa-modal {
  position: relative;
  width: min(92vw, 520px);
  background: #fff;
  border-radius: 10px;
  padding: 28px 24px 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}
.visa-modal-close {
  position: absolute;
  top: 8px;
  left: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.visa-modal-title {
  margin: 0 0 12px;
  font-size: 18px;
  color: var(--brand-blue);
}
.visa-modal-body {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-dark);
}
.visa-modal-contact {
  display: flex;
  gap: 16px;
  margin: 0;
}
.visa-modal-contact a {
  color: var(--brand-blue);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.visa-modal-contact a:hover { text-decoration: underline; }

/* Footer */
.site-footer {
  background: #0d1b2a;
  color: #fff;
  padding: 28px 16px 20px;
  margin-top: 30px;
}
.footer-contact {
  max-width: 1200px;
  margin: 0 auto 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 24px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.footer-contact-item a { color: #fff; }
.footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: #5bc0eb;
  font-size: 16px;
}
.footer-divider {
  max-width: 1200px;
  margin: 0 auto 16px;
  border: none;
  border-top: 1px dashed rgba(255, 255, 255, 0.3);
}
.site-footer .copyright-line {
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .content-wrap { grid-template-columns: 1fr; }
  .header { flex-direction: column; gap: 12px; }

  .nav-toggle { display: block; }
  .main-nav ul {
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 2px;
    padding: 0 10px 10px;
  }
  .main-nav.nav-open ul { display: flex; }
  .main-nav a { text-align: center; }

  .footer-contact { grid-template-columns: repeat(2, 1fr); }
}
