/* ================================================================
   WHY IRAN — Stage 01 responsive UI
   Namespaced under .wi-page to leave global site styles untouched.
   Image paths are declared in why-iran.php and live inside Pictures/.
   ================================================================ */

.wi-page {
  --wi-navy: #02172b;
  --wi-blue: #063358;
  --wi-royal: #01008c;
  --wi-cyan: #3fc9ff;
  --wi-gold: #f3bc45;
  --wi-yellow: #f3d16a;
  --wi-paper: #f9fbff;
  --wi-muted: #b5c9dc;
  --wi-outline: rgba(178, 219, 249, .28);
  --wi-max: 1330px;
  color: #fff;
  background: linear-gradient(180deg,#02182d 0%,#062541 55%,#021525 100%);
  font: 400 16px/1.5 Arial, Helvetica, sans-serif;
  overflow: clip;
  isolation: isolate;
}

.wi-page, .wi-page *, .wi-page *::before, .wi-page *::after { box-sizing: border-box; }
.wi-page a { color: inherit; text-decoration: none; }
.wi-page img { display: block; max-width: 100%; }
.wi-page button { font: inherit; }
.wi-page :is(a,button):focus-visible { outline: 3px solid #ffdb6c; outline-offset: 5px; }
.wi-page section[id], .wi-page article[id] { scroll-margin-top: 108px; }
.wi-shell { width: min(100%, var(--wi-max)); margin: 0 auto; padding-inline: clamp(22px, 5vw, 70px); }
.wi-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ================================================================
   Hero area: intentionally empty image slot for phase 02
   ================================================================ */
.wi-hero {
  position: relative;
  height:820px;
  /*min-height: clamp(440px, 58vw, 580px);*/
  display: flex;
  align-items: flex-start;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 76% 40%, rgba(46,124,194,.35), transparent 48%),
    radial-gradient(ellipse at 22% 50%, rgba(11,75,126,.24), transparent 55%),
    linear-gradient(105deg, #021428 0%, #042744 65%, #0b2943 100%);
}
.wi-hero-visual {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(74%, 1130px);
  z-index: -2;
  background:
    repeating-linear-gradient(115deg,transparent 0 110px,rgba(255,255,255,.035) 111px 112px),
    radial-gradient(circle at 65% 55%,rgba(233,177,102,.36),transparent 29%),
    linear-gradient(105deg,#06365b,#19476c 55%,#294b70);
}
.wi-hero-visual::before {
  content:"";
  position:absolute;
  width:75%;
  height:140%;
  top:-35%;
  right:-12%;
  border: 2px solid rgba(244, 194, 104, .32);
  border-radius: 50%;
  box-shadow: -33px 26px 75px rgba(2,15,32,.48),inset 35px 12px 90px rgba(1,15,33,.52);
  transform: rotate(-12deg);
  pointer-events:none;
}
.wi-hero-visual::after {
  content: "HERO IMAGE PLACEHOLDER";
  position: absolute;
  right: clamp(22px,5vw,85px);
  bottom: 28px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.19);
  color: rgba(255,255,255,.65);
  background: rgba(0,16,34,.37);
  border-radius: 6px;
  font: 700 10px/1.2 Arial,sans-serif;
  letter-spacing: .15em;
}
.wi-image-slot .wi-slot-image { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease; }
.wi-image-slot.wi-has-image .wi-slot-image { opacity: 1; }
.wi-image-slot.wi-has-image::after { content: none; }
.wi-hero-visual .wi-slot-image { object-position: 60% 52%; }
.wi-hero::after {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background: linear-gradient(90deg,#021428 0%,rgba(2,20,40,.95) 27%,rgba(2,20,40,.68) 46%,rgba(2,20,40,.11) 82%),linear-gradient(0deg,rgba(2,18,35,.78),transparent 45%);
}
.wi-hero-glow {
  position:absolute;
  z-index:0;
  left:-15%; bottom:-52%;
  width:70%;height:100%;
  border-radius:50%;
  background:radial-gradient(circle,rgba(49,165,230,.30),transparent 70%);
  filter:blur(35px);
  pointer-events:none;
}
.wi-hero-inner { position: relative; z-index: 1; padding-top: clamp(56px,6vw,95px); padding-bottom: 156px; }
.wi-eyebrow { display:flex; align-items:center; gap:13px; margin:0; color:#fff; font:700 11px/1.5 Arial, sans-serif; letter-spacing:.31em; }
.wi-eyebrow-line { display:block; width:24px;height:2px; background:var(--wi-gold); flex:none; }
.wi-eyebrow-trail { width:75px;height:1px; background:linear-gradient(90deg,var(--wi-gold),transparent); }
.wi-hero h1 {
  margin:19px 0 16px;
  max-width: 770px;
  color:#fff;
  font:400 clamp(47px,5.1vw,77px)/.99 Georgia,'Times New Roman',serif;
  letter-spacing:-.045em;
  text-shadow:0 3px 28px rgba(0,0,0,.25);
}
.wi-hero h1 span { font-weight:400; }
.wi-hero h1 em,.wi-outro h2 em,.wi-section-heading h2 em { color:var(--wi-yellow);font-style:normal; }
.wi-hero-description { max-width:450px; margin:0 0 24px; color:#e1edf7; font:400 clamp(15px,1.2vw,18px)/1.58 Arial,sans-serif; }
.wi-outline-button, .wi-gold-button {
  display:inline-flex; align-items:center; justify-content:space-between; gap:28px;
  min-height:45px; padding:10px 19px 10px 23px;
  border:1px solid rgba(255,255,255,.87); border-radius:999px;
  color:#fff; background:rgba(0,22,43,.30);
  font:600 13px/1.3 Arial,sans-serif;
  box-shadow:0 8px 27px rgba(0,0,0,.14);
  transition:background .25s,border-color .25s,transform .25s,box-shadow .25s;
}
.wi-outline-button:hover { background:rgba(40,111,165,.75); transform:translateY(-2px); box-shadow:0 10px 26px rgba(0,0,0,.26); }
.wi-outline-button span,.wi-gold-button span { font-size:22px;line-height:1;transition:transform .2s; }
.wi-outline-button:hover span,.wi-gold-button:hover span { transform:translateX(5px); }
.wi-hero-curve {
  position:absolute;
  bottom:-105px;left:-5%;width:110%;height:250px;
  border-radius:50% 50% 0 0;
  border-top:1px solid rgba(115,209,255,.47);
  background:linear-gradient(180deg,rgba(2,29,51,.92),#021a30 60%,#031c31 100%);
  box-shadow:0 -18px 45px rgba(47,174,242,.08);
  z-index:0;pointer-events:none;
}

/* ================================================================
   Provided six-key image — labels are baked into this single JPEG.
   Hotspots allow keyboard and pointer users to reach the cards.
   ================================================================ */
.wi-insights { position:relative; z-index:2; margin-top:-135px; padding:0 16px 0; }
.wi-wheel-figure {
  position:relative;
  width:min(1200px,100%);
  aspect-ratio: 1.60;
  margin:0 auto;
  overflow:hidden;
  background:#021a32;
  mask-image:linear-gradient(180deg,transparent 0%,#000 3%,#000 91%,transparent 100%);
  -webkit-mask-image:linear-gradient(180deg,transparent 0%,#000 3%,#000 91%,transparent 100%);
}
.wi-wheel-image { width:100%;height:100%;object-fit:cover;object-position:center 32%; }
.wi-wheel-hotspots { position:absolute;inset:0;pointer-events:none; }
.wi-wheel-point {
  position:absolute;
  pointer-events:auto;
  display:block;
  border-radius:36%;
  border:2px solid transparent;
  background:transparent;
  transition:border-color .2s,background-color .2s,box-shadow .2s;
}
.wi-wheel-point:hover,.wi-wheel-point:focus-visible { border-color:rgba(255,213,114,.86); background:rgba(249,193,75,.09); box-shadow:0 0 22px rgba(255,194,77,.25); }
.wi-wheel-point--1 { top:33%;left:2.0%;width:20%;height:32%; }
.wi-wheel-point--2 { top:17%;left:18%;width:19%;height:30%; }
.wi-wheel-point--3 { top:5%;left:33%;width:18%;height:30%; }
.wi-wheel-point--4 { top:5%;left:51%;width:18%;height:30%; }
.wi-wheel-point--5 { top:18%;left:67%;width:17%;height:30%; }
.wi-wheel-point--6 { top:33%;left:81%;width:18%;height:32%; }

/* ================================================================
   Six insight cards — missing image gets a styled placeholder.
   ================================================================ */
.wi-advantages { position:relative; padding:22px 0 clamp(68px,7vw,118px);background:linear-gradient(180deg,#031b30,#073354 57%,#031c35); }
.wi-advantages::before { content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 50% 22%,rgba(25,115,174,.12),transparent 56%); }
.wi-section-heading { max-width:900px;margin:0 auto 35px;text-align:center; }
.wi-section-heading .wi-eyebrow { justify-content:center;color:#d5e8fa;font-size:10px; }
.wi-section-heading h2 { margin:13px 0 11px;font:400 clamp(28px,3vw,44px)/1.14 Georgia,serif; letter-spacing:-.026em; }
.wi-section-heading p:last-child { margin:0;color:#b4c9dd;font-size:14px; }
.wi-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(16px,2vw,26px); }
.wi-card {
  position:relative;display:flex;flex-direction:column;min-width:0;min-height:438px;
  overflow:hidden;border:1px solid rgba(144,196,228,.41);border-radius:22px;
  background:linear-gradient(165deg,#124467 0%,#052b4a 55%,#021d34 100%);
  box-shadow:0 14px 35px rgba(0,0,0,.17), inset 0 1px rgba(255,255,255,.10);
  transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease;
}
.wi-card:hover,.wi-card:focus-within { transform:translateY(-5px);border-color:rgba(255,205,116,.79);box-shadow:0 18px 45px rgba(0,0,0,.29),0 0 18px rgba(64,169,238,.13); }
.wi-card::after { content:"";position:absolute;bottom:0;right:0;width:100px;height:4px;background:linear-gradient(90deg,transparent,#ffd179);border-radius:4px;box-shadow:0 0 17px rgba(255,193,75,.48); }
.wi-card-visual {position:relative;flex:0 0 43%;min-height:165px;overflow:hidden;background:radial-gradient(circle at 74% 67%,rgba(247,164,81,.30),transparent 38%),linear-gradient(135deg,#13577c,#092d51 52%,#384965); }
.wi-card-visual::before {content:"";position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(115deg,transparent 0 48px,rgba(255,255,255,.05) 49px 50px);}
.wi-card-visual::after {content:attr(data-wi-slot);position:absolute;left:18px;right:18px;top:50%;transform:translateY(-50%);text-align:center;color:rgba(240,246,255,.70);font:700 11px/1.5 Arial,sans-serif;letter-spacing:.14em;text-transform:uppercase;pointer-events:none;}
.wi-card-visual.wi-has-image::after {content:none;}
.wi-card-visual .wi-slot-image {position:absolute;inset:0;z-index:0;transition:transform .55s, opacity .4s;}
.wi-card:hover .wi-card-visual.wi-has-image img {transform:scale(1.045);}
.wi-card-image-shade {position:absolute;z-index:1;inset:0;pointer-events:none;background:linear-gradient(180deg,transparent 42%,rgba(2,24,43,.60) 100%);}
.wi-card-body { position:relative;display:flex;flex:1;flex-direction:column;align-items:flex-start;padding:24px 25px 21px; }
.wi-card-icon {display:grid;place-items:center;position:absolute;top:-29px;left:23px;width:55px;height:55px;border-radius:15px;border:1px solid var(--wi-gold);background:linear-gradient(150deg,#0b4566,#051b35 80%);color:var(--wi-gold);box-shadow:0 6px 20px rgba(0,0,0,.25);}
.wi-card-icon svg {width:28px;height:28px;}
.wi-card-index {align-self:flex-end;font:700 10px/1 Arial,sans-serif;letter-spacing:.17em;color:#93b4d0; }
.wi-card h3 {margin:9px 0 9px;color:#fff;font:400 clamp(22px,1.65vw,28px)/1.17 Arial,sans-serif;letter-spacing:-.02em;max-width:330px;}
.wi-card p {margin:0 0 22px;color:#d3e3f2;font-size:14px;line-height:1.5;max-width:350px;}
.wi-card-cta {display:inline-flex;align-items:center;gap:14px;justify-content:flex-start;margin-top:auto;padding:3px 0 5px;border:0;border-bottom:1px solid rgba(246,197,90,.9);color:#fff;background:transparent;font-size:13px;font-weight:600;cursor:pointer;transition:color .2s,gap .2s;}
.wi-card-cta span {font-size:22px;line-height:.85;}
.wi-card-cta:hover {color:#ffd572;gap:20px;}
.wi-mobile-card-controls {display:none;}

/* ================================================================
   Wide closing CTA with final blank photo slot.
   ================================================================ */
.wi-outro {position:relative;min-height:260px;display:flex;align-items:center;isolation:isolate;overflow:hidden;border:1px solid rgba(153,207,246,.41);border-radius:24px;width:min(calc(100% - 44px),1320px);margin:0 auto clamp(56px,7vw,95px);background:radial-gradient(circle at 65% 43%,rgba(255,199,100,.26),transparent 35%),linear-gradient(115deg,#0e4268,#123858 55%,#082b4e);box-shadow:0 15px 40px rgba(0,11,29,.35);}
.wi-outro::before {content:"";position:absolute;width:125%;height:230px;left:-10%;bottom:-165px;border-radius:50%;border-top:1px solid rgba(248,198,87,.33);background:linear-gradient(180deg,rgba(15,82,124,.2),rgba(2,18,34,.83));pointer-events:none;z-index:-1;}
.wi-outro > .wi-slot-image {position:absolute;inset:0;z-index:-2;}
.wi-outro::after {content:attr(data-wi-slot);position:absolute;right:30px;top:23px;color:rgba(255,255,255,.65);font:700 9px/1.3 Arial,sans-serif;letter-spacing:.14em;text-transform:uppercase;}
.wi-outro.wi-has-image::after {content:none;}
.wi-outro-shade {position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(2,23,43,.91),rgba(2,23,43,.63) 46%,rgba(2,23,43,.18) 90%);pointer-events:none;}
.wi-outro-content {display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding-top:42px;padding-bottom:42px;}
.wi-outro .wi-eyebrow {font-size:10px;}
.wi-outro h2 {margin:14px 0 11px;color:#fff;font:400 clamp(29px,3.4vw,48px)/1.08 Georgia,serif;letter-spacing:-.023em;}
.wi-outro p:last-child {margin:0;max-width:470px;color:#e5edf5;font-size:14px;line-height:1.6;}
.wi-gold-button {flex:none;min-width:224px;border:2px solid #ffca56;box-shadow:0 0 22px rgba(252,189,57,.27),inset 0 0 22px rgba(1,20,42,.23);background:rgba(0,28,52,.65);font-size:14px;}
.wi-gold-button:hover {background:var(--wi-royal);transform:translateY(-2px);box-shadow:0 0 27px rgba(255,198,64,.54);}

/* ================================================================
   Stage-1 dialog for topics that do not yet have dedicated pages.
   ================================================================ */
.wi-detail-dialog {width:min(520px,calc(100vw - 30px));max-height:min(75vh,690px);padding:37px 34px 30px;border:1px solid #8aaacd;border-radius:22px;background:#fff;color:#0a2544;box-shadow:0 35px 85px rgba(0,0,0,.45);}
.wi-detail-dialog::backdrop {background:rgba(0,15,36,.78);backdrop-filter:blur(4px);}
.wi-dialog-close {position:absolute;top:10px;right:13px;width:40px;height:40px;padding:0;border:0;background:transparent;color:#31455c;font-size:32px;cursor:pointer;}
.wi-dialog-eyebrow {font:700 11px Arial,sans-serif;color:#01008c;letter-spacing:.19em;margin:0 0 9px;}
.wi-detail-dialog h2 {font:400 32px/1.16 Georgia,serif;color:#09145e;margin:0 0 16px;}
.wi-detail-dialog p:not(.wi-dialog-eyebrow) {font:400 15px/1.65 Arial,sans-serif;color:#354662;}
.wi-dialog-note {background:#f5f7ff;border-left:3px solid #e7b947;padding:13px 15px;color:#4a5671;font:400 13px/1.6 Arial,sans-serif;margin:19px 0 23px;}
.wi-dialog-done {background:#01008c;color:white;border:0;border-radius:999px;padding:12px 19px;cursor:pointer;font:700 13px Arial,sans-serif;}
.wi-dialog-done:hover {background:#221ead;}

/* Reveal animations run only after JS opts in. */
.wi-page.wi-motion .wi-card {transition:opacity .5s ease,transform .5s ease,border-color .25s ease,box-shadow .25s ease;}
.wi-page.wi-motion .wi-card.wi-not-visible {opacity:.01;transform:translateY(18px);}
.wi-page.wi-motion .wi-card.wi-not-visible:hover {transform:translateY(18px);}

@media (max-width: 1050px) {
  .wi-hero h1 {font-size:clamp(43px,6.2vw,66px);}
  .wi-hero-visual {width:85%;}
  .wi-cards {gap:16px;}
  .wi-card {min-height:430px;}
  .wi-card-body {padding-inline:19px;}
  .wi-card h3 {font-size:21px;}
  .wi-outro-content {align-items:flex-start;}
}
@media (max-width: 770px) {
  .wi-hero {min-height:480px;}
  .wi-hero-inner {padding-top:65px;padding-bottom:160px;}
  .wi-hero h1 {font-size:clamp(45px,8vw,65px);}
  .wi-hero-visual {width:100%;opacity:.6;}
  .wi-hero::after {background:linear-gradient(90deg,#021428 0%,rgba(2,20,40,.93) 43%,rgba(2,20,40,.50) 100%);}
  .wi-insights {margin-top:-107px;padding:0;}
  .wi-wheel-figure {width:100%;aspect-ratio:1.45;}
  .wi-wheel-image {object-position:center 35%;}
  .wi-section-heading {margin-bottom:26px;}
  .wi-cards {grid-template-columns:repeat(2,minmax(0,1fr));}
  .wi-outro-content {flex-direction:column;align-items:flex-start;}
  .wi-gold-button {min-width:0;}
}
@media (max-width: 600px) {
  .wi-page {overflow:hidden;}
  .wi-hero {min-height:460px;}
  .wi-hero-inner {padding-top:52px;padding-bottom:152px;}
  .wi-hero h1 {font-size:clamp(42px,10vw,58px);letter-spacing:-.04em;}
  .wi-hero-description {font-size:14px;max-width:320px;}
  .wi-hero-curve {bottom:-154px;height:225px;}
  .wi-hero-visual::after {font-size:8px;right:20px;bottom:65px;}
  .wi-eyebrow {font-size:10px;letter-spacing:.24em;}
  .wi-insights {margin-top:-65px;}
  .wi-wheel-figure {aspect-ratio:1.32;}
  .wi-wheel-image {object-position:center 35%;}
  .wi-wheel-hotspots {display:none;}
  .wi-advantages {padding-top:20px;padding-bottom:55px;}
  .wi-section-heading h2 {font-size:30px;}
  .wi-section-heading p:last-child {font-size:13px;}
  .wi-cards {display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;gap:13px;margin:0 calc(-1 * clamp(22px, 5vw, 70px));padding:7px clamp(22px, 5vw, 70px) 16px;overscroll-behavior-inline:contain;}
  .wi-cards::-webkit-scrollbar {display:none;}
  .wi-card {flex:0 0 min(85vw,330px);min-height:422px;scroll-snap-align:center;}
  .wi-card h3 {font-size:22px;}
  .wi-mobile-card-controls {display:flex;align-items:center;justify-content:center;gap:22px;margin:9px auto 0;}
  .wi-mobile-card-controls button {display:grid;place-items:center;width:37px;height:37px;padding:0;border:1px solid rgba(255,207,111,.72);border-radius:50%;color:#f7ce7c;background:rgba(255,255,255,.07);font-size:27px;cursor:pointer;}
  .wi-mobile-count {font-size:12px;letter-spacing:.15em;color:#bed4e8;}
  .wi-outro {width:calc(100% - 34px);min-height:350px;margin-bottom:50px;border-radius:19px;}
  .wi-outro-content {padding:36px 21px;}
  .wi-outro h2 {font-size:32px;}
  .wi-outro h2 br {display:none;}
  .wi-outro-shade {background:linear-gradient(90deg,rgba(2,23,43,.94),rgba(2,23,43,.52));}
}
@media (max-width: 370px) {
  .wi-hero h1 {font-size:42px;}
  .wi-hero {min-height:440px;}
  .wi-card {flex-basis:87vw;}
  .wi-outro h2 {font-size:29px;}
}
@media (prefers-reduced-motion:reduce) {
  .wi-page *, .wi-page *::before, .wi-page *::after {animation:none !important;transition:none !important;scroll-behavior:auto !important;}
}

/* =========================================
   WHY IRAN - SIX KEY INSIGHTS SECTION FIX
   ========================================= */

.wi-page .wi-insights {
    /* Match the dark background of the artwork */
    background: linear-gradient(
        180deg,
        #00162E 0%,
        #00162E 80%,
        #031B30 100%
    ) !important;

    /* Remove unwanted upward overlap */
    margin-top: 0 !important;

    /* Add breathing room above and below */
    padding: 55px 20px 48px !important;

    position: relative;
    z-index: 2;
}

/* Seamlessly blend the artwork into the section */
.wi-page .wi-wheel-figure {
    background: #00162E !important;
    margin: 0 auto !important;
    max-width: 1200px;

    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        #000 6%,
        #000 90%,
        transparent 100%
    ) !important;

    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        #000 6%,
        #000 90%,
        transparent 100%
    ) !important;
}

/* Responsive spacing */
@media (max-width: 770px) {
    .wi-page .wi-insights {
        margin-top: 0 !important;
        padding: 32px 12px 35px !important;
    }
}

@media (max-width: 600px) {
    .wi-page .wi-insights {
        padding: 24px 0 30px !important;
    }
}
