:root {
  --theme-primary: #7f2020;
  --theme-primary-dark: #651818;
  --theme-bg: #f6f7fb;
  --theme-surface: #ffffff;
  --theme-border: #e5e7ef;
  --theme-text: #161a2a;
  --theme-muted: #5f6778;
  --theme-shadow: 0 12px 28px rgba(21, 29, 51, 0.08);
}

body {
  background: var(--theme-bg) !important;
}


footer {
  background: #3f1010 !important;
  color: #f0dddd !important;
}

footer h2,
footer p,
footer a {
  color: inherit !important;
}

/* Shared wrappers for About + academic program pages */
.theme-page-wrap {
  min-height: auto;
}

.banner2 {
  background: linear-gradient(130deg, #2f0e0e, #7f2020);
  color: #fff;
  padding: 38px 0;
  margin-bottom: 18px;
}

.about-cover-hero {
  position: relative;
  min-height: 280px;
  display: grid;
  align-items: end;
  background-image: linear-gradient(rgba(15, 15, 24, 0.52), rgba(56, 17, 17, 0.58)), url("/about-cover-image");
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.about-cover-hero .banner-content2 {
  position: relative;
  z-index: 1;
  padding-bottom: 12px;
}

.banner-content2 {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.banner-content2 h1 {
  margin: 0;
  font-size: clamp(26px, 5vw, 44px);
}

.banner-rule2 {
  width: 80px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  margin: 0 0 12px;
}

.banner-gradient2 {
  display: none;
}

.main-contant {
  width: min(1120px, 92vw);
  margin: 0 auto 56px;
  display: grid;
  gap: 16px;
}

.main-contant,
.workshop-page,
#NEWS {
  animation: fadeInTheme 0.25s ease-in;
}

/* Home-like navbar shared on themed pages */
.home-like-nav,
.computer-home-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e6eaf2;
  box-shadow: 0 1px 3px rgba(20, 24, 38, 0.05);
}

.home-like-nav-inner,
.computer-home-nav-inner {
  width: min(1180px, 92vw);
  margin: 0 auto;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.home-like-nav-toggle {
  display: none;
  appearance: none;
  border: 0;
  background: transparent;
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
  color: #2b3348;
}

.home-like-nav-toggle svg { width: 24px; height: 24px; }

.home-like-nav-toggle:hover {
  background: rgba(127, 32, 32, 0.08);
  color: var(--theme-primary);
}

.home-like-brand,
.computer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #21283c;
  font-weight: 800;
  text-decoration: none;
  font-size: 17px;
  letter-spacing: 0.2px;
}

.home-like-brand img,
.computer-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: rgba(127, 32, 32, 0.08);
  border-radius: 10px;
  padding: 4px;
}

.home-like-links,
.computer-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.home-like-links a,
.computer-links a {
  color: #2b3348;
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  padding: 9px 14px;
  border-radius: 10px;
  transition: background-color .15s ease, color .15s ease;
}

.home-like-links a:hover,
.home-like-links .active-link,
.computer-links a:hover,
.computer-links .active-link {
  color: var(--theme-primary);
  background: rgba(127, 32, 32, 0.08);
}

/* Dropdown menu inside themed navbar */
.home-like-links .nav-dropdown {
  position: relative;
}

.home-like-links .nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #2b3348;
  font-weight: 600;
  font-size: 14.5px;
  padding: 9px 14px;
  border-radius: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  transition: background-color .15s ease, color .15s ease;
}

.home-like-links .nav-dropdown-toggle:hover {
  color: var(--theme-primary);
  background: rgba(127, 32, 32, 0.08);
}

.home-like-links .nav-dropdown-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform .15s ease;
}

.home-like-links .nav-dropdown.open .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}

.home-like-links .nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: auto;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--theme-border);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 16px 36px rgba(20, 24, 38, 0.12);
  display: none;
  flex-direction: column;
  z-index: 60;
}

[dir="rtl"] .home-like-links .nav-dropdown-menu {
  left: auto;
  right: 0;
}

.home-like-links .nav-dropdown.open .nav-dropdown-menu {
  display: flex;
}

.home-like-links .nav-dropdown-menu a {
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  color: #2b3142;
  display: block;
  background: transparent;
}

.home-like-links .nav-dropdown-menu a:hover,
.home-like-links .nav-dropdown-menu a.active {
  background: rgba(127, 32, 32, 0.08);
  color: var(--theme-primary);
}

.home-like-links .dropdown-divider {
  display: block;
  height: 1px;
  background: var(--theme-border);
  margin: 6px 0;
}

.home-like-links .nav-dropdown-menu .dropdown-empty {
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.45;
  color: #5a6270;
  display: block;
}

/* Nested submenus inside offices dropdown */
.home-like-links .nav-dropdown-menu--offices {
  min-width: 280px;
  max-height: min(78vh, 520px);
  overflow-y: auto;
}

.home-like-links .nav-submenu {
  position: relative;
}

.home-like-links .nav-submenu-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #2b3142;
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  text-align: start;
  transition: background-color .15s ease, color .15s ease;
}

.home-like-links .nav-submenu-toggle:hover,
.home-like-links .nav-submenu.open > .nav-submenu-toggle {
  background: rgba(127, 32, 32, 0.08);
  color: var(--theme-primary);
}

.home-like-links .nav-submenu-chevron {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform .15s ease;
}

.home-like-links .nav-submenu.open > .nav-submenu-toggle .nav-submenu-chevron {
  transform: rotate(180deg);
}

.home-like-links .nav-submenu-panel {
  display: none;
  flex-direction: column;
  gap: 2px;
  position: static;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 4px;
  padding: 2px 8px 6px 14px;
  border-inline-start: 2px solid rgba(127, 32, 32, 0.18);
}

[dir="rtl"] .home-like-links .nav-submenu-panel {
  padding: 2px 14px 6px 8px;
}

.home-like-links .nav-submenu.open > .nav-submenu-panel {
  display: flex;
}

.home-like-links .nav-submenu-panel a {
  padding: 9px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13.5px;
  color: #3a4258;
}

.home-like-links .nav-submenu--nested {
  margin-top: 2px;
}

.home-like-links .nav-submenu--nested .nav-submenu-toggle {
  font-size: 13.5px;
  padding: 9px 12px;
}

.home-like-links .nav-submenu--nested .nav-submenu-panel {
  margin-inline-start: 8px;
  padding-inline-start: 12px;
}

/* Department page redesign */
.dept-hero {
  position: relative;
  min-height: 46vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  margin-bottom: 20px;
}

.computer-hero {
  background-image: linear-gradient(rgba(17, 16, 26, 0.62), rgba(25, 11, 11, 0.68)), url("/content/images/hero-cover.png");
  background-size: cover;
  background-position: center;
}

.dept-hero-overlay {
  position: absolute;
  inset: 0;
}

.dept-hero-content {
  width: min(840px, 92vw);
  position: relative;
  z-index: 1;
}

.dept-kicker {
  margin: 0 0 8px;
  color: #f2dede;
  letter-spacing: 0.4px;
}

.dept-hero-content h1 {
  margin: 0;
  font-size: clamp(30px, 6vw, 52px);
}

.dept-hero-content p {
  margin: 12px auto 0;
  max-width: 700px;
  color: #f0e7f1;
  line-height: 1.8;
}

.dept-page {
  width: min(1120px, 92vw);
  margin: 0 auto 56px;
  display: grid;
  gap: 16px;
}

.dept-card {
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: 16px;
  box-shadow: var(--theme-shadow);
  padding: 18px;
}

