/* ============================================================
   Red Sea University — Main Stylesheet
   Design System: Navy + Teal + Gold | RTL-first | Bootstrap 5
   Base design system adapted from the approved reference template;
   extended below with components needed for the real, database-driven
   inner pages (faculties, programs, staff, laws, news...).
   ============================================================ */

/* Cairo is loaded in master.blade.php */

/* ─── CSS Variables ─────────────────────────────────────── */
:root {
  --navy:        #0a2342;
  --navy-dark:   #061628;
  --navy-mid:    #0d3d6e;
  --teal:        #0e7c6e;
  --teal-light:  #12a08f;
  --teal-pale:   #e8f4f1;
  --gold:        #c8942a;
  --gold-light:  #e8b843;
  --gold-pale:   #fef9e7;
  --white:       #ffffff;
  --light:       #f5f7f6;
  --border:      #dde5e3;
  --text:        #1a2e3b;
  --muted:       #5a7184;
  --radius:      10px;
  --shadow-sm:   0 2px 12px rgba(10,35,66,.08);
  --shadow-md:   0 6px 24px rgba(10,35,66,.12);
  --shadow-lg:   0 12px 40px rgba(10,35,66,.16);
  --transition:  .25s ease;
}

/* ─── Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', sans-serif !important;
  color: var(--text);
  background: var(--white);
  font-size: 15px;
  line-height: 1.7;
  text-align: justify;
}

[dir="rtl"] body, body.rtl { direction: rtl; font-family: 'Cairo', sans-serif !important; }
[dir="ltr"] body, body.ltr { direction: ltr; font-family: 'Cairo', sans-serif !important; }

/* language-aware alignment: default to the reading start on both sides rather
   than a physical left/right, so English pages don't inherit Arabic-only spacing */
p, .text-muted-custom, .news-card-body p, .value-card p, .research-card p,
.dept-card .info, .staff-info .role, .about-hero .about-text, .hero-desc { text-align: start; }
.value-card, .step-card, .college-card, .quick-link-item, .text-center { text-align: center; }
dd, dt, .contact-lbl, .contact-val { text-align: start; }

h1,h2,h3,h4,h5,h6 {
  font-family: 'Cairo', sans-serif;
  line-height: 1.3;
  color: var(--navy);
}
body.ltr h1, body.ltr h2, body.ltr h3, body.ltr h4 { font-family: 'Cairo', sans-serif; }

a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal-light); }
img { max-width: 100%; height: auto; }
::selection{ background: var(--gold-light); color: var(--navy); }

.skip-link{
  position:absolute; inset-inline-start:-999px; top:0; z-index:2000;
  background:var(--gold); color:var(--navy); padding:10px 18px; font-weight:700; border-radius:0 0 8px 8px;
}
.skip-link:focus{ inset-inline-start:0; }

/* ─── Utility Classes ───────────────────────────────────── */
.text-gold  { color: var(--gold-light) !important; }
.text-teal  { color: var(--teal) !important; }
.text-navy  { color: var(--navy) !important; }
.text-muted-custom { color: var(--muted) !important; }
.bg-navy    { background: var(--navy) !important; }
.bg-teal    { background: var(--teal) !important; }
.bg-gold    { background: var(--gold) !important; }
.bg-light-custom { background: var(--light) !important; }
.font-serif { font-family: 'Cairo',sans-serif !important; }

.section-py { padding: 5rem 0; }
.section-py-sm { padding: 3rem 0; }

/* ─── Section Header ────────────────────────────────────── */
.section-tag {
  display: inline-block;
  background: var(--teal-pale);
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  letter-spacing: .5px;
  margin-bottom: .8rem;
}
.section-tag.gold { background: var(--gold-pale); color: var(--gold); }
.section-tag.white { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.9); }
.section-title { font-size: 2.2rem; color: var(--navy); margin-bottom: .6rem; }
.section-title.white { color: var(--white); }
.divider { width: 52px; height: 3px; background: var(--gold); border-radius: 2px; margin: .8rem auto 0; }
.divider.start { margin-inline: 0; }

