/* ================================================================
   Isra University Admissions Portal – Custom Styles
   Bootstrap 5.3 + Custom CSS
   ================================================================ */

:root {
  --iu-primary:   #0d3b6e;
  --iu-secondary: #1a5276;
  --iu-accent:    #f39c12;
  --iu-light:     #f8f9fa;
  --iu-dark:      #0a2540;
}

/* ── BASE ─────────────────────────────────────────────────────── */
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #2c3e50;
}

/* ── NAVBAR ──────────────────────────────────────────────────── */
#mainNav {
  background: linear-gradient(135deg, var(--iu-dark) 0%, var(--iu-primary) 100%);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
  min-height: 68px;
}

#mainNav .navbar-nav .nav-link {
  color: rgba(255,255,255,.85);
  font-weight: 500;
  border-radius: 8px;
  padding: .4rem .9rem;
  transition: background .2s, color .2s;
}
#mainNav .navbar-nav .nav-link:hover,
#mainNav .navbar-nav .nav-link.active {
  background: rgba(255,255,255,.12);
  color: #fff;
}

.brand-icon {
  background: var(--iu-accent);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ── HERO ─────────────────────────────────────────────────────── */
.hero-section {
  min-height: 560px;
  background:
    linear-gradient(135deg, rgba(10,37,64,.93) 0%, rgba(13,59,110,.82) 60%, rgba(26,82,118,.6) 100%),
    url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&w=1600&q=80')
    center/cover no-repeat;
  padding: 4rem 0;
}

.hero-overlay { display: none; }

.hero-img {
  max-height: 360px;
  width: 100%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,.2);
}

.text-white-75 { color: rgba(255,255,255,.75) !important; }

/* ── NOTICE BAR ──────────────────────────────────────────────── */
.notice-bar {
  background: linear-gradient(90deg, var(--iu-dark), var(--iu-secondary));
}

/* ── SECTION TAGS ────────────────────────────────────────────── */
.section-tag {
  display: inline-block;
  background: rgba(13,59,110,.1);
  color: var(--iu-primary);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .3rem .9rem;
  border-radius: 50px;
  border: 1px solid rgba(13,59,110,.2);
}

/* ── GUIDE CARD ──────────────────────────────────────────────── */
.guide-card-left {
  background: linear-gradient(135deg, var(--iu-primary), var(--iu-secondary));
}

/* ── PROGRAM CARDS ───────────────────────────────────────────── */
.program-img-wrap { position: relative; overflow: hidden; height: 200px; }
.program-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform .4s ease;
}
.program-card:hover .program-img { transform: scale(1.05); }
.program-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: .75rem;
  padding: .4rem .75rem;
}

/* ── WHY CARD ────────────────────────────────────────────────── */
.why-card {
  background: #fff;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
  border: 1px solid rgba(0,0,0,.06);
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}

/* ── STEP CIRCLES ────────────────────────────────────────────── */
.step-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.step-circle-lg {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 auto;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  flex-shrink: 0;
}

/* ── PAGE HEADER ─────────────────────────────────────────────── */
.page-header {
  background:
    linear-gradient(135deg, rgba(10,37,64,.95) 0%, rgba(13,59,110,.88) 100%),
    url('https://images.unsplash.com/photo-1541339907198-e08756dedf3f?auto=format&fit=crop&w=1600&q=80')
    center/cover no-repeat;
  padding: 1rem 0;
}
.page-header-green {
  background:
    linear-gradient(135deg, rgba(7,68,28,.95) 0%, rgba(28,125,59,.85) 100%),
    url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?auto=format&fit=crop&w=1600&q=80')
    center/cover no-repeat;
}
.page-header-blue {
  background:
    linear-gradient(135deg, rgba(10,37,64,.95) 0%, rgba(52,73,175,.85) 100%),
    url('https://images.unsplash.com/photo-1606761568499-6d2451b23c66?auto=format&fit=crop&w=1600&q=80')
    center/cover no-repeat;
}

.breadcrumb-light .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255,255,255,.5);
}

/* ── DOC CARDS ───────────────────────────────────────────────── */
.doc-card {
  border: 1px solid rgba(0,0,0,.06) !important;
  transition: box-shadow .2s;
}
.doc-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.1) !important; }

/* ── PROGRAM PILLS (programs page) ──────────────────────────── */
.program-pill {
  background: #fff;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 50px;
  padding: .6rem 1.2rem;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  transition: background .2s, box-shadow .2s;
}
.program-pill:hover {
  background: #f0f4ff;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
}

.cat-icon { display: inline-flex; align-items: center; justify-content: center; }

.prog-card {
  border: 1px solid rgba(0,0,0,.06) !important;
  transition: transform .2s, box-shadow .2s;
}
.prog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.1) !important;
}

.sticky-filter {
  position: sticky;
  top: 68px;
  z-index: 100;
}

/* ── CTA SECTION ─────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--iu-dark) 0%, #1a237e 100%);
}
.text-white-75 { color: rgba(255,255,255,.75); }

/* ── CONTACT CARDS ───────────────────────────────────────────── */
.contact-card {
  transition: transform .2s, box-shadow .2s;
  border: 1px solid rgba(0,0,0,.06) !important;
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,.1) !important;
}

/* ── FOOTER ──────────────────────────────────────────────────── */
.footer-section {
  background: linear-gradient(160deg, var(--iu-dark) 0%, #0d1b2a 100%);
}

.footer-links { margin: 0; }
.footer-links li {
  padding: .25rem 0;
  color: rgba(255,255,255,.55);
  font-size: .9rem;
}
.footer-links li a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color .2s;
}
.footer-links li a:hover { color: var(--iu-accent); }

/* ── FORM ENHANCEMENTS ───────────────────────────────────────── */
.form-control:focus,
.form-select:focus {
  border-color: var(--iu-primary);
  box-shadow: 0 0 0 .2rem rgba(13,59,110,.2);
}

/* ── ACCORDION ───────────────────────────────────────────────── */
.accordion-button:not(.collapsed) {
  background-color: rgba(13,59,110,.06);
  color: var(--iu-primary);
  box-shadow: none;
}

/* ── ANIMATION ───────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp .5s ease forwards; }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 767px) {
  .hero-section { min-height: 480px; }
  .step-circle-lg { width: 40px; height: 40px; font-size: 1rem; }
}
