/* Jannati Notebook — internal page system */
:root {
  --nbi-navy: #062f3f;
  --nbi-ink: #173746;
  --nbi-muted: #607682;
  --nbi-yellow: #ffc416;
  --nbi-orange: #f26a2e;
  --nbi-paper: #fffdf8;
  --nbi-cream: #f7f1e5;
  --nbi-blue: #eaf4f7;
  --nbi-rule: rgba(44, 118, 158, .10);
  --nbi-line: rgba(6, 47, 63, .13);
  --nbi-shadow: 0 20px 52px rgba(22, 52, 65, .12);
}

body:not(.home) {
  background-color: var(--nbi-paper);
  background-image: repeating-linear-gradient(0deg, transparent 0 39px, rgba(44, 118, 158, .035) 39px 40px);
}

.jannati-page { position: relative; overflow: hidden; background: transparent; }
.jannati-page::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  inset-inline-start: clamp(18px, 4.4vw, 72px);
  width: 1px;
  background: rgba(235, 103, 83, .18);
  pointer-events: none;
}
.jannati-page > * { position: relative; z-index: 1; }

/* Compact notebook cover */
.jannati-page-hero {
  position: relative;
  box-sizing: border-box;
  width: min(1380px, calc(100% - 48px)) !important;
  min-height: clamp(330px, 46svh, 500px) !important;
  margin: 24px auto 0 !important;
  padding: clamp(48px, 7vw, 88px) !important;
  border: 10px solid #fff;
  border-radius: 28px 7px 28px 7px !important;
  box-shadow: 0 24px 56px rgba(25, 49, 61, .19), inset 0 0 0 1px rgba(255,255,255,.22);
  isolation: isolate;
}
.jannati-page-hero.wp-block-cover::before {
  opacity: 1 !important;
  background: linear-gradient(90deg, rgba(6,47,63,.94) 0%, rgba(6,47,63,.78) 48%, rgba(6,47,63,.16) 100%) !important;
}
.jannati-page-hero:not(.wp-block-cover) {
  display: grid;
  align-items: center;
  background-color: var(--nbi-navy) !important;
  background-image: radial-gradient(circle at 82% 18%, rgba(255,196,22,.18), transparent 27%), repeating-linear-gradient(0deg, transparent 0 37px, rgba(255,255,255,.055) 37px 38px) !important;
}
.jannati-page-hero::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: -9px;
  left: 50%;
  width: 104px;
  height: 30px;
  background: rgba(239, 218, 170, .78);
  box-shadow: 0 2px 5px rgba(55, 42, 20, .08);
  transform: translateX(-50%) rotate(-2deg);
  pointer-events: none;
}
.jannati-page-hero .wp-block-cover__inner-container { width: min(1180px, 100%); }
.jannati-page-hero-copy {
  width: min(730px, 70%);
  margin-inline-start: 0 !important;
  margin-inline-end: auto !important;
}
.jannati-page-hero:not(.wp-block-cover).jannati-page-hero-copy { width: min(1380px, calc(100% - 48px)) !important; }
.jannati-page-hero h1 {
  max-width: 900px;
  margin: 0 0 16px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 5.4vw, 72px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.jannati-page-hero p:not(.jannati-breadcrumb) {
  max-width: 760px;
  margin: 0;
  color: rgba(255,255,255,.84);
  font-size: clamp(15px, 1.45vw, 19px);
  line-height: 1.75;
}
.jannati-breadcrumb {
  display: inline-flex;
  margin: 0 0 18px !important;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--nbi-yellow);
  color: var(--nbi-navy) !important;
  font-size: 12px !important;
  font-weight: 900;
  letter-spacing: .04em !important;
}

