:root {
  --color-orange: #f47920;
  --color-orange-700: #d9640f;
  --color-orange-ink: #b5560c;
  --color-orange-100: #fdeee1;
  --color-orange-200: #fbe3ce;
  --color-ink: #191713;
  --color-grey-900: #191713;
  --color-grey-800: #2b2822;
  --color-grey-700: #3a362e;
  --color-grey-600: #4a463f;
  --color-muted: #7b766d;
  --color-dim: #8a8478;
  --color-faint: #9a948a;
  --color-on-ink: #a9a399;
  --color-on-ink-strong: #cdc7bb;
  --color-bg: #faf9f6;
  --color-card: #ffffff;
  --color-border: #e9e5dd;
  --color-border-strong: #e1dcd1;
  --color-line: #eeeae1;

  /* Site mapped tokens */
  --brand-orange: #f47920;
  --brand-blue: #191713;
  --brand-gray: #4a463f;
  --brand-lightgray: #e9e5dd;
  --brand-greige: #faf9f6;
  --brand-lightorange: #fdeee1;
  --brand-gold: #b5560c;
  --ink: #191713;
  --muted: #7b766d;
  --bg: #faf9f6;
  --card: #ffffff;
  --border: #e9e5dd;
  --radius: 16px;
  --shadow: 0 10px 25px rgba(25, 23, 19, .06);
  --hero-gradient: linear-gradient(to left, rgba(250, 249, 246, 0.95) 0%, rgba(250, 249, 246, 0.70) 50%, rgba(250, 249, 246, 0) 100%);
}

