/*
Theme Name: Rastakhiz
Theme URI: https://rastakhiz.academy
Author: Rastakhiz Institute of Humanities
Author URI: https://rastakhiz.academy
Description: A premium bilingual-ready (FA/EN) academic theme for the Rastakhiz Institute of Humanities (پژوهشگاه علوم انسانی رستاخیز). RTL-native Persian design with navy/cyan/gold identity, rich layered sections, and translation-ready templates.
Version: 1.5.2
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rastakhiz
Tags: rtl, right-to-left, rtl-language-support, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, blog, education, portfolio
*/

/* ==========================================================================
   RASTAKHIZ THEME — TABLE OF CONTENTS
   0.  Self-hosted fonts (Vazirmatn + Lalezar)
   1.  Tokens & resets
   2.  Base typography & helpers
   3.  Utility bar + header + navigation
   4.  Hero (front page)
   5.  Stats band
   6.  Section scaffolding (headers, dividers)
   7.  Intro / two-column
   8.  Research fields grid
   9.  Council cards
   10. Publications / book covers
   11. Library band
   12. Researchers
   13. Events / news / calls
   14. Collaboration CTA + contact strip
   15. Newsletter band
   16. Footer
   17. Inner pages (page.php, single, archive, search, 404)
   18. Widgets & comments
   19. Back-to-top, search overlay, accessibility
   20. Responsive breakpoints
   21. Ultimate Member compatibility
   ========================================================================== */

/* ==========================================================================
   0. SELF-HOSTED FONTS
   Vazirmatn (body/UI) + Lalezar (display headlines), subset by unicode-range.
   ========================================================================== */
/* Vazirmatn — Arabic subset */
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/vazirmatn-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-0FFF,
    U+200C-200E, U+FB50-FDFF, U+FE70-FEFC;
}
/* Vazirmatn — Latin subset */
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/vazirmatn-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Lalezar — Arabic subset (display headlines only) */
@font-face {
  font-family: "Lalezar";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/lalezar-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-0FFF,
    U+200C-200E, U+FB50-FDFF, U+FE70-FEFC;
}
/* Lalezar — Latin subset */
@font-face {
  font-family: "Lalezar";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/lalezar-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   1. TOKENS & RESETS
   ========================================================================== */
:root {
  --navy: #1e2a4a;
  --navy-2: #162036;
  --navy-3: #0f1729;
  --cyan: #3fb9d4;
  --cyan-soft: #d9f0f6;
  --gold: #c9a227;
  --gold-soft: #f3e9c8;
  --paper: #f7f5f0;
  --paper-2: #efe9dd;
  --ink: #232a38;
  --ink-soft: #5a6376;
  --line: #e4ded1;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 18px 44px -18px rgba(22, 32, 54, 0.28);
  --shadow-sm: 0 8px 22px -10px rgba(22, 32, 54, 0.22);
  --font: "Vazirmatn", Tahoma, "Segoe UI", Arial, sans-serif;
  --font-display: "Lalezar", "Vazirmatn", Tahoma, sans-serif;
  --maxw: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  /* direction comes from <html dir=""> via language_attributes() — never hardcode here */
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--cyan); }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.6em;
  line-height: 1.6;
  color: var(--navy);
  font-weight: 700;
}

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding: 0; }
/* Keep bullets inside for chrome lists; post content uses hanging indents. */
nav ul, .widget-area ul, .footer-col ul, .mobile-drawer ul { list-style-position: inside; }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 9999;
  background: var(--navy); color: #fff; padding: 10px 18px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: #fff; }

/* ==========================================================================
   2. BASE TYPOGRAPHY & HELPERS
   ========================================================================== */
.container { width: min(var(--maxw), 100% - 2.5rem); margin-inline: auto; }

.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  padding: 0.75em 1.7em; border-radius: 999px; border: 0; cursor: pointer;
  font-family: var(--font); font-weight: 700; font-size: 1rem; line-height: 1.6;
  text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #2a9cbb);
  color: #fff; box-shadow: 0 12px 26px -10px rgba(63, 185, 212, 0.55);
}
.btn-primary:hover { color: #fff; background: linear-gradient(135deg, #4cc6df, var(--cyan)); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), #a8861d);
  color: #fff; box-shadow: 0 12px 26px -10px rgba(201, 162, 39, 0.55);
}
.btn-gold:hover { color: #fff; }
.btn-outline {
  background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, 0.65);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.btn-dark {
  background: var(--navy); color: #fff;
}
.btn-dark:hover { background: var(--navy-2); color: #fff; }

.kicker {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-size: 0.92rem; font-weight: 700; color: var(--gold);
  margin-bottom: 0.9rem;
}
.kicker::before, .kicker::after {
  content: ""; display: block; width: 34px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.kicker::after { background: linear-gradient(90deg, var(--gold), transparent); }

/* Every section header: centered, with ornament divider */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); margin-bottom: 0.4rem; }
/* Display headlines use Lalezar (never letter-spaced, uppercased, or italicized) */
.hero h1, .section-head h2, .page-hero h1, .library-inner h2, .collab-band h2 {
  font-family: var(--font-display);
  font-weight: 400;
}
.section-head p { color: var(--ink-soft); margin-bottom: 0; }
.section-divider {
  width: 110px; height: 4px; margin: 1.1rem auto 0; border-radius: 4px;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--cyan) 80%, transparent);
}
.section-head.on-dark h2 { color: #fff; }
.section-head.on-dark p { color: rgba(255, 255, 255, 0.78); }

/* Card base */
.card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-pad { padding: 1.6rem; }

/* Eyebrow: small content-type label on cards (cyan accent only) */
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 800; color: #1e7f99;
  background: var(--cyan-soft); border-radius: 999px; padding: 0.2em 0.9em;
  margin-bottom: 0.7rem;
}
.eyebrow-light {
  color: var(--cyan); background: rgba(63, 185, 212, 0.14);
  border: 1px solid rgba(63, 185, 212, 0.35);
}

.placeholder-note {
  display: inline-block; font-size: 0.85rem; color: var(--ink-soft);
  background: var(--paper-2); border: 1px dashed var(--line);
  padding: 0.25em 0.9em; border-radius: 999px;
}

/* ==========================================================================
   3. UTILITY BAR + HEADER + NAVIGATION
   ========================================================================== */
.utility-bar {
  background: linear-gradient(90deg, var(--navy-3), var(--navy));
  color: rgba(255, 255, 255, 0.82); font-size: 0.85rem;
  position: relative; z-index: 60;
}
.utility-bar .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 0.45rem;
}
.utility-contact { display: flex; gap: 1.2rem; align-items: center; }
.utility-contact a { color: rgba(255, 255, 255, 0.85); display: inline-flex; align-items: center; gap: 0.4em; }
.utility-contact a:hover { color: var(--cyan); }
.utility-contact svg { width: 15px; height: 15px; fill: currentColor; }
.utility-social { display: flex; gap: 0.5rem; align-items: center; }
.utility-social a {
  display: inline-flex; width: 30px; height: 30px; border-radius: 50%;
  align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.1); color: #fff;
}
.utility-social a:hover { background: var(--cyan); color: var(--navy-3); transform: translateY(-2px); }
.utility-social svg { width: 15px; height: 15px; fill: currentColor; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -14px rgba(22, 32, 54, 0.35); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.2rem; padding-block: 0.7rem;
}
.brand { display: flex; align-items: center; gap: 0.8rem; }
.brand .custom-logo { max-height: 58px; width: auto; }
.brand-name { display: flex; flex-direction: column; line-height: 1.5; }
.brand-name .site-title { font-size: 1.25rem; font-weight: 800; color: var(--navy); margin: 0; }
.brand-name .site-desc { font-size: 0.82rem; color: var(--ink-soft); }

/* Primary nav */
.primary-nav ul {
  display: flex; align-items: center; gap: 0.35rem; margin: 0; padding: 0; list-style: none;
}
.primary-nav a {
  display: block; padding: 0.65em 0.95em; border-radius: var(--radius-sm);
  font-weight: 600; color: var(--ink); font-size: 0.98rem; position: relative;
}
.primary-nav a:hover { color: var(--navy); background: var(--cyan-soft); }
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a {
  color: var(--navy); background: linear-gradient(180deg, var(--cyan-soft), transparent);
  box-shadow: inset 0 -3px 0 var(--cyan);
}
.primary-nav .sub-menu {
  position: absolute; top: 100%; inset-inline-start: 0; min-width: 230px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); padding: 0.4rem; display: none; z-index: 200;
}
.primary-nav li { position: relative; }
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu { display: block; }
.primary-nav .sub-menu li { width: 100%; }
.primary-nav .sub-menu a { padding: 0.55em 0.9em; font-size: 0.92rem; }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--navy); cursor: pointer; font-family: var(--font);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.icon-btn:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.icon-btn svg { width: 19px; height: 19px; fill: currentColor; }
.menu-toggle { display: none; }

/* Search dropdown in header */
.header-search-wrap { position: relative; }
.header-search-form {
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 0.8rem; display: none; z-index: 300;
  width: min(340px, 86vw);
}
.header-search-form.open { display: block; }
.header-search-form form { display: flex; gap: 0.5rem; margin: 0; }
.header-search-form input[type="search"] {
  flex: 1; min-width: 0; padding: 0.6em 0.9em; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-family: var(--font); font-size: 0.95rem;
}
.header-search-form button {
  padding: 0.6em 1.1em; border: 0; border-radius: var(--radius-sm);
  background: var(--navy); color: #fff; font-family: var(--font); font-weight: 700; cursor: pointer;
}
.header-search-form button:hover { background: var(--cyan); }

/* Shared search form component */
.rastakhiz-search { display: flex; gap: 0.5rem; width: 100%; margin: 0; }
.rastakhiz-search__field {
  flex: 1; min-width: 0; padding: 0.7em 1em;
  border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--font); font-size: 1rem; background: #fff; color: var(--ink);
}
.rastakhiz-search__btn {
  padding: 0.7em 1.4em; border: 0; border-radius: 999px;
  background: var(--navy); color: #fff; font-family: var(--font);
  font-weight: 700; font-size: 1rem; cursor: pointer; flex: 0 0 auto;
  transition: background 0.2s ease, transform 0.2s ease;
}
.rastakhiz-search__btn:hover { background: var(--cyan); transform: translateY(-1px); }

