:root {
  --rotana-red: #b4232a;
  --rotana-dark: #111827;
  --rotana-muted: #667085;
  --rotana-line: rgba(17, 24, 39, .1);
  --rotana-paper: #eef1f5;
  --rotana-card: #fff;
}

body {
  background:
    linear-gradient(135deg, rgba(180, 35, 42, .06), rgba(17, 24, 39, .04)),
    repeating-linear-gradient(0deg, rgba(17, 24, 39, .04) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(180, 35, 42, .035) 0 1px, transparent 1px 42px),
    var(--rotana-paper) !important;
}

#tie-wrapper,
#tie-container,
.background-overlay {
  background: transparent !important;
}

#theme-header {
  background: rgba(255, 255, 255, .97) !important;
  border-bottom: 3px solid var(--rotana-red) !important;
  box-shadow: 0 16px 40px rgba(17, 24, 39, .12) !important;
}

#main-nav,
#main-nav .menu-sub-content,
#main-nav .comp-sub-menu {
  background: var(--rotana-red) !important;
}

.rotana-home-shell {
  width: min(100% - 44px, 1320px);
  margin-inline: auto;
}

.rotana-news-home {
  padding: 0 0 28px;
}

.rotana-top-alert {
  margin-top: 14px;
}

.rotana-top-alert .rotana-home-shell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  overflow: hidden;
  border: 1px solid var(--rotana-line);
  border-radius: 8px;
  background: var(--rotana-dark);
  color: #fff;
}

.rotana-alert-label {
  align-self: stretch;
  display: grid;
  place-items: center;
  padding: 0 16px;
  background: var(--rotana-red);
  font-weight: 900;
}

.rotana-alert-window {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.rotana-alert-track {
  display: inline-flex;
  gap: 28px;
  min-width: max-content;
  animation: rotanaTicker 46s linear infinite;
}

.rotana-alert-track:hover {
  animation-play-state: paused;
}

.rotana-alert-track a {
  color: #fff !important;
  font-weight: 800;
}

@keyframes rotanaTicker {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.rotana-news-nav {
  padding: 12px 0 6px;
}

.rotana-news-nav .rotana-home-shell {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px;
  border: 1px solid var(--rotana-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .9);
}

.rotana-news-nav a {
  flex: 0 0 auto;
  border: 1px solid rgba(180, 35, 42, .18);
  border-radius: 7px;
  padding: 8px 12px;
  color: var(--rotana-dark) !important;
  background: #fff;
  font-weight: 900;
}

.rotana-news-nav a:hover {
  color: #fff !important;
  background: var(--rotana-red);
}

.rotana-hero {
  padding: 14px 0 20px;
}

.rotana-hero-grid {
  display: grid;
  grid-template-columns: minmax(320px, .74fr) minmax(0, 1.36fr);
  gap: 18px;
  align-items: stretch;
}

.rotana-hero-copy,
.rotana-lead-story,
.rotana-side-panel,
.rotana-card {
  border: 1px solid var(--rotana-line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(248, 250, 252, .94)),
    repeating-linear-gradient(90deg, rgba(17, 24, 39, .03) 0 1px, transparent 1px 28px);
  box-shadow: 0 10px 28px rgba(17, 24, 39, .08);
}

.rotana-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
}

.rotana-hero-copy span,
.rotana-kicker,
.rotana-lead-content span {
  color: var(--rotana-red);
  font-weight: 900;
}

.rotana-hero-copy h1 {
  margin: 8px 0 12px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.12;
  color: var(--rotana-dark);
}

.rotana-hero-copy p {
  margin: 0;
  color: var(--rotana-muted);
  line-height: 1.8;
}

.rotana-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.rotana-hero-actions a,
.rotana-side-panel a,
.rotana-section-title a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 7px;
  padding: 0 13px;
  color: #fff !important;
  background: var(--rotana-red);
  font-weight: 900;
}

.rotana-hero-actions a:last-child,
.rotana-side-panel a {
  background: var(--rotana-dark);
}

.rotana-lead-story {
  overflow: hidden;
}

.rotana-lead-media,
.rotana-card-media {
  display: block;
}

.rotana-lead-media img,
.rotana-lead-media .rotana-photo-fallback {
  width: 100%;
  height: 430px;
  object-fit: cover;
}

.rotana-lead-content {
  padding: 18px;
}