@font-face {
  font-family: 'naskh';
  src: url('/assets/fonts/naskh/NotoKufiArabic.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

/* Cairo Font */
@font-face {
  font-family: 'Cairo';
  src: url('/assets/fonts/cairo/Cairo-ExtraLight.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cairo';
  src: url('/assets/fonts/cairo/Cairo-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cairo';
  src: url('/assets/fonts/cairo/Cairo-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cairo';
  src: url('/assets/fonts/cairo/Cairo-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cairo';
  src: url('/assets/fonts/cairo/Cairo-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cairo';
  src: url('/assets/fonts/cairo/Cairo-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cairo';
  src: url('/assets/fonts/cairo/Cairo-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cairo';
  src: url('/assets/fonts/cairo/Cairo-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Amiri Font */
@font-face {
  font-family: 'Amiri';
  src: url('/assets/fonts/amiri/Amiri-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Amiri';
  src: url('/assets/fonts/amiri/Amiri-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Amiri';
  src: url('/assets/fonts/amiri/Amiri-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Amiri';
  src: url('/assets/fonts/amiri/Amiri-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

html,
body {
  overflow-x: clip;
  width: 100%;
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  font-family: "Tajawal", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink)
}

a {
  color: var(--brand-blue);
  text-decoration: none
}

a:hover {
  text-decoration: underline
}

.topbar {
  background: #191713 !important;
  color: #fff;
}

.container {
  max-width: 1400px;
  margin-inline: auto;
  padding: 0 12px;
}

main.container {
  padding-top: 45px;
  padding-bottom: 55px;
}

.topbar .inner {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  padding: 6px 0;
}

.topbar,
.topbar a,
.lang a {
  color: #ffffff !important;
  opacity: 1 !important;
}

.topbar .right,
.topbar .left {
  display: flex;
  align-items: center;
  gap: 6px;
}

#time,
#clock,
#clock-date {
  display: inline-block;
  font-family: "Tajawal", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 500;
  color: #fff;
  margin-right: 6px;
  letter-spacing: 0.3px;
}

.clock-time {
  font-family: "Tajawal", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
}

#calendar-link {
  color: #fff;
  text-decoration: none;
  padding: 10px 0;
}

#calendar-link:hover {
  text-decoration: underline;
  color: #ffd966;
}

header {
  background: #fff;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 50
}

.brand,
.brand-phone {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0
}

.brand img,
.brand-phone img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--brand-gold)
}

.brand h1,
.brand .brand-name,
.brand-phone h1 {
  font-size: 20px;
  line-height: 1.2;
  margin: 0
}

.brand h1,
.brand .brand-name {
  font-weight: bold;
}

.brand-phone-ar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0
}

.brand-phone-ar img {
  width: 110px;
  /* height:70px; */
}

nav ul,
.main-nav ul {
  list-style: none;
  display: flex;
  align-items: stretch;
  gap: 5px;
  margin: 0;
  padding: 0;
  justify-content: flex-start;
  flex-wrap: wrap;
  position: relative;
}

nav a {
  color: var(--ink);
  font-weight: 600
}

nav a.active,
nav a:hover {
  color: #B5560C;
}

.nav-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

nav>ul>li,
.main-nav>ul>li {
  position: relative;
  display: inline-flex;
  align-items: stretch;
}

nav>ul>li>a,
.main-nav>ul>li>a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-weight: 600;
  color: #1f2937;
  transition: color 0.25s ease, background-color 0.25s ease;
  border-bottom: none;
  height: 100%;
  box-sizing: border-box;
}

/* Colored Line OVER (ABOVE) the header tab on hover & active */
@media (min-width: 769px) {

  nav>ul>li,
  .main-nav>ul>li {
    position: relative;
    display: inline-flex;
    align-items: stretch;
  }

  nav ul li>a {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 12px 16px;
    font-weight: 600;
    color: #1f2937;
    transition: color 0.25s ease;
    border-top: none;
    border-bottom: none !important;
    height: 100%;
    box-sizing: border-box;
  }

  /* Line OVER the tab sticking flush to the topbar (top: 0) - excluding logo item */
  nav ul li:not(.nav-logo-item)>a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #B5560C;
    border-radius: 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
    opacity: 0;
    z-index: 100;
  }

  nav ul li:not(.nav-logo-item)>a:hover {
    color: #B5560C;
  }

  nav ul li:not(.nav-logo-item)>a:hover::before {
    transform: scaleX(1);
    opacity: 1;
  }

  nav ul li:not(.nav-logo-item)>a.active {
    color: #B5560C;
    font-weight: 700;
  }

  nav ul li:not(.nav-logo-item)>a.active::before {
    transform: scaleX(1);
    opacity: 1;
    background: #B5560C;
    box-shadow: none;
  }

  /* Exclude logo item from displaying hover top line */
  .nav-logo-item>a::before {
    display: none !important;
    content: none !important;
  }
}

nav ul li.dropdown {
  position: relative;
}

nav ul li .mega-dropdown,
nav ul li .mega-dropdown-programs {
  position: absolute;
  top: 100%;
  right: 0;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  padding: 20px 20px;
  z-index: 1000;
  direction: rtl;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  display: flex;
  justify-content: space-between;
}

nav ul li .mega-dropdown {
  width: 750px;
  gap: 15px;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

nav ul li .mega-dropdown-programs {
  width: 175px;
  gap: 20px;
  transition: none;
}

nav ul li.dropdown:hover>.mega-dropdown,
nav ul li.dropdown:hover>.mega-dropdown-programs {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

nav ul li.dropdown:hover>.mega-dropdown-programs {
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0s;
}

nav ul li .mega-column {
  flex: 1;
  min-width: 210px;
  padding-top: 5px;
}

nav ul li .mega-column h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-gray);
  margin-bottom: 6px;
  margin-top: -25px;
  border-bottom: 2px solid var(--brand-gray);
  display: inline-block;
  padding-bottom: 3px;
}

.mega-column ul,
.mega-dropdown-programs ul {
  list-style: none;
  margin: 4px 0 0 0;
  padding: 0;
  display: flex !important;
  flex-direction: column !important;
}

.mega-column ul li,
.mega-dropdown-programs ul li {
  display: block !important;
  width: 100% !important;
  margin-bottom: 4px;
}

nav ul li .mega-column ul li a,
nav ul li .mega-dropdown-programs ul li a,
.mega-dropdown a,
.mega-dropdown-programs a {
  color: #374151;
  font-weight: 500;
  transition: all 0.25s ease;
  display: inline-block !important;
  min-height: initial !important;
  height: auto !important;
  padding: 4px 0 !important;
}

.mega-dropdown a::before,
.mega-dropdown a::after,
.mega-dropdown-programs a::before,
.mega-dropdown-programs a::after {
  display: none !important;
  content: none !important;
}

nav ul li.dropdown:hover>a::after {
  transform: rotate(180deg);
  color: var(--brand-gray);
}

.main-nav ul {
  display: flex;
  align-items: stretch;
  /* gap: 1rem; */
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
}

.main-nav>ul>li>a {
  font-size: clamp(12px, 1.4vw, 15px);
  transition: color 0.3s ease;
  min-height: 55px;
}

.main-nav .mobile-only {
  display: none;
}

.main-nav .screen-only {
  display: block !important;
}

.nav-logo-item {
  display: flex !important;
  align-items: center;
  padding: 0;
  border-left: 1px solid var(--border);
  margin-left: 8px;
}

.nav-logo-item>a {
  padding-right: 0 !important;
}

.nav-logo-img {
  height: 55px;
  width: auto;
  display: block;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.nav-logo-img:hover {
  opacity: 1;
}

.hero {
  border-bottom: 4px solid var(--brand-gray);
  min-height: 550px;
  display: grid;
  grid-template-rows: 1fr;
  position: relative;
  transition: min-height 0.3s ease;
}

.hero .container {
  width: 100%;
  display: grid;
  grid-template-rows: 1fr;
  justify-content: start;
}




.hero-card {
  background: none;
  font-family: "Cairo", "Tajawal", sans-serif;
  border: none;
  border-radius: 0;
  padding: 40px 50px 80px 50px;
  min-width: 650px;
  max-width: 780px;
  width: 100%;
  height: 100%;
  margin: 0;
  text-align: right;
  box-shadow: none;
  animation: heroSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  transform-origin: center center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero:not(.hero-home) .hero-card {
  padding: 40px 50px;
}

.hero-card .title {
  color: var(--brand-gray);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(11, 54, 80, 0.20);
  border-radius: 999px;
  padding: 6px 14px;
  color: var(--brand-blue);
  font-weight: 700;
  font-size: 14px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  margin: 0 0 12px auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.badge i {
  color: var(--brand-blue);
  font-size: 14px;
}

.title {
  margin: 12px 0 10px 0;
  text-align: right;
  color: var(--brand-blue);
  font-family: "Amiri", serif;
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 800;
  line-height: 1.25;
  text-shadow: none;
}

.title.title-primary {
  font-size: clamp(34px, 4vw, 52px);
  margin-bottom: 0px;
}

.subtitle {
  font-weight: 600;
  margin: 0;
  color: var(--brand-gray);
  font-size: clamp(15px, 1.6vw, 19px);
  line-height: 1.65;
  text-align: right;
  text-shadow: none;
}

/* Hero Highlights/Stats */
.hero-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0 20px 0;
  padding-top: 20px;
  border-top: 1px dashed rgba(191, 159, 94, 0.25);
  justify-content: start;
  text-align: right;
}

.feat-item {
  display: flex;
  flex-direction: column;
  align-items: center !important;
  text-align: center !important;
  gap: 4px;
}

.feat-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--brand-orange);
  line-height: 1.1;
  text-shadow: none;
}

.feat-txt {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  font-weight: 600;
}

/* Actions */
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.mobile-only {
  display: none !important;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 32px;
  background-color: #4A3E38 !important;
  background-image: none;
  border: 0;
  border-radius: 6px;
  line-height: 1.3;
  color: #ffffff !important;
  font-family: 'Cairo', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transform: none !important;
  transition: background-color 200ms ease-out;
}

.btn-hero-primary:hover {
  background-color: #382e29 !important;
  color: #ffffff !important;
  text-decoration: none;
  transform: none !important;
}

.btn-hero-primary:active {
  background-color: #2b221e !important;
  transform: none !important;
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #ffffff !important;
  color: #191713 !important;
  border: 1px solid #191713 !important;
  padding: 11px 20px;
  border-radius: 6px;
  font-family: 'Cairo', sans-serif;
  font-weight: 600;
  font-size: 15px;
  transition: background-color 300ms ease-out, color 300ms ease-out, border-color 300ms ease-out;
}

.btn-hero-secondary i {
  color: #191713 !important;
}

.btn-hero-secondary:hover,
.btn-hero-secondary:active {
  background-color: #191713 !important;
  color: #ffffff !important;
  border-color: #191713 !important;
  text-decoration: none;
  transform: none;
}

.btn-hero-secondary:hover i,
.btn-hero-secondary:active i {
  color: #ffffff !important;
}

@keyframes heroSlideUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
}

.side {
  position: -webkit-sticky;
  position: sticky;
  top: 90px;
  min-width: 180px;
  height: fit-content;
  align-self: start;
  z-index: 10;
}

.content {
  min-width: 0;
}

.menu {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.menu h3,
.side .menu h3 {
  margin: 0;
  padding: 14px 16px;
  background: #4A463F;
  color: #ffffff;
  font-family: 'Cairo', sans-serif;
  font-size: 15px;
  font-weight: 700;
  border-bottom: 1px solid var(--color-border);
}

.side .menu a {
  display: block;
  padding: 11px 16px;
  color: #475569;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.side .menu a:last-child {
  border-bottom: none;
}

.side .menu a:hover {
  background-color: var(--color-bg);
  color: var(--color-orange-ink);
}

.side .menu a.active {
  background-color: #b5560c;
  color: #ffffff;
  font-weight: 600;
}

/* home page */
.aaya {
  color: #9b111e;
  font-family: "'naskh', sans-serif";
  font-size: 24px;
  text-align: center;
  margin-bottom: 10px;
}

.card {
  background: var(--card);

  border-radius: var(--radius);
  border: 1px solid #d1d9e0;
  display: flex;
  flex-direction: column;
}

.card .hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border)
}

.card .hd h3 {
  margin: 0;
  font-size: 18px
}

.card .bd {
  padding: 18px;
  flex: 1;
  height: auto;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(191, 159, 94, .15);
  color: #6b4d17;
  font-weight: 700;
  font-size: 12px;
  border: 1px solid rgba(191, 159, 94, .35)
}

.list {
  display: grid;
  gap: 12px
}

.list .item {
  padding: 12px 14px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: #fff
}

.meta {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px
}

.section {
  margin-bottom: 10px;
}

.section h2 {
  font-size: 24px;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 10px
}

.section h2:before {
  content: "";
  width: 6px;
  height: 24px;
  background: var(--brand-gold);
  border-radius: 3px
}

#vision {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, 1fr)
}

.text-about {
  font-size: 18px;
  line-height: 1.5;
  text-indent: 1em;
  text-align: justify;
  margin-top: 5px;
}

/* ====== share section ====== */
.share-section {
  background: #B5560C;
  border-top: 1px solid #8e4207;
  border-bottom: 1px solid #8e4207;
  padding: 24px 0;
  text-align: center;
  direction: rtl;
}

.share-title {
  font-size: 22px;
  font-weight: 700;
  color: #FFFFFF;
  margin-top: 0;
  margin-bottom: 22px;
  letter-spacing: 0.5px;
}

.share-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.share-btn.modern {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  text-decoration: none;
  background: #ccc;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.35s ease;
  transform: translateY(0);
  opacity: 0;
  animation: fadeUp 0.5s ease forwards;
}

.share-btn.modern:hover {
  transform: translateY(-6px) scale(1.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.share-btn.fb {
  background: #1877f2;
}

.share-btn.fb:hover {
  background: #125ec9;
}

.share-btn.x {
  background: #000;
}

.share-btn.x:hover {
  background: #222;
}

.share-btn.ln {
  background: #0077b5;
}

.share-btn.ln:hover {
  background: #005b8c;
}

.share-btn.wa {
  background: #25d366;
}

.share-btn.wa:hover {
  background: #1fa958;
}

.share-btn.em {
  background: #ea4335;
}

.share-btn.em:hover {
  background: #c13525;
}

.share-btn.modern:nth-child(1) {
  animation-delay: 0.1s;
}

.share-btn.modern:nth-child(2) {
  animation-delay: 0.2s;
}

.share-btn.modern:nth-child(3) {
  animation-delay: 0.3s;
}

.share-btn.modern:nth-child(4) {
  animation-delay: 0.4s;
}

.share-btn.modern:nth-child(5) {
  animation-delay: 0.5s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== footer ====== */
footer {
  margin-top: 0 !important;
  background: #191713 !important;
  color: var(--color-on-ink);
}

footer a {
  color: var(--color-on-ink-strong);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 26px 10px
}

.copy {
  border-top: 1px solid rgba(255, 255, 255, .15);
  padding: 12px 10px;
  color: #ffffff
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  background-color: #4A3E38;
  background-image: none;
  border: 0;
  border-radius: 999px;
  line-height: 1.3;
  color: #ffffff !important;
  font-family: 'Cairo', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transform: none !important;
  transition: all 0.18s ease-out;
}

.btn:hover {
  background-color: #382e29;
  color: #ffffff !important;
  text-decoration: none;
  transform: none !important;
  cursor: pointer;
}

.btn:active {
  background-color: #2b221e;
  transform: none !important;
}

.btn-primary {
  background-color: #4A3E38;
  color: #ffffff !important;
}

.btn-primary:hover {
  background-color: #382e29;
  color: #ffffff !important;
}

.btn.outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-ink) !important;
}

.btn.outline:hover {
  background-color: var(--color-bg);
  color: var(--color-orange-ink) !important;
  transform: none !important;
}

.track-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #e4f4fc, #d0eaf7);
  color: var(--brand-blue);
  border: 1px solid var(--brand-blue);
  border-radius: var(--radius);
  font-weight: 700;
  /* box-shadow: 0 2px 8px rgba(14,112,160,0.15); */
  transition: all 0.3s ease;
  cursor: pointer;
}

.track-btn:hover {
  background: linear-gradient(135deg, #d8eefb, #c7e4f3);
  box-shadow: 0 6px 16px rgba(14, 112, 160, 0.25);
  transform: translateY(-2px);
  cursor: pointer;
}

.track-btn:active {
  transform: scale(0.97);
  opacity: 0.9;
}


/* announcement */
.announcements-section {
  /* margin-top: 30px; */
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 15px;
  direction: rtl;
}

.announcements-section .ann-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.announcements-section .ann-header h3 {
  font-size: 1.4rem;
  color: var(--brand-blue);
  margin: 0;
}

.announcements-section .ann-header .pill {
  background-color: var(--brand-blue);
  color: #fff;
  text-decoration: none;
  padding: 6px 16px;
  border-radius: 20px;
  transition: background 0.3s;
  white-space: nowrap;
}

.announcements-section .ann-header .pill:hover {
  background-color: var(--brand-lightorange);
}

.announcements-section .ann-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.announcements-section .ann-item {
  background-color: #f8f8f8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.announcements-section .ann-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.announcements-section .ann-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.announcements-section .ann-text {
  padding: 12px 14px;
}

.announcements-section .ann-text h4 {
  font-size: 1rem;
  color: #333;
  margin: 0 0 6px;
  line-height: 1.5;
  font-weight: 600;
}

.announcements-section .ann-text .date {
  font-size: 0.9rem;
  color: #777;
}

/* ====== calendar page ====== */
.calendar-container {
  max-width: 1000px;
  margin: 40px auto;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 32px;
}

.calendar-container h1 {
  color: var(--brand-blue);
  margin-bottom: 24px;
  text-align: center;
  font-size: 28px;
}

.calendar-container table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 15px;
}

.calendar-container th,
.calendar-container td {
  border: 1px solid var(--border);
  padding: 12px;
  text-align: center;
}

.calendar-container td:not(:last-child) {
  white-space: nowrap;
}

.calendar-container th {
  background: #9D9D9D;
  color: #fff;
  font-weight: 700;
}

.calendar-container tr:nth-child(even) td {
  background: #f9fafb;
}

.calendar-container tr:hover td {
  background: rgba(14, 112, 160, 0.08);
}

.calendar-container tr:not(.visa-row-highlight) td:last-child {
  text-align: right;
}

/* Highlighted row for visa requirement */
.calendar-container tr.visa-row-highlight td {
  background-color: var(--brand-greige) !important;
  border-top: 2px solid var(--brand-orange) !important;
  border-bottom: 2px solid var(--brand-orange) !important;
  font-weight: 600;
  padding: 18px 12px !important;
}

.calendar-container tr.visa-row-highlight td:first-of-type {
  border-right: 2px solid var(--brand-orange) !important;
}

.calendar-container tr.visa-row-highlight td:last-child {
  border-left: 2px solid var(--brand-orange) !important;
}

.calendar-container tr.visa-row-highlight:hover td {
  background-color: rgba(244, 121, 32, 0.12) !important;
}

/* Subtle highlighted row for exams - bold font only */
.calendar-container tr.exam-row-highlight td {
  font-weight: 700;
}

/* Tooltip Container */
.visa-note-container {
  position: relative;
  display: block;
  margin-top: 14px;
  text-align: right;
  font-size: 14px;
}

.visa-note-label {
  color: #e53e3e;
  /* Rich Red */
  font-weight: 700;
  margin-left: 4px;
}

.visa-note-trigger {
  color: var(--brand-blue);
  text-decoration: underline dashed;
  cursor: help;
  font-weight: 600;
  transition: color 0.2s ease;
  text-align: center;
  margin-top: 12px;
}

.visa-note-trigger:hover {
  color: var(--brand-orange);
}

/* Tooltip Card */
.visa-countries-tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: 125%;
  left: 0;
  width: 350px;
  background-color: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(11, 54, 80, 0.15);
  border-radius: 12px;
  padding: 16px;
  z-index: 999;
  text-align: right;
  direction: rtl;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  transform: translateY(10px);
  pointer-events: none;
  /* Avoid blocking interaction when hidden */
}

/* Arrow */
.visa-countries-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 30px;
  border-width: 8px;
  border-style: solid;
  border-color: #ffffff transparent transparent transparent;
}

.visa-countries-tooltip::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 29px;
  border-width: 9px;
  border-style: solid;
  border-color: var(--border) transparent transparent transparent;
  z-index: -1;
}

/* Show tooltip on hover or when JS show class is present */
.visa-note-container:hover .visa-countries-tooltip,
.visa-note-container:focus-within .visa-countries-tooltip,
.visa-countries-tooltip.show {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Tooltip Header */
.visa-countries-tooltip .tooltip-header {
  font-weight: 700;
  color: var(--brand-blue);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 10px;
  font-size: 14px;
}

/* Countries Text Flow */
.countries-text-flow {
  font-size: 12px;
  line-height: 1.8;
  color: var(--brand-gray);
  text-align: justify;
}

/* Tooltip Footer */
.visa-countries-tooltip .tooltip-footer {
  margin-top: 12px;
  font-size: 11px;
  color: var(--muted);
  border-top: 1px dashed var(--border);
  padding-top: 6px;
}

/* Responsive behavior on smaller screens */
@media (max-width: 768px) {
  .visa-countries-tooltip {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    width: 90% !important;
    max-width: 340px !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid var(--border) !important;
    background-color: #ffffff !important;
    border-radius: 12px !important;
    padding: 20px !important;
    z-index: 100000 !important;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: block !important;
  }

  .visa-note-container:hover .visa-countries-tooltip,
  .visa-note-container:focus-within .visa-countries-tooltip,
  .visa-countries-tooltip:hover,
  .visa-countries-tooltip.show {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .visa-countries-tooltip::after,
  .visa-countries-tooltip::before {
    display: none !important;
  }
}

/* Download PDF Button styling */
.download-pdf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--brand-blue);
  color: #ffffff;
  padding: 10px 22px;
  font-size: 14.5px;
  font-family: inherit;
  font-weight: 700;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(11, 54, 80, 0.1);
  text-decoration: none !important;
}

.download-pdf-btn:hover {
  background-color: var(--brand-orange);
  box-shadow: 0 6px 12px rgba(244, 121, 32, 0.2);
  transform: translateY(-2px);
  color: #ffffff;
}

.download-pdf-btn i {
  font-size: 16px;
}

.download-pdf-btn.is-loading {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none !important;
}

/* ====== contact page ====== */
#contact {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  transition: transform 0.2s ease;
}