/* ─── Buttons ───────────────────────────────────────────── */
.btn-rsu-primary {
  background: var(--gold); color: var(--navy); border: none; padding: 12px 30px; border-radius: 8px;
  font-weight: 700; font-size: 14px; font-family: inherit; transition: var(--transition); cursor: pointer; display: inline-block;
}
.btn-rsu-primary:hover { background: var(--gold-light); color: var(--navy); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(200,148,42,.35); }
.btn-rsu-outline {
  background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.45); padding: 11px 28px; border-radius: 8px;
  font-weight: 500; font-size: 14px; font-family: inherit; transition: var(--transition); cursor: pointer; display: inline-block;
}
.btn-rsu-outline:hover { border-color: var(--white); background: rgba(255,255,255,.1); color: var(--white); }
.btn-rsu-outline.navy { color: var(--navy); border-color: var(--border); }
.btn-rsu-outline.navy:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-pale); }
.btn-rsu-teal {
  background: var(--teal); color: var(--white); border: none; padding: 12px 30px; border-radius: 8px;
  font-weight: 700; font-size: 14px; font-family: inherit; transition: var(--transition); cursor: pointer; display: inline-block;
}
.btn-rsu-teal:hover { background: var(--teal-light); color: var(--white); transform: translateY(-1px); }

/* ─── Topbar ────────────────────────────────────────────── */
.topbar { background: var(--navy-dark); padding: 7px 0; font-size: 12.5px; color: rgba(255,255,255,.55); border-bottom: 1px solid rgba(255,255,255,.06); }
.topbar a { color: rgba(255,255,255,.55); }
.topbar a:hover { color: var(--gold-light); }
.topbar-divider { margin: 0 10px; opacity: .3; }
.topbar-social a{ display:inline-flex; width:24px; height:24px; border-radius:50%; align-items:center; justify-content:center; background:rgba(255,255,255,.06); margin-inline-start:6px; font-size:11px; }
.topbar-social a:hover{ background:var(--gold); color:var(--navy); }

/* ─── Navbar ────────────────────────────────────────────── */
.navbar-rsu { background: var(--navy); padding: 0; min-height: 68px; box-shadow: 0 2px 16px rgba(10,35,66,.25); position: sticky; top: 0; z-index: 1040; border-bottom: 1px solid rgba(200,148,42,.25); }
/* Brand always sits on the visual left in Arabic and the visual right in English —
   a deliberate reversal of the natural logical-start position, requested explicitly. */
.navbar-rsu > .container { flex-direction: row-reverse; }
.navbar-rsu .navbar-brand { display: flex; align-items: center; gap: 12px; padding: 10px 0; margin: 0; }
.logo-emblem {
  width: 48px; height: 48px; border-radius: 50%; background: var(--white); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden; border: 2px solid var(--gold);
}
.logo-emblem img{ width:100%; height:100%; object-fit:contain; }
.logo-text-ar { font-family: 'Cairo', sans-serif; font-size: 16px; color: var(--white); font-weight: 700; line-height: 1.2; display: block; }
.logo-text-en { font-size: 10px; color: rgba(255,255,255,.45); letter-spacing: 1px; text-transform: uppercase; display: block; }

.navbar-rsu .navbar-nav { gap: 2px; }
.navbar-rsu .nav-link {
  color: rgba(255,255,255,.82) !important; font-size: 13.5px; font-weight: 600; padding: 22px 14px !important;
  position: relative; transition: var(--transition); white-space: nowrap;
}
.navbar-rsu .nav-link::after{
  content:""; position:absolute; inset-inline:14px; bottom:14px; height:2px; background:var(--gold);
  transform:scaleX(0); transition:transform .2s ease; transform-origin:center;
}
.navbar-rsu .nav-link:hover, .navbar-rsu .nav-link.active { color: var(--gold-light) !important; }
.navbar-rsu .nav-link:hover::after, .navbar-rsu .nav-link.active::after { transform:scaleX(1); }
.navbar-rsu .nav-item.dropdown.show .nav-link { color: var(--gold-light) !important; }
.navbar-rsu .dropdown-toggle::after{
  display: inline-block; width: 9px; height: 9px; margin-inline-start: 6px; vertical-align: 1px;
  border: none; content: "";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23e8b843' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M2.5 4.5l3.5 3.5 3.5-3.5'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat; background-position: center;
  transition: transform .2s ease;
}
.navbar-rsu .dropdown.show > .dropdown-toggle::after{ transform: rotate(180deg); }