.dept-breadcrumb {
  text-align: center;
  margin-bottom: 14px;
}

.dept-centered {
  text-align: center;
}

.dept-centered h2 {
  color: var(--theme-primary);
  margin-bottom: 10px;
}

.dept-centered p {
  margin: 0 auto;
  max-width: 920px;
  line-height: 1.9;
  color: #2d3346;
}

.dept-list {
  margin: 0;
  padding: 0 20px 0 0;
}

.dept-list li {
  margin-bottom: 9px;
  color: #2d3346;
  line-height: 1.85;
}

.field-info-pre {
  margin: 12px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  line-height: 1.95;
  font-size: 16px;
  color: #2d3346;
  background: #fff;
}

.course-cards-grid {
  margin-top: 12px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.course-card {
  border: 1px solid var(--theme-border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.course-card h3 {
  margin: 0;
  padding: 12px;
  text-align: center;
  color: var(--theme-text);
  background: #fbf6f6;
}

.course-card img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: contain;
  cursor: zoom-in;
  background: #eff2f9;
}

.course-image-btn {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  display: block;
  cursor: zoom-in;
}

.course-content p {
  margin: 0;
  padding: 14px;
  line-height: 1.8;
  color: #363f57;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 12, 22, 0.82);
  z-index: 2000;
  padding: 24px;
}

.image-lightbox.open {
  display: flex;
}

.image-lightbox img {
  max-width: min(1100px, 94vw);
  max-height: 88vh;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.38);
  object-fit: contain;
  background: #fff;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  color: #1a2033;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
  transition: transform .12s ease;
}

.lightbox-close:hover { transform: scale(1.06); }

.lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lightbox-caption {
  margin: 0;
  color: #f3eaea;
  font-weight: 600;
  font-size: 15px;
  text-align: center;
}

/* ===== Field detail page (computer / field-card/:id) ===== */
.field-page-wrap {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.field-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 72px 0 56px;
  margin-bottom: 0;
  text-align: center;
}

.field-hero-inner {
  width: min(820px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.field-hero-kicker {
  margin: 0 0 14px;
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #f7e1e1;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.field-hero-title {
  margin: 0;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.18;
  letter-spacing: -0.4px;
}

.field-hero-desc {
  margin: 14px auto 0;
  max-width: 640px;
  color: #f1e2e2;
  font-size: 16px;
  line-height: 1.85;
}

.field-hero-meta {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.field-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.field-hero-chip svg { width: 14px; height: 14px; }

.field-breadcrumb-bar {
  background: var(--theme-surface);
  border-bottom: 1px solid var(--theme-border);
  padding: 12px 0;
  position: sticky;
  top: 70px;
  z-index: 20;
}

.field-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--theme-muted);
  font-weight: 600;
  flex-wrap: wrap;
}

.field-breadcrumb a {
  color: var(--theme-muted);
  transition: color .15s ease;
}

.field-breadcrumb a:hover { color: var(--theme-primary); }

.field-breadcrumb .bc-sep {
  color: #c2c7d4;
  font-weight: 400;
}

.field-breadcrumb .bc-current {
  color: var(--theme-text);
}

.field-main {
  padding: 36px 0 64px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.field-block-head {
  text-align: center;
  margin-bottom: 22px;
}

.field-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-weight: 700;
  color: var(--theme-primary);
}

.field-block-head h2 {
  margin: 0;
  font-size: clamp(22px, 3.5vw, 30px);
  letter-spacing: -0.3px;
  color: var(--theme-text);
}

.field-block-sub {
  margin: 8px 0 0;
  color: var(--theme-muted);
  font-size: 14px;
}

/* Section blocks (info sections) */
.field-section-list {
  display: grid;
  gap: 16px;
}

.field-section-card {
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: 16px;
  padding: 22px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: flex-start;
  box-shadow: 0 1px 3px rgba(20, 24, 38, 0.04);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.field-section-card:hover {
  border-color: #d4d7e3;
  box-shadow: var(--theme-shadow);
  transform: translateY(-2px);
}

.field-section-card.single {
  grid-template-columns: 1fr;
}

.field-section-num {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(127, 32, 32, 0.08);
  color: var(--theme-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.field-section-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--theme-text);
  letter-spacing: -0.2px;
}

.field-section-body p {
  margin: 0;
  color: #2d3346;
  line-height: 1.95;
  font-size: 15.5px;
}

.field-section-body p + .dept-bullet-list,
.field-section-body h3 + .dept-bullet-list {
  margin-top: 14px;
}

.dept-bullet-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.dept-bullet-list li {
  position: relative;
  padding: 12px 18px 12px 44px;
  background: #f8f9fc;
  border: 1px solid var(--theme-border);
  border-radius: 12px;
  color: #2d3346;
  font-size: 15px;
  line-height: 1.7;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

[dir="rtl"] .dept-bullet-list li {
  padding: 12px 44px 12px 18px;
}

.dept-bullet-list li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--theme-primary);
  background-image: linear-gradient(135deg, var(--theme-primary), #561414);
  box-shadow: 0 2px 6px rgba(127, 32, 32, 0.25);
}

[dir="rtl"] .dept-bullet-list li::before {
  left: auto;
  right: 16px;
}

.dept-bullet-list li:hover {
  border-color: rgba(127, 32, 32, 0.35);
  background: #fff;
  transform: translateX(-2px);
}

[dir="rtl"] .dept-bullet-list li:hover {
  transform: translateX(2px);
}

.course-no-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 220px;
  background: #f1f3f8;
  color: var(--theme-muted);
  font-size: 14px;
}

.course-no-image svg {
  width: 38px;
  height: 38px;
  opacity: 0.5;
}

.field-empty {
  margin: 0;
  text-align: center;
  color: var(--theme-muted);
  padding: 16px;
  background: #f8f9fc;
  border-radius: 12px;
  border: 1px dashed #d4d7e3;
}

/* Course gallery */
.field-courses-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 16px;
}

.field-course-card {
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
  display: flex;
  flex-direction: column;
}

.field-course-card:hover {
  border-color: #d4d7e3;
  box-shadow: var(--theme-shadow);
  transform: translateY(-3px);
}

.field-course-card .course-image-btn {
  position: relative;
  width: 100%;
  border: 0;
  padding: 0;
  background: #f1f3f8;
  cursor: zoom-in;
  display: block;
  overflow: hidden;
}

.field-course-card .course-image-btn img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform .35s ease;
}

.field-course-card:hover .course-image-btn img {
  transform: scale(1.04);
}

.field-course-card .zoom-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--theme-primary);
  box-shadow: 0 6px 14px rgba(20, 24, 38, 0.18);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease;
}

.field-course-card .zoom-pill svg { width: 16px; height: 16px; }

.field-course-card:hover .zoom-pill {
  opacity: 1;
  transform: translateY(0);
}

.field-course-title {
  padding: 14px 16px;
  background: #fff;
  border-top: 1px solid var(--theme-border);
}

.field-course-title h3 {
  margin: 0;
  text-align: center;
  font-size: 15px;
  color: var(--theme-text);
}

.field-back {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.field-back .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Academic Semesters horizontal slider — one calendar image at a time. */
.semester-slider {
  position: relative;
  margin: 0 auto;
  max-width: 960px;
  padding: 0 56px;
}

.semester-slider-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--theme-surface, #fff);
  border: 1px solid var(--theme-border, rgba(0, 0, 0, 0.08));
  box-shadow: var(--theme-shadow, 0 18px 50px rgba(20, 24, 38, 0.10));
}

.semester-slider-track {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  height: clamp(260px, 56vw, 560px);
}