#contactForm {
  display: grid;
  gap: 14px;
}

#contactForm label {
  font-weight: 600;
  color: var(--brand-gray);
  font-size: 15px;
}

#contactForm input,
#contactForm textarea,
#contactForm select {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 15px;
  background: #fff;
  color: var(--ink);
  transition: all 0.2s ease;
}

#contactForm input:focus,
#contactForm textarea:focus,
#contactForm select:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(14, 112, 160, 0.15);
}

#contactForm select {
  cursor: pointer;
}

#contactForm textarea {
  resize: vertical;
  min-height: 100px;
}

#contactForm button.btn {
  margin-top: 10px;
  justify-content: center;
  width: fit-content;
  min-width: 160px;
}

#formMsg {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-weight: 600;
  text-align: center;
  display: none;
}

#formMsg.success {
  display: block;
  background: rgba(14, 112, 160, 0.1);
  color: var(--brand-blue);
  border: 1px solid var(--brand-blue);
}

#formMsg.error {
  display: block;
  background: rgba(191, 94, 94, 0.1);
  color: #a81e1e;
  border: 1px solid #a81e1e;
}

/* ====== Application Form ====== */
.stepper {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}

.stepper .step {
  flex: 1;
  text-align: center;
  position: relative;
  font-weight: 600;
  color: var(--muted);
}