.navbar-rsu .dropdown-menu {
  background: var(--navy-mid); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); min-width: 250px; max-width: min(360px, 90vw);
  margin-top: 10px !important; padding: .5rem; border-top: 2px solid var(--gold);
  /* smooth internal scroll for long lists, no visible scrollbar */
  max-height: min(60vh, 420px); overflow-y: auto; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none;
}
.navbar-rsu .dropdown-menu::-webkit-scrollbar{ display:none; }
.navbar-rsu .dropdown-item {
  color: rgba(255,255,255,.78); font-size: 13.5px; padding: 10px 14px; border-radius: 6px; transition: var(--transition);
  white-space: normal; line-height: 1.5; border-inline-start: 2px solid transparent;
}
.navbar-rsu .dropdown-item:hover, .navbar-rsu .dropdown-item:focus { background: rgba(255,255,255,.07); color: var(--gold-light); border-inline-start-color: var(--gold); }
.navbar-rsu .dropdown-divider{ border-color: rgba(255,255,255,.1); }
.navbar-rsu .navbar-toggler { border-color: rgba(255,255,255,.3); padding: 6px 10px; }
.navbar-rsu .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(200,148,42,.35); }
.navbar-rsu .navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }
.lang-btn { background: transparent; border: 1px solid rgba(255,255,255,.3); color: rgba(255,255,255,.7); padding: 5px 14px; border-radius: 20px; font-size: 12.5px; cursor: pointer; transition: var(--transition); font-family: inherit; }
.lang-btn:hover { border-color: var(--gold); color: var(--gold-light); }

/* ─── Visitor counter (now lives in the footer contact column) ─── */
.counter-label { color: rgba(255,255,255,.45); font-size: 12px; }
.digit-box { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 5px; min-width: 28px; height: 36px; display: flex; align-items: center; justify-content: center; font-family: 'Cairo', sans-serif; font-size: 17px; color: var(--gold-light); font-weight: 700; padding-inline:4px; }
.footer-counter{ display:flex; align-items:center; gap:8px; margin-top:10px; }
.footer-counter .digit-box{ min-width:auto; height:30px; padding-inline:10px; font-size:14px; }
.footer-counter .counter-label{ font-size:12px; }

/* ─── Hero ──────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0d3d6e 55%, #0a5a52 100%);
  min-height: 580px; display: flex; align-items: center; position: relative; overflow: hidden; padding: 4rem 0;
  background-size: cover; background-position: center;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.hero::after{ content:''; position:absolute; inset:0; background:linear-gradient(0deg, rgba(6,22,40,.55), rgba(6,22,40,0) 45%); }
.hero .container{ position:relative; z-index:2; }
.hero-badge { display: inline-block; background: rgba(200,148,42,.18); border: 1px solid rgba(200,148,42,.5); color: var(--gold-light); padding: 5px 18px; border-radius: 20px; font-size: 13px; margin-bottom: 1.3rem; }
.hero-title { font-size: 3.2rem; color: var(--white); line-height: 1.25; margin-bottom: 1.2rem; }
.hero-title span { color: var(--gold-light); }
.hero-desc { color: rgba(255,255,255,.72); font-size: 15px; line-height: 1.85; margin-bottom: 2rem; max-width: 520px; }
.hero-stat-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13); border-radius: 14px; padding: 1.8rem; backdrop-filter: blur(10px); }
.hero-stat-card h3 { color: var(--gold-light); font-size: 15px; margin-bottom: 1.1rem; }
.stat-item-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; background: rgba(255,255,255,.05); border-radius: 8px; border: 1px solid rgba(255,255,255,.07); margin-bottom: 8px; }
.stat-item-row:last-child { margin-bottom: 0; }
.stat-item-label { color: rgba(255,255,255,.65); font-size: 13px; }
.stat-item-val { color: var(--white); font-family: 'Cairo',sans-serif; font-size: 19px; font-weight: 700; }
.stat-item-unit { color: var(--gold-light); font-size: 11px; margin-inline-start: 4px; }

/* ─── Stats Bar ─────────────────────────────────────────── */
.stats-strip { background: var(--teal); padding: 1.6rem 0; }
.stats-strip-inner { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: rgba(255,255,255,.18); border-radius: var(--radius); overflow: hidden; max-width: 860px; margin: 0 auto; }
.strip-item { background: var(--teal); padding: 1.4rem 1rem; text-align: center; }
.strip-num { font-family: 'Cairo',sans-serif; font-size: 2.4rem; color: var(--white); font-weight: 700; line-height: 1; }
.strip-lbl { color: rgba(255,255,255,.75); font-size: 12.5px; margin-top: 4px; }