/* Mobile drawer */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(15, 23, 41, 0.55);
  opacity: 0; visibility: hidden; transition: opacity 0.25s ease; z-index: 140;
}
body.drawer-open .drawer-overlay { opacity: 1; visibility: visible; }
.mobile-drawer {
  position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: min(330px, 86vw);
  background: linear-gradient(180deg, var(--navy), var(--navy-2));
  color: #fff; z-index: 150; padding: 1.4rem;
  transform: translateX(105%); transition: transform 0.3s ease;
  overflow-y: auto;
}
body.drawer-open .mobile-drawer { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.drawer-head .drawer-title { font-weight: 800; font-size: 1.1rem; color: #fff; }
.drawer-close {
  background: rgba(255, 255, 255, 0.12); border: 0; color: #fff;
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 1.2rem;
}
.drawer-close:hover { background: var(--cyan); color: var(--navy-3); }
.mobile-drawer ul { list-style: none; margin: 0; padding: 0; }
.mobile-drawer li { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.mobile-drawer a { display: block; padding: 0.8em 0.3em; color: rgba(255, 255, 255, 0.9); font-weight: 600; }
.mobile-drawer a:hover { color: var(--cyan); }
.mobile-drawer .sub-menu { padding-inline-start: 1rem; }
.mobile-drawer .sub-menu li { border-bottom: 0; }
.mobile-drawer .sub-menu a { font-size: 0.92rem; font-weight: 400; color: rgba(255, 255, 255, 0.72); }

/* ==========================================================================
   4. HERO (front page)
   ========================================================================== */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: var(--navy-3) url("assets/img/hero-bg.jpg") center/cover no-repeat;
  min-height: clamp(480px, 78vh, 720px);
  display: flex; align-items: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(15, 23, 41, 0.94) 10%, rgba(30, 42, 74, 0.78) 45%, rgba(30, 42, 74, 0.35) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("assets/img/pattern-tile.jpg") repeat;
  opacity: 0.06; mix-blend-mode: overlay;
}
.hero-inner {
  position: relative; z-index: 2; padding-block: 5rem 4rem; max-width: 800px;
}
.hero .kicker { color: var(--gold); }
.hero h1 {
  color: #fff; font-size: clamp(2rem, 5.2vw, 3.6rem);
  margin-bottom: 0.5rem; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
}
.hero .hero-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem); color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2rem; max-width: 620px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.2rem; }
.hero-search { max-width: 520px; }
.hero-search .rastakhiz-search__field {
  border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.12);
  color: #fff; backdrop-filter: blur(6px);
}
.hero-search .rastakhiz-search__field::placeholder { color: rgba(255, 255, 255, 0.65); }
.hero-search .rastakhiz-search__field:focus { background: rgba(255, 255, 255, 0.2); outline: none; border-color: var(--cyan); }
.hero-search .rastakhiz-search__btn {
  background: linear-gradient(135deg, var(--cyan), #2a9cbb);
  box-shadow: 0 12px 26px -10px rgba(63, 185, 212, 0.55);
}
.hero-search .rastakhiz-search__btn:hover { background: linear-gradient(135deg, #4cc6df, var(--cyan)); }
/* Wave divider into next section */
.hero-wave {
  position: absolute; bottom: -1px; inset-inline: 0; z-index: 2; line-height: 0;
}
.hero-wave svg { width: 100%; height: 70px; display: block; }

/* ==========================================================================
   5. STATS BAND
   ========================================================================== */
.stats-band {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--navy-2), var(--navy) 60%, #26355c);
  color: #fff;
}
.stats-band::before {
  content: ""; position: absolute; inset: 0;
  background: url("assets/img/pattern-tile.jpg") repeat;
  opacity: 0.08;
}
.stats-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  padding-block: 2.6rem; text-align: center;
}
.stat { padding: 0.8rem 0.4rem; position: relative; }
.stat + .stat::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 20%; bottom: 20%;
  width: 1px; background: rgba(255, 255, 255, 0.14);
}
.stat-num {
  display: block; font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 800;
  color: var(--cyan); line-height: 1.3;
}
.stat-label { font-size: 0.95rem; color: rgba(255, 255, 255, 0.85); }
.stat-explain {
  display: block; font-size: 0.82rem; color: rgba(255, 255, 255, 0.62);
  margin-top: 0.25rem; line-height: 1.7;
}

/* ==========================================================================
   6. SECTION SCAFFOLDING
   ========================================================================== */
.home-section { padding-block: 4.8rem; position: relative; }
.bg-paper {
  background:
    radial-gradient(1100px 320px at 85% -60px, rgba(63, 185, 212, 0.10), transparent 60%),
    radial-gradient(900px 300px at 10% 110%, rgba(201, 162, 39, 0.08), transparent 60%),
    var(--paper);
}
.bg-white { background: var(--white); }
.bg-pattern {
  background: var(--paper);
  background-image: url("assets/img/pattern-tile.jpg");
  background-repeat: repeat;
  background-size: 220px;
}
.bg-pattern::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(247, 245, 240, 0.94), rgba(247, 245, 240, 0.88));
}
.bg-pattern > .container { position: relative; z-index: 1; }

/* ==========================================================================
   7. INTRO / TWO-COLUMN
   ========================================================================== */