.stepper .step.active {
  color: var(--brand-blue);
}

.stepper .step:before {
  content: attr(data-step);
  display: inline-block;
  background: var(--border);
  color: var(--ink);
  width: 32px;
  height: 32px;
  line-height: 32px;
  border-radius: 50%;
  margin-bottom: 6px;
}

.stepper .step.active:before {
  background: var(--brand-blue);
  color: #fff;
}

.stepper .step+.step:after {
  content: '';
  position: absolute;
  top: 16px;
  right: 0;
  width: calc(100% - 32px);
  height: 2px;
  background: var(--border);
  z-index: -1;
}

.stepper .step.active+.step:after {
  background: var(--brand-blue);
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.form-navigation {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
}

.upload-input {
  border: 1px dashed var(--border);
  padding: 14px;
  border-radius: var(--radius);
  background: var(--card);
  text-align: center;
  cursor: pointer;
  color: var(--muted);
  transition: 0.3s;
}

.upload-input:hover {
  background: rgba(14, 112, 160, 0.04);
}

.upload-input input[type=file] {
  display: none;
}

.upload-name {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink);
}

/* Underconstruction Modal */
/* Container to align items centrally */
.construction-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 20px;
  font-family: sans-serif;
}

/* Make sure the graphic scales responsively inside the modal */
.construction-img {
  max-width: 100%;
  height: auto;
  max-height: 280px;
  /* Adjust this height if you want it larger or smaller */
  margin-bottom: 25px;
  object-fit: contain;
}

/* Styling for the main Arabic heading */
.construction-title {
  font-size: 28px;
  font-weight: 600;
  color: #2C2C2A;
  /* Slate/Charcoal to match the logo text */
  margin: 0 0 10px 0;
  direction: rtl;
  /* Ensures proper Arabic text rendering */
}

/* Styling for the secondary subtitle */
.construction-subtitle {
  font-size: 18px;
  color: #888780;
  /* Soft grey text */
  margin: 0;
  direction: rtl;
}

/* Underconstruction Modal End*/

.custom-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 15px;
  transition: opacity 0.3s ease;
}

.custom-modal.hidden {
  display: none;
}

.custom-modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 25px 20px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
  position: relative;
  text-align: center;
  overflow-y: auto;
  animation: fadeInUp 0.3s ease;
}

.close-modal {
  position: absolute;
  top: 15px;
  left: 20px;
  font-size: 28px;
  cursor: pointer;
  color: var(--color-ink);
  transition: color 0.2s ease;
}

.close-modal:hover {
  color: #000000;
}

.modal-actions {
  display: flex;
  justify-content: center;
  flex-direction: row;
  gap: 12px;
  margin-top: 20px;
}

.modal-actions button {
  width: 100px;
  height: 50px;
  background: #4A463F;
  color: #ffffff;
  border: 1px solid #4A463F;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-actions button:hover {
  background: #3a362e;
  border-color: #3a362e;
  color: #ffffff;
  transform: translateY(-2px);
  cursor: pointer;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== thesis + publication tables ====== */
.thesis-table,
.research-table {
  width: 100%;
  border-collapse: collapse;
  background: #F7FAFC;
  border-radius: 12px;
  overflow: hidden;
}

.thesis-table th,
.thesis-table td,
.research-table th,
.research-table td {
  padding: 12px 16px;
  background: white;
  text-align: right;
  border-bottom: 1px solid #eee;
}

.thesis-table tr:hover,
.research-table tr:hover {
  background: #f9f9f9;
  cursor: pointer;
}



.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
}

.page-btn {
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  text-decoration: none;
  color: var(--brand-blue);
  display: inline-block;
  line-height: 1.2;
}

.page-btn.active {
  background: var(--brand-blue);
  color: #fff !important;
  border-color: var(--brand-blue);
}

.page-btn:hover {
  text-decoration: none;
  background: #f5f5f5;
}

.page-btn:disabled,
span.page-btn {
  opacity: 0.5;
  cursor: default;
  background: #fff;
  color: var(--muted) !important;
  border-color: #ccc;
}

.pagination .dots {
  padding: 6px 4px;
  color: var(--muted);
  user-select: none;
}



.col-title {
  width: 45%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thesis-table tr td:first-child {
  box-shadow: inset -6px 0 0 transparent;
  transition: box-shadow 0.3s ease;
}

.thesis-table tr.done td:first-child {
  box-shadow: inset -6px 0 0 #28a745;
}

.thesis-table tr.registered td:first-child {
  box-shadow: inset -6px 0 0 #dc3545;
}

.thesis-table tr:hover td {
  background-color: rgba(0, 79, 163, 0.06);
}

#thesisModal,
#researchModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

#thesisModal {
  backdrop-filter: blur(3px);
}

#thesisModal.hidden,
#researchModal.hidden {
  display: none;
}

#thesisModal .modal-content,
#researchModal .modal-content {
  background: #fff;
  border-radius: 12px;
  max-width: 900px;
  padding: 25px 30px;
  text-align: right;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  animation: fadeInScale 0.3s ease;
  max-height: 85vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--color-muted) #f1f1f1;
}

#thesisModal .modal-content {
  width: 95%;
}

#researchModal .modal-content {
  width: 90%;
}

#thesisModal .modal-content::-webkit-scrollbar,
#researchModal .modal-content::-webkit-scrollbar {
  width: 8px;
}

#thesisModal .modal-content::-webkit-scrollbar-thumb,
#researchModal .modal-content::-webkit-scrollbar-thumb {
  background: var(--color-muted);
  border-radius: 4px;
}

#thesisModal .modal-content::-webkit-scrollbar-thumb:hover,
#researchModal .modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--color-ink);
}



.book-modal {
  display: flex;
  gap: 2rem;
  justify-content: right;
  align-items: flex-start;
  flex-wrap: wrap;
  text-align: right;
  margin: 0 auto;
}

.book-cover {
  flex: 0 0 200px;
  text-align: center;
}

.book-cover img {
  width: 180px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
}

.book-cover img:hover {
  transform: scale(1.05);
}

.modal-details {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.modal-details th {
  text-align: right;
  width: 24%;
  padding: 6px 10px;
  background: var(--color-bg);
  color: var(--color-ink);
  border-bottom: 1px solid var(--color-border);
}

.modal-details td {
  padding: 6px 10px;
  border-bottom: 1px solid var(--color-border);
  text-align: justify;
  color: var(--color-grey-600);
}

.modal-details a.btn {
  display: inline-block;
  padding: 4px 10px;
  background: #4A463F;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}

.modal-details a.btn:hover {
  opacity: 0.9;
}

.empty {
  text-align: center;
  color: var(--muted);
  font-size: 1.1rem;
  margin-top: 24px;
  animation: fadeIn 0.3s ease;
}

.error {
  color: #c00;
  text-align: center;
  padding: 30px;
}

/* library page loading indicator */
#loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.search-box {
  margin: 20px 0;
  text-align: center;
}

.search-box-wrap {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
}

.search-box input {
  width: 100%;
  padding: 13px 46px 13px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: "Tajawal", sans-serif;
  font-size: 15px;
  direction: rtl;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: all 0.3s ease;
}

.search-box input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(11, 54, 80, 0.12);
  outline: none;
}

