/* ============================================================================
   KFUPM landing overrides — loaded ONLY on the public landing page when the
   active brand is 'kfupm' (see landing.html). The landing page uses its OWN
   custom properties (--sky*, --gold) defined in css/landing/navbar-hero.css,
   which are independent of the --es-* design tokens. This file re-colours those
   landing variables to the KFUPM identity + a few RTL/section tweaks.

   Loaded AFTER pages/landing.css so these :root declarations win the cascade.
   ============================================================================ */

:root {
  --sky:        #2C5E65;   /* KFUPM teal — nav, buttons, hero accent, links */
  --sky-dark:   #244E54;
  --sky-lt:     #E4EEEF;   /* light teal tint — chips, soft fills */
  --sky-xl:     #F4F0E8;   /* warm beige — alternating section background */
  --gold:       #B8901F;   /* legible KFUPM gold accent */
}

/* ---- Image-driven hero: campus photo background + framed landmark card ---- */
.lp-kfupm-hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  background: #16363b;                /* fallback tint while the photo loads */
  padding-block: clamp(3.25rem, 8vw, 6rem);
  overflow: hidden;
}
.lp-kfupm-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(105deg, rgba(16, 42, 46, 0.95) 0%, rgba(20, 50, 55, 0.80) 45%, rgba(26, 64, 70, 0.45) 100%),
    url("../../img/brand/kfupm/landing/hero-bg.jpg");
  background-size: cover;
  background-position: center;
}
[dir="rtl"] .lp-kfupm-hero-overlay {
  /* keep the darker end of the gradient under the text (right side in RTL) */
  background-image:
    linear-gradient(255deg, rgba(16, 42, 46, 0.95) 0%, rgba(20, 50, 55, 0.80) 45%, rgba(26, 64, 70, 0.45) 100%),
    url("../../img/brand/kfupm/landing/hero-bg.jpg");
}
.lp-kfupm-hero-badge {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(4px);
}
.lp-kfupm-hero-badge .dot { background: var(--gold); }
/* Raise specificity above the base `.lp-hero h1` (0,1,1) so the headline is
   light on the teal photo wash instead of inheriting the plain-mode dark ink. */
.lp-kfupm-hero .lp-kfupm-hero-title {
  color: #fff;
  -webkit-text-fill-color: #fff;
}
.lp-kfupm-hero .lp-kfupm-hero-title .gradient-text {
  -webkit-text-fill-color: initial;
  background: none;
  color: #ecd88f;                    /* bright, legible gold on the teal wash */
}
.lp-kfupm-hero .lp-kfupm-hero-sub { color: rgba(255, 255, 255, 0.90); }
.lp-kfupm-hero .lp-btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #17272a;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}
.lp-kfupm-hero .lp-btn-primary:hover { background: #a67f18; border-color: #a67f18; color: #fff; }
.lp-kfupm-hero .lp-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.lp-kfupm-hero .lp-btn-secondary:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }

/* Framed landmark photo (KFUPM water tower) beside the hero copy. */
.lp-kfupm-photo {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 26px 64px rgba(10, 30, 33, 0.45);
  border: 6px solid rgba(255, 255, 255, 0.9);
}
.lp-kfupm-photo img {
  display: block;
  width: 100%;
  height: clamp(240px, 34vw, 380px);
  object-fit: cover;
}
.lp-kfupm-photo figcaption {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #244e54;
  background: linear-gradient(90deg, rgba(218, 201, 97, 0.22), rgba(218, 201, 97, 0.06));
}
.lp-kfupm-photo figcaption .bi { color: var(--gold); }

/* RTL: mirror directional arrow glyphs (matches the project convention). */
[dir="rtl"] .lp-rtl-flip { display: inline-block; transform: scaleX(-1); }

/* ---- Traveler-segment image cards ---- */
.lp-seg-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.lp-seg-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #dfe7e8;
}
.lp-seg-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}
.lp-seg-card:hover .lp-seg-media img { transform: scale(1.06); }
.lp-seg-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.lp-seg-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  background: linear-gradient(135deg, #2C5E65 0%, #4E8A92 100%);
  margin-top: -3.4rem;               /* lift the badge up to overlap the photo */
  margin-bottom: 1rem;
  border: 3px solid #fff;
  box-shadow: 0 8px 20px rgba(28, 62, 67, 0.30);
  position: relative;
}
.lp-seg-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.lp-seg-list li {
  position: relative;
  padding-inline-start: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.lp-seg-list li::before {
  content: "\F26E";                 /* bootstrap-icons check */
  font-family: "bootstrap-icons";
  position: absolute;
  inset-inline-start: 0;
  color: var(--sky);
}

/* FAQ — lightweight native <details> accordion styled with landing vocabulary. */
.lp-faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 0.85rem;
  overflow: hidden;
}
.lp-faq-item > summary {
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 1.25rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.lp-faq-item > summary::-webkit-details-marker { display: none; }
.lp-faq-item > summary::after {
  content: "\F282";                 /* chevron-down */
  font-family: "bootstrap-icons";
  color: var(--sky);
  transition: transform 0.2s ease;
}
.lp-faq-item[open] > summary::after { transform: rotate(180deg); }
.lp-faq-answer {
  padding: 0 1.25rem 1.15rem;
  color: var(--muted);
  line-height: 1.7;
}

/* Contact facts list. */
.lp-kfupm-contact-list { list-style: none; padding: 0; margin: 0; }
.lp-kfupm-contact-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
}
.lp-kfupm-contact-list li:last-child { border-bottom: 0; }
.lp-kfupm-contact-list .ci-icon { color: var(--sky); font-size: 1.15rem; margin-top: 2px; }
.lp-kfupm-contact-list .ci-label { display: block; font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }
.lp-kfupm-contact-list .ci-value { color: var(--ink); font-weight: 600; }
.lp-kfupm-contact-list a { color: var(--sky); text-decoration: none; }