/* Paper sections */
.jannati-content-section { padding: clamp(64px, 7vw, 100px) 24px; }
.jannati-content-section.jannati-soft {
  border-block: 1px solid rgba(6,47,63,.06);
  background-color: #eaf4f7;
  background-image: repeating-linear-gradient(0deg, transparent 0 39px, var(--nbi-rule) 39px 40px);
}
.jannati-content-section > .wp-block-group__inner-container { width: min(1180px, 100%); }
.jannati-content-section .wp-block-columns { margin-bottom: 0; }
.jannati-section-title,
body:not(.home) main:not(.jannati-page) > h1 {
  color: var(--nbi-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.08;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.jannati-section-title::after,
.jannati-title-motion::after {
  width: 72px;
  height: 4px;
  border-radius: 0;
  background: var(--nbi-orange);
  box-shadow: none;
}
.jannati-section-lead { max-width: 760px; margin-inline: auto; color: var(--nbi-muted); font-size: 17px; line-height: 1.8; }
.jannati-prose { color: var(--nbi-muted); font-size: 17px; line-height: 1.95; }
.jannati-media { gap: clamp(34px, 6vw, 76px); }

/* Pinned photographs */
.jannati-feature-image,
.jannati-card .wp-block-image,
.jannati-post-grid .wp-block-post-featured-image,
body:not(.home) main:not(.jannati-page) > .wp-block-post-featured-image {
  position: relative;
  margin: 0;
  padding: 10px 10px 28px;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 2px !important;
  background: #fff;
  box-shadow: var(--nbi-shadow) !important;
  transform: rotate(-1.25deg);
}
.jannati-feature-image::after,
.jannati-card .wp-block-image::after {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 78px;
  height: 24px;
  background: rgba(232, 206, 151, .68);
  transform: translateX(-50%) rotate(2deg);
  pointer-events: none;
}
.jannati-feature-image img,
.jannati-card .wp-block-image img,
.jannati-post-grid .wp-block-post-featured-image img,
body:not(.home) main:not(.jannati-page) > .wp-block-post-featured-image img {
  display: block;
  width: 100%;
  max-height: min(54svh, 460px);
  aspect-ratio: 4 / 3;
  border-radius: 0 !important;
  object-fit: cover;
  box-shadow: none !important;
}
.jannati-media > .wp-block-column:nth-child(even) .jannati-feature-image { transform: rotate(1.15deg); }

/* Notes and cards */
.jannati-info-grid, .jannati-card-grid { gap: clamp(18px, 2.4vw, 28px); align-items: stretch; }
.jannati-info-box,
.jannati-card,
.jannati-form-wrap,
.jannati-contact-card,
.jannati-post-grid .wp-block-post {
  position: relative;
  box-sizing: border-box;
  border: 1px solid rgba(6,47,63,.10) !important;
  border-radius: 3px !important;
  background-color: rgba(255,253,248,.98) !important;
  background-image: repeating-linear-gradient(0deg, transparent 0 32px, rgba(44,118,158,.055) 32px 33px) !important;
  box-shadow: 0 17px 38px rgba(25, 55, 68, .10) !important;
}
.jannati-info-box { min-height: 100%; padding: 34px 30px 32px; }
.jannati-info-box::before,
.jannati-form-wrap::before,
.jannati-contact-card::before,
.jannati-post-grid .wp-block-post::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 70px;
  height: 21px;
  background: rgba(235, 207, 151, .60);
  transform: translateX(-50%) rotate(-2deg);
  pointer-events: none;
}
.jannati-info-grid > .wp-block-column:nth-child(even) .jannati-info-box { transform: rotate(.65deg) translateY(7px); }
.jannati-info-grid > .wp-block-column:nth-child(odd) .jannati-info-box { transform: rotate(-.45deg); }
.jannati-info-box h3, .jannati-card h3 { color: var(--nbi-navy); font-family: Georgia, "Times New Roman", serif; font-size: clamp(22px, 2.1vw, 29px); }
.jannati-info-box p, .jannati-card p { color: var(--nbi-muted); line-height: 1.85; }
.jannati-number {
  width: 52px;
  height: 52px;
  border: 2px solid var(--nbi-navy);
  border-radius: 50%;
  background: var(--nbi-yellow);
  color: var(--nbi-navy);
  font-family: Georgia, serif;
  box-shadow: 4px 4px 0 rgba(6,47,63,.14);
}
.jannati-card { overflow: visible; transition: transform .28s ease, box-shadow .28s ease; }
.jannati-card:hover { transform: translateY(-7px) rotate(-.35deg); }
.jannati-card-content { padding: 28px; }
.jannati-card-content a { color: var(--nbi-orange); font-weight: 900; text-decoration-thickness: 2px; text-underline-offset: 4px; }

.jannati-list li { margin: 11px 0; color: var(--nbi-muted); line-height: 1.8; }
.jannati-list li::before { content: "✦"; color: var(--nbi-orange); }
.jannati-notice { border: 0; border-inline-start: 4px solid var(--nbi-yellow); background: #fff3b9; color: var(--nbi-ink); box-shadow: 7px 8px 0 rgba(6,47,63,.06); transform: rotate(-.4deg); }

/* Call-to-action as the dark back cover */
.jannati-callout {
  position: relative;
  overflow: hidden;
  padding: clamp(38px, 5vw, 62px);
  border: 9px solid #fff;
  border-radius: 4px 24px 4px 24px;
  background-color: var(--nbi-navy);
  background-image: radial-gradient(circle at 90% 18%, rgba(255,196,22,.19), transparent 25%), repeating-linear-gradient(0deg, transparent 0 35px, rgba(255,255,255,.045) 35px 36px);
  box-shadow: var(--nbi-shadow);
}
.jannati-callout::after { content: "✎"; position: absolute; inset-inline-end: 42px; bottom: 18px; color: rgba(255,196,22,.24); font-size: 92px; transform: rotate(-12deg); }
.jannati-callout h2 { position: relative; z-index: 1; max-width: 820px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(31px, 4.2vw, 50px); line-height: 1.08; }
.jannati-callout p { position: relative; z-index: 1; max-width: 720px; }
.jannati-callout .wp-block-button { position: relative; z-index: 2; }
.jannati-callout .wp-element-button { border-radius: 999px; background: var(--nbi-yellow); color: var(--nbi-navy); font-weight: 900; }

/* FAQ */
.jannati-faq { max-width: 960px; margin-inline: auto; }
.jannati-faq details {
  position: relative;
  margin-bottom: 16px;
  padding: 0;
  border: 1px solid var(--nbi-line);
  border-radius: 3px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 10px 28px rgba(25,55,68,.07);
}
.jannati-faq details:nth-child(even) { transform: rotate(.18deg); }
.jannati-faq summary { position: relative; padding: 23px 62px 23px 24px; list-style: none; color: var(--nbi-navy); font-family: Georgia, "Times New Roman", serif; font-size: 19px; font-weight: 700; }
.jannati-faq summary::-webkit-details-marker { display: none; }
.jannati-faq summary::before { content: "+"; position: absolute; inset-inline-start: 22px; top: 50%; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--nbi-yellow); color: var(--nbi-navy); font-family: Arial, sans-serif; transform: translateY(-50%); }
.jannati-faq details[open] summary::before { content: "−"; }
.jannati-faq details p { margin: 0; padding: 0 24px 24px; color: var(--nbi-muted); line-height: 1.85; }

/* News archive and posts */
.jannati-post-grid { gap: 28px; }
.jannati-post-grid .wp-block-post { padding: 13px 13px 26px !important; }
.jannati-post-grid .wp-block-post-featured-image { padding: 0; box-shadow: none !important; transform: none; }
.jannati-post-grid .wp-block-post-featured-image img { max-height: none; aspect-ratio: 1.55; }
.jannati-post-grid .jannati-card-content { padding: 20px 10px 0; }
.jannati-post-grid .wp-block-post-date { color: var(--nbi-orange); font-size: 12px; font-weight: 800; }
.jannati-post-grid .wp-block-post-title { margin-block: 8px 12px; font-family: Georgia, "Times New Roman", serif; line-height: 1.25; }
.jannati-post-grid .wp-block-post-title a { color: var(--nbi-navy); text-decoration: none; }
.jannati-post-grid .wp-block-post-excerpt { color: var(--nbi-muted); }
.wp-block-query-pagination { gap: 8px; margin-top: 42px; }
.wp-block-query-pagination a, .wp-block-query-pagination .current { min-width: 38px; min-height: 38px; display: inline-grid; place-items: center; padding: 4px 10px; border: 1px solid var(--nbi-line); background: #fff; color: var(--nbi-navy); text-decoration: none; }
.wp-block-query-pagination .current { background: var(--nbi-yellow); font-weight: 900; }

body:not(.home) main:not(.jannati-page) {
  width: min(920px, calc(100% - 40px));
  margin: 32px auto 80px;
  padding: clamp(34px, 6vw, 72px) !important;
  border: 1px solid var(--nbi-line);
  background-color: rgba(255,253,248,.98);
  background-image: repeating-linear-gradient(0deg, transparent 0 39px, var(--nbi-rule) 39px 40px);
  box-shadow: var(--nbi-shadow);
}
body:not(.home) main:not(.jannati-page) > .wp-block-post-title,
body:not(.home) main:not(.jannati-page) > h1 { margin-top: 0; color: var(--nbi-navy); font-family: Georgia, "Times New Roman", serif; font-size: clamp(38px, 5vw, 66px); line-height: 1.08; }
body:not(.home) main:not(.jannati-page) > .wp-block-post-date { color: var(--nbi-orange); font-weight: 800; }
body:not(.home) main:not(.jannati-page) .wp-block-post-content { color: var(--nbi-ink); font-size: 17px; line-height: 1.95; }
body:not(.home) main:not(.jannati-page) .wp-block-query .wp-block-post { margin-bottom: 22px; padding: 24px; border: 1px solid var(--nbi-line); background: #fff; }
body:not(.home) main:not(.jannati-page) .wp-block-query .wp-block-post-title { margin-top: 0; font-family: Georgia, "Times New Roman", serif; }

/* Contact sheet */
.jannati-contact-card { padding: clamp(28px, 4vw, 42px); overflow: visible; }
.jannati-contact-card-head::after { border-radius: 0; background: var(--nbi-orange); }
.jannati-contact-kicker { border-radius: 3px; background: var(--nbi-yellow); color: var(--nbi-navy); }
.jannati-contact-list li { border: 1px solid rgba(6,47,63,.07); border-radius: 3px; background: rgba(255,255,255,.82); }
.jannati-contact-icon { border-radius: 50%; background: var(--nbi-navy); color: var(--nbi-yellow); }
.jannati-contact-action { border-radius: 999px; }
.jannati-hours { border-radius: 3px; background-color: #fff4bf; background-image: repeating-linear-gradient(0deg, transparent 0 31px, rgba(44,118,158,.08) 31px 32px); }
.jannati-form-wrap { padding: clamp(28px, 4vw, 42px); }
.jannati-form input, .jannati-form select, .jannati-form textarea { border-radius: 3px; background: rgba(255,255,255,.88); }
.jannati-map {
  min-height: 300px;
  margin-top: 48px;
  border: 9px solid #fff;
  border-radius: 3px 22px 3px 22px;
  background-color: var(--nbi-blue);
  background-image: radial-gradient(circle at 20% 25%, rgba(255,196,22,.34), transparent 25%), repeating-linear-gradient(0deg, transparent 0 36px, var(--nbi-rule) 36px 37px);
  box-shadow: var(--nbi-shadow);
}
.jannati-map a { border-radius: 999px; background: var(--nbi-navy); color: #fff; }

html[lang^="fr"] .jannati-page::before,
html[lang^="en"] .jannati-page::before { inset-inline-start: clamp(18px, 4.4vw, 72px); }
html[lang^="fr"] .jannati-page-hero.wp-block-cover::before,
html[lang^="en"] .jannati-page-hero.wp-block-cover::before { background: linear-gradient(270deg, rgba(6,47,63,.94) 0%, rgba(6,47,63,.78) 48%, rgba(6,47,63,.16) 100%) !important; }
html[lang^="fr"] .jannati-faq summary,
html[lang^="en"] .jannati-faq summary { padding: 23px 24px 23px 62px; }

@media (max-width: 820px) {
  .jannati-page::before { display: none; }
  .jannati-page-hero { width: calc(100% - 28px) !important; min-height: min(430px, 58svh) !important; margin-top: 14px !important; padding: 42px 30px !important; border-width: 7px; border-radius: 20px 5px 20px 5px !important; }
  .jannati-page-hero-copy, .jannati-page-hero:not(.wp-block-cover).jannati-page-hero-copy { width: calc(100% - 28px) !important; }
  .jannati-page-hero.wp-block-cover::before,
  html[lang^="fr"] .jannati-page-hero.wp-block-cover::before,
  html[lang^="en"] .jannati-page-hero.wp-block-cover::before { background: rgba(6,47,63,.80) !important; }
  .jannati-content-section { padding: 54px 20px; }
  .jannati-media { gap: 34px; }
  .jannati-feature-image img { max-height: min(43svh, 390px); }
  .jannati-info-grid > .wp-block-column .jannati-info-box { transform: none !important; }
  .jannati-callout { border-width: 7px; }
}

@media (max-width: 560px) {
  .jannati-page-hero { min-height: 360px !important; padding: 38px 24px !important; }
  .jannati-page-hero h1 { font-size: clamp(34px, 11vw, 48px); }
  .jannati-page-hero p:not(.jannati-breadcrumb) { font-size: 14px; line-height: 1.65; }
  .jannati-page-hero::after { width: 76px; height: 23px; }
  .jannati-content-section { padding: 48px 18px; }
  .jannati-feature-image { padding: 7px 7px 20px; transform: none !important; }
  .jannati-feature-image img { max-height: 340px; }
  .jannati-card .wp-block-image { padding: 7px 7px 20px; transform: none; }
  .jannati-info-box, .jannati-card-content { padding: 25px 22px; }
  .jannati-callout { padding: 32px 24px; }
  .jannati-callout::after { display: none; }
  .jannati-faq summary { padding-block: 20px; font-size: 17px; }
  body:not(.home) main:not(.jannati-page) { width: calc(100% - 28px); margin-top: 14px; padding: 30px 20px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .jannati-card, .jannati-feature-image, .jannati-info-box { transform: none !important; transition: none !important; }
}