.intro-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 3.2rem; align-items: center; }
.intro-media { position: relative; }
.intro-media img {
  border-radius: var(--radius); box-shadow: var(--shadow);
  width: 100%; aspect-ratio: 4/3.4; object-fit: cover;
}
.intro-media::before {
  content: ""; position: absolute; inset: -16px 16px 16px -16px;
  border: 2px solid var(--gold); border-radius: var(--radius); z-index: -1; opacity: 0.55;
}
.intro-badge {
  position: absolute; bottom: -18px; inset-inline-start: 26px;
  background: linear-gradient(135deg, var(--gold), #a8861d); color: #fff;
  border-radius: var(--radius-sm); padding: 0.7em 1.2em; font-weight: 700; font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
}
.intro-text h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.intro-text p { color: var(--ink-soft); }
.intro-roles { margin: 1.4rem 0; padding: 0; list-style: none; }
.intro-roles li {
  display: flex; gap: 0.8em; align-items: flex-start; padding: 0.7em 0;
  border-bottom: 1px dashed var(--line); font-size: 0.98rem;
}
.intro-roles li:last-child { border-bottom: 0; }
.intro-roles .role-dot {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), #2a9cbb); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.intro-roles .role-dot svg { width: 16px; height: 16px; fill: currentColor; }

/* ==========================================================================
   8. RESEARCH FIELDS GRID
   ========================================================================== */
.fields-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem;
  position: relative; z-index: 1;
}
.field-card { padding: 1.7rem 1.5rem; position: relative; }
.field-card::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  opacity: 0; transition: opacity 0.25s ease; border-radius: 0 0 var(--radius) var(--radius);
}
.field-card:hover::after { opacity: 1; }
.field-icon {
  width: 62px; height: 62px; border-radius: 18px; margin-bottom: 1.1rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy), #33436e); color: var(--cyan);
  box-shadow: var(--shadow-sm);
}
.field-card:nth-child(3n+2) .field-icon { background: linear-gradient(135deg, var(--cyan), #2a9cbb); color: #fff; }
.field-card:nth-child(3n) .field-icon { background: linear-gradient(135deg, var(--gold), #a8861d); color: #fff; }
.field-icon svg { width: 30px; height: 30px; fill: currentColor; }
.field-card h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.field-card p { font-size: 0.93rem; color: var(--ink-soft); margin: 0; }
.field-link {
  display: inline-flex; align-items: center; gap: 0.4em; margin-top: 1rem;
  font-weight: 700; font-size: 0.92rem; color: var(--navy);
}
.field-link svg { width: 15px; height: 15px; }
.field-link:hover { color: var(--cyan); gap: 0.7em; }

/* ==========================================================================
   9. COUNCIL CARDS
   ========================================================================== */
.councils-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.council-card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  min-height: 340px; display: flex; align-items: flex-end; color: #fff;
  box-shadow: var(--shadow-sm); transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.council-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.council-card.bg-a { background: var(--navy) url("assets/img/lecture.jpg") center/cover no-repeat; }
.council-card.bg-b { background: var(--navy) url("assets/img/researchers.jpg") center/cover no-repeat; }
.council-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 41, 0.05) 30%, rgba(15, 23, 41, 0.92) 100%);
}
.council-body { position: relative; z-index: 1; padding: 2rem; width: 100%; }
.council-body .kicker { color: var(--gold); font-size: 0.85rem; }
.council-body h3 { color: #fff; font-size: 1.5rem; margin-bottom: 0.4rem; }
.council-body p { color: rgba(255, 255, 255, 0.85); font-size: 0.96rem; margin-bottom: 1.2rem; }

/* ==========================================================================
   10. PUBLICATIONS / BOOK COVERS
   ========================================================================== */
.books-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.book-card { text-align: center; padding: 2rem 1.4rem; }
.book-cover {
  width: 168px; height: 238px; margin: 0 auto 1.3rem; border-radius: 12px 6px 6px 12px;
  background: linear-gradient(150deg, var(--navy) 20%, #33436e 80%);
  position: relative; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem; color: #fff; padding: 1.2rem; overflow: hidden;
}
.book-cover::before {
  content: ""; position: absolute; inset: 0;
  background: url("assets/img/pattern-tile.jpg") repeat; opacity: 0.08;
}
.book-cover::after {
  content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: 10px;
  width: 2px; background: rgba(255, 255, 255, 0.22);
}
.book-cover.alt { background: linear-gradient(150deg, #0f5c70 20%, var(--cyan) 90%); }
.book-cover.alt2 { background: linear-gradient(150deg, #8a6f16 20%, var(--gold) 95%); }
.book-cover .book-emblem {
  position: relative; width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7); display: inline-flex;
  align-items: center; justify-content: center; font-weight: 800; font-size: 1.15rem;
}
.book-cover .book-title { position: relative; font-size: 0.92rem; font-weight: 700; line-height: 1.8; }
.book-cover .book-soon { position: relative; font-size: 0.78rem; color: rgba(255, 255, 255, 0.8); }
.book-card h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.book-card p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }
.center-cta { text-align: center; margin-top: 2.4rem; }

/* ==========================================================================
   11. LIBRARY BAND
   ========================================================================== */
.library-band {
  position: relative; overflow: hidden; color: #fff;
  background: var(--navy-3) url("assets/img/library.jpg") center/cover no-repeat;
  padding-block: 5.5rem;
}
.library-band::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(15, 23, 41, 0.95) 20%, rgba(30, 42, 74, 0.72) 60%, rgba(30, 42, 74, 0.4));
}
.library-inner { position: relative; z-index: 1; max-width: 640px; }
.library-inner .kicker { color: var(--cyan); }
.library-inner h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.library-inner p { color: rgba(255, 255, 255, 0.85); margin-bottom: 1.8rem; }
.library-feats { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 1.8rem; padding: 0; list-style: none; }
.library-feats li {
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.4em 1em; border-radius: 999px; font-size: 0.9rem; backdrop-filter: blur(4px);
}

/* ==========================================================================
   12. RESEARCHERS
   ========================================================================== */
.people-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.person-card { text-align: center; padding: 1.8rem 1.2rem; }
.person-avatar {
  width: 110px; height: 110px; margin: 0 auto 1rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-soft), var(--paper-2));
  border: 3px solid var(--cyan); display: inline-flex; align-items: center; justify-content: center;
  color: var(--navy); overflow: hidden;
}
.person-avatar svg { width: 52px; height: 52px; fill: currentColor; opacity: 0.7; }
.person-card h3 { font-size: 1.02rem; margin-bottom: 0.15rem; }
.person-card .person-role { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 0.6rem; }

/* ==========================================================================
   13. EVENTS / NEWS / CALLS
   ========================================================================== */
.events-list { max-width: 860px; margin: 0 auto; padding: 0; list-style: none; display: grid; gap: 1rem; }
.event-item {
  display: flex; gap: 1.3rem; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.3rem; box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.event-item:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.event-date {
  flex: 0 0 auto; width: 76px; height: 82px; border-radius: var(--radius-sm);
  background: linear-gradient(160deg, var(--navy), #33436e); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 800; line-height: 1.5;
}
.event-date .dow { font-size: 0.75rem; color: var(--cyan); font-weight: 600; }
.event-date .num { font-size: 1.5rem; }
.event-date .mon { font-size: 0.8rem; color: rgba(255, 255, 255, 0.75); }
.event-body h3 { font-size: 1.08rem; margin-bottom: 0.15rem; }
.event-body p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }
.event-meta { margin-top: 0.35rem !important; }
.book-meta { margin-top: 0.4rem; }
.library-search { display: flex; gap: 0.6rem; max-width: 480px; margin-bottom: 1.8rem; }
.library-search input[type="search"] {
  flex: 1; min-width: 0; padding: 0.75em 1.1em; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.1);
  color: #fff; font-family: var(--font); font-size: 1rem;
}
.library-search input[type="search"]::placeholder { color: rgba(255, 255, 255, 0.6); }
.library-search input[type="search"]:focus { outline: none; border-color: var(--cyan); background: rgba(255, 255, 255, 0.16); }
.library-search button {
  padding: 0.75em 1.5em; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, var(--cyan), #2a9cbb); color: #fff;
  font-family: var(--font); font-weight: 700; font-size: 1rem; flex: 0 0 auto;
}
.library-search button:hover { background: linear-gradient(135deg, #4cc6df, var(--cyan)); }
.event-tag {
  margin-inline-start: auto; flex: 0 0 auto; font-size: 0.8rem; font-weight: 700;
  color: var(--gold); background: var(--gold-soft); border-radius: 999px; padding: 0.35em 1em;
}

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.news-card .news-media {
  height: 190px; background: linear-gradient(140deg, var(--navy) 10%, #33436e 55%, var(--cyan) 130%);
  position: relative; overflow: hidden;
}
.news-card .news-media::before {
  content: ""; position: absolute; inset: 0;
  background: url("assets/img/pattern-tile.jpg") repeat; opacity: 0.08;
}
.news-card .news-media .news-kicker {
  position: absolute; bottom: 12px; inset-inline-start: 12px;
  background: rgba(15, 23, 41, 0.72); color: #fff; font-size: 0.78rem;
  padding: 0.3em 0.9em; border-radius: 999px; backdrop-filter: blur(4px);
}
.news-card h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.news-card .news-meta, .archive-card .news-meta { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 0.6rem; }
.news-card p { font-size: 0.92rem; color: var(--ink-soft); }

.calls-band {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(120deg, var(--navy-3), var(--navy) 55%, #2c3d66);
}
.calls-band::before {
  content: ""; position: absolute; inset: 0;
  background: url("assets/img/pattern-tile.jpg") repeat; opacity: 0.07;
}
.calls-band .container { position: relative; z-index: 1; }
.calls-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.call-item {
  display: flex; align-items: center; gap: 1rem;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius); padding: 1.1rem 1.3rem; backdrop-filter: blur(4px);
  transition: background 0.2s ease, transform 0.2s ease;
}
.call-item:hover { background: rgba(255, 255, 255, 0.13); transform: translateY(-3px); }
.call-item .call-icon {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(135deg, var(--gold), #a8861d); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.call-item .call-icon svg { width: 22px; height: 22px; fill: currentColor; }
.call-item h3 { color: #fff; font-size: 1.02rem; margin: 0 0 0.1rem; }
.call-item p { font-size: 0.87rem; color: rgba(255, 255, 255, 0.7); margin: 0; }

/* ==========================================================================
   14. COLLABORATION CTA + CONTACT STRIP
   ========================================================================== */
.collab-band {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  background: linear-gradient(135deg, var(--navy-3), var(--navy) 55%, #2c3d66);
  padding-block: 4.5rem;
}
.collab-band::before {
  content: ""; position: absolute; inset: 0;
  background: url("assets/img/pattern-tile.jpg") repeat; opacity: 0.06;
}
.collab-band::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 50% 120%, rgba(15, 23, 41, 0.35), transparent 70%);
}
.collab-band .container { position: relative; z-index: 1; }
.collab-band h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.collab-band p { color: rgba(255, 255, 255, 0.92); max-width: 640px; margin: 0 auto 1.8rem; }
.collab-points {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem;
  margin: 0 0 2rem; padding: 0; list-style: none;
}
.collab-points li {
  background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.45em 1.1em; border-radius: 999px; font-size: 0.92rem; backdrop-filter: blur(4px);
}

/* ==========================================================================
   15. NEWSLETTER BAND
   ========================================================================== */
.newsletter-band {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(120deg, var(--navy-2), var(--navy) 60%, #26355c);
  padding-block: 3.8rem;
}
.newsletter-band::before {
  content: ""; position: absolute; inset: 0;
  background: url("assets/img/pattern-tile.jpg") repeat; opacity: 0.06;
}
.newsletter-band::after {
  content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: 5px;
  background: linear-gradient(180deg, var(--cyan), var(--gold));
}
.newsletter-inner {
  position: relative; z-index: 1; max-width: 640px; margin-inline: auto; text-align: center;
}
.newsletter-inner h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 0.4rem; }
.newsletter-inner > p { color: rgba(255, 255, 255, 0.8); margin-bottom: 1.6rem; }
.newsletter-form { display: flex; gap: 0.6rem; max-width: 480px; margin: 0 auto 0.9rem; }
.newsletter-form input[type="email"] {
  flex: 1; min-width: 0; padding: 0.75em 1.1em; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.1);
  color: #fff; font-family: var(--font); font-size: 1rem;
}
.newsletter-form input[type="email"]::placeholder { color: rgba(255, 255, 255, 0.6); }
.newsletter-form input[type="email"]:focus { outline: none; border-color: var(--cyan); background: rgba(255, 255, 255, 0.16); }
.newsletter-note { font-size: 0.82rem; color: rgba(255, 255, 255, 0.55); margin: 0; }

.contact-strip {
  background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding-block: 2.2rem;
}
.contact-strip .container {
  display: flex; flex-wrap: wrap; gap: 1.6rem; align-items: center; justify-content: center;
  text-align: center;
}
.contact-chip {
  display: inline-flex; align-items: center; gap: 0.6em; font-size: 0.98rem; color: var(--ink);
}
.contact-chip svg { width: 20px; height: 20px; fill: var(--cyan); }
.contact-chip a { color: var(--navy); font-weight: 600; }
.contact-chip a:hover { color: var(--cyan); }

/* ==========================================================================
   16. FOOTER
   ========================================================================== */
.site-footer {
  background: linear-gradient(180deg, var(--navy-2), var(--navy-3));
  color: rgba(255, 255, 255, 0.78); position: relative; overflow: hidden;
}
.site-footer::before {
  content: ""; position: absolute; inset: 0;
  background: url("assets/img/pattern-tile.jpg") repeat; opacity: 0.06; pointer-events: none;
}
.footer-main {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2.2rem;
  padding-block: 3.6rem 2.4rem;
}
.footer-col h3 {
  color: #fff; font-size: 1.05rem; margin-bottom: 1.1rem; padding-bottom: 0.6rem;
  border-bottom: 2px solid rgba(63, 185, 212, 0.4); display: inline-block;
}
.footer-about .brand-name .site-title { color: #fff; }
.footer-about p { font-size: 0.92rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a { color: rgba(255, 255, 255, 0.72); font-size: 0.94rem; }
.footer-col a:hover { color: var(--cyan); padding-inline-start: 4px; }
.footer-contact li { display: flex; gap: 0.6em; align-items: flex-start; font-size: 0.92rem; }
.footer-contact svg { width: 17px; height: 17px; fill: var(--cyan); flex: 0 0 auto; margin-top: 0.35em; }
.footer-social { display: flex; gap: 0.6rem; margin-top: 1rem; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.1); color: #fff;
}
.footer-social a:hover { background: var(--cyan); color: var(--navy-3); transform: translateY(-3px); }
.footer-social svg { width: 17px; height: 17px; fill: currentColor; }
.footer-bottom {
  position: relative; z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 1.1rem; font-size: 0.86rem; text-align: center;
  color: rgba(255, 255, 255, 0.55);
}
.footer-bottom .gold { color: var(--gold); }

/* ==========================================================================
   17. INNER PAGES (page.php, single, archive, search, 404)
   ========================================================================== */
.page-hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(120deg, var(--navy-3), var(--navy) 60%, #2c3d66);
  padding-block: 3.6rem 3rem;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: url("assets/img/pattern-tile.jpg") repeat; opacity: 0.08;
}
.page-hero::after {
  content: ""; position: absolute; bottom: 0; inset-inline: 0; height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--gold), var(--cyan));
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.6rem); margin-bottom: 0.3rem; }
.page-hero .crumbs { font-size: 0.88rem; color: rgba(255, 255, 255, 0.7); }
.page-hero .crumbs a { color: var(--cyan); }
.page-hero .crumbs a:hover { color: #fff; }

.content-wrap { padding-block: 3.2rem; }
.content-grid { display: grid; grid-template-columns: 1fr 300px; gap: 2.6rem; align-items: start; }
.content-grid > :only-child { grid-column: 1 / -1; }
.content-main {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.4rem; box-shadow: var(--shadow-sm);
}
.content-main > h1:first-child { margin-top: 0; }
.post-thumb { margin: 0 0 1.8rem; border-radius: var(--radius-sm); overflow: hidden; }
.post-thumb img { width: 100%; }
.entry-meta {
  display: flex; flex-wrap: wrap; gap: 1.1rem; font-size: 0.87rem; color: var(--ink-soft);
  border-bottom: 1px solid var(--line); padding-bottom: 1rem; margin-bottom: 1.5rem;
}
.entry-meta span { display: inline-flex; align-items: center; gap: 0.4em; }
.entry-meta svg { width: 15px; height: 15px; fill: var(--cyan); }
.entry-meta a { color: var(--navy); font-weight: 600; }
.entry-footer { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: 0.9rem; }
.entry-footer svg { width: 15px; height: 15px; fill: var(--cyan); vertical-align: -2px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.post-nav > :only-child { grid-column: 1 / -1; }
.post-nav a {
  display: flex; flex-direction: column; gap: 0.35rem; height: 100%;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 1rem 1.2rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.post-nav a:hover { border-color: var(--cyan); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.post-nav .nav-label {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-size: 0.82rem; font-weight: 700; color: var(--cyan);
}
.post-nav .nav-label svg { width: 15px; height: 15px; }
.post-nav .nav-title { font-size: 0.95rem; font-weight: 700; color: var(--navy); }
.post-nav a:hover .nav-title { color: var(--cyan); }

/* Archive cards */
.archive-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.archive-card .card-pad h2 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.archive-card .card-pad h2 a { color: var(--navy); }
.archive-card .card-pad h2 a:hover { color: var(--cyan); }
.archive-card .excerpt { font-size: 0.93rem; color: var(--ink-soft); }
.archive-card .thumb-link { display: block; height: 190px; overflow: hidden; }
.archive-card .thumb-link img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.archive-card:hover .thumb-link img { transform: scale(1.06); }
.archive-empty { text-align: center; padding: 3rem 1rem; color: var(--ink-soft); }

/* Blog index cards (index.php) — same visual language as .archive-card */
.post-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 1.6rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-card .post-thumb { margin: 0; border-radius: 0; }
.post-card .post-thumb img { height: 220px; object-fit: cover; }
.post-title { font-size: 1.25rem; margin: 0; padding: 1.4rem 1.6rem 0; }
.post-title a { color: var(--navy); }
.post-title a:hover { color: var(--cyan); }
.post-excerpt { font-size: 0.95rem; color: var(--ink-soft); padding: 0.6rem 1.6rem 1.6rem; }
.post-excerpt p { margin: 0; }
.posts-navigation { margin-top: 2.4rem; text-align: center; }
.posts-navigation .nav-links { display: inline-flex; gap: 0.6rem; }
.posts-navigation a {
  display: inline-flex; align-items: center; gap: 0.4em;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 0.6em 1.5em; font-weight: 700; font-size: 0.92rem; color: var(--navy);
}
.posts-navigation a:hover { background: var(--cyan-soft); border-color: var(--cyan); color: var(--navy); }

/* Archive description + generic inline search (archive.php, search.php) */
.archive-desc { color: rgba(255, 255, 255, 0.8); font-size: 0.95rem; }
.inline-search { max-width: 520px; margin: 0 auto 2rem; display: flex; gap: 0.5rem; }
.kicker--light { color: #fff; }
.kicker--light::before, .kicker--light::after { background: rgba(255, 255, 255, 0.5); }

/* Event date "coming soon" empty state */
.event-date--soon { gap: 0.35rem; }
.event-date--soon svg { width: 26px; height: 26px; fill: var(--cyan); }
.event-date--soon .soon-label { font-size: 0.85rem; color: #fff; font-weight: 700; }

/* Post content elements */
.entry-content .alignright { float: right; margin: 0 0 1rem 1.5rem; }
.entry-content .alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.entry-content .aligncenter { display: block; margin: 0 auto 1.5rem; text-align: center; }
.entry-content ul, .entry-content ol { list-style-position: outside; padding-inline-start: 1.4em; }
.entry-content .wp-caption {
  max-width: 100%; margin-bottom: 1.5rem; background: var(--paper-2);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.6rem;
}
.entry-content .wp-caption img { margin: 0 auto; }
.entry-content .wp-caption-text {
  font-size: 0.85rem; color: var(--ink-soft); text-align: center;
  padding: 0.5rem 0.3rem 0.2rem; margin: 0;
}
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: 0.92rem; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 0.6em 0.9em; text-align: start; }
.entry-content th { background: var(--navy); color: #fff; font-weight: 700; }
.entry-content tr:nth-child(even) td { background: var(--paper-2); }
.entry-content blockquote {
  margin: 0 0 1.5rem; padding: 1.1rem 1.4rem;
  border-inline-start: 4px solid var(--cyan); background: var(--cyan-soft);
  border-radius: var(--radius-sm); color: var(--navy); font-size: 1.02rem;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }

/* Multi-page post navigation (wp_link_pages) */
.page-links { margin-top: 1.8rem; font-weight: 700; color: var(--navy); }
.page-links .post-page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 0.6em; margin-inline-start: 0.3rem;
  border-radius: 10px; background: #fff; border: 1px solid var(--line);
  color: var(--navy); font-weight: 700;
}
.page-links a .post-page-numbers:hover, .page-links > a:hover {
  background: var(--cyan-soft); border-color: var(--cyan); color: var(--navy);
}
.page-links .post-page-numbers.current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Pagination */
.pagination { margin-top: 2.4rem; text-align: center; }
.pagination .nav-links { display: inline-flex; gap: 0.4rem; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 0.6em; border-radius: 10px;
  background: #fff; border: 1px solid var(--line); color: var(--navy); font-weight: 700;
}
.pagination .page-numbers:hover { background: var(--cyan-soft); }
.pagination .page-numbers.current { background: var(--navy); color: #fff; border-color: var(--navy); }
.comment-navigation { margin-top: 1.6rem; }
.comment-navigation .nav-links { display: flex; justify-content: space-between; gap: 0.6rem; }
.comment-navigation a {
  display: inline-flex; align-items: center; padding: 0.55em 1.1em; border-radius: 10px;
  background: #fff; border: 1px solid var(--line); color: var(--navy); font-weight: 700; font-size: 0.9rem;
}
.comment-navigation a:hover { background: var(--cyan-soft); }

/* 404 */
.error-404 { text-align: center; padding-block: 4rem 5rem; }
.error-code {
  font-size: clamp(5rem, 16vw, 10rem); font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, var(--navy), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.error-404 h1 { font-size: 1.8rem; }
.error-404 p { color: var(--ink-soft); max-width: 520px; margin: 0 auto 1.8rem; }
.error-404 .inline-search { max-width: 440px; margin: 0 auto 1.8rem; display: flex; gap: 0.5rem; }
.error-404 .inline-search input[type="search"] {
  flex: 1; min-width: 0; padding: 0.7em 1em; border: 1px solid var(--line);
  border-radius: 999px; font-family: var(--font);
}

/* ==========================================================================
   18. WIDGETS & COMMENTS
   ========================================================================== */
.widget-area .widget {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; margin-bottom: 1.4rem; box-shadow: var(--shadow-sm);
}
.widget-area .widget-title {
  font-size: 1.05rem; margin-bottom: 1rem; padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--cyan); display: inline-block;
}
.widget-area ul { list-style: none; margin: 0; padding: 0; }
.widget-area li { padding: 0.45em 0; border-bottom: 1px dashed var(--line); font-size: 0.93rem; }
.widget-area li:last-child { border-bottom: 0; }
.widget-area select, .widget-area input[type="search"], .widget-area input[type="text"] {
  width: 100%; padding: 0.6em 0.8em; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-family: var(--font);
}

.comments-area { margin-top: 2.4rem; }
.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comment-list .comment {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1.2rem; margin-bottom: 1rem;
}
.comment-list .children { list-style: none; margin: 1rem 0 0; margin-inline-start: 1.2rem; padding: 0; }
.comment-author { font-weight: 700; color: var(--navy); margin-bottom: 0.3rem; }
.comment-meta { font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 0.6rem; }
.comment-reply-link { font-size: 0.85rem; font-weight: 700; color: var(--cyan); }
.comment-form label { display: block; font-weight: 600; margin-bottom: 0.3rem; font-size: 0.92rem; }
.comment-form input[type="text"], .comment-form input[type="email"],
.comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: 0.7em 0.9em; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-family: var(--font); margin-bottom: 1rem; background: #fff;
}
.comment-form .submit {
  background: var(--navy); color: #fff; border: 0; border-radius: 999px;
  padding: 0.7em 1.8em; font-family: var(--font); font-weight: 700; cursor: pointer;
}
.comment-form .submit:hover { background: var(--cyan); }

/* ==========================================================================
   19. BACK-TO-TOP, ACCESSIBILITY
   ========================================================================== */
.to-top {
  position: fixed; bottom: 26px; inset-inline-start: 26px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--navy), #33436e); color: #fff;
  box-shadow: var(--shadow); display: inline-flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--cyan); }
.to-top svg { width: 20px; height: 20px; fill: currentColor; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ==========================================================================
   20. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .primary-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .fields-grid { grid-template-columns: repeat(2, 1fr); }
  .people-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid, .books-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .utility-contact .hide-sm { display: none; }
}

@media (max-width: 720px) {
  body { font-size: 15px; }
  .home-section { padding-block: 3.4rem; }
  .intro-grid, .councils-grid, .calls-list { grid-template-columns: 1fr; }
  .fields-grid, .people-grid, .news-grid, .books-grid, .archive-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem 0; }
  .stat:nth-child(3)::before { display: none; }
  .stat-num { font-size: 1.9rem; }
  .hero-inner { padding-block: 3.6rem 5rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .footer-main { grid-template-columns: 1fr; gap: 1.6rem; }
  .event-item { flex-wrap: wrap; }
  .event-tag { margin-inline-start: 0; }
  .utility-bar .container { flex-wrap: wrap; justify-content: center; }
  .post-nav { grid-template-columns: 1fr; }
  .content-main { padding: 1.5rem; }
  .header-search-form { position: fixed; top: 70px; inset-inline: 1rem; width: auto; }
  .newsletter-form, .library-search { flex-direction: column; }
  .newsletter-form .btn, .library-search button { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .brand-name .site-title { font-size: 1.05rem; }
  .brand-name .site-desc { display: none; }
}

/* ==========================================================================
   21. ULTIMATE MEMBER COMPATIBILITY
   Every rule is scoped under .um — nothing leaks into the rest of the theme.
   RTL-native: flexbox + logical properties replace UM's LTR floats.
   Visual language: theme cards, pill buttons, 8px inputs, navy/cyan.
   ========================================================================== */

/* ---------- Shared: type, notices ---------------------------------------- */
.um { font-family: var(--font); color: var(--ink); }
.um a { color: var(--navy); }
.um a:hover { color: var(--cyan); }

.um p.um-notice {
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-sm) !important;
  background: var(--cyan-soft) !important;
  color: var(--navy) !important;
  font-family: var(--font);
  padding: 0.8rem 1rem !important;
  margin: 0 0 1.2rem !important;
}
.um p.um-notice.error {
  background: #fdeeee !important; border-color: #f0c6c6 !important; color: #932e2e !important;
}
.um p.um-notice.success {
  background: #e9f7ee !important; border-color: #bfe3cc !important; color: #256b3e !important;
}

/* ---------- Shared: fields ---------------------------------------------- */
.um .um-field { padding: 0 0 1.15rem !important; }
.um .um-field-label { margin: 0 0 0.35rem !important; }
.um .um-field-label label {
  font-weight: 700 !important; color: var(--navy); font-size: 0.95rem;
}
.um .um-field-area input[type="text"],
.um .um-field-area input[type="email"],
.um .um-field-area input[type="password"],
.um .um-field-area input[type="number"],
.um .um-field-area input[type="tel"],
.um .um-field-area input[type="url"],
.um .um-field-area input[type="date"],
.um .um-field-area select,
.um .um-field-area textarea {
  width: 100% !important; max-width: 100%;
  padding: 0.7em 0.9em !important; margin: 0 !important; height: auto !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-sm) !important;
  background: #fff; color: var(--navy);
  font-family: var(--font) !important; font-size: 1rem;
  box-shadow: none !important;
}
.um .um-field-area input:focus,
.um .um-field-area select:focus,
.um .um-field-area textarea:focus {
  border-color: var(--cyan) !important; outline: none !important;
  box-shadow: 0 0 0 3px rgba(63, 185, 212, 0.16) !important;
}
.um .um-field-error { color: #b3261e !important; font-size: 0.85rem; margin-top: 0.3rem; }

/* ---------- Shared: buttons (theme pill) ---------------------------------- */
.um .um-button,
.um input[type="submit"].um-button,
.um a.um-button {
  display: inline-block !important; width: auto !important; min-width: 200px;
  border: 0 !important; border-radius: 999px !important;
  background: linear-gradient(135deg, var(--cyan), #2a9cbb) !important;
  color: #fff !important;
  font-family: var(--font) !important; font-weight: 700 !important;
  font-size: 1rem !important; line-height: 1.6 !important;
  text-transform: none !important; letter-spacing: 0 !important;
  padding: 0.75em 2.4em !important; margin: 0.5rem 0 0 !important;
  box-shadow: 0 12px 26px -10px rgba(63, 185, 212, 0.55) !important;
  cursor: pointer; text-align: center; text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
}
.um .um-button:hover,
.um input[type="submit"].um-button:hover,
.um a.um-button:hover {
  transform: translateY(-2px); color: #fff !important;
  background: linear-gradient(135deg, #4cc6df, var(--cyan)) !important;
  box-shadow: 0 16px 30px -10px rgba(63, 185, 212, 0.6) !important;
}
.um .um-request-button {
  border-radius: 999px !important; border: 1px solid var(--line) !important;
  background: #fff !important; color: var(--navy) !important;
  font-family: var(--font); font-weight: 700; font-size: 0.92rem;
  padding: 0.55em 1.6em !important; margin: 0.6rem 0 0 !important;
  text-decoration: none !important; display: inline-block;
}
.um .um-request-button:hover {
  border-color: var(--cyan) !important; color: var(--cyan) !important; background: #fff !important;
}

/* ---------- Full-width UM pages (see rastakhiz_is_um_page) ---------------- */
.content-main.um-page { max-width: 1120px; margin-inline: auto; }
.content-main.um-page .um:not(.um-account):not(.um-profile):not(.um-directory) {
  max-width: 580px; margin-inline: auto;
}

/* ---------- Account page -------------------------------------------------- */
.um-account { max-width: 1120px; margin-inline: auto; }

/* Flex replaces UM's LTR floats: in RTL the side (tabs) lands RIGHT, main LEFT */
.um-account .um-form > form {
  display: flex; flex-wrap: wrap; gap: 2rem; align-items: flex-start;
}
.um-account .um-form > form > .um-account-meta { display: none; }
.um-account .um-account-side {
  float: none !important; width: 280px !important; flex: 0 0 280px;
  padding: 0 !important; margin: 0 !important;
}
.um-account .um-account-main {
  float: none !important; width: auto !important; flex: 1 1 0; min-width: 0;
  padding: 0 !important;
}
.um-account .um-form > form > .um-clear { flex: 0 0 100%; height: 0; overflow: hidden; }
/* The clear div inside field labels must not participate in flex layout —
   the old unscoped rule squeezed every label to one-word-per-line. */
.um-account .um-field-label .um-clear { display: none !important; }

/* Profile mini-card above the tab column */
.um-account .um-account-side .um-account-meta {
  text-align: center; margin: 0 0 1.1rem !important; padding: 1.5rem 1rem 1.2rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.um-account .um-account-meta img {
  border-radius: 50% !important; border: 3px solid var(--cyan-soft);
  width: 96px !important; height: 96px !important; object-fit: cover;
  margin: 0 !important; padding: 0 !important; float: none !important;
  position: static !important; display: inline-block;
}
.um-account .um-account-name { padding-top: 0.7rem; }
.um-account .um-account-name > a { font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.um-account .um-account-name > a:hover { color: var(--cyan); }
.um-account .um-account-profile-link { margin-top: 0.15rem; }
.um-account .um-account-profile-link a { font-size: 0.85rem; font-weight: 600; color: var(--cyan); }

/* Tab list: proper vertical nav cards */
.um-account .um-account-side ul {
  list-style: none !important; margin: 0 !important; padding: 0 !important;
  display: grid; gap: 0.45rem;
}
.um-account .um-account-side li {
  margin: 0 !important; padding: 0 !important; background: none !important;
}
.um-account .um-account-side li a {
  display: flex !important; align-items: center; gap: 0.7rem;
  height: auto !important; line-height: 1.6 !important;
  padding: 0.78rem 1rem !important;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--navy) !important; font-size: 0.95rem; font-weight: 600;
  box-shadow: var(--shadow-sm); position: relative;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.um-account .um-account-side li a:hover {
  border-color: var(--cyan); background: var(--cyan-soft); color: var(--navy) !important;
  transform: translateY(-2px);
}
.um-account .um-account-side li a.current,
.um-account .um-account-side li a.current:hover {
  background: var(--navy) !important; border-color: var(--navy) !important;
  color: #fff !important; font-weight: 700; transform: none;
}
/* Neutralize UM's absolute/physical icon + arrow placement */
.um-account .um-account-side li a span.um-account-icon {
  position: static !important; float: none !important; border: 0 !important;
  width: 1.5em !important; height: auto !important; padding: 0 !important; margin: 0 !important;
  display: inline-flex !important; align-items: center; justify-content: center;
  font-size: 1.1em; color: var(--cyan); text-align: center; box-sizing: border-box;
}
.um-account .um-account-side li a.current span.um-account-icon { color: #fff; }
.um-account .um-account-side li a span.um-account-icon i {
  display: inline-block; height: auto; line-height: 1;
}
.um-account .um-account-side li a span.um-account-title {
  float: none !important; padding: 0 !important; margin: 0 !important;
  height: auto !important; line-height: inherit !important; color: inherit !important;
  flex: 1 1 auto;
}
.um-account .um-account-side li a span.um-account-arrow {
  position: static !important; margin: 0 !important; opacity: 0.6; font-size: 1em; line-height: 1;
}
.um-account .um-account-side li a span.um-account-icontip { display: none !important; }

/* UM's own mobile accordion nav is redundant next to our tab list */
.um-account .um-account-nav { display: none !important; }

/* Tab panel */
.um-account .um-account-tab {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 1.8rem;
}
.um-account .um-account-main div.um-account-heading {
  font-family: var(--font-display); font-size: 1.35rem; color: var(--navy);
  margin: 0 0 1.3rem !important; padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--cyan-soft);
  display: flex; align-items: center; gap: 0.6rem; line-height: 1.6;
}
.um-account .um-account-main div.um-account-heading i {
  position: static !important; top: auto !important; margin: 0 !important;
  font-size: 1.1em; color: var(--cyan);
}
.um-account .um-account-main p { margin: 0 0 1rem !important; padding: 0 !important; }

/* ---------- Privacy tab remake -------------------------------------------------
   Full visual rebuild: every setting is a breathing card with a proper
   full-width Persian label, elegant selects and toggle-pill radios. */
.um-account .um-account-tab .um-field {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem 1.4rem !important;
  margin: 0 0 1rem !important;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.um-account .um-account-tab .um-field:hover {
  border-color: var(--cyan); transform: translateY(-2px); box-shadow: var(--shadow);
}
.um-account .um-account-tab .um-field:last-of-type { margin-bottom: 0.4rem !important; }
.um-account .um-account-tab .um-field-label {
  display: flex !important; align-items: flex-start; gap: 0.6rem;
  margin: 0 0 0.85rem !important; max-width: 100%;
}
.um-account .um-account-tab .um-field-label label {
  flex: 1 1 auto; min-width: 0;
  font-size: 1.03rem !important; line-height: 1.9 !important; font-weight: 700;
  color: var(--navy); text-align: start;
}
.um-account .um-account-tab .um-field-label .um-tip,
.um-account .um-account-tab .um-field-label i.um-tip {
  flex: 0 0 auto; margin-top: 0.3em !important;
  width: 1.5em; height: 1.5em; line-height: 1.5em; text-align: center;
  background: var(--cyan-soft); color: #1e7f99; border-radius: 50%;
  font-size: 0.85em; font-style: normal; cursor: help;
  transition: background 0.2s ease, color 0.2s ease;
}
.um-account .um-account-tab .um-field-label .um-tip:hover,
.um-account .um-account-tab .um-field-label i.um-tip:hover {
  background: var(--cyan); color: #fff;
}
/* Selects: full width, custom chevron, premium feel */
.um-account .um-account-tab .um-field-select .um-field-area select {
  width: 100% !important; max-width: 100%;
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231e2a4a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 1rem center;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 0.72em 1em 0.72em 2.8em;
  font-family: var(--font); font-size: 0.97rem; font-weight: 600; color: var(--ink);
  cursor: pointer; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.um-account .um-account-tab .um-field-select .um-field-area select:hover { border-color: var(--cyan); }
.um-account .um-account-tab .um-field-select .um-field-area select:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(63,185,212,0.18);
}
/* Radios (بله / خیر): toggle pills */
.um-account .um-account-tab .um-field-radio .um-field-area {
  display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center;
}
.um-account .um-account-tab .um-field-radio .um-field-area > label {
  display: inline-flex !important; align-items: center; gap: 0.55em;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: #fff; padding: 0.5em 1.4em; margin: 0 !important;
  font-weight: 600 !important; font-size: 0.95rem; color: var(--ink);
  cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.um-account .um-account-tab .um-field-radio .um-field-area > label:hover {
  border-color: var(--cyan); transform: translateY(-1px);
}
.um-account .um-account-tab .um-field-radio .um-field-area > label:has(input:checked) {
  background: var(--navy); border-color: var(--navy); color: #fff;
}
.um-account .um-account-tab .um-field-radio input[type="radio"] {
  width: 1.05em; height: 1.05em; margin: 0 !important; padding: 0 !important;
  accent-color: var(--cyan); flex: 0 0 auto; cursor: pointer;
}
.um-account .um-account-tab .um-field-radio .um-field-area > label:has(input:checked) input[type="radio"] {
  accent-color: #fff;
}
/* Submit row */
.um-account .um-account-tab .um-col-alt { margin-top: 1.2rem !important; }
.um-account .um-account-tab input.um-button[type="submit"],
.um-account .um-account-tab .um-button {
  background: linear-gradient(135deg, var(--cyan), #2a9cbb) !important;
  color: #fff !important; border: 0 !important; border-radius: 999px !important;
  padding: 0.85em 2.6em !important; font-family: var(--font) !important;
  font-weight: 700 !important; font-size: 1rem !important; cursor: pointer;
  box-shadow: 0 12px 26px -10px rgba(63,185,212,0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  width: auto !important; min-width: 0 !important;
}
.um-account .um-account-tab input.um-button[type="submit"]:hover,
.um-account .um-account-tab .um-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -10px rgba(63,185,212,0.65);
}

/* ---------- Profile page --------------------------------------------------- */
.um-profile { max-width: 1120px; margin-inline: auto; }
.um-profile .um-header {
  background: #fff; border: 1px solid var(--line) !important; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden; padding-bottom: 1.4rem;
}
.um-profile .um-header:not(.no-cover) .um-profile-photo {
  float: inline-start !important; width: 200px; margin: 0 !important; position: relative;
}
.um-profile .um-header:not(.no-cover) .um-profile-photo a.um-profile-photo-img {
  float: none !important; left: auto !important; inset-inline-start: 2rem;
  border: 5px solid #fff !important; box-shadow: var(--shadow-sm);
}
.um-profile .um-main-meta { padding: 0.8rem 2rem 0 !important; }
.um-profile .um-name {
  float: inline-start !important; margin: 0 !important; margin-inline-end: 1.5rem !important;
  font-family: var(--font-display); font-size: 1.7rem; color: var(--navy); line-height: 1.5;
}
.um-profile .um-name a { font-size: inherit; color: inherit; }
.um-profile .um-profile-meta { padding: 0 !important; color: var(--ink-soft); font-size: 0.95rem; }
.um-profile .um-profile-edit { inset-inline-end: 12px !important; margin: 0 !important; }
.um-profile .um-profile-edit a { color: var(--navy); }
.um-profile .um-profile-edit a:hover { color: var(--cyan); }

/* Profile tab navbar */
.um-profile .um-profile-navbar {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 0.6rem; margin-bottom: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 0.4rem;
}
.um-profile .um-profile-nav-item a {
  border-radius: 999px; padding: 0.5em 1.2em; color: var(--navy);
  font-weight: 600; font-size: 0.93rem; border: 1px solid transparent;
  display: inline-flex; align-items: center; gap: 0.45em;
}
.um-profile .um-profile-nav-item a:hover { background: var(--cyan-soft); color: var(--navy); }
.um-profile .um-profile-nav-item.active a,
.um-profile .um-profile-nav-item a.current {
  background: var(--navy); border-color: var(--navy); color: #fff;
}
.um-profile .um-profile-body .um-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1rem 1.2rem; margin-bottom: 0.8rem;
}

/* ---------- Member directory ----------------------------------------------- */
.um-directory .um-member-directory-header { margin-bottom: 1.5rem; }
.um-directory .um-members-wrapper .um-members.um-members-grid { gap: 1.2rem !important; }
.um-directory .um-members-wrapper .um-members.um-members-grid .um-member {
  float: none !important; width: auto !important; margin: 0 !important;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 1.6rem 1rem; text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.um-directory .um-members-wrapper .um-members.um-members-grid .um-member:hover {
  transform: translateY(-6px); box-shadow: var(--shadow);
}
.um-directory .um-member-photo img {
  border-radius: 50% !important; border: 3px solid var(--cyan-soft);
}
.um-directory .um-member-name { margin-top: 0.7rem; }
.um-directory .um-member-name a { color: var(--navy); font-weight: 700; font-size: 1.05rem; }
.um-directory .um-member-name a:hover { color: var(--cyan); }
.um-directory .um-member-meta { font-size: 0.88rem; color: var(--ink-soft); margin-top: 0.3rem; }
.um-directory .um-members.um-members-list .um-member {
  float: none !important; width: auto !important;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm); padding: 1rem 1.2rem; margin: 0 0 0.8rem !important;
}
.um-directory .um-members-pagi { text-align: center; margin-top: 1.5rem; }
.um-directory .um-members-pagi a,
.um-directory .um-members-pagi span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.4em; height: 2.4em; padding: 0 0.5em; margin: 0 0.15rem;
  border-radius: 50%; border: 1px solid var(--line);
  color: var(--navy); font-weight: 700; font-size: 0.92rem;
}
.um-directory .um-members-pagi a:hover,
.um-directory .um-members-pagi span.current {
  background: var(--navy); border-color: var(--navy); color: #fff;
}
.um-directory .um-search { max-width: 100%; }

/* ---------- UM responsive (theme-driven) ------------------------------------ */
@media (max-width: 800px) {
  .um-account .um-form > form { flex-direction: column; gap: 1.2rem; }
  .um-account .um-form > form > .um-account-meta { display: block; flex: 0 0 100%; }
  .um-account .um-account-side {
    flex: 1 1 auto; width: 100% !important; display: block !important;
  }
  .um-account .um-account-side .um-account-meta { display: none; }
  .um-account .um-account-side ul {
    display: flex; overflow-x: auto; gap: 0.5rem; padding-bottom: 0.4rem;
  }
  .um-account .um-account-side li { flex: 0 0 auto; }
  .um-account .um-account-side li a { white-space: nowrap; padding: 0.6rem 1rem !important; }
  .um-account .um-account-side li a span.um-account-arrow { display: none !important; }
  /* Force full labels on small screens regardless of UM's responsive hiding */
  .um-account .um-account-side li a span.um-account-icon.uimob800-hide,
  .um-account .um-account-side li a span.um-account-title.uimob800-hide {
    display: inline-flex !important;
  }
  .um-account .um-account-tab { padding: 1.2rem; }
  .um-profile .um-profile-navbar { flex-wrap: nowrap; overflow-x: auto; }
  .um-directory .um-members-wrapper .um-members.um-members-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 520px) {
  .um-directory .um-members-wrapper .um-members.um-members-grid {
    grid-template-columns: 1fr !important;
  }
  .um .um-button,
  .um input[type="submit"].um-button,
  .um a.um-button { width: 100% !important; min-width: 0; }
}

/* ==========================================================================
 * FULL REWORK v1.1.9 — Custom privacy settings tab.
 * ========================================================================== */
.rz-privacy-rework { max-width: 780px; margin: 0 auto; padding: 8px 4px 24px; }
.rz-privacy-notice { background: #e8f8ef; border: 1px solid #b9e6c9; color: #177340; border-radius: 14px; padding: 14px 20px; margin-bottom: 22px; font-size: 15px; font-weight: 600; }
.rz-privacy-intro { margin-bottom: 26px; }
.rz-privacy-heading { font-family: 'Lalezar', 'Vazirmatn', sans-serif; font-size: 30px; color: #1e2a4a; margin: 0 0 8px; font-weight: 400; }
.rz-privacy-sub { color: #5f6f8f; font-size: 15px; margin: 0; line-height: 1.8; }
.rz-privacy-form { display: block; }
.rz-privacy-card { background: #fff; border: 1px solid #e2e9f6; border-radius: 18px; padding: 24px 26px; margin-bottom: 16px; display: flex; gap: 24px; align-items: center; justify-content: space-between; box-shadow: 0 2px 14px rgba(30,42,74,.06); transition: box-shadow .25s ease, transform .25s ease; }
.rz-privacy-card:hover { box-shadow: 0 8px 28px rgba(30,42,74,.11); transform: translateY(-2px); }
.rz-privacy-card-head { flex: 1 1 auto; min-width: 0; }
.rz-privacy-card-title { display: block; font-weight: 700; font-size: 17px; color: #1e2a4a; margin-bottom: 6px; line-height: 1.7; }
.rz-privacy-card-desc { display: block; font-size: 13.5px; color: #6d7d9f; line-height: 1.9; }
.rz-privacy-card-control { flex: 0 0 auto; }
.rz-privacy-select { -webkit-appearance: none; appearance: none; background-color: #f3f6fc; border: 1.5px solid #d3ddef; border-radius: 12px; padding: 12px 16px 12px 44px; font-family: inherit; font-size: 15px; font-weight: 600; color: #1e2a4a; min-width: 170px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231e2a4a' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 16px center; transition: border-color .2s ease, box-shadow .2s ease; }
.rz-privacy-select:hover { border-color: #3fb9d4; }
.rz-privacy-select:focus { outline: none; border-color: #3fb9d4; box-shadow: 0 0 0 3px rgba(63,185,212,.18); }
.rz-privacy-pills { display: inline-flex; background: #edf1f8; border-radius: 999px; padding: 5px; gap: 5px; }
.rz-pill { position: relative; cursor: pointer; margin: 0; }
.rz-pill input { position: absolute; opacity: 0; width: 0; height: 0; }
.rz-pill span { display: inline-block; padding: 10px 30px; border-radius: 999px; font-size: 15px; font-weight: 600; color: #5a6a8a; transition: all .22s ease; user-select: none; }
.rz-pill:hover span { color: #1e2a4a; }
.rz-pill input:checked + span { background: linear-gradient(135deg, #1e2a4a 0%, #2c3d68 100%); color: #fff; box-shadow: 0 3px 12px rgba(30,42,74,.35); }
.rz-pill input:focus-visible + span { outline: 2px solid #3fb9d4; outline-offset: 2px; }
.rz-privacy-submit { display: block; width: 100%; margin-top: 10px; background: linear-gradient(135deg, #1e2a4a 0%, #3fb9d4 130%); color: #fff; border: none; border-radius: 16px; padding: 17px 24px; font-family: inherit; font-size: 17px; font-weight: 700; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; box-shadow: 0 6px 20px rgba(30,42,74,.25); }
.rz-privacy-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(30,42,74,.32); }
.rz-privacy-submit:active { transform: translateY(0); }
.rz-privacy-login-required { background: #fff; border: 1px solid #e2e9f6; border-radius: 14px; padding: 24px; text-align: center; color: #5f6f8f; }
@media (max-width: 640px) {
  .rz-privacy-card { flex-direction: column; align-items: stretch; gap: 16px; padding: 20px; }
  .rz-privacy-card-control { display: flex; justify-content: stretch; }
  .rz-privacy-select, .rz-privacy-pills { width: 100%; }
  .rz-privacy-pills { justify-content: center; }
  .rz-pill { flex: 1; text-align: center; }
  .rz-pill span { display: block; }
}

/* ==========================================================================
 * FULL REWORK v1.1.9 — Profile page redesign.
 * ========================================================================== */
/* Cover: replace flat gray with a premium gradient + pattern. */
.um-profile .um-cover,
.um-profile .um-cover-e,
.um .um-cover {
  background: linear-gradient(120deg, #1e2a4a 0%, #2b3d6b 45%, #3fb9d4 130%) !important;
  position: relative;
  overflow: hidden;
  min-height: 230px;
  border-radius: 22px 22px 0 0;
}
.um-profile .um-cover::before,
.um-profile .um-cover-e::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.07' stroke-width='1'%3E%3Cpath d='M0 60h120M60 0v120'/%3E%3Ccircle cx='60' cy='60' r='28'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
/* The "+" add-cover button: make it an intentional glass action. */
.um-profile .um-cover-add,
.um-profile a.um-cover-add {
  background: rgba(255,255,255,.14) !important;
  border: 2px dashed rgba(255,255,255,.45) !important;
  color: #fff !important;
  border-radius: 18px !important;
  backdrop-filter: blur(4px);
  transition: all .25s ease;
  text-decoration: none !important;
}
.um-profile .um-cover-add:hover,
.um-profile a.um-cover-add:hover {
  background: rgba(255,255,255,.24) !important;
  border-color: rgba(255,255,255,.7) !important;
  transform: scale(1.04);
}
/* Header card: avatar, name, gear. */
.um-profile .um-header,
.um-profile .um-profile-header {
  background: #fff;
  border: 1px solid #e2e9f6;
  border-radius: 0 0 22px 22px;
  box-shadow: 0 8px 30px rgba(30,42,74,.08);
  padding: 0 28px 22px;
  margin-top: -58px;
  position: relative;
  z-index: 3;
}
.um-profile .um-avatar,
.um-profile .um-profile-photo {
  border: 4px solid #fff !important;
  box-shadow: 0 6px 22px rgba(30,42,74,.22) !important;
  border-radius: 50% !important;
}
.um-profile .um-name,
.um-profile .um-profile-name {
  font-family: 'Lalezar', 'Vazirmatn', sans-serif !important;
  font-size: 30px !important;
  color: #1e2a4a !important;
  font-weight: 400 !important;
}
/* Tab bar: from flat dark strip to elegant segmented control. */
.um-profile .um-profile-nav,
.um-profile nav.um-profile-nav {
  background: #fff !important;
  border: 1px solid #e2e9f6 !important;
  border-radius: 16px !important;
  padding: 8px !important;
  margin: 18px 0 !important;
  box-shadow: 0 4px 18px rgba(30,42,74,.06);
  display: flex;
  gap: 6px;
}
.um-profile .um-profile-nav a,
.um-profile .um-profile-nav .um-profile-nav-item {
  border-radius: 12px !important;
  color: #5f6f8f !important;
  transition: all .2s ease;
}
.um-profile .um-profile-nav a:hover {
  background: #f0f4fb !important;
  color: #1e2a4a !important;
}
.um-profile .um-profile-nav a.active,
.um-profile .um-profile-nav a.current {
  background: linear-gradient(135deg, #1e2a4a, #2c3d68) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(30,42,74,.28);
}
/* Empty state: calmer, friendlier. */
.um-profile .um-profile-empty,
.um-profile .um-profile-note {
  background: #fff;
  border: 1px dashed #c9d5ec;
  border-radius: 20px;
  padding: 56px 30px;
  text-align: center;
  color: #5f6f8f;
  font-size: 16px;
  line-height: 2;
  margin: 10px 0 30px;
}
.um-profile .um-profile-empty .um-icon,
.um-profile .um-profile-note .um-icon {
  font-size: 54px;
  color: #b9c6e2;
  display: block;
  margin-bottom: 14px;
}
/* Profile body cards. */
.um-profile .um-profile-body {
  background: transparent;
}
.um-profile .um-section {
  background: #fff;
  border: 1px solid #e2e9f6;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(30,42,74,.06);
  padding: 26px 28px;
  margin-bottom: 18px;
}

/* ==========================================================================
 * v1.2.0 — Profile remaster: precision refinements.
 * ========================================================================== */
/* Cover add-button: refined glass pill. */
.um-profile .um-cover-add,
.um-profile a.um-cover-add {
  position: absolute !important;
  top: 50% !important; left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 76px !important; height: 76px !important;
  display: flex !important; align-items: center; justify-content: center;
  font-size: 34px !important; line-height: 1 !important;
  background: rgba(255,255,255,.16) !important;
  border: 2px dashed rgba(255,255,255,.5) !important;
  color: #fff !important;
  border-radius: 50% !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all .25s ease !important;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.um-profile .um-cover-add:hover,
.um-profile a.um-cover-add:hover {
  background: rgba(255,255,255,.28) !important;
  border-style: solid !important;
  transform: translate(-50%, -50%) scale(1.06) !important;
}
/* Header: precise flex layout, refined type. */
.um-profile .um-header,
.um-profile .um-profile-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 28px 20px !important;
}
.um-profile .um-profile-photo,
.um-profile .um-avatar {
  flex: 0 0 auto;
  margin-top: -64px;
}
.um-profile .um-profile-meta,
.um-profile .um-header .um-name,
.um-profile .um-profile-name {
  flex: 1 1 auto;
  min-width: 0;
}
.um-profile .um-name,
.um-profile .um-profile-name {
  font-size: 32px !important;
  letter-spacing: 0 !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}
/* Tab bar: keep v1.1.9's clean styling (v1.2.0's flex rules broke UM's responsive tabs). */
/* Empty state: refined, with clearer hierarchy. */
.um-profile .um-profile-empty,
.um-profile .um-profile-note {
  padding: 64px 30px !important;
  border-width: 1.5px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafd 100%) !important;
}
.um-profile .um-profile-empty .um-icon,
.um-profile .um-profile-note .um-icon {
  font-size: 60px !important;
  color: #c3d0e8 !important;
  margin-bottom: 18px !important;
}

/* ==========================================================================
 * v1.2.1 — Bulletproof empty-state text fix.
 * Hides UM's corrupted message (unknown teh-marbuta variant) and shows our
 * own perfect Persian via pseudo-element. Works regardless of the bytes.
 * ========================================================================== */
.um-profile .um-profile-empty,
.um-profile .um-profile-note {
  font-size: 0 !important;
  line-height: 0 !important;
}
.um-profile .um-profile-empty .um-icon,
.um-profile .um-profile-note .um-icon,
.um-profile .um-profile-empty i,
.um-profile .um-profile-note i {
  font-size: 60px !important;
  line-height: 1 !important;
  display: block !important;
  margin-bottom: 18px !important;
  color: #c3d0e8 !important;
}
.um-profile .um-profile-empty::after,
.um-profile .um-profile-note::after {
  content: 'نمایهٔ شما کمی خالی به نظر می‌رسد. مقداری اطلاعات اضافه کنید!';
  display: block;
  font-size: 16px !important;
  line-height: 2 !important;
  color: #5f6f8f;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  margin-top: 6px;
}

/* ==========================================================================
 * v1.2.2 — Sidebar widgets full rework.
 * ========================================================================== */
/* Widget cards: premium elevated design. */
.widget-area .widget {
  background: #fff;
  border: 1px solid #e2e9f6;
  border-radius: 20px;
  padding: 1.7rem 1.6rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 6px 24px rgba(30,42,74,.07);
  position: relative;
  overflow: hidden;
}
.widget-area .widget::before {
  content: '';
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 4px;
  background: linear-gradient(90deg, #1e2a4a 0%, #3fb9d4 100%);
  opacity: .9;
}
/* Widget titles: Lalezar, with gradient underline. */
.widget-area .widget-title {
  font-family: 'Lalezar', 'Vazirmatn', sans-serif;
  font-weight: 400;
  font-size: 1.5rem;
  color: #1e2a4a;
  margin: 0 0 1.1rem;
  padding-bottom: 0;
  border-bottom: none;
  display: block;
}
.widget-area .widget-title::after {
  content: '';
  display: block;
  width: 52px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #3fb9d4, #1e2a4a);
  margin-top: 8px;
}
/* Search widget: modern stacked search bar. */
.widget-area .search-form,
.widget-area .wp-block-search {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.widget-area .wp-block-search__inside-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.widget-area input[type="search"].search-field,
.widget-area .wp-block-search__input,
.widget-area input[type="search"] {
  width: 100% !important;
  padding: 14px 18px !important;
  border: 1.5px solid #d3ddef !important;
  border-radius: 14px !important;
  font-family: inherit !important;
  font-size: 15px !important;
  background: #f7fafd !important;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.widget-area input[type="search"]:focus {
  outline: none !important;
  border-color: #3fb9d4 !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(63,185,212,.15) !important;
}
.widget-area .search-submit,
.widget-area .wp-block-search__button {
  width: 100% !important;
  padding: 14px 20px !important;
  background: linear-gradient(135deg, #1e2a4a 0%, #2e426f 100%) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 14px !important;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: transform .2s ease, box-shadow .2s ease !important;
  box-shadow: 0 4px 14px rgba(30,42,74,.25) !important;
}
.widget-area .search-submit:hover,
.widget-area .wp-block-search__button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 22px rgba(30,42,74,.32) !important;
  background: linear-gradient(135deg, #2a3a63 0%, #3fb9d4 140%) !important;
}
/* About widget: refined typography. */
.widget-area .widget_text .textwidget,
.widget-area .widget_block .wp-block-group {
  font-size: 15px;
  line-height: 2.1;
  color: #4a5a7a;
  text-align: justify;
}
/* Widget lists: cleaner. */
.widget-area ul { list-style: none; margin: 0; padding: 0; }
.widget-area li {
  padding: 0.65em 0;
  border-bottom: 1px dashed #e2e9f6;
  font-size: 0.95rem;
}
.widget-area li:last-child { border-bottom: 0; }
.widget-area li a { color: #2a3a63; transition: color .2s ease, padding .2s ease; }
.widget-area li a:hover { color: #3fb9d4; }

/* ==========================================================================
 * v1.2.3 — About page premium redesign (page-about.php).
 * ========================================================================== */
.rz-about { background: #f7f5f0; overflow: hidden; }
/* Reveal on scroll */
.rz-about-reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,.61,.36,1); }
.rz-about-reveal.rz-in { opacity: 1; transform: none; }
/* Hero */
.rz-about-hero { position: relative; background: linear-gradient(135deg, #141d33 0%, #1e2a4a 45%, #27436b 100%); color: #fff; padding: 84px 0 120px; overflow: hidden; }
.rz-about-hero-pattern { position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.06'%3E%3Ccircle cx='70' cy='70' r='34'/%3E%3Cpath d='M0 70h140M70 0v140'/%3E%3C/g%3E%3C/svg%3E"); animation: rzDrift 40s linear infinite; }
@keyframes rzDrift { from { transform: translateY(0); } to { transform: translateY(-140px); } }
.rz-about-hero-inner { position: relative; z-index: 2; text-align: center; }
.rz-about-crumbs { font-size: 14px; color: rgba(255,255,255,.65); margin-bottom: 18px; }
.rz-about-crumbs a { color: #7fd4e8; text-decoration: none; }
.rz-about-crumbs a:hover { color: #fff; }
.rz-about-crumbs-sep { margin: 0 8px; opacity: .5; }
.rz-about-hero-title { font-family: 'Lalezar', sans-serif; font-weight: 400; font-size: clamp(42px, 6vw, 68px); margin: 0 0 10px; line-height: 1.3; animation: rzFadeUp .9s cubic-bezier(.22,.61,.36,1) both; }
.rz-about-hero-sub { font-size: 18px; color: rgba(255,255,255,.75); margin: 0; animation: rzFadeUp .9s .15s cubic-bezier(.22,.61,.36,1) both; }
@keyframes rzFadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.rz-about-hero-wave { position: absolute; bottom: -2px; left: 0; right: 0; line-height: 0; }
.rz-about-hero-wave svg { width: 100%; height: 70px; display: block; }
/* Sections */
.rz-about-section { padding: 72px 0; }
.rz-about-kicker { display: inline-block; font-size: 14px; font-weight: 700; color: #2aa5c2; background: rgba(63,185,212,.12); border: 1px solid rgba(63,185,212,.3); padding: 7px 18px; border-radius: 999px; margin-bottom: 18px; }
.rz-about-h2 { font-family: 'Lalezar', sans-serif; font-weight: 400; font-size: clamp(28px, 4vw, 40px); color: #1e2a4a; margin: 0 0 14px; }
.rz-about-lead { font-size: 17px; color: #5f6f8f; line-height: 2; max-width: 720px; margin: 0 0 40px; }
/* Mission quote */
.rz-about-mission { padding-top: 56px; text-align: center; }
.rz-about-quote { font-size: clamp(19px, 2.6vw, 25px); line-height: 2.2; color: #1e2a4a; font-weight: 600; max-width: 860px; margin: 0 auto; position: relative; padding: 0 20px; }
.rz-about-quote::before { content: '“'; display: block; font-family: 'Lalezar', sans-serif; font-size: 72px; color: #3fb9d4; opacity: .45; line-height: 1; margin-bottom: 6px; }
/* Cards */
.rz-about-grid { display: grid; gap: 22px; }
.rz-about-grid-3 { grid-template-columns: repeat(3, 1fr); }
.rz-about-card { background: #fff; border: 1px solid #e6ebf5; border-radius: 22px; padding: 34px 30px; box-shadow: 0 6px 24px rgba(30,42,74,.06); transition: transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s ease; position: relative; overflow: hidden; }
.rz-about-card::after { content: ''; position: absolute; bottom: 0; right: 0; left: 0; height: 4px; background: linear-gradient(90deg, #1e2a4a, #3fb9d4); transform: scaleX(0); transform-origin: right; transition: transform .35s ease; }
.rz-about-card:hover { transform: translateY(-8px); box-shadow: 0 18px 44px rgba(30,42,74,.13); }
.rz-about-card:hover::after { transform: scaleX(1); }
.rz-about-card-icon { width: 60px; height: 60px; border-radius: 18px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(30,42,74,.08), rgba(63,185,212,.14)); color: #1e2a4a; margin-bottom: 20px; }
.rz-about-card-icon svg { width: 30px; height: 30px; }
.rz-about-card h3 { font-family: 'Lalezar', sans-serif; font-weight: 400; font-size: 24px; color: #1e2a4a; margin: 0 0 10px; }
.rz-about-card p { font-size: 15px; line-height: 2; color: #5f6f8f; margin: 0; }
/* Research fields */
.rz-about-fields { background: #fff; border-top: 1px solid #ece7db; border-bottom: 1px solid #ece7db; }
.rz-about-field { background: #f7f5f0; border: 1px solid #e9e2d4; border-radius: 18px; padding: 26px 24px; transition: all .3s cubic-bezier(.22,.61,.36,1); position: relative; }
.rz-about-field:hover { background: #1e2a4a; border-color: #1e2a4a; transform: translateY(-6px); box-shadow: 0 14px 34px rgba(30,42,74,.25); }
.rz-about-field:hover h3, .rz-about-field:hover p { color: #fff; }
.rz-about-field:hover .rz-about-field-num { color: rgba(255,255,255,.35); }
.rz-about-field-num { font-family: 'Lalezar', sans-serif; font-size: 15px; color: #b9a86f; letter-spacing: 2px; display: block; margin-bottom: 8px; transition: color .3s ease; }
.rz-about-field h3 { font-size: 19px; font-weight: 700; color: #1e2a4a; margin: 0 0 6px; transition: color .3s ease; }
.rz-about-field p { font-size: 13.5px; color: #7a8aa8; margin: 0; line-height: 1.9; transition: color .3s ease; }
/* CTA */
.rz-about-cta { background: linear-gradient(135deg, #1e2a4a 0%, #2b4a6e 60%, #3fb9d4 130%); color: #fff; text-align: center; padding: 84px 0; position: relative; overflow: hidden; }
.rz-about-cta::before { content: ''; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.05'%3E%3Ccircle cx='70' cy='70' r='34'/%3E%3C/g%3E%3C/svg%3E"); }
.rz-about-cta h2 { font-family: 'Lalezar', sans-serif; font-weight: 400; font-size: clamp(30px, 4.5vw, 44px); margin: 0 0 12px; position: relative; }
.rz-about-cta p { font-size: 17px; color: rgba(255,255,255,.8); margin: 0 0 30px; position: relative; }
.rz-about-btn { display: inline-block; background: #fff; color: #1e2a4a; font-weight: 700; font-size: 16px; padding: 15px 52px; border-radius: 999px; text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; position: relative; box-shadow: 0 8px 26px rgba(0,0,0,.22); }
.rz-about-btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 14px 34px rgba(0,0,0,.28); color: #1e2a4a; }
@media (max-width: 860px) {
  .rz-about-grid-3 { grid-template-columns: 1fr; }
  .rz-about-section { padding: 52px 0; }
  .rz-about-hero { padding: 64px 0 100px; }
}

/* ==========================================================================
 * v1.2.4 — About page MINIMAL redesign.
 * ========================================================================== */
.rz-about-min { background: #f7f5f0; }
.rz-am-hero { background: linear-gradient(135deg, #1e2a4a 0%, #2b4a6e 100%); color: #fff; padding: 52px 0 44px; }
.rz-am-crumbs { font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 12px; }
.rz-am-crumbs a { color: #7fd4e8; text-decoration: none; }
.rz-am-crumbs span { margin: 0 6px; }
.rz-am-hero h1 { font-family: 'Lalezar', sans-serif; font-weight: 400; font-size: clamp(32px, 5vw, 46px); margin: 0; line-height: 1.4; }
.rz-am-body { padding: 48px 0 64px; }
.rz-am-narrow { max-width: 780px; }
.rz-am-lead { font-size: 19px; line-height: 2.2; color: #1e2a4a; font-weight: 600; margin: 0 0 40px; padding-bottom: 32px; border-bottom: 1px solid #e2e9f6; }
.rz-am-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 44px; }
.rz-am-cols h2 { font-size: 17px; font-weight: 700; color: #1e2a4a; margin: 0 0 8px; }
.rz-am-cols p { font-size: 14.5px; line-height: 2; color: #5f6f8f; margin: 0; }
.rz-am-h2 { font-size: 20px; font-weight: 700; color: #1e2a4a; margin: 0 0 18px; }
.rz-am-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.rz-am-tags span { background: #fff; border: 1px solid #dfe6f3; color: #2a3a63; font-size: 14px; padding: 9px 20px; border-radius: 999px; transition: all .2s ease; }
.rz-am-tags span:hover { background: #1e2a4a; color: #fff; border-color: #1e2a4a; }
@media (max-width: 640px) { .rz-am-cols { grid-template-columns: 1fr; gap: 20px; } }

/* ==========================================================================
 * v1.2.5 — About page MODERN minimal.
 * ========================================================================== */
.rz-about-modern { background: #faf9f6; }
/* Hero with giant faded letter */
.rz-mm-hero { position: relative; background: linear-gradient(120deg, #16213a 0%, #1e2a4a 55%, #274b73 100%); overflow: hidden; padding: 72px 0 68px; }
.rz-mm-hero-bg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end; pointer-events: none; overflow: hidden; }
.rz-mm-hero-bg span { font-family: 'Lalezar', sans-serif; font-size: 380px; line-height: 1; color: rgba(255,255,255,.045); margin-left: -40px; transform: translateY(30px); }
.rz-mm-hero-inner { position: relative; z-index: 2; }
.rz-mm-crumbs { font-size: 13px; color: rgba(255,255,255,.55); margin-bottom: 14px; }
.rz-mm-crumbs a { color: #7fd4e8; text-decoration: none; }
.rz-mm-crumbs i { font-style: normal; margin: 0 8px; opacity: .5; }
.rz-mm-hero-inner h1 { color: #fff !important; font-family: 'Lalezar', sans-serif; font-weight: 400; font-size: clamp(36px, 5.5vw, 52px); margin: 0 0 8px; line-height: 1.4; }
.rz-mm-hero-inner p { color: rgba(255,255,255,.7); font-size: 17px; margin: 0; }
/* Mission quote card */
.rz-mm-mission { padding: 0; margin-top: -34px; position: relative; z-index: 3; }
.rz-mm-narrow { max-width: 820px; }
.rz-mm-quote-card { background: #fff; border-radius: 24px; padding: 40px 44px; box-shadow: 0 20px 50px rgba(30,42,74,.12); border: 1px solid #eef1f7; position: relative; }
.rz-mm-quote-card::before { content: ''; position: absolute; top: 0; right: 44px; width: 56px; height: 5px; border-radius: 0 0 6px 6px; background: linear-gradient(90deg, #3fb9d4, #1e2a4a); }
.rz-mm-quote-card p { font-size: 19px; line-height: 2.3; color: #1e2a4a; font-weight: 600; margin: 0; }
/* Pillar cards */
.rz-mm-pillars { padding: 56px 0 8px; }
.rz-mm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rz-mm-card { background: #fff; border: 1px solid #eceff6; border-radius: 20px; padding: 30px 26px; transition: transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s ease; }
.rz-mm-card:hover { transform: translateY(-6px); box-shadow: 0 16px 38px rgba(30,42,74,.11); }
.rz-mm-ico { width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, #1e2a4a 0%, #3fb9d4 160%); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.rz-mm-ico svg { width: 26px; height: 26px; }
.rz-mm-card h3 { font-size: 18px; font-weight: 700; color: #1e2a4a; margin: 0 0 8px; }
.rz-mm-card p { font-size: 14.5px; line-height: 2; color: #5f6f8f; margin: 0; }
/* Fields */
.rz-mm-fields { padding: 48px 0 72px; text-align: center; }
.rz-mm-fields h2 { font-size: 22px; font-weight: 700; color: #1e2a4a; margin: 0 0 22px; }
.rz-mm-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.rz-mm-tags span { background: #fff; border: 1.5px solid #e2e9f6; color: #2a3a63; font-size: 14px; font-weight: 600; padding: 10px 22px; border-radius: 999px; transition: all .22s ease; cursor: default; }
.rz-mm-tags span:hover { background: #1e2a4a; border-color: #1e2a4a; color: #fff; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(30,42,74,.2); }
@media (max-width: 680px) { .rz-mm-grid { grid-template-columns: 1fr; } .rz-mm-quote-card { padding: 30px 26px; } }

/* ==========================================================================
 * v1.4.0 — Custom Profile Page (from scratch).
 * ========================================================================== */
.rz-profile {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px 60px;
}
.rz-profile-cover {
  height: 280px;
  border-radius: 28px;
  background: linear-gradient(135deg, #1a2340 0%, #1e2a4a 40%, #2a5a7a 100%);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(30,42,74,.18);
}
.rz-profile-cover-pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.07'%3E%3Ccircle cx='60' cy='60' r='30'/%3E%3C/g%3E%3C/svg%3E");
}
.rz-profile-card {
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(30,42,74,.12);
  margin: -90px 20px 0;
  padding: 0 40px 40px;
  text-align: center;
  position: relative;
}
.rz-profile-avatar {
  margin-top: -60px;
  margin-bottom: 20px;
}
.rz-profile-avatar img {
  width: 140px !important;
  height: 140px !important;
  border-radius: 50% !important;
  border: 6px solid #fff !important;
  box-shadow: 0 14px 36px rgba(30,42,74,.25) !important;
}
.rz-profile-name {
  font-family: 'Lalezar', sans-serif;
  font-size: 38px;
  color: #1e2a4a;
  margin: 0 0 12px;
  line-height: 1.4;
}
.rz-profile-bio {
  font-size: 16px;
  line-height: 2.1;
  color: #4a5a7d;
  background: #f7f9fd;
  border-radius: 18px;
  padding: 20px 28px;
  margin: 0 0 24px;
}
.rz-profile-empty {
  background: #f7f9fd;
  border: 2px dashed #cdd8ec;
  border-radius: 20px;
  padding: 36px 28px;
  margin: 0 0 24px;
}
.rz-profile-empty p {
  font-size: 19px;
  font-weight: 700;
  color: #1e2a4a;
  margin: 0 0 8px;
}
.rz-profile-empty span {
  display: block;
  font-size: 14.5px;
  color: #6d7d9f;
  margin-bottom: 20px;
}
.rz-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}
.rz-profile-btn {
  display: inline-block;
  background: linear-gradient(135deg, #1e2a4a 0%, #3fb9d4 160%);
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 36px;
  border-radius: 999px;
  text-decoration: none !important;
  box-shadow: 0 8px 22px rgba(30,42,74,.25);
  transition: transform .2s ease, box-shadow .2s ease;
}
.rz-profile-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(30,42,74,.32);
  color: #fff !important;
}
.rz-profile-btn-alt {
  background: #eef2f8 !important;
  color: #2a3a63 !important;
  box-shadow: none !important;
}
.rz-profile-btn-alt:hover {
  background: #1e2a4a !important;
  color: #fff !important;
}

/* v1.4.1 — Inline bio editor. */
.rz-bio-editor {
  background: #f7f9fd;
  border: 1px solid #e2eaf5;
  border-radius: 20px;
  padding: 28px;
  margin: 0 0 24px;
  text-align: right;
}
.rz-bio-editor h3 {
  font-size: 17px;
  font-weight: 700;
  color: #1e2a4a;
  margin: 0 0 14px;
}
.rz-bio-editor textarea {
  width: 100%;
  border: 2px solid #dbe4f2;
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 15px;
  line-height: 2;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  background: #fff;
  resize: vertical;
  margin-bottom: 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.rz-bio-editor textarea:focus {
  border-color: #3fb9d4;
  box-shadow: 0 0 0 4px rgba(63,185,212,.12);
  outline: none;
}
.rz-bio-saved {
  color: #1a9c5c;
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 10px;
}

/* ==========================================================================
 * v1.4.2 — UI smoothness & polish pass.
 * ========================================================================== */
/* Global smooth transitions */
a, button, .rz-profile-btn {
  transition: all .25s cubic-bezier(.22,.61,.36,1);
}
/* Profile card hover lift */
.rz-profile-card {
  transition: box-shadow .3s ease;
}
.rz-profile-card:hover {
  box-shadow: 0 24px 60px rgba(30,42,74,.16);
}
/* Avatar subtle scale on hover */
.rz-profile-avatar img {
  transition: transform .3s cubic-bezier(.22,.61,.36,1);
}
.rz-profile-avatar img:hover {
  transform: scale(1.04);
}
/* Bio editor focus glow */
.rz-bio-editor textarea:focus {
  box-shadow: 0 0 0 4px rgba(63,185,212,.15);
}
/* Button press effect */
.rz-profile-btn:active {
  transform: translateY(1px) scale(.98);
}
/* Smooth scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f3f8;
}
::-webkit-scrollbar-thumb {
  background: #c3d0e8;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3fb9d4;
}

/* ==========================================================================
 * v1.4.3 — Sidebar cleanup, header search polish, About widget refine.
 * ========================================================================== */
/* Remove the decorative gradient bar from widgets. */
.widget-area .widget::before {
  display: none !important;
}
/* About widget: better typography and spacing. */
.widget-area .widget_text .textwidget {
  font-size: 15px !important;
  line-height: 2.2 !important;
  color: #4a5a7d !important;
  text-align: justify;
}
.widget-area .widget-title {
  font-size: 1.35rem !important;
  margin-bottom: 1rem !important;
}
/* Header search: smooth and premium. */
#header-search-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  transition: all .3s cubic-bezier(.22,.61,.36,1);
}
#header-search-toggle:hover {
  background: rgba(63,185,212,.2);
  border-color: rgba(63,185,212,.4);
  transform: scale(1.05);
}
#header-search-toggle svg {
  width: 20px;
  height: 20px;
  fill: #fff;
  transition: transform .3s ease;
}
#header-search-toggle:hover svg {
  transform: scale(1.1);
}
.header-search-form {
  opacity: 0;
  transform: translateY(-8px) scale(.98);
  transition: opacity .3s ease, transform .3s cubic-bezier(.22,.61,.36,1);
  pointer-events: none;
}
.header-search-form.open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.header-search-form input[type="search"] {
  border-radius: 999px !important;
  padding: 12px 22px !important;
  border: 2px solid #e2eaf5 !important;
  font-size: 15px !important;
  transition: border-color .2s ease, box-shadow .2s ease !important;
}
.header-search-form input[type="search"]:focus {
  border-color: #3fb9d4 !important;
  box-shadow: 0 0 0 4px rgba(63,185,212,.12) !important;
  outline: none !important;
}

/* ==========================================================================
 * v1.4.4 — Widget title underline rework, hide empty widgets.
 * ========================================================================== */
/* Title underline: premium from scratch. */
.widget-area .widget-title::after {
  content: '';
  display: block;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, #3fb9d4 0%, #1e2a4a 100%);
  margin-top: 10px;
  position: relative;
}
.widget-area .widget-title::before {
  content: '';
  display: block;
  width: 24px;
  height: 4px;
  border-radius: 4px;
  background: #3fb9d4;
  margin-bottom: -4px;
  opacity: .35;
  margin-top: 10px;
}
/* Hide empty widgets. */
.widget-area .widget:empty {
  display: none !important;
}

/* v1.4.5 — Fix underline layering. */
.widget-area .widget-title {
  position: relative;
  padding-bottom: 14px !important;
}
.widget-area .widget-title::before {
  position: absolute;
  bottom: 0;
  right: 0;
  margin: 0 !important;
}
.widget-area .widget-title::after {
  position: absolute;
  bottom: 0;
  right: 28px;
  margin: 0 !important;
}

/* ==========================================================================
 * v1.4.6 — Fix header search visibility (was white-on-white).
 * ========================================================================== */
#header-search-toggle {
  background: #eef2f8 !important;
  border: 1px solid #dbe4f2 !important;
}
#header-search-toggle:hover {
  background: #1e2a4a !important;
  border-color: #1e2a4a !important;
}
#header-search-toggle svg {
  fill: #1e2a4a !important;
}
#header-search-toggle:hover svg {
  fill: #fff !important;
}
/* Account button: match the style. */
.header-account {
  background: #eef2f8 !important;
  border: 1px solid #dbe4f2 !important;
  border-radius: 50% !important;
  width: 44px;
  height: 44px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: all .3s cubic-bezier(.22,.61,.36,1) !important;
}
.header-account:hover {
  background: #1e2a4a !important;
  border-color: #1e2a4a !important;
  transform: scale(1.05);
}
.header-account svg {
  fill: #1e2a4a !important;
  width: 20px;
  height: 20px;
}
.header-account:hover svg {
  fill: #fff !important;
}