.search-box input::placeholder {
  color: #999;
}

.search-box-wrap .search-icon {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  color: #9aa5b1;
  font-size: 14px;
  pointer-events: none;
}

.fade-in {
  animation: fadeIn 0.3s ease-in;
}

.view-btn {
  background: var(--brand-blue);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Tajawal", sans-serif;
}

.view-btn:hover {
  background: var(--brand-lightorange);
  color: #000;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  padding: 20px;
}

.modal-box {
  background: #fff;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  padding: 25px 30px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  animation: fadeInScale 0.3s ease-in-out;
  text-align: right;
}

.modal-box input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
}

.close-btn {
  position: absolute;
  top: 12px;
  left: 15px;
  font-size: 26px;
  cursor: pointer;
  color: #888;
  transition: color 0.2s;
}

.close-btn:hover {
  color: var(--brand-blue);
}

.modal-content h3 {
  color: var(--brand-blue);
  margin-bottom: 5px;
}

.modal-content h4 {
  color: var(--brand-gold);
  margin-bottom: 10px;
}

.modal-content p {
  color: #333;
  line-height: 1.6;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ====== graduate page ====== */
.page-title {
  color: var(--brand-gray);
  text-align: center;
  margin-top: 0 !important;
  margin-bottom: 20px;
  font-weight: 700;
}

.intro {
  text-align: center;
  color: var(--ink);
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 10px;
}

.template-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.template-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(14, 112, 160, 0.15);
}

.template-card h3 {
  color: var(--brand-gray);
  margin-bottom: 10px;
}

.template-card p {
  color: var(--ink);
  font-size: 15px;
  margin-bottom: 15px;
}

.otp-modal {
  background: #fff;
  border-radius: 0;
  min-height: 250px;
  max-width: 380px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px 30px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  animation: fadeInScale 0.3s ease-in-out;
}

.error-note {
  margin-bottom: 10px;
}

#userInput {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 0;
  border: 1px solid gray;
}

#userInput:focus {
  outline: none;
  border: 1px solid var(--brand-blue);
  /* box-shadow: 0px 0px 5px rgba(255, 193, 7, 0.5); */
}

.btnOTP {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 8px;
  border: 1px solid #4A463F;
  color: #fff;
  background: #4A463F;
  padding: 10px 14px;
  border-radius: 0;
  transition: all 0.2s ease;
}

.btnOTP svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

.btnOTP.small svg {
  width: 14px;
  height: 14px;
}

.btnOTP.outline {
  background: transparent;
  color: #4A463F;
  border: 1.5px solid #4A463F;
}

.btnOTP:hover {
  cursor: pointer;
  background: #3a362e;
  border-color: #3a362e;
  color: #ffffff;
}

.btnOTP.outline:hover {
  background: var(--color-bg);
  color: #3a362e;
}

.btnOTP.loading {
  opacity: 0.7;
  pointer-events: none;
}

.otp-resend-loader {
  width: 32px;
  height: 32px;
  border: 3px solid #ccc;
  border-top-color: #4A463F;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 10px auto;
  display: none;
}

.input-error {
  border: 2px solid red !important;
  box-shadow: none !important;
}

.loader {
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-left: 6px;
}


.otp-timer {
  margin-top: 10px;
  font-size: 14px;
  color: var(--color-muted);
  text-align: center;
}

.btnOTP.small {
  padding: 6px 12px;
  font-size: 13px;
  margin: 3px;
}


#stage1 {
  text-align: center;
}

.otp-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.otp-input,
.prop-otp-input {
  width: 46px;
  height: 56px;
  text-align: center;
  font-size: 24px;
  font-family: 'Outfit', 'Inter', 'Tajawal', monospace;
  font-weight: 700;
  color: var(--color-ink);
  background-color: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: 0;
  outline: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.otp-input:hover,
.prop-otp-input:hover {
  border-color: #cbd5e0;
  background-color: var(--color-bg);
}

.otp-input:focus,
.prop-otp-input:focus {
  border-color: #4A463F;
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(74, 70, 63, 0.15), inset 0 1px 2px rgba(0, 0, 0, 0.01);
  transform: translateY(-2px);
}

.otp-input.otp-error,
.prop-otp-input.otp-error {
  border-color: #e53e3e;
  background-color: #fff5f5;
  box-shadow: 0 0 0 4px rgba(229, 62, 62, 0.15);
}

.shake {
  animation: shakeAnim 0.4s;
}

@keyframes shakeAnim {
  0% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  50% {
    transform: translateX(5px);
  }

  75% {
    transform: translateX(-5px);
  }

  100% {
    transform: translateX(0);
  }
}

.success-toast {
  background: #28a745 !important;
  z-index: 9999999 !important;
}

.otp-toast {
  position: fixed;
  text-align: center;
  top: 20%;
  left: 50%;
  width: 270px;
  transform: translateX(-50%);
  background: #d9534f;
  color: #fff;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 16px;
  z-index: 999999;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.otp-toast.show {
  opacity: 1;
}

/* ====== publication page ====== */
.center {
  text-align: center;
  padding: 20px;
}

.research-table tr:hover td {
  background-color: rgba(0, 79, 163, 0.08);
}



.close,
#closeModal {
  position: absolute;
  top: 14px;
  left: 18px;
  font-size: 20px;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ink);
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.close:hover,
#closeModal:hover {
  background: #4A463F;
  color: #ffffff;
  border-color: #4A463F;
}



.research-page {
  animation: fadeIn 0.4s ease;
}

.section-title {
  font-size: 22px;
  color: var(--brand-gray);
  font-weight: 700;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--brand-gray);
  padding-bottom: 6px;
}

.book-modal table.modal-details {
  max-width: 500px;
}


/* ====== library page ====== */
.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.filter-tab {
  background: #fff;
  border: 1px solid var(--border);
  color: #4b5563;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-family: "Tajawal", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-tab:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.filter-tab.active {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
}

/* Filter tabs rendered inside the sidebar menu (library page) look like menu links instead of pills */
.side .menu .catalog-filters {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 0;
}

.side .menu .filter-tab {
  display: block;
  width: 100%;
  text-align: right;
  background: none;
  border: none;
  border-bottom: 1px solid #f1f5f9;
  border-radius: 0;
  padding: 11px 16px;
  color: #475569;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 500;
}

.side .menu .filter-tab:last-child {
  border-bottom: none;
}

.side .menu .filter-tab:hover {
  background-color: var(--color-bg);
  color: var(--color-orange-ink);
}

.side .menu .filter-tab.active {
  background-color: #b5560c;
  border-color: #b5560c;
  color: #ffffff;
  font-weight: 600;
}

.catalog-hint {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.catalog-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.6rem;
  margin-bottom: 0.25rem;
}

.latest-books-chip {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--brand-blue);
  padding: 0.42rem 0.95rem;
  border-radius: 8px;
  font-family: "Cairo", "Tajawal", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease-in-out;
}

.latest-books-chip i {
  color: #b45309;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.latest-books-chip:hover {
  background: var(--color-bg);
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  box-shadow: 0 2px 5px rgba(11, 54, 80, 0.08);
}

.latest-books-chip.active {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(11, 54, 80, 0.18);
}

.latest-books-chip.active i {
  color: #fde047;
}

.new-book-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 4px;
  margin-right: 6px;
  margin-left: 4px;
}

.results-count {
  font-size: 0.88rem;
  color: var(--muted);
}

.results-count strong {
  color: var(--brand-blue);
}

.clear-filter-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--brand-blue);
  font-family: "Tajawal", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.clear-filter-btn:hover {
  color: #072538;
}

.library-list {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 1.25rem;
}

.spinner {
  width: 30px;
  height: 30px;
  border: 3px solid #ddd;
  border-top: 3px solid var(--brand-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 10px auto;
}

.catalog-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 0.25rem;
  border-bottom: 1px solid var(--border);
  border-inline-start: 3px solid var(--brand-blue);
  padding-inline-start: 0.9rem;
  transition: background-color 0.15s ease;
}

.catalog-row:last-child {
  border-bottom: none;
}

.catalog-row:hover {
  background-color: var(--color-bg);
}

.catalog-row.type-thesis {
  border-inline-start-color: #6b4c8a;
}