/* ─── Card Base ─────────────────────────────────────────── */
.card-rsu { border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); transition: var(--transition); overflow: hidden; }
.card-rsu:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--teal); }

/* ─── College / Faculty Cards ───────────────────────────── */
.college-card { background: var(--light); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem 1rem; text-align: center; transition: var(--transition); cursor: pointer; text-decoration: none; display: block; }
.college-card:hover { border-color: var(--teal); background: var(--white); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.college-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--teal-pale); display: flex; align-items: center; justify-content: center; font-size: 22px; margin: 0 auto 1rem; overflow:hidden; }
.college-icon img{ width:100%; height:100%; object-fit:contain; padding:6px; }
.college-card h5 { color: var(--navy); font-size: 13px; line-height: 1.5; margin: 0; }

/* ─── Cards carousel (homepage faculties) ───────────────────── */
.rsu-carousel{ position:relative; }
.rsu-carousel-track{
  display:flex; gap:16px; overflow-x:auto; scroll-snap-type:x mandatory; scroll-behavior:smooth;
  padding:6px 2px 18px; scrollbar-width:none; -ms-overflow-style:none;
}
.rsu-carousel-track::-webkit-scrollbar{ display:none; }
.rsu-carousel-track > *{ scroll-snap-align:start; flex:0 0 auto; width:170px; }
.rsu-carousel-nav{
  position:absolute; top:40%; transform:translateY(-50%); width:40px; height:40px; border-radius:50%;
  background:var(--white); border:1px solid var(--border); box-shadow:var(--shadow-md); color:var(--navy);
  display:flex; align-items:center; justify-content:center; cursor:pointer; z-index:5; transition:var(--transition);
}
.rsu-carousel-nav:hover{ background:var(--teal); color:var(--white); border-color:var(--teal); }
.rsu-carousel-nav.prev{ inset-inline-start:-14px; }
.rsu-carousel-nav.next{ inset-inline-end:-14px; }
@media (max-width:575px){ .rsu-carousel-nav{ display:none; } }

.college-detail-card { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--white); transition: var(--transition); height: 100%; }
.college-detail-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.college-header { background: linear-gradient(135deg, var(--navy), var(--navy-mid)); padding: 2rem 1.5rem; text-align: center; }
.college-header .icon { font-size: 40px; display: block; margin-bottom: .8rem; }
.college-header .icon img{ width:64px; height:64px; object-fit:contain; margin:0 auto; display:block; background:#fff; border-radius:50%; padding:6px; }
.college-header h4 { color: var(--white); font-size: 16px; margin-bottom: 4px; }
.college-header .en { color: rgba(255,255,255,.5); font-size: 12px; }
.college-body { padding: 1.5rem; }
.college-body p { color: var(--muted); font-size: 13.5px; line-height: 1.75; margin-bottom: 1rem; }
.college-stat { display: flex; gap: 1rem; flex-wrap: wrap; }
.cstat { background: var(--light); border-radius: 8px; padding: 8px 14px; text-align: center; flex: 1; }
.cstat .cn { font-weight: 700; color: var(--navy); font-size: 16px; font-family: 'Cairo',sans-serif; }
.cstat .cl { color: var(--muted); font-size: 11px; }
.college-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }

/* ─── News Card ─────────────────────────────────────────── */
.news-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--white); transition: var(--transition); }
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.news-card-img { height: 190px; width: 100%; background: linear-gradient(135deg,var(--navy),var(--navy-mid)); display: flex; align-items: center; justify-content: center; font-size: 48px; overflow:hidden; }
.news-card-img img{ width:100%; height:100%; object-fit:cover; }
.news-date { font-size: 12px; color: var(--muted); }
.news-date .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); display: inline-block; margin: 0 6px 2px; vertical-align: middle; }
.news-card-body { padding: 1.3rem; }
.news-card-body h5 { color: var(--navy); font-size: 14.5px; line-height: 1.5; margin-bottom: .6rem; }
.news-card-body h5 a{ color:var(--navy); }
.news-card-body p { color: var(--muted); font-size: 13px; line-height: 1.65; }
.news-link { color: var(--teal); font-size: 13px; font-weight: 700; }
.news-tag { display: inline-block; background: var(--teal-pale); color: var(--teal); font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 12px; margin-bottom: .6rem; }

/* ─── Quick Links ───────────────────────────────────────── */
.quick-link-item { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 1.6rem; text-align: center; text-decoration: none; transition: var(--transition); display: block; }
.quick-link-item:hover { background: rgba(255,255,255,.13); border-color: var(--gold); transform: translateY(-2px); }
.quick-link-item .icon { font-size: 30px; margin-bottom: .7rem; display: block; }
.quick-link-item span { color: rgba(255,255,255,.85); font-size: 14px; font-weight: 500; display: block; }

/* ─── Dean / Speech Section ─────────────────────────────── */
.dean-photo-card { background: linear-gradient(145deg,var(--navy),var(--navy-mid)); border-radius: 16px; padding: 2.5rem; text-align: center; border: 3px solid rgba(200,148,42,.25); position: relative; overflow: hidden; }
.dean-photo-card img{ width:110px; height:110px; border-radius:50%; object-fit:cover; border:3px solid var(--gold); margin:0 auto 1.2rem; display:block; position:relative; }
.dean-avatar { width: 110px; height: 110px; border-radius: 50%; background: rgba(200,148,42,.15); border: 3px solid var(--gold); display: flex; align-items: center; justify-content: center; font-family: 'Cairo', sans-serif; font-size: 34px; color: var(--gold-light); margin: 0 auto 1.2rem; }
.dean-blockquote { border-inline-start: 4px solid var(--gold); padding-inline-start: 1.3rem; margin-bottom: 1.3rem; }
.dean-blockquote p { font-family: 'Cairo',sans-serif; text-align: justify; font-size: 1.05rem; color: var(--text); line-height: 1.9; }

/* ─── Value Cards (vision/mission/goals) ────────────────── */
.value-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; text-align: center; transition: var(--transition); height: 100%; }
.value-card:hover { box-shadow: var(--shadow-md); border-color: var(--teal); transform: translateY(-3px); }
.value-icon { width: 60px; height: 60px; border-radius: 14px; background: var(--teal-pale); display: flex; align-items: center; justify-content: center; font-size: 26px; margin: 0 auto 1rem; }
.value-card h5 { color: var(--navy); font-size: 15px; margin-bottom: .5rem; }
.value-card p { color: var(--muted); font-size: 13.5px; line-height: 1.7; }

/* ─── Staff / Leadership ─────────────────────────────────── */
.staff-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--white); transition: var(--transition); text-align: center; }
.staff-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.staff-photo { height: 180px; background: linear-gradient(145deg, var(--navy), var(--navy-mid)); display: flex; align-items: center; justify-content: center; font-family: 'Cairo',sans-serif; font-size: 42px; color: var(--gold-light); overflow:hidden; }
.staff-photo img{ width:100%; height:100%; object-fit:cover; }
.staff-info { padding: 1.2rem; }
.staff-info h5 { color: var(--navy); font-size: 14.5px; margin-bottom: 4px; }
.staff-info .role { color: var(--muted); font-size: 12.5px; }
.staff-info .dept { display: inline-block; background: var(--teal-pale); color: var(--teal); font-size: 11px; padding: 3px 10px; border-radius: 12px; margin-top: 6px; }
.staff-info .contact-links{ margin-top:8px; font-size:12px; color:var(--muted); line-height:1.8; }
.staff-info .contact-links a{ color:var(--teal); }