.semester-slider-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateX(24px) scale(0.985);
  transition: opacity 350ms ease, transform 450ms ease, visibility 0s linear 350ms;
}

.semester-slider-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
  transition: opacity 350ms ease, transform 450ms ease, visibility 0s linear 0s;
}

.semester-slider-image {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  padding: 0;
  margin: 0;
  background: #f1f1f4;
  cursor: zoom-in;
  overflow: hidden;
}

.semester-slider-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: linear-gradient(135deg, #f8f9fc, #eceef4);
  transition: transform 450ms ease;
}

.semester-slider-slide.is-active .semester-slider-image:hover img {
  transform: scale(1.02);
}

.semester-slider-image .zoom-pill {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(20, 24, 38, 0.78);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.semester-slider-image .zoom-pill svg { width: 18px; height: 18px; }

.semester-slider-caption {
  flex: none;
  padding: 14px 20px 16px;
  background: var(--theme-surface, #fff);
  border-top: 1px solid var(--theme-border, rgba(0, 0, 0, 0.08));
}

.semester-slider-caption h3 {
  margin: 0;
  font-size: clamp(15px, 2.2vw, 18px);
  font-weight: 700;
  color: var(--theme-fg, #141826);
  text-align: center;
}

.semester-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--theme-border, rgba(0, 0, 0, 0.08));
  background: rgba(255, 255, 255, 0.96);
  color: #141826;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(20, 24, 38, 0.12);
  transition: transform 200ms ease, background 200ms ease;
  z-index: 2;
}

.semester-slider-arrow:hover {
  transform: translateY(-50%) scale(1.05);
  background: #fff;
}

.semester-slider-arrow svg { width: 22px; height: 22px; }

.semester-slider-arrow--prev { inset-inline-start: 4px; }
.semester-slider-arrow--next { inset-inline-end: 4px; }

[dir="rtl"] .semester-slider-arrow--prev svg,
[dir="rtl"] .semester-slider-arrow--next svg { transform: scaleX(-1); }

.semester-slider-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.semester-slider-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 24, 38, 0.18);
  cursor: pointer;
  padding: 0;
  transition: background 200ms ease, transform 200ms ease;
}

.semester-slider-dot:hover { background: rgba(20, 24, 38, 0.45); }

.semester-slider-dot.is-active {
  background: var(--theme-accent, #7f2020);
  transform: scale(1.2);
}

@media (max-width: 600px) {
  .semester-slider { padding: 0 12px; }
  .semester-slider-arrow {
    width: 36px;
    height: 36px;
    inset-inline-start: 8px;
  }
  .semester-slider-arrow--next { inset-inline-end: 8px; inset-inline-start: auto; }
  .semester-slider-track { height: clamp(220px, 70vw, 360px); }
}

@media (min-width: 700px) {
  .field-courses-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .field-section-card { padding: 26px; }
}

@media (min-width: 980px) {
  .field-courses-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .field-hero { padding: 96px 0 72px; }
}

@media (max-width: 700px) {
  .field-section-card {
    grid-template-columns: auto 1fr;
    padding: 18px;
    gap: 14px;
  }
  .field-section-num { width: 40px; height: 40px; font-size: 14px; }
  .field-breadcrumb-bar { top: 60px; }
}

.about-content-holder {
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: 16px;
  box-shadow: var(--theme-shadow);
  padding: 18px;
}

.index {
  margin-bottom: 16px;
  color: var(--theme-muted);
  font-size: 14px;
}

.index a {
  color: var(--theme-primary);
  text-decoration: none;
}

.index a:hover {
  color: var(--theme-primary-dark);
}

.main-text h2 {
  margin: 0 0 12px;
  color: var(--theme-text);
  line-height: 1.35;
}

.main-text h3 {
  margin: 22px 0 10px;
  color: var(--theme-primary);
  font-size: clamp(20px, 2.8vw, 26px);
}

.main-text p,
.main-text li {
  color: #2a2f42;
  line-height: 1.9;
  font-size: 16px;
}

.main-text p {
  margin: 0 0 14px;
  max-width: 920px;
}

.main-text ul {
  margin: 0 0 14px;
  padding-right: 20px;
  max-width: 920px;
}

.main-text li {
  margin-bottom: 8px;
}

.about-organized {
  display: grid;
  gap: 18px;
}

.about-block {
  border: 1px solid var(--theme-border);
  border-radius: 14px;
  padding: 22px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(24, 33, 57, 0.06);
}

.about-block h2 {
  margin: 0 0 12px;
  color: var(--theme-primary);
  font-size: clamp(24px, 3.7vw, 34px);
}

.about-clean-list {
  margin: 0;
  padding-right: 18px;
}

.about-clean-list li {
  margin-bottom: 8px;
}

.about-departments-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.about-departments-grid a {
  display: block;
  border: 1px solid #eadede;
  border-radius: 10px;
  padding: 10px 12px;
  color: #2f364b;
  text-decoration: none;
  font-weight: 700;
  background: #fcf7f7;
}

.about-departments-grid a:hover {
  border-color: var(--theme-primary);
  color: var(--theme-primary);
  background: #f9eeee;
}

.about-layout-single {
  grid-template-columns: 1fr !important;
  max-width: min(1360px, 98vw);
}

.about-layout-single .about-content-holder {
  padding: 26px;
  border-radius: 18px;
}

.about-layout-single .index {
  margin-bottom: 18px;
}

.main-text a {
  color: var(--theme-primary);
  font-weight: 700;
}

.main-text a:hover {
  color: var(--theme-primary-dark);
}

.subjects-img {
  width: 100%;
  max-width: 900px;
  border-radius: 12px;
  border: 1px solid var(--theme-border);
  margin: 10px 0 14px;
  background: #f0f3fb;
}

.sidebar {
  align-self: start;
}

.sidebar > ul,
.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#sidebar-nav {
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: 16px;
  box-shadow: var(--theme-shadow);
  padding: 14px;
  position: sticky;
  top: 84px;
}

#sidebar-nav .title a {
  color: var(--theme-text);
  font-weight: 800;
}

#sidebar-nav .page_item a {
  display: block;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--theme-muted);
}

#sidebar-nav .page_item a:hover,
#sidebar-nav .current_page_item a {
  color: var(--theme-primary);
  background: #f7eded;
}

/* Workshops page */
.workshop-page {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 30px 0 58px;
}

.workshop-page-head {
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: 16px;
  box-shadow: var(--theme-shadow);
  padding: 18px;
  margin-bottom: 18px;
}

.workshop-page-head h1 {
  margin: 0;
  color: var(--theme-text);
}

.workshop-page-head p {
  margin: 8px 0 0;
  color: var(--theme-muted);
}

.workshop-page .btn-dark {
  background: var(--theme-primary);
  border-color: var(--theme-primary);
}

.workshop-page .btn-dark:hover {
  background: var(--theme-primary-dark);
  border-color: var(--theme-primary-dark);
}

.workshop-block {
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: 16px;
  box-shadow: var(--theme-shadow);
  padding: 16px;
  margin-bottom: 16px;
}

.workshop-grid-clean {
  gap: 14px !important;
}

.workshop-block-head h2 {
  color: var(--theme-primary);
}

.workshop-card-clean {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 14px;
  border: 1px solid var(--theme-border);
  overflow: hidden;
}

.workshop-card-clean-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.workshop-card-clean-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  background: var(--theme-surface);
}

.workshop-date {
  color: var(--theme-primary);
  font-weight: 700;
}