.catalog-row.type-journal {
  border-inline-start-color: var(--brand-gold);
}

.catalog-row.type-manuscript {
  border-inline-start-color: #8a6a3c;
}

.catalog-row-cover-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.catalog-row-cover {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #f1f5f9;
  color: #94a3b8;
  font-size: 1rem;
  overflow: hidden;
}

.catalog-row-cover img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-row-cover.has-cover {
  border-color: transparent;
  background: none;
}

.catalog-row-cover.has-cover img {
  display: block;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.catalog-row-cover.has-cover img:hover {
  transform: scale(1.05);
  opacity: 0.92;
}

.catalog-row-cover.has-cover i {
  display: none;
}

/* ====== cover image lightbox ====== */
#coverLightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#coverLightbox.hidden {
  display: none;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-content img {
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -38px;
  left: 0;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  color: var(--brand-gold);
}

.catalog-row-main {
  flex: 1 1 auto;
  min-width: 0;
}

.catalog-title {
  margin: 0 0 0.3rem;
  color: var(--brand-blue);
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.5;
  text-align: right;
}

.catalog-author {
  margin: 0 0 0.2rem;
  color: #374151;
  font-size: 0.92rem;
  width: fit-content;
}

.catalog-author.clickable {
  cursor: pointer;
}

.catalog-author.clickable:hover {
  color: var(--brand-blue);
  text-decoration: underline;
}

.catalog-detail {
  margin: 0 0 0.2rem;
  color: #6b7280;
  font-size: 0.85rem;
}

.catalog-subject {
  margin: 0;
  color: #9aa5b1;
  font-size: 0.82rem;
}

.catalog-sep {
  margin: 0 0.3rem;
}

.catalog-row-side {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}

.cite-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--brand-blue);
  color: var(--brand-blue);
  padding: 3px 11px;
  border-radius: 4px;
  font-family: "Tajawal", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cite-btn i {
  font-size: 0.7rem;
}

.cite-btn:hover {
  background: var(--brand-blue);
  color: #fff;
}

.cite-btn-wrap {
  display: inline-block;
  cursor: not-allowed;
}

.cite-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* ====== citation modal ====== */
#citationModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(3px);
}

#citationModal.hidden {
  display: none;
}

#citationModal .modal-content {
  background: #fff;
  border-radius: 12px;
  max-width: 640px;
  width: 92%;
  padding: 28px 30px;
  text-align: right;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  max-height: 85vh;
  overflow-y: auto;
}

.citation-style-label {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  direction: ltr;
  text-align: center;
  margin-bottom: 0.4rem;
}

#citationTitle {
  color: var(--brand-blue);
  font-family: 'Cairo', sans-serif;
  font-size: 1.1rem;
  margin: 0 0 1.25rem;
  padding-inline-end: 20px;
}

.citation-block {
  margin-bottom: 1.5rem;
}

.citation-block:last-child {
  margin-bottom: 0;
}

.citation-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.citation-label {
  font-weight: 700;
  color: var(--brand-gray);
  font-size: 0.95rem;
}

.citation-copy-btn {
  background: none;
  border: 1px solid var(--border);
  color: #4b5563;
  padding: 3px 12px;
  border-radius: 4px;
  font-family: "Tajawal", sans-serif;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.citation-copy-btn:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.citation-page-label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.citation-page-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: "Tajawal", sans-serif;
  font-size: 0.9rem;
  direction: rtl;
  margin-bottom: 0.6rem;
}

.citation-page-input:focus {
  border-color: var(--brand-blue);
  outline: none;
}

.citation-text {
  background: var(--color-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  margin: 0;
  color: #1f2937;
  font-size: 0.92rem;
  line-height: 1.9;
}

.subj-pill {
  background: var(--brand-blue);
  color: #fff;
  font-size: 0.8rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
  font-weight: 500;
  direction: rtl;
}

.pagination-library {
  align-items: center;
  gap: 0.4rem;
  margin: 1.5rem 0;
  font-family: "Tajawal", sans-serif;
  direction: rtl;
  flex-wrap: wrap;
}

.pagination-library .page-btn {
  background: #f4f6f9;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.pagination-library .page-btn:hover:not(:disabled) {
  background: #e8edf8;
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.pagination-library .page-btn.active {
  background: var(--brand-blue);
  color: #fff;
  border-color: var(--brand-blue);
}

.pagination-library .page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-library span {
  color: #777;
  user-select: none;
  padding: 0 0.3rem;
}

.library-summary {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2.25rem 2rem;
  margin-top: 0 !important;
  margin-bottom: 2rem;
}

.library-summary .summary-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.summary-text {
  flex: 1 1 45%;
  min-width: 280px;
}

.library-summary h1 {
  font-family: 'Cairo', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--brand-blue);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 0.5rem;
}

.library-summary p {
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.9;
  text-align: justify;
  margin: 0;
}

.summary-stats {
  flex: 1 1 45%;
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 1rem;
  min-width: 260px;
  padding-inline-start: 2rem;
  border-inline-start: 1px solid var(--border);
}

.stat-box {
  background: var(--color-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.1rem 0.75rem;
  text-align: center;
}

.stat-number {
  display: block;
  font-family: 'Cairo', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 0.2rem;
}

.stat-number.stat-empty {
  font-size: 0.82rem;
  font-weight: 600;
  color: #94a3b8;
}

.stat-label {
  font-size: 0.85rem;
  color: #6b7280;
}

@media (max-width: 640px) {
  .summary-stats {
    border-inline-start: none;
    padding-inline-start: 0;
  }
}

.type-badge {
  display: inline-block;
  background: rgba(11, 54, 80, 0.07);
  color: var(--brand-blue);
  border: 1px solid rgba(11, 54, 80, 0.18);
  padding: 3px 11px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.type-badge.thesis {
  background: rgba(107, 76, 138, 0.08);
  color: #6b4c8a;
  border-color: rgba(107, 76, 138, 0.22);
}

.type-badge.journal {
  background: rgba(191, 159, 94, 0.14);
  color: #8a6a1f;
  border-color: rgba(191, 159, 94, 0.3);
}

.type-badge.manuscript {
  background: rgba(138, 106, 60, 0.1);
  color: #8a6a3c;
  border-color: rgba(138, 106, 60, 0.25);
}

.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  vertical-align: middle;
  margin-inline-start: 6px;
}

.availability-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.availability-badge.available {
  background: rgba(56, 170, 58, 0.1);
  color: #2a8a2c;
}

.availability-badge.borrowed {
  background: rgba(191, 159, 94, 0.14);
  color: #8a6a1f;
}

.availability-badge.unavailable {
  background: rgba(220, 38, 38, 0.08);
  color: #c0392b;
}

/* ====== news page ====== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.news-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.news-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1;
  padding: 5px 18px;
}

.news-text {
  flex-grow: 1;
}

.news-body h3 {
  font-size: 18px;
  color: var(--brand-blue);
  margin-bottom: 5px;
  text-align: right;
}

.news-body .date {
  color: #777;
  font-size: 14px;
  margin-top: 0px;
  margin-bottom: 10px;
  text-align: right;
}

.news-body p {
  color: #444;
  font-size: 15px;
  line-height: 1.7;
  text-align: justify;
  padding-bottom: 5px;
  margin: 0px;
}

.news-body .btn {
  background: var(--brand-blue);
  color: white;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.25s;
}

.news-body .btn:hover {
  background: #fff;
}

.read-more-btn {
  margin-top: 15px;
  align-self: flex-end;
  background: var(--brand-blue);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.3s;
}

.read-more-btn:hover {
  background: #fff;
  color: var(--brand-blue);
}

.pagination-news {
  margin-top: 30px;
}

.pagination-news .page-btn {
  background: #eee;
  border: none;
  margin: 0 5px;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.25s;
}

.pagination-news .page-btn:hover {
  background: var(--brand-blue);
  color: #fff;
}

.pagination-news .page-btn.active {
  background: var(--brand-blue);
  color: #fff;
  font-weight: bold;
}

.news-full img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.news-full h1 {
  color: var(--brand-blue);
  margin-bottom: 10px;
}

.news-full .content {
  line-height: 1.8;
  color: #333;
  font-size: 16px;
}

.single-main-image {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 20px;
}

.news-gallery img:active {
  transform: none;
  box-shadow: none;
}

.news-article {
  padding: 40px 0;
}

.news-full {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.article-title {
  color: var(--brand-blue);
  margin-bottom: 10px;
  font-size: 26px;
  font-weight: bold;
  text-align: right;
}

.news-full .date {
  color: #777;
  font-size: 14px;
  margin-bottom: 20px;
  text-align: right;
}

.article-body {
  color: #333;
  line-height: 1.9;
  font-size: 17px;
  text-align: justify;
  border-bottom: 1px solid #eee;
  padding-bottom: 25px;
  margin-bottom: 25px;
}

.news-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 15px;
  margin-top: 10px;
}

.news-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: zoom-in;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.news-gallery.single img {
  height: auto;
  max-height: 400px;
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: zoom-out;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
}

.back-btn {
  display: inline-block;
  margin-top: 25px;
  background: #f3f3f3;
  color: #333;
  padding: 8px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s;
}

.back-btn:hover {
  background: var(--brand-blue);
  color: white;
}

.news-search {
  text-align: center;
  margin-bottom: 20px;
}

.news-search input {
  width: 80%;
  max-width: 500px;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  text-align: right;
  transition: 0.3s;
}

.news-search input:focus {
  border-color: var(--brand-blue);
  outline: none;
  box-shadow: 0 0 6px rgba(0, 79, 163, 0.2);
}

.no-results {
  text-align: center;
  font-size: 18px;
  color: #777;
  margin-top: 30px;
}

/* ======= programs + fees pages ====== */
.program-card,
.fees-card,
.admission-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #d1d9e0;
  padding: 35px 30px;
  width: 100%;
  box-sizing: border-box;
  animation: fadeIn 0.3s ease;
}

.program-card h2,
.fees-card h2,
.admission-card h2 {
  font-size: 1.8rem;
  margin-bottom: .2rem;
}

.program-card h2,
.admission-card h2 {
  color: var(--brand-blue);
}

.fees-card h2 {
  color: var(--brand-gray);
}

.program-card h4,
.fees-card h4,
.admission-card h4 {
  color: #555;
  margin-bottom: 1.5rem;
}

.program-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  text-align: justify;
}