/* ─── Research / Info Cards (laws, attachments, publications) ─ */
.research-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; background: var(--white); transition: var(--transition); height: 100%; }
.research-card:hover { box-shadow: var(--shadow-md); border-color: var(--teal); }
.research-card h5 { color: var(--navy); font-size: 15px; line-height: 1.5; margin-bottom: .6rem; }
.research-card .meta { color: var(--muted); font-size: 12.5px; }
.research-tag { display: inline-block; background: var(--gold-pale); color: var(--gold); font-size: 11px; padding: 2px 9px; border-radius: 10px; margin-inline-end: 4px; }

/* ─── Contact ───────────────────────────────────────────── */
.contact-item-card { display: flex; align-items: flex-start; gap: 14px; padding: 15px; background: var(--light); border-radius: var(--radius); border-inline-start: 3px solid var(--teal); margin-bottom: 14px; }
.contact-icon-box { width: 40px; height: 40px; border-radius: 8px; background: var(--teal); color:#fff; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.contact-lbl { color: var(--muted); font-size: 12px; }
.contact-val { color: var(--navy); font-size: 14px; font-weight: 600; }
.social-card { display:flex; align-items:center; gap:14px; padding:14px; border:1px solid var(--border); border-radius:10px; transition:var(--transition); text-decoration:none; }
.social-card:hover { border-color:var(--teal); box-shadow:var(--shadow-sm); }
.social-icon { width:46px; height:46px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:22px; flex-shrink:0; }
.social-card h6 { color:var(--navy); font-size:14px; margin-bottom:2px; }
.social-card small { color:var(--muted); font-size:12px; }
.map-frame { background:linear-gradient(145deg,var(--navy),var(--navy-mid)); border-radius:14px; overflow:hidden; border:2px solid rgba(200,148,42,.2); }
.map-frame iframe{ width:100%; height:100%; min-height:320px; border:0; filter:grayscale(.15); }

/* Form */
.form-rsu .form-control, .form-rsu .form-select {
  border: 1.5px solid var(--border); border-radius: 8px; padding: 11px 14px; font-family: inherit; font-size: 14px; background: var(--light); color: var(--text); transition: var(--transition);
}
.form-rsu .form-control:focus, .form-rsu .form-select:focus { border-color: var(--teal); background: var(--white); box-shadow: 0 0 0 3px rgba(14,124,110,.12); }
.form-rsu label { font-size: 13px; color: var(--muted); font-weight: 500; margin-bottom: 5px; }
.coming-soon-overlay{
  position:absolute; inset:0; border-radius: var(--radius); background:rgba(10,35,66,.75); backdrop-filter:blur(1px);
  display:flex; align-items:center; justify-content:center; color:#fff; font-weight:800; font-size:19px;
}

/* ─── Page Hero (inner pages) ───────────────────────────── */
.page-hero { background: linear-gradient(135deg, var(--navy) 0%, #0d3d6e 100%); padding: 3.5rem 0; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E"); }
.page-hero h1 { color: var(--white); font-size: 2.2rem; position:relative; }
.page-hero .breadcrumb { background: transparent; padding: 0; margin: 0; position:relative; }
.page-hero .breadcrumb-item { color: rgba(255,255,255,.55); font-size: 13px; }
.page-hero .breadcrumb-item a{ color: rgba(255,255,255,.55); }
.page-hero .breadcrumb-item.active { color: var(--gold-light); }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.35); }

/* secondary in-page nav for faculty/center pages — offset below the sticky main navbar (68px) */
.subnav{ position:sticky; top:68px; z-index:150; background:var(--navy-mid); box-shadow:var(--shadow-sm); }
.subnav .container{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; }
.subnav ul{ list-style:none; display:flex; gap:2px; margin:0; padding:0; flex-wrap:wrap; }
.subnav ul li a{ display:block; padding:14px 16px; color:rgba(255,255,255,.75); font-weight:700; font-size:13.5px; border-bottom:3px solid transparent; }
.subnav ul li a:hover, .subnav ul li a.active{ color:var(--gold-light); border-bottom-color:var(--gold); }
.subnav .subnav-contact{ color:rgba(255,255,255,.5); font-size:12.5px; display:flex; gap:16px; flex-wrap:wrap; padding-inline-end:6px; }

/* ─── Departments / Programs ─────────────────────────────── */
.dept-card { background:var(--white); border:1px solid var(--border); border-radius:var(--radius); padding:1.4rem; transition:var(--transition); height:100%; }
.dept-card:hover { border-color:var(--teal); box-shadow:var(--shadow-sm); }
.dept-card h5 { color:var(--navy); font-size:14.5px; margin-bottom:.6rem; padding-bottom:.6rem; border-bottom:2px solid var(--teal-pale); }
.dept-card .info { color:var(--muted); font-size:13px; line-height:1.8; }
.dept-card .icon { font-size:28px; margin-bottom:.8rem; }
.prog-row { display: flex; align-items: center; justify-content: space-between; gap:10px; padding: 12px 16px; border-radius: 8px; border: 1px solid var(--border); margin-bottom: 8px; transition: var(--transition); flex-wrap:wrap; }
.prog-row:hover { border-color: var(--teal); background: var(--light); }
.prog-name { color: var(--navy); font-size: 14px; font-weight: 600; }
.prog-dur { color: var(--muted); font-size: 12.5px; }
.prog-badge { background: var(--teal-pale); color: var(--teal); font-size: 11px; padding: 3px 10px; border-radius: 12px; font-weight: 700; white-space:nowrap; }

/* download / attachment list */
.req-item { display: flex; align-items: flex-start; gap: 10px; padding: 12px 4px; border-bottom: 1px solid var(--border); }
.req-item:last-child { border: none; }
.req-icon { width: 32px; height: 32px; border-radius: 8px; background: var(--teal-pale); color:var(--teal); display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.req-text { color: var(--text); font-size: 14px; flex:1; }
.req-text small{ display:block; color:var(--muted); font-size:12px; margin-top:2px; }
.req-item .btn-rsu-teal{ padding:6px 16px; font-size:12.5px; }

/* mini list (sidebars, recent items) */
.mini-list{ list-style:none; margin:0; padding:0; }
.mini-list li{ display:flex; gap:12px; align-items:flex-start; padding:12px 0; border-bottom:1px solid var(--border); }
.mini-list li:last-child{ border:none; }
.mini-list li img{ width:58px; height:58px; border-radius:8px; object-fit:cover; flex-shrink:0; }
.mini-list li h6{ font-size:13px; color:var(--navy); margin:0 0 4px; line-height:1.5; }
.mini-list li small{ color:var(--gold); font-size:11px; font-weight:700; }

/* timeline (about page history) */
.timeline-item{ display:flex; gap:0; margin-bottom:1.5rem; }
.timeline-badge{ width:80px; flex-shrink:0; text-align:center; }
.timeline-circle{ width:44px; height:44px; border-radius:50%; background:var(--teal); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; margin:0 auto .5rem; font-size:12.5px; }
.timeline-circle.gold{ background:var(--gold); }
.timeline-line{ width:2px; height:calc(100% - 44px); background:var(--teal); margin:0 auto; opacity:.3; }

/* gallery */
.gallery-tile{ position:relative; border-radius:var(--radius); overflow:hidden; display:block; aspect-ratio:1/1; }
.gallery-tile img{ width:100%; height:100%; object-fit:cover; transition:transform .3s ease; }
.gallery-tile:hover img{ transform:scale(1.06); }
.gallery-tile .overlay{ position:absolute; inset:0; background:linear-gradient(0deg, rgba(10,35,66,.85), rgba(10,35,66,0) 55%); display:flex; align-items:flex-end; padding:14px; opacity:0; transition:opacity .25s ease; }
.gallery-tile:hover .overlay{ opacity:1; }
.gallery-tile .overlay span{ color:#fff; font-size:13px; font-weight:700; }

/* step cards (scientific affairs services) */
.step-card { background:var(--white); border:1px solid var(--border); border-radius:var(--radius); padding:1.8rem; height:100%; transition:var(--transition); }
.step-card:hover { box-shadow:var(--shadow-md); border-color:var(--teal); }
.step-num { width:44px; height:44px; border-radius:50%; background:var(--teal); color:var(--white); display:flex; align-items:center; justify-content:center; font-family:'Cairo',sans-serif; font-size:20px; font-weight:700; margin-bottom:1rem; }
.step-card h5 { color:var(--navy); font-size:15px; margin-bottom:.5rem; }
.step-card p { color:var(--muted); font-size:13.5px; line-height:1.75; }

/* ─── Footer ────────────────────────────────────────────── */
.footer { background: var(--navy-dark); color: rgba(255,255,255,.6); padding: 2.5rem 0 0; margin-top:0; }
.footer-logo-ar { font-family: 'Cairo',sans-serif; font-size: 20px; color: var(--gold-light); font-weight: 700; display: block; }
.footer-logo-en { font-size: 11px; color: rgba(255,255,255,.35); letter-spacing: 1px; text-transform: uppercase; }
.footer p { font-size: 13.5px; line-height: 1.8; color: rgba(255,255,255,.5); }
.footer h6 { color: var(--white); font-size: 15px; margin-bottom: 1.2rem; font-weight: 700; }
.footer-link { display: block; color: rgba(255,255,255,.5); font-size: 13.5px; padding: 4px 0; transition: var(--transition); }
.footer-link:hover { color: var(--gold-light); }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.07); color: rgba(255,255,255,.6); font-size: 14px; transition: var(--transition); margin-inline-end: 8px; text-decoration: none; }
.footer-social a:hover { background: var(--gold); color: var(--navy); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding: 1.2rem 0; margin-top: .5rem; text-align: center; font-size: 12.5px; color: rgba(255,255,255,.3); }

/* ─── Notice / Alert ─────────────────────────────────────── */
.notice-bar { background: var(--gold-pale); border-inline-start: 4px solid var(--gold); padding: 12px 16px; border-radius: 8px; font-size: 14px; color: var(--text); }
.notice-bar.danger{ background:#fbeaea; border-inline-start-color:#b3272d; color:#7a1c20; }

/* ─── Accordion ─────────────────────────────────────────── */
.accordion-rsu .accordion-button { background: var(--light); color: var(--navy); font-weight: 600; font-size: 14.5px; }
.accordion-rsu .accordion-button:not(.collapsed) { background: var(--teal-pale); color: var(--teal); box-shadow: none; }
.accordion-rsu .accordion-body { font-size: 14px; color: var(--muted); line-height: 1.8; }

/* ─── Pagination ─────────────────────────────────────────── */
.pagination .page-link{ color:var(--navy); border-color:var(--border); }
.pagination .page-item.active .page-link{ background:var(--teal); border-color:var(--teal); }

/* ─── Motion (existing JS toggles these classes) ─────────── */
.fadeInUp{ animation:rsuFadeInUp .7s ease both; }
@keyframes rsuFadeInUp{ from{ opacity:0; transform:translateY(18px); } to{ opacity:1; transform:none; } }
.slide-in-left, .slide-in-right{ opacity:0; transition:opacity .7s ease, transform .7s ease; }
.slide-in-left{ transform:translateX(-40px); }
.slide-in-right{ transform:translateX(40px); }
.slide-in-left.visible, .slide-in-right.visible{ opacity:1; transform:none; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 991px) {
  .hero-title { font-size: 2.2rem; }
  .navbar-rsu .nav-link { padding: 12px 16px !important; border-bottom: none; border-inline-end: 3px solid transparent; }
  .navbar-rsu .nav-link:hover, .navbar-rsu .nav-link.active { border-bottom: none; border-inline-end-color: var(--gold); background: rgba(255,255,255,.05); }
  .stats-strip-inner { grid-template-columns: repeat(2,1fr); }
  .hero-stat-card { margin-top: 2rem; }
  .navbar-rsu .dropdown-menu{ background:rgba(255,255,255,.04); box-shadow:none; border:none; }
}
@media (max-width: 575px) {
  .hero-title { font-size: 1.8rem; }
  .section-title { font-size: 1.7rem; }
  .stats-strip-inner { grid-template-columns: repeat(2,1fr); }
  .footer-counter { justify-content: center; }
}