.workshop-card-clean-body p {
  margin: 0;
  color: #32384d;
}

.workshop-card-clean-body h3 {
  margin: 0;
  color: var(--theme-text);
  line-height: 1.35;
}

.workshop-page .btn-outline-secondary,
.workshop-page .btn-outline-danger {
  border-color: var(--theme-primary);
  color: var(--theme-primary);
}

.workshop-page .btn-outline-secondary:hover,
.workshop-page .btn-outline-danger:hover {
  background: var(--theme-primary);
  color: #fff;
}

.empty-note {
  background: #f7f8fc;
  border: 1px dashed #d5d9e7;
  border-radius: 10px;
  color: var(--theme-muted);
}

/* News + teachers cards (pages that use #NEWS container) */
#NEWS {
  width: min(1120px, 92vw) !important;
  margin: 36px auto 64px !important;
}

#NEWS .row.text-center h1 {
  color: var(--theme-text);
  margin-bottom: 8px;
}

#NEWS .heading-line {
  width: 86px;
  height: 4px;
  border-radius: 999px;
  margin: 0 auto 16px;
  background: var(--theme-primary);
}

#NEWS .card {
  border: 1px solid var(--theme-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--theme-shadow);
}

#NEWS .col .card {
  height: 100%;
}

#NEWS .card-body {
  color: #2b3145;
  padding: 16px;
}

#NEWS .news-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

#NEWS .btn-outline-danger {
  border-color: var(--theme-primary);
  color: var(--theme-primary);
}

#NEWS .btn-outline-danger:hover {
  background: var(--theme-primary);
  color: #fff;
}

#NEWS .text-body-secondary {
  color: var(--theme-muted) !important;
}

.staff-page .lead,
.news-page .lead {
  color: var(--theme-muted);
}

.staff-card .card-body {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.staff-avatar {
  width: 94px;
  height: 94px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #f1dede;
  box-shadow: 0 8px 18px rgba(20, 26, 44, 0.12);
}

.staff-name {
  margin: 2px 0 0;
  font-size: 20px;
  color: var(--theme-text);
}

.staff-role {
  margin: 0;
  color: var(--theme-primary);
  font-weight: 700;
}

.staff-meta {
  margin: 0;
  color: #4a5369;
  font-size: 14px;
}

.news-prof-card .card-body {
  gap: 10px;
}

.news-title {
  margin: 0;
  font-size: 21px;
  color: var(--theme-text);
  line-height: 1.45;
}

.news-excerpt {
  margin: 0;
  color: #3a4157;
  line-height: 1.8;
}

.news-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

@media (min-width: 940px) {
  .main-contant {
    grid-template-columns: 1.7fr 1fr;
    align-items: start;
  }

  .about-content-holder {
    padding: 24px;
  }

  .about-departments-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-layout-single .about-content-holder {
    padding: 34px;
  }

  .about-block {
    padding: 28px;
  }

  .course-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1180px) {
  .course-cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .about-cover-hero {
    min-height: 190px;
  }

  .about-layout-single {
    max-width: 100%;
  }

  .about-layout-single .about-content-holder {
    padding: 16px;
    border-radius: 12px;
  }

  .about-block {
    padding: 16px;
    border-radius: 12px;
  }

  .about-block h2 {
    font-size: clamp(21px, 6vw, 28px);
  }

  .news-meta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .news-meta-row .btn {
    width: 100%;
  }
}

/* =====================================================================
   MOBILE: home-like-nav drawer for all themed pages
   ===================================================================== */
@media (max-width: 900px) {
  .home-like-nav-inner,
  .computer-home-nav-inner {
    min-height: 60px;
    padding: 8px 0;
  }

  .home-like-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .home-like-links,
  .computer-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--theme-border);
    box-shadow: 0 16px 30px rgba(20, 24, 38, 0.10);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px 14px 16px;
    max-height: 0;
    overflow: hidden;
    transform: translateY(-8px);
    opacity: 0;
    transition: max-height .25s ease, opacity .2s ease, transform .2s ease;
    pointer-events: none;
    flex-wrap: nowrap;
  }

  .home-like-links.open,
  .computer-links.open {
    max-height: 80vh;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    overflow-y: auto;
  }

  .home-like-links a,
  .computer-links a {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border-radius: 10px;
  }

  .home-like-links .nav-dropdown {
    width: 100%;
  }

  .home-like-links .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 12px 14px;
    font-size: 15px;
  }

  .home-like-links .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 4px 0 4px 12px;
    margin-top: 0;
    min-width: 0;
  }

  [dir="rtl"] .home-like-links .nav-dropdown-menu {
    padding: 4px 12px 4px 0;
  }

  .home-like-links .nav-dropdown-menu a {
    padding: 10px 12px;
    font-size: 14px;
  }

  .home-like-links .nav-submenu-panel {
    position: static;
    box-shadow: none;
    border: 0;
    background: transparent;
    min-width: 0;
    max-width: none;
    padding: 4px 0 4px 12px;
  }

  [dir="rtl"] .home-like-links .nav-submenu-panel {
    padding: 4px 12px 4px 0;
  }
}

/* ===========================================================
   About page (pro layout: stats strip + dept grid)
   =========================================================== */
.about-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.about-stat {
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: 16px;
  padding: 22px 18px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(20, 24, 38, 0.04);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.about-stat:hover {
  border-color: rgba(127, 32, 32, 0.35);
  box-shadow: var(--theme-shadow);
  transform: translateY(-2px);
}

.about-stat-num {
  font-size: clamp(26px, 5vw, 34px);
  font-weight: 800;
  color: var(--theme-primary);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.about-stat-label {
  margin-top: 6px;
  color: var(--theme-muted);
  font-size: 14px;
  font-weight: 500;
}

@media (min-width: 700px) {
  .about-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
}

.about-programs-section { margin-top: 8px; }

.about-dept-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 14px;
}

@media (min-width: 700px) {
  .about-dept-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 980px) {
  .about-dept-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.about-dept-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 18px;
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: 16px;
  text-decoration: none;
  color: var(--theme-text);
  font-weight: 600;
  font-size: 15.5px;
  box-shadow: 0 1px 3px rgba(20, 24, 38, 0.04);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease, background .15s ease;
}

.about-dept-card:hover {
  border-color: rgba(127, 32, 32, 0.4);
  background: linear-gradient(135deg, #fff, rgba(127, 32, 32, 0.04));
  box-shadow: var(--theme-shadow);
  transform: translateY(-2px);
  color: var(--theme-text);
}

.about-dept-card .dept-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(127, 32, 32, 0.08);
  color: var(--theme-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s ease, color .15s ease;
}

.about-dept-card .dept-icon svg { width: 22px; height: 22px; }

.about-dept-card:hover .dept-icon {
  background: var(--theme-primary);
  color: #fff;
}

.about-dept-card h3 {
  margin: 0;
  flex: 1;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--theme-text);
}

.about-dept-card .dept-arrow {
  color: var(--theme-primary);
  font-size: 18px;
  font-weight: 700;
  opacity: 0.6;
  transition: transform .15s ease, opacity .15s ease;
}

.about-dept-card:hover .dept-arrow {
  opacity: 1;
  transform: translateX(-3px);
}

[dir="rtl"] .about-dept-card:hover .dept-arrow {
  transform: translateX(3px);
}

/* ===========================================================
   Teachers page (pro staff cards + filter pills)
   =========================================================== */
.staff-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  padding: 12px;
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(20, 24, 38, 0.04);
}

.staff-filter-pill {
  appearance: none;
  border: 1px solid var(--theme-border);
  background: #fff;
  color: var(--theme-text);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
}