.program-table th {
  text-align: right;
  background: #f4f6f9;
  padding: 10px;
  font-weight: 700;
  color: var(--brand-blue);
  vertical-align: top;
  border: 1px solid #e5e8eb;
  width: 200px;
}

.program-table td {
  padding: 10px 15px;
  border: 1px solid #e5e8eb;
  line-height: 1.6;
}

.program-table ol {
  margin: 0;
}

.program-table ul {
  margin: 0;
  padding-right: 20px;
}

.program-table ul li {
  margin-bottom: 5px;
}

.program-table h4 {
  margin-top: 5px;
  margin-bottom: 5px;
}

/* ======= fees table: program x fee-type comparison grid ====== */
.fees-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: .95rem;
}

.fees-table th,
.fees-table td {
  border: 1px solid #e5e8eb;
  padding: 10px;
  text-align: center;
  vertical-align: middle;
}

.fees-table thead th {
  background: var(--brand-blue);
  color: #eaf1f6;
  font-weight: 700;
  font-size: .88rem;
}

.fees-table thead th .unit {
  display: block;
  font-weight: 400;
  opacity: .8;
  font-size: .78em;
  margin-top: 2px;
}

.fees-table tbody th[scope="row"] {
  background: #f4f6f9;
  color: var(--brand-blue);
  text-align: right;
  font-weight: 700;
  white-space: nowrap;
}

.fees-table tbody th .opt {
  display: block;
  font-weight: 400;
  color: #6b7280;
  font-size: .8em;
}

.fees-table td.amt {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.fees-table td.extra {
  color: var(--brand-orange);
  font-weight: 600;
  font-size: .92em;
}

.fees-table td.dash {
  color: #b3b9c0;
}

.fees-table tbody tr:hover td,
.fees-table tbody tr:hover th[scope="row"] {
  background: #f4f6f9;
}

.actions {
  text-align: center;
  margin-top: 20px;
}

.loading {
  opacity: 0.6;
  pointer-events: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ====== addmission requirements page ====== */


#resetForm {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
  background: none;
  margin-top: 12px;
  color: #a0aec0;
  padding: 6px 4px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
}

#resetForm:hover {
  cursor: pointer;
  color: red;
}

.resetfield {
  display: flex;
  justify-content: center;
  align-items: center;
}

.downloadPDFfield {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}

#downloadPDF.is-loading {
  opacity: 0.75;
  cursor: not-allowed;
}

.btn-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top: 2px solid #fff;
  border-radius: 50%;
  vertical-align: middle;
  margin-inline-end: 4px;
  animation: spin 0.8s linear infinite;
}



#admissionForm {
  width: 100%;
  max-width: 650px;
  margin: 0px auto 0;
  font-family: inherit;
}

#admissionForm label {
  display: block;
  margin-top: 18px;
  font-weight: 700;
  color: var(--brand-blue);
}

#admissionForm select,
#admissionForm input {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fafafa;
  transition: border-color 0.3s ease, background 0.3s ease;
}

#admissionForm select:focus,
#admissionForm input:focus {
  border-color: var(--brand-blue);
  background: #fff;
  outline: none;
}

#admissionForm select {
  text-align: right;
  direction: rtl;
  background-color: #fff;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 8L0 0h12L6 8z' fill='%230057b7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  background-size: 12px 8px;
  padding-left: 30px;
}

#results {
  max-width: 650px;
  margin: 25px auto;
  background: #f9fbfe;
  border: 1px solid #d6e4ff;
  border-radius: 12px;
  padding: 20px 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

#results h3 {
  margin-bottom: 10px;
  color: var(--brand-blue);
}

#results ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#results li {
  background: #e8f0ff;
  margin: 8px 0;
  padding: 10px 12px;
  border-radius: 6px;
  border-right: 4px solid var(--brand-blue);
  font-size: 15px;
}

/* ====== Document Hover Previews ====== */
#results li.has-sample {
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#results li.has-sample:hover {
  background: #dbecff;
  border-right-color: #003a8c;
  transform: translateX(-4px);
}

.sample-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  background: rgba(0, 87, 183, 0.1);
  color: #0057b7;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  margin-left: 10px;
  margin-right: 10px;
  direction: ltr;
}

#results li.has-sample:hover .sample-badge {
  background: #0057b7;
  color: #fff;
}

/* Floating Tooltip styling */
#document-preview-tooltip {
  position: fixed;
  z-index: 10000;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 87, 183, 0.2);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  width: 280px;
  display: none;
  opacity: 0;
  transform: scale(0.95) translateY(10px);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

#document-preview-tooltip.show {
  display: block;
  opacity: 1;
  transform: scale(1) translateY(0);
}

#document-preview-tooltip img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  opacity: 1;
  transition: opacity 0.15s ease;
}

#document-preview-tooltip img.loading {
  opacity: 0;
}

#document-preview-tooltip .tooltip-title {
  font-size: 13px;
  font-weight: bold;
  color: var(--color-ink);
  margin-top: 8px;
  text-align: center;
}

#document-preview-tooltip .tooltip-hint {
  font-size: 10px;
  color: #666;
  margin-top: 4px;
  text-align: center;
}

/* Modal lightbox styling for mobile */
#document-preview-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 10100;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#document-preview-modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content-card {
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  max-width: 90%;
  max-height: 85%;
  position: relative;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#document-preview-modal.show .modal-content-card {
  transform: scale(1);
}

.modal-content-card img {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  opacity: 1;
  transition: opacity 0.15s ease;
}

.modal-content-card img.loading {
  opacity: 0;
}

.modal-close-btn {
  position: absolute;
  top: -15px;
  right: -15px;
  background: #ff4d4f;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: background 0.2s ease, transform 0.2s ease;
}

.modal-close-btn:hover {
  background: #ff7875;
  transform: scale(1.1);
}

.modal-title {
  margin-top: 15px;
  font-size: 16px;
  font-weight: bold;
  color: var(--color-ink);
  text-align: center;
}

.modal-subtitle {
  margin-top: 5px;
  font-size: 12px;
  color: #666;
  text-align: center;
}