.rotana-lead-content h2 {
  margin: 8px 0 10px;
  font-size: clamp(24px, 2.2vw, 36px);
  line-height: 1.35;
}

.rotana-lead-content h2 a,
.rotana-card h3 a {
  color: var(--rotana-dark) !important;
}

.rotana-lead-content p,
.rotana-card p,
.rotana-side-note {
  margin: 0;
  color: var(--rotana-muted);
  line-height: 1.75;
}

.rotana-main-board {
  padding: 12px 0 20px;
}

.rotana-board-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .32fr);
  gap: 16px;
  align-items: start;
}

.rotana-section-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-bottom: 2px solid var(--rotana-dark);
  margin-bottom: 14px;
}

.rotana-section-title h2 {
  margin: 0;
  border-radius: 8px 8px 0 0;
  padding: 9px 14px;
  color: #fff;
  background: var(--rotana-dark);
  font-size: 21px;
}

.rotana-card-grid,
.rotana-section-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.rotana-card {
  overflow: hidden;
}

.rotana-card-media img,
.rotana-card-media .rotana-photo-fallback {
  width: 100%;
  height: 154px;
  object-fit: cover;
}

.rotana-card-body {
  padding: 12px;
}

.rotana-card h3 {
  margin: 6px 0 8px;
  font-size: 17px;
  line-height: 1.5;
}

.rotana-card time {
  display: block;
  color: var(--rotana-muted);
  font-size: 12px;
  font-weight: 800;
}

.rotana-card.is-compact .rotana-card-media img,
.rotana-card.is-compact .rotana-card-media .rotana-photo-fallback {
  height: 132px;
}

.rotana-side-panel {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.rotana-side-panel h2 {
  margin: 0;
  color: var(--rotana-dark);
}

.rotana-section-block {
  padding: 10px 0 18px;
}

.rotana-photo-fallback {
  display: grid;
  place-items: center;
  min-height: 132px;
  color: #fff;
  background:
    linear-gradient(135deg, var(--rotana-dark), var(--rotana-red)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .12) 0 1px, transparent 1px 26px);
  font-weight: 900;
}

.rotana-child-footer {
  margin-top: 28px;
  padding: 34px 18px 18px;
  color: #fff;
  background:
    linear-gradient(135deg, #111827, #261015),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 34px);
}

.rotana-child-footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 22px;
  width: min(100%, 1180px);
  margin-inline: auto;
}

.rotana-footer-brand {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
}

.rotana-footer-brand span {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #fff url("https://rotana-news.net/wp-content/uploads/2026/06/%D9%84%D9%88%D9%82%D9%88-%D8%B1%D9%88%D8%AA%D8%A7%D9%86%D8%A7.jpeg") center/cover no-repeat;
}

.rotana-child-footer h2,
.rotana-child-footer h3 {
  margin: 0 0 10px;
  color: #fff;
}

.rotana-child-footer p {
  margin: 0;
  color: rgba(255, 255, 255, .76);
  line-height: 1.8;
}

.rotana-child-footer nav {
  display: grid;
  gap: 8px;
}

.rotana-child-footer a {
  color: rgba(255, 255, 255, .88) !important;
}

.rotana-child-copy {
  width: min(100%, 1180px);
  margin: 24px auto 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .66);
  font-size: 13px;
}

@media (min-width: 1500px) {
  .rotana-home-shell {
    width: min(100% - 56px, 1480px);
  }
}

@media (max-width: 1100px) {
  .rotana-card-grid,
  .rotana-section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rotana-hero-grid,
  .rotana-board-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .rotana-home-shell {
    width: min(100% - 22px, 1320px);
  }

  .rotana-top-alert .rotana-home-shell {
    align-items: stretch;
    flex-direction: column;
    padding-bottom: 9px;
  }

  .rotana-alert-label {
    min-height: 38px;
  }

  .rotana-alert-track {
    animation-duration: 36s;
  }

  .rotana-hero-copy {
    padding: 18px;
  }

  .rotana-hero-copy h1 {
    font-size: 31px;
  }

  .rotana-lead-media img,
  .rotana-lead-media .rotana-photo-fallback {
    height: 260px;
  }

  .rotana-card-grid,
  .rotana-section-grid,
  .rotana-child-footer-inner {
    grid-template-columns: 1fr;
  }

  .rotana-section-title {
    align-items: flex-start;
    flex-direction: column;
    border-bottom: 0;
  }

  .rotana-section-title h2 {
    border-radius: 8px;
  }
}