.staff-filter-pill:hover {
  border-color: rgba(127, 32, 32, 0.4);
  color: var(--theme-primary);
}

.staff-filter-pill.is-active {
  background: var(--theme-primary);
  background-image: linear-gradient(135deg, var(--theme-primary), #561414);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(127, 32, 32, 0.25);
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 18px;
}

@media (min-width: 700px) {
  .staff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 980px) {
  .staff-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.staff-pro-card {
  position: relative;
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: 18px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 1px 3px rgba(20, 24, 38, 0.04);
  transition: border-color .15s ease, box-shadow .2s ease, transform .15s ease;
}

.staff-pro-card:hover {
  border-color: rgba(127, 32, 32, 0.35);
  box-shadow: 0 14px 30px rgba(20, 24, 38, 0.10);
  transform: translateY(-4px);
}

.staff-pro-cover {
  height: 80px;
  background: linear-gradient(135deg, var(--theme-primary), #561414);
  position: relative;
}

.staff-pro-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.18), transparent 50%);
}

.staff-pro-avatar {
  position: relative;
  width: 100px;
  height: 100px;
  margin: -50px auto 0;
  border-radius: 50%;
  background: #f1f3f8;
  border: 4px solid #fff;
  box-shadow: 0 4px 14px rgba(20, 24, 38, 0.10);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--theme-primary);
  font-weight: 800;
  font-size: 28px;
}

.staff-pro-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.staff-pro-initials { display: none; }
.staff-pro-avatar.no-image .staff-pro-initials { display: block; }

.staff-pro-body {
  padding: 16px 18px 22px;
}

.staff-pro-name {
  margin: 12px 0 4px;
  font-size: 17px;
  font-weight: 700;
  color: var(--theme-text);
  letter-spacing: -0.2px;
}

.staff-pro-role {
  margin: 0 0 10px;
  color: var(--theme-muted);
  font-size: 13.5px;
}

.staff-pro-dept {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(127, 32, 32, 0.08);
  color: var(--theme-primary);
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 14px;
}

.staff-pro-actions {
  border-top: 1px solid var(--theme-border);
  padding-top: 12px;
  margin-top: 4px;
}

.staff-pro-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--theme-muted);
  text-decoration: none;
  font-size: 13px;
  word-break: break-all;
  transition: color .15s ease;
}

.staff-pro-link:hover {
  color: var(--theme-primary);
}

.staff-pro-link svg { flex-shrink: 0; }

.staff-empty {
  margin: 24px auto;
  text-align: center;
  color: var(--theme-muted);
  padding: 18px;
  background: #f8f9fc;
  border-radius: 12px;
  border: 1px dashed #d4d7e3;
  max-width: 480px;
}

/* ===========================================================
   News page (pro) — featured + grid
   =========================================================== */
.news-filter-bar { margin-bottom: 22px; }

.news-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(20, 24, 38, 0.04);
  margin-bottom: 28px;
  transition: border-color .15s ease, box-shadow .2s ease, transform .15s ease;
}

.news-featured:hover {
  border-color: rgba(127, 32, 32, 0.35);
  box-shadow: 0 18px 36px rgba(20, 24, 38, 0.10);
  transform: translateY(-3px);
}

.news-featured-media {
  position: relative;
  min-height: 240px;
  background-size: cover;
  background-position: center;
}

.news-featured-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.45) 100%);
}

.news-featured-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  background: linear-gradient(135deg, var(--theme-primary), #561414);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  box-shadow: 0 4px 12px rgba(127, 32, 32, 0.35);
}

[dir="rtl"] .news-featured-badge { left: auto; right: 14px; }

.news-featured-body {
  padding: 26px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-featured-title {
  margin: 4px 0;
  font-size: clamp(20px, 3.5vw, 26px);
  font-weight: 800;
  color: var(--theme-text);
  line-height: 1.4;
  letter-spacing: -0.3px;
}

.news-featured-excerpt {
  margin: 0;
  color: #2d3346;
  font-size: 15.5px;
  line-height: 1.85;
}

@media (min-width: 820px) {
  .news-featured { grid-template-columns: 1.1fr 1fr; }
  .news-featured-media { min-height: 320px; }
  .news-featured-body { padding: 32px 30px; }
}

.news-section-head { margin-top: 6px; margin-bottom: 18px; }

.news-pro-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 18px;
}

@media (min-width: 700px)  { .news-pro-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .news-pro-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.news-pro-card {
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(20, 24, 38, 0.04);
  transition: border-color .15s ease, box-shadow .2s ease, transform .15s ease;
}

.news-pro-card:hover {
  border-color: rgba(127, 32, 32, 0.35);
  box-shadow: 0 14px 30px rgba(20, 24, 38, 0.10);
  transform: translateY(-4px);
}

.news-pro-media {
  position: relative;
  display: block;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: #f1f3f8;
  text-decoration: none;
  overflow: hidden;
}

.news-pro-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.45) 100%);
  opacity: 0.85;
  transition: opacity .25s ease;
}

.news-pro-card:hover .news-pro-media::after { opacity: 1; }

.news-pro-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  background: rgba(255, 255, 255, 0.95);
  color: var(--theme-primary);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(20, 24, 38, 0.15);
}

[dir="rtl"] .news-pro-card .news-pro-cat,
[dir="rtl"] .news-pro-media .news-pro-cat { left: auto; right: 12px; }

.news-featured-body .news-pro-cat {
  position: static;
  display: inline-block;
  align-self: flex-start;
  background: rgba(127, 32, 32, 0.08);
  box-shadow: none;
}

.news-pro-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.news-pro-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--theme-text);
  letter-spacing: -0.2px;
}

.news-pro-title a {
  color: inherit;
  text-decoration: none;
  transition: color .15s ease;
}

.news-pro-title a:hover { color: var(--theme-primary); }

.news-pro-excerpt {
  margin: 0;
  color: #4a5063;
  font-size: 14px;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-pro-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 4px;
  border-top: 1px dashed var(--theme-border);
  margin-top: 4px;
}

.news-pro-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--theme-muted);
}

.news-pro-meta-item svg { width: 14px; height: 14px; }

.news-pro-readmore {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--theme-primary);
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  align-self: flex-start;
  transition: gap .15s ease;
}

.news-pro-readmore:hover { gap: 10px; color: #561414; }

.news-pro-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ===========================================================
   Single article page (/one)
   =========================================================== */
.article-hero {
  position: relative;
  padding: 90px 20px 70px;
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
}

.article-hero-inner {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.article-cat-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.article-hero-title {
  margin: 4px 0 8px;
  font-size: clamp(24px, 5vw, 42px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.4px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.article-hero-excerpt {
  margin: 0;
  max-width: 720px;
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.8;
  color: #f3e6e6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 10px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.92);
}

.article-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-meta-item svg { width: 16px; height: 16px; }

.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  padding-top: 28px;
  padding-bottom: 60px;
}

@media (min-width: 980px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
    gap: 32px;
  }
}

.article-body {
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: 18px;
  padding: 28px 26px 22px;
  box-shadow: 0 1px 3px rgba(20, 24, 38, 0.04);
}

@media (min-width: 700px) {
  .article-body { padding: 36px 38px 28px; }
}

.article-body p {
  margin: 0 0 18px;
  color: #2d3346;
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.1px;
}

.article-body p:first-of-type::first-letter {
  font-size: 2.4em;
  font-weight: 800;
  float: right;
  margin: 4px 0 0 10px;
  line-height: 1;
  color: var(--theme-primary);
}

[dir="rtl"] .article-body p:first-of-type::first-letter {
  float: right;
  margin: 4px 0 0 10px;
}

.article-share {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--theme-border);
}

.share-label {
  font-size: 13.5px;
  color: var(--theme-muted);
  font-weight: 600;
}

.share-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f4f5fa;
  color: var(--theme-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .15s ease;
}

.share-btn svg { width: 16px; height: 16px; }

.share-btn:hover {
  background: var(--theme-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(127, 32, 32, 0.30);
}

.copy-note {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1a1f2e;
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(20, 24, 38, 0.25);
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 9999;
}

.copy-note.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.article-aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 100px;
}

.aside-card {
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: 16px;
  padding: 20px 18px;
  box-shadow: 0 1px 3px rgba(20, 24, 38, 0.04);
}

.aside-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--theme-text);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--theme-border);
}