/* Hide SEO anchor link styling to look like plain text */
.thesis-link,
.research-link {
  color: inherit;
  text-decoration: none;
}

.thesis-link:hover,
.research-link:hover {
  color: inherit;
  text-decoration: none;
}

/* Redesigned Graduate Modal and OTP Input Elements */
.method-tabs {
  display: flex;
  background: #ffffff;
  border-radius: 0;
  padding: 0;
  border: 1px solid var(--color-border);
  margin-bottom: 20px;
  justify-content: center;
  gap: 0;
  width: 100%;
  box-sizing: border-box;
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-muted);
  cursor: pointer;
  border-radius: 0;
  transition: all 0.2s ease;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tab-btn:hover {
  color: var(--color-ink);
}

.tab-btn.active {
  background: #4A463F;
  color: #ffffff;
  box-shadow: none;
}

.input-group {
  margin-bottom: 15px;
  width: 100%;
}

.whatsapp-input-wrapper {
  display: flex;
  gap: 8px;
  direction: ltr;
  width: 100%;
  box-sizing: border-box;
}

.country-select {
  width: 110px;
  padding: 10px;
  border-radius: 0;
  border: 1px solid #cbd5e0;
  font-size: 15px;
  background-color: #fff;
  color: #2d3748;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.phone-input-field {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border-radius: 0;
  border: 1px solid #cbd5e0;
  font-size: 15px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.email-input-field {
  width: 100%;
  padding: 10px 14px;
  border-radius: 0;
  border: 1px solid #cbd5e0;
  font-size: 15px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.email-input-field:focus,
.phone-input-field:focus,
.country-select:focus {
  border-color: #4A463F;
  box-shadow: 0 0 0 3px rgba(74, 70, 63, 0.15);
}

.email-input-field.input-error,
.phone-input-field.input-error {
  border-color: #e53e3e !important;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.15) !important;
}

/* LTR / English Hero Alignment & Gradient */
[dir="ltr"] .hero-card,
html[lang="en"] .hero-card {
  text-align: left !important;
  margin-right: auto !important;
  margin-left: 0 !important;
}

[dir="ltr"] .hero-card .title,
html[lang="en"] .hero-card .title,
[dir="ltr"] .hero-card .subtitle,
html[lang="en"] .hero-card .subtitle,
[dir="ltr"] .hero-features,
html[lang="en"] .hero-features {
  text-align: left !important;
}

[dir="ltr"] .feat-item,
html[lang="en"] .feat-item {
  align-items: center !important;
  text-align: center !important;
}

[dir="ltr"] .hero-actions,
html[lang="en"] .hero-actions {
  justify-content: flex-start !important;
}

/* LTR Icon Spacing Adjustments */
[dir="ltr"] i,
html[lang="en"] i,
[dir="ltr"] .fa-solid,
html[lang="en"] .fa-solid,
[dir="ltr"] .fa-brands,
html[lang="en"] .fa-brands {
  margin-left: 0 !important;
  margin-right: 8px !important;
}

/* ====== LTR Overrides for Library Page ====== */
[dir="ltr"] .side .menu .filter-tab,
html[lang="en"] .side .menu .filter-tab {
  text-align: left !important;
}

[dir="ltr"] .library-summary,
html[lang="en"] .library-summary {
  text-align: left !important;
}

[dir="ltr"] .library-summary h1,
html[lang="en"] .library-summary h1,
[dir="ltr"] .library-summary p,
html[lang="en"] .library-summary p {
  text-align: left !important;
}

[dir="ltr"] .catalog-title,
html[lang="en"] .catalog-title {
  text-align: left !important;
}

[dir="ltr"] .catalog-author,
html[lang="en"] .catalog-author {
  text-align: left !important;
}

[dir="ltr"] .catalog-detail,
html[lang="en"] .catalog-detail {
  text-align: left !important;
}

[dir="ltr"] .catalog-subject,
html[lang="en"] .catalog-subject {
  text-align: left !important;
}

[dir="ltr"] .catalog-hint,
html[lang="en"] .catalog-hint {
  text-align: left !important;
}

[dir="ltr"] #citationModal .modal-content,
html[lang="en"] #citationModal .modal-content {
  text-align: left !important;
}

/* ====== LTR Overrides for Admission, Programs & Fees ====== */
[dir="ltr"] .program-card,
html[lang="en"] .program-card,
[dir="ltr"] .fees-card,
html[lang="en"] .fees-card {
  text-align: left !important;
  direction: ltr !important;
}

[dir="ltr"] .admission-card,
html[lang="en"] .admission-card {
  text-align: right !important;
  direction: rtl !important;
}

[dir="ltr"] .program-table th,
html[lang="en"] .program-table th {
  text-align: left !important;
}

[dir="ltr"] .program-table td,
html[lang="en"] .program-table td {
  text-align: left !important;
}

[dir="ltr"] .program-table ul,
html[lang="en"] .program-table ul {
  padding-left: 20px !important;
  padding-right: 0 !important;
}

[dir="ltr"] .fees-table tbody th[scope="row"],
html[lang="en"] .fees-table tbody th[scope="row"] {
  text-align: left !important;
  white-space: normal !important;
}

[dir="ltr"] #admissionForm,
html[lang="en"] #admissionForm {
  text-align: right !important;
  direction: rtl !important;
}

[dir="ltr"] #admissionForm label,
html[lang="en"] #admissionForm label {
  text-align: right !important;
  direction: rtl !important;
}

[dir="ltr"] #admissionForm select,
html[lang="en"] #admissionForm select,
[dir="ltr"] #admissionForm input,
html[lang="en"] #admissionForm input {
  text-align: right !important;
  direction: rtl !important;
}

/* ====== LTR Overrides for Calendar Page ====== */
[dir="ltr"] .calendar-container,
html[lang="en"] .calendar-container {
  text-align: left !important;
  direction: ltr !important;
}

[dir="ltr"] .calendar-container h1,
html[lang="en"] .calendar-container h1 {
  text-align: center !important;
}

[dir="ltr"] .calendar-container tr:not(.visa-row-highlight) td:last-child,
html[lang="en"] .calendar-container tr:not(.visa-row-highlight) td:last-child {
  text-align: left !important;
}

[dir="ltr"] .calendar-container tr.visa-row-highlight td:first-of-type,
html[lang="en"] .calendar-container tr.visa-row-highlight td:first-of-type {
  border-left: 2px solid var(--brand-orange) !important;
  border-right: none !important;
}

[dir="ltr"] .calendar-container tr.visa-row-highlight td:last-child,
html[lang="en"] .calendar-container tr.visa-row-highlight td:last-child {
  border-right: 2px solid var(--brand-orange) !important;
  border-left: none !important;
}

[dir="ltr"] .visa-note-container,
html[lang="en"] .visa-note-container {
  text-align: left !important;
}

[dir="ltr"] .visa-note-label,
html[lang="en"] .visa-note-label {
  margin-right: 4px !important;
  margin-left: 0 !important;
}

[dir="ltr"] .visa-countries-tooltip,
html[lang="en"] .visa-countries-tooltip {
  text-align: left !important;
  direction: ltr !important;
}

[dir="ltr"] footer img,
html[lang="en"] footer img {
  margin-left: 0 !important;
  margin-right: 8px !important;
}

[dir="ltr"] .share-btn i,
html[lang="en"] .share-btn i,
[dir="ltr"] .share-buttons i,
html[lang="en"] .share-buttons i {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* LTR Nav Logo Separator Border */
[dir="ltr"] .nav-logo-item,
html[lang="en"] .nav-logo-item {
  border-left: none !important;
  border-right: 1px solid var(--border) !important;
  margin-left: 0 !important;
  margin-right: 12px !important;
  padding-right: 12px !important;
}

[dir="ltr"] .nav-logo-item>a,
html[lang="en"] .nav-logo-item>a {
  padding-right: 0 !important;
  padding-left: 0 !important;
}

/* LTR Mega Dropdown Alignment */
[dir="ltr"] nav ul li .mega-dropdown,
html[lang="en"] nav ul li .mega-dropdown,
[dir="ltr"] nav ul li .mega-dropdown-programs,
html[lang="en"] nav ul li .mega-dropdown-programs {
  right: auto !important;
  left: 0 !important;
  direction: ltr !important;
}