.aside-title svg { color: var(--theme-primary); }

.related-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.related-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform .15s ease;
}

.related-item:hover { transform: translateX(-3px); }
[dir="rtl"] .related-item:hover { transform: translateX(3px); }

.related-thumb {
  flex-shrink: 0;
  width: 70px;
  height: 60px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-color: #f1f3f8;
}

.related-body { display: flex; flex-direction: column; gap: 4px; flex: 1; }

.related-body h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--theme-text);
  line-height: 1.45;
  transition: color .15s ease;
}

.related-item:hover .related-body h4 { color: var(--theme-primary); }

.related-date {
  font-size: 12px;
  color: var(--theme-muted);
}

.aside-cta {
  background: linear-gradient(135deg, var(--theme-primary), #561414);
  border-color: transparent;
  color: #fff;
  text-align: center;
  padding: 24px 20px;
}

.aside-cta h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.aside-cta p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  line-height: 1.7;
}

.aside-cta .btn-primary {
  background: #fff;
  color: var(--theme-primary);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.aside-cta .btn-primary:hover {
  background: #fff5f5;
  color: var(--theme-primary);
}

@keyframes fadeInTheme {
  from {
    opacity: 0.75;
    transform: translateY(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================================================================
   Forms page (/forms)
   ===================================================================== */
.forms-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 1px 3px rgba(20, 24, 38, 0.04);
  margin-bottom: 18px;
}

.forms-search-bar svg { width: 18px; height: 18px; color: var(--theme-muted); flex-shrink: 0; }

.forms-search-bar input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font: inherit;
  font-size: 15px;
  color: var(--theme-text);
}

.forms-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 14px;
}

@media (min-width: 700px)  { .forms-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .forms-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.form-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(20, 24, 38, 0.04);
  transition: border-color .15s ease, box-shadow .2s ease, transform .15s ease;
}

.form-card:hover {
  border-color: rgba(127, 32, 32, 0.35);
  box-shadow: 0 14px 28px rgba(20, 24, 38, 0.10);
  transform: translateY(-2px);
}

.form-icon {
  position: relative;
  width: 56px;
  height: 64px;
  background: linear-gradient(135deg, rgba(127, 32, 32, 0.10), rgba(127, 32, 32, 0.04));
  color: var(--theme-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.form-icon svg { width: 28px; height: 28px; }

.form-ext {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--theme-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.6px;
  box-shadow: 0 4px 10px rgba(127, 32, 32, 0.30);
}

.form-body { flex: 1; min-width: 0; }

.form-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--theme-text);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.form-meta {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--theme-muted);
  font-size: 12.5px;
}

.form-actions { flex-shrink: 0; }

.form-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  background: var(--theme-primary);
  background-image: linear-gradient(135deg, var(--theme-primary), #561414);
  color: #fff;
  border: 0;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 4px 12px rgba(127, 32, 32, 0.25);
}

.form-dl-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(127, 32, 32, 0.35); color: #fff; }

.forms-empty-search {
  margin: 14px auto;
  text-align: center;
  color: var(--theme-muted);
  padding: 18px;
  background: #f8f9fc;
  border-radius: 12px;
  border: 1px dashed #d4d7e3;
  max-width: 480px;
}

/* =====================================================================
   President's message page
   ===================================================================== */
.president-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(20, 24, 38, 0.06);
}

@media (min-width: 820px) {
  .president-card { grid-template-columns: 340px 1fr; gap: 0; }
}

.president-photo {
  position: relative;
  background: linear-gradient(135deg, var(--theme-primary), #561414);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.18);
  font-size: 72px;
  font-weight: 800;
  letter-spacing: 6px;
}

.president-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.president-initials { position: relative; z-index: 1; }
.president-photo:not(.no-image) .president-initials { display: none; }

.president-body {
  padding: 26px 24px 28px;
}

.president-pill {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(127, 32, 32, 0.08);
  color: var(--theme-primary);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.president-name {
  margin: 12px 0 4px;
  font-size: clamp(22px, 3.5vw, 28px);
  font-weight: 800;
  color: var(--theme-text);
  letter-spacing: -0.3px;
}

.president-role {
  margin: 0 0 18px;
  color: var(--theme-muted);
  font-size: 14.5px;
}

.president-quote {
  position: relative;
  background: #f8f9fc;
  border: 1px solid var(--theme-border);
  border-radius: 14px;
  padding: 20px 22px;
}

.president-quote > svg {
  color: rgba(127, 32, 32, 0.20);
  position: absolute;
  top: 10px;
  left: 14px;
}

[dir="rtl"] .president-quote > svg { left: auto; right: 14px; transform: scaleX(-1); }

.president-quote p {
  margin: 0;
  color: #2d3346;
  font-size: 16px;
  line-height: 2;
  padding-top: 24px;
}

.president-signature {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--theme-muted);
}

.president-signature strong {
  color: var(--theme-text);
  font-size: 15px;
}

/* =====================================================================
   Visual identity page
   ===================================================================== */
.vi-section { display: flex; flex-direction: column; }

.vi-logo-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 18px;
}
@media (min-width: 700px) { .vi-logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.vi-logo-card {
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(20, 24, 38, 0.04);
}

.vi-logo-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px;
  min-height: 180px;
}

.vi-logo-preview img { max-width: 160px; max-height: 120px; object-fit: contain; }

.vi-bg-light { background: #fafbfd; border-bottom: 1px solid var(--theme-border); }
.vi-bg-dark  { background: linear-gradient(135deg, #1a1f2e, #2b1212); border-bottom: 1px solid var(--theme-border); }

.vi-logo-info { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.vi-logo-info h4 { margin: 0; font-size: 16px; font-weight: 700; color: var(--theme-text); }
.vi-logo-info p  { margin: 0 0 10px; font-size: 13.5px; color: var(--theme-muted); }
.vi-logo-info .btn { align-self: flex-start; padding: 8px 14px; font-size: 13px; gap: 6px; }

.vi-color-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
@media (min-width: 700px)  { .vi-color-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .vi-color-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.vi-color-card {
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(20, 24, 38, 0.04);
}

.vi-color-swatch {
  height: 110px;
  background: var(--c, #7F2020);
}

.vi-color-light { border-bottom: 1px solid var(--theme-border); }

.vi-color-info { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.vi-color-info h4   { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--theme-text); }
.vi-color-info code { font-size: 12.5px; color: var(--theme-primary); font-weight: 600; }
.vi-color-info small{ font-size: 11.5px; color: var(--theme-muted); }

.vi-type-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 14px;
}
@media (min-width: 700px) { .vi-type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.vi-type-card {
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(20, 24, 38, 0.04);
}

.vi-type-label {
  margin: 0;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--theme-muted);
  font-weight: 700;
}

.vi-type-sample {
  margin: 0;
  color: var(--theme-text);
  line-height: 1.2;
}

.vi-display { font-size: clamp(28px, 5vw, 44px); font-weight: 800; letter-spacing: -0.5px; }
.vi-heading { font-size: clamp(22px, 4vw, 28px); font-weight: 700; }
.vi-body    { font-size: 16px; font-weight: 400; line-height: 1.8; }
.vi-caption { font-size: 13px; font-weight: 500; color: var(--theme-muted); }

.vi-type-card code {
  align-self: flex-start;
  background: #f4f5fa;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--theme-primary);
}

.vi-rules-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 14px;
}
@media (min-width: 700px) { .vi-rules-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.vi-rule-card {
  position: relative;
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: 14px;
  padding: 22px 22px 22px 56px;
  box-shadow: 0 1px 3px rgba(20, 24, 38, 0.04);
}

[dir="rtl"] .vi-rule-card { padding: 22px 56px 22px 22px; }

.vi-rule-card h4 { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--theme-text); }
.vi-rule-card p  { margin: 0; font-size: 14px; color: #4a5063; line-height: 1.75; }

.vi-rule-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
}

[dir="rtl"] .vi-rule-badge { left: auto; right: 18px; }

.vi-do  .vi-rule-badge { background: #18a774; box-shadow: 0 4px 12px rgba(24, 167, 116, 0.30); }
.vi-dont .vi-rule-badge { background: #d04848; box-shadow: 0 4px 12px rgba(208, 72, 72, 0.30); }
.vi-do   { border-color: rgba(24, 167, 116, 0.30); }
.vi-dont { border-color: rgba(208, 72, 72, 0.30); }

/* =====================================================================
   Library page quick cards
   ===================================================================== */
.lib-quick-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 14px;
}
@media (min-width: 700px)  { .lib-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .lib-quick-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.lib-quick-card {
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: 16px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(20, 24, 38, 0.04);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.lib-quick-card:hover {
  border-color: rgba(127, 32, 32, 0.35);
  box-shadow: var(--theme-shadow);
  transform: translateY(-2px);
}

.lib-quick-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(127, 32, 32, 0.08);
  color: var(--theme-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.lib-quick-icon svg { width: 22px; height: 22px; }

.lib-quick-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--theme-text);
}

.lib-quick-card p {
  margin: 0;
  font-size: 14px;
  color: var(--theme-muted);
  line-height: 1.7;
}

/* =====================================================================
   Language toggle button (in themed-nav + home navbar)
   ===================================================================== */
.lang-toggle {
  appearance: none;
  border: 1px solid var(--theme-border);
  background: #fff;
  color: #2b3348;
  font-weight: 700;
  font-size: 13px;
  padding: 7px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s ease;
  margin-inline-start: 6px;
}

.lang-toggle:hover {
  border-color: rgba(127, 32, 32, 0.4);
  color: var(--theme-primary);
  background: rgba(127, 32, 32, 0.04);
}

.lang-toggle svg { flex-shrink: 0; }

.nav-links .lang-toggle {
  background: rgba(255,255,255,0.10);
  border-color: rgba(127, 32, 32, 0.20);
  color: #2b3348;
}

/* =====================================================================
   COMPREHENSIVE MOBILE POLISH
   - Reduces oversized hero text
   - Shrinks paddings & gaps
   - Stacks 2-col layouts (article/about-page)
   - Sticks sticky sidebar only on desktop
   - Improves touch targets
   ===================================================================== */
/* Office pages — sibling navigation */
.office-sibling-nav {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--theme-border, #e4e8f0);
}

.office-sibling-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.office-sibling-card {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--theme-border, #e4e8f0);
  background: #fff;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--theme-text, #121826);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.office-sibling-card:hover {
  border-color: rgba(127, 32, 32, 0.35);
  box-shadow: 0 8px 20px rgba(20, 24, 38, 0.08);
  color: var(--theme-primary, #7f2020);
}

.office-sibling-card.is-active {
  border-color: rgba(127, 32, 32, 0.45);
  background: rgba(127, 32, 32, 0.06);
  color: var(--theme-primary, #7f2020);
}

@media (max-width: 720px) {
  .office-sibling-grid { grid-template-columns: 1fr; }
}

/* Student affairs — registration requirements on hub page */
.office-requirements-section {
  margin-top: 8px;
}

.office-requirements-section .field-block-desc {
  margin: 0;
  color: #5a6270;
  font-size: 14.5px;
  line-height: 1.55;
  max-width: 52rem;
}

.office-requirements-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.office-requirement-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--theme-border, #e4e8f0);
  background: #fff;
  color: var(--theme-text, #121826);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.office-requirement-card:hover {
  border-color: rgba(127, 32, 32, 0.35);
  box-shadow: 0 8px 20px rgba(20, 24, 38, 0.08);
  color: var(--theme-primary, #7f2020);
}

.office-requirement-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(127, 32, 32, 0.08);
  color: var(--theme-primary, #7f2020);
}

.office-requirement-icon svg {
  width: 22px;
  height: 22px;
}

.office-requirement-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.office-requirement-body strong {
  font-size: 15px;
  line-height: 1.35;
}

.office-requirement-body span {
  font-size: 13px;
  line-height: 1.45;
  color: #5a6270;
  font-weight: 500;
}

.office-requirement-card:hover .office-requirement-body span {
  color: #6a4050;
}

.office-requirement-arrow {
  flex-shrink: 0;
  font-size: 22px;
  line-height: 1;
  opacity: 0.45;
  margin-top: 2px;
}

.office-req-steps-title {
  margin: 20px 0 10px;
  font-size: 16px;
}

.office-req-steps {
  margin: 0 0 20px;
  padding-inline-start: 1.25rem;
}

.office-req-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

@media (max-width: 720px) {
  .office-requirements-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  /* Field-style hero */
  .field-hero { padding: 50px 16px 38px; }
  .field-hero-title { font-size: clamp(22px, 7.5vw, 32px); line-height: 1.25; }
  .field-hero-desc  { font-size: 14.5px; line-height: 1.75; }
  .field-hero-kicker { font-size: 11px; padding: 5px 12px; }
  .field-hero-chip  { font-size: 12px; padding: 5px 10px; }
  .field-breadcrumb-bar { top: 60px; padding: 10px 0; }
  .field-breadcrumb { font-size: 12.5px; gap: 6px; }

  /* Field main spacing */
  .field-main { padding: 22px 0 44px; gap: 26px; }
  .field-block-head { margin-bottom: 14px; }
  .field-block-head h2 { font-size: clamp(20px, 5.5vw, 26px); }

  /* Section list — keep number badge inline but smaller padding */
  .field-section-list { gap: 12px; }
  .field-section-card { padding: 16px; gap: 12px; border-radius: 14px; }
  .field-section-num { width: 38px; height: 38px; font-size: 13px; border-radius: 10px; }
  .field-section-body h3 { font-size: 16px; }
  .field-section-body p { font-size: 14.5px; line-height: 1.85; }

  /* Course gallery */
  .field-courses-grid { gap: 12px; }
  .field-course-card .course-image-btn img { height: 180px; }
  .field-course-title h3 { font-size: 14px; }
  .course-no-image { height: 160px; font-size: 13px; }
  .zoom-pill { width: 30px; height: 30px; }

  /* Lightbox */
  .lightbox-figure img { max-width: 92vw !important; max-height: 70vh !important; }
  .lightbox-caption { font-size: 14px; padding: 8px 14px; }
  .lightbox-close { top: 12px; right: 12px; width: 38px; height: 38px; font-size: 22px; }
  [dir="rtl"] .lightbox-close { right: auto; left: 12px; }

  /* About page */
  .about-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .about-stat { padding: 16px 12px; }
  .about-stat-num { font-size: clamp(22px, 6.5vw, 28px); }
  .about-stat-label { font-size: 12.5px; }
  .about-dept-grid { gap: 10px; }
  .about-dept-card { padding: 14px; gap: 12px; }
  .about-dept-card .dept-icon { width: 40px; height: 40px; border-radius: 10px; }
  .about-dept-card h3 { font-size: 14.5px; }

  /* Department bullet list */
  .dept-bullet-list li { padding: 10px 16px 10px 38px; font-size: 14px; }
  [dir="rtl"] .dept-bullet-list li { padding: 10px 38px 10px 16px; }
  .dept-bullet-list li::before { width: 12px; height: 12px; }

  /* Teachers page */
  .staff-filter-bar { padding: 8px; gap: 6px; margin-bottom: 16px; }
  .staff-filter-pill { padding: 7px 12px; font-size: 12.5px; }
  .staff-grid { gap: 14px; }
  .staff-pro-card { border-radius: 14px; }
  .staff-pro-cover { height: 70px; }
  .staff-pro-avatar { width: 86px; height: 86px; margin-top: -43px; border-width: 3px; }
  .staff-pro-body { padding: 14px 14px 18px; }
  .staff-pro-name { font-size: 16px; margin-top: 10px; }
  .staff-pro-role { font-size: 13px; }
  .staff-pro-dept { font-size: 12px; padding: 4px 10px; }
  .staff-pro-link span { font-size: 12.5px; }

  /* News index (genral_news) */
  .news-pro-grid { gap: 14px; }
  .news-pro-media { height: 180px; }
  .news-pro-body { padding: 14px 16px 18px; }
  .news-pro-title { font-size: 15.5px; line-height: 1.45; }
  .news-pro-excerpt { font-size: 13.5px; line-height: 1.7; -webkit-line-clamp: 3; line-clamp: 3; }
  .news-pro-meta { gap: 10px; font-size: 12px; }
  .news-pro-cat { font-size: 11px; padding: 4px 10px; }
  .news-featured { border-radius: 16px; }
  .news-featured-media { min-height: 200px; }
  .news-featured-body { padding: 20px 18px 22px; gap: 10px; }
  .news-featured-title { font-size: clamp(18px, 5.5vw, 24px); }
  .news-featured-excerpt { font-size: 14px; line-height: 1.75; }
  .news-featured-badge { padding: 5px 10px; font-size: 11px; top: 10px; left: 10px; }
  [dir="rtl"] .news-featured-badge { left: auto; right: 10px; }
  .news-section-head h2 { font-size: clamp(20px, 5.5vw, 26px); }

  /* Article detail (/one) — stack sidebar below body */
  .article-hero { padding: 60px 16px 50px; }
  .article-hero-title { font-size: clamp(20px, 6.5vw, 28px); }
  .article-hero-excerpt { font-size: 14px; line-height: 1.7; }
  .article-meta-row { gap: 12px; font-size: 12.5px; }
  .article-cat-badge { padding: 5px 12px; font-size: 11.5px; }
  .article-layout { padding-top: 18px; padding-bottom: 44px; gap: 18px; }
  .article-body { padding: 22px 18px 18px; border-radius: 14px; }
  .article-body p { font-size: 15px; line-height: 1.95; margin-bottom: 14px; }
  .article-body p:first-of-type::first-letter { font-size: 2em; }
  .article-share { gap: 8px; padding-top: 14px; margin-top: 14px; flex-wrap: wrap; }
  .share-label { width: 100%; }
  .share-btn { width: 36px; height: 36px; }

  /* Article sidebar — not sticky on mobile */
  .article-aside { position: static; gap: 14px; }
  .aside-card { padding: 16px 14px; border-radius: 14px; }
  .aside-title { font-size: 14.5px; margin-bottom: 12px; }
  .related-thumb { width: 60px; height: 52px; }
  .related-body h4 { font-size: 13.5px; }
  .related-date { font-size: 11.5px; }
  .aside-cta { padding: 20px 16px; }
  .aside-cta h3 { font-size: 16px; }
  .aside-cta p { font-size: 13.5px; }

  /* Toast */
  .copy-note { padding: 10px 18px; font-size: 13.5px; bottom: 20px; }

  /* Back button row */
  .field-back .btn { font-size: 13.5px; padding: 10px 16px; }
}

/* Very small phones */
@media (max-width: 420px) {
  .field-hero-meta { gap: 6px; }
  .field-hero-chip { font-size: 11.5px; padding: 4px 9px; }
  .about-stats { grid-template-columns: 1fr; }
  .news-featured-media { min-height: 170px; }
  .staff-filter-bar { padding: 6px; }
  .staff-filter-pill { padding: 6px 10px; font-size: 12px; }
  .home-like-brand span { font-size: 15px; }
  .home-like-brand img { width: 34px; height: 34px; }
}

/* ===========================================================================
   Boss / head contact card
   Displayed on each office and program page (driven by `boss_contacts` table).
   =========================================================================== */
.boss-contact-section {
  margin-top: 32px;
}

.boss-contact-card {
  display: flex;
  gap: 22px;
  align-items: stretch;
  background: var(--theme-surface, #ffffff);
  border: 1px solid var(--theme-border, #e5e7eb);
  border-radius: 18px;
  padding: 22px 26px;
  box-shadow: 0 4px 14px rgba(20, 24, 38, 0.05);
  position: relative;
  overflow: hidden;
}
.boss-contact-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #7f2020, #c0392b);
}

.boss-contact-avatar {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(127, 32, 32, 0.10), rgba(127, 32, 32, 0.03));
  color: #7f2020;
}
.boss-contact-avatar svg { width: 36px; height: 36px; }

.boss-contact-body {
  flex: 1 1 auto;
  min-width: 0;
}
.boss-contact-name {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 700;
  color: var(--theme-heading, #14182a);
  line-height: 1.3;
}
.boss-contact-role {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--theme-muted, #6b7280);
  font-weight: 500;
}

.boss-contact-links {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.boss-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(127, 32, 32, 0.06);
  color: #7f2020;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.18s ease, transform 0.18s ease;
  word-break: break-all;
}
.boss-contact-link:hover {
  background: rgba(127, 32, 32, 0.12);
  transform: translateY(-1px);
}
.boss-contact-link svg { width: 16px; height: 16px; flex: 0 0 16px; }

.boss-contact-link--whatsapp { background: rgba(37, 211, 102, 0.08); color: #1da856; }
.boss-contact-link--whatsapp:hover { background: rgba(37, 211, 102, 0.16); }

.boss-contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.boss-contact-social {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(20, 24, 38, 0.05);
  color: #14182a;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.boss-contact-social:hover { background: #7f2020; color: #fff; transform: translateY(-1px); }
.boss-contact-social svg { width: 18px; height: 18px; }

@media (max-width: 600px) {
  .boss-contact-card { flex-direction: column; gap: 14px; padding: 18px; }
  .boss-contact-avatar { width: 56px; height: 56px; flex: 0 0 56px; }
  .boss-contact-avatar svg { width: 28px; height: 28px; }
  .boss-contact-name { font-size: 17px; }
}

/* RTL: place the colored accent bar on the right side. */
html[dir="rtl"] .boss-contact-card::before,
[dir="rtl"] .boss-contact-card::before {
  inset: 0 0 0 auto;
}

