/* =====================================================
   REMESYS – Brand Override for Eclipse CSS
   Navy: #0d2461 | Cyan: #00bcd4 | Pink: #e91e8c
   Playfair Display headings + Roboto body
===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Roboto:wght@300;400;500;700&display=swap');

:root {
  --navy:   #0d2461;
  --navy2:  #162f7e;
  --cyan:   #00bcd4;
  --cyan2:  #00acc1;
  --pink:   #e91e8c;
  --pink2:  #c2185b;
  --white:  #ffffff;
  --off:    #f9f9ff;
  --text:   #828bb2;
  --dark:   #222222;
}

/* Override Eclipse's purple gradient with our navy→pink */
.gradient-bg,
.registration-area .course-form-section .btn,
.right-contents .btn.enroll,
.contact-page-area .form-area .btn,
.top-category-widget-area .single-cat-widget:hover .overlay-bg,
.blog-pagination .page-item.active .page-link,
.blog-pagination .page-link:hover,
.widget-wrap .newsletter-widget .bbtns,
.comment-form .btn,
.footer-area .single-footer-widget .click-btn,
.footer-area .footer-bottom .footer-social a:hover {
  background: linear-gradient(135deg, var(--navy) 0%, var(--pink) 100%) !important;
}
.gradient-bg-reverse, #search-input-box {
  background: linear-gradient(315deg, var(--navy) 0%, var(--pink) 100%) !important;
}
/* Cyan gradient variant */
.gradient-cyan {
  background: linear-gradient(135deg, var(--navy) 0%, var(--cyan) 100%);
}
/* Selection */
::selection { background-color: var(--pink); color: #fff; }
::-moz-selection { background-color: var(--pink); color: #fff; }

/* --- BODY --- */
body { font-family: 'Roboto', sans-serif; }
h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6 {
  font-family: 'Playfair Display', serif;
}

/* ======== HEADER / NAV ======== */
.header-area {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(13,36,97,.1);
  position: sticky; top: 0; z-index: 999;
}
.header-area.scrolled { box-shadow: 0 4px 30px rgba(13,36,97,.2); }
.navbar { padding: 12px 0; }
.navbar-brand { padding: 0; }
.navbar-brand img { height: 55px; }
.navbar-nav > li > a {
  font-family: 'Roboto', sans-serif;
  font-weight: 500; font-size: 14px;
  color: var(--dark) !important;
  padding: 10px 16px !important;
  letter-spacing: .3px;
  transition: color .3s;
}
.navbar-nav > li > a:hover,
.navbar-nav > li.active > a { color: var(--pink) !important; }
.navbar-nav > li.active > a::after {
  content: ''; display: block; width: 100%; height: 2px;
  background: linear-gradient(90deg,var(--navy),var(--pink));
  margin-top: 3px; border-radius: 2px;
}
.navbar-toggler { border-color: var(--navy); }
.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='%230d2461' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }

.header-top {
  background: var(--navy);
  color: rgba(255,255,255,.85);
  font-size: 13px; padding: 8px 0;
}
.header-top a { color: var(--cyan); }
.header-top a:hover { color: var(--white); }

/* ======== HERO BANNER ======== */
.home-banner-area {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a8f 50%, #0a1e5e 100%) !important;
  position: relative; overflow: hidden;
}
.home-banner-area::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(0,188,212,.15) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(233,30,140,.1) 0%, transparent 50%);
}
.hero-grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(0,188,212,.06) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0,188,212,.06) 1px, transparent 1px);
  background-size: 50px 50px;
}
.home-banner-left h1 { color: #fff !important; font-size: 52px !important; line-height: 1.15; }
.home-banner-left h1 span { color: var(--cyan) !important; }
.home-banner-left p { color: rgba(255,255,255,.75) !important; font-size: 16px; }
.home-banner-left .primary-btn {
  border: 2px solid var(--cyan);
  color: var(--white) !important; padding: 12px 32px;
  border-radius: 30px; font-size: 14px; font-weight: 600;
  letter-spacing: 1px; display: inline-block;
  transition: all .3s;
}
.home-banner-left .primary-btn:hover {
  background: var(--cyan); color: var(--navy) !important;
}
.home-banner-left .gradient-btn {
  background: linear-gradient(135deg,var(--pink),var(--pink2));
  color: var(--white) !important; padding: 12px 32px;
  border-radius: 30px; font-size: 14px; font-weight: 600;
  letter-spacing: 1px; display: inline-block; border: none;
  transition: all .3s; box-shadow: 0 6px 20px rgba(233,30,140,.35);
}
.home-banner-left .gradient-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(233,30,140,.45); }

.hero-stat-row { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 36px; }
.hero-stat { text-align: center; }
.hero-stat .num { font-family: 'Playfair Display',serif; font-size: 2rem; font-weight: 900; color: var(--cyan); line-height: 1; }
.hero-stat .lbl { font-size: 12px; color: rgba(255,255,255,.6); margin-top: 4px; }

/* ======== SECTION TITLES ======== */
.section-title { text-align: center; }
.section-title h2 { font-size: 42px; color: var(--dark); font-family: 'Playfair Display',serif; }
.section-title p { color: var(--text); }
.title-line {
  display: block;
  width: 60px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--navy), var(--pink));
  margin: 16px auto 18px;
}
.section-title .title-line,
.text-center .title-line {
  margin-left: auto;
  margin-right: auto;
}

/* ======== COURSE CARDS ======== */
.course-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #eef0fa;
  transition: all .3s;
  overflow: hidden;
}
.course-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(13,36,97,.15); }
.course-card .card-icon {
  width: 64px; height: 64px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(13,36,97,.08), rgba(0,188,212,.1));
}
.course-card:hover .card-icon {
  background: linear-gradient(135deg, var(--navy), var(--cyan));
  color: white;
}
.course-card .card-body { padding: 28px; }
.course-card h4 { font-size: 18px; color: var(--dark); margin-bottom: 10px; }
.course-card p { color: var(--text); font-size: 14px; line-height: 1.7; margin-bottom: 16px; }
.level-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.level-badge {
  font-size: 11px; font-weight: 600; padding: 3px 10px;
  border-radius: 20px; border: 1.5px solid #e0e0e0; color: var(--text);
  transition: all .3s;
}
.course-card:hover .level-badge { border-color: var(--cyan); color: var(--navy); }
.course-card .card-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--navy); font-weight: 700; font-size: 14px;
  margin-top: 16px; transition: color .3s;
}
.course-card:hover .card-link { color: var(--pink); }

/* ======== FEATURE BOX ======== */
.feature-box {
  background: #fff; border-radius: 12px;
  padding: 36px 28px; text-align: center;
  border: 1px solid #eef0fa; transition: all .3s;
  height: 100%;
}
.feature-box:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(13,36,97,.12); border-color: var(--cyan); }
.feature-box .icon-wrap {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(13,36,97,.08), rgba(0,188,212,.1));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; font-size: 30px; color: var(--navy);
  transition: all .3s;
}
.feature-box:hover .icon-wrap {
  background: linear-gradient(135deg, var(--navy), var(--cyan));
  color: white; transform: scale(1.1) rotate(5deg);
}
.feature-box h4 { font-size: 18px; color: var(--dark); margin-bottom: 12px; }
.feature-box p { color: var(--text); font-size: 14px; line-height: 1.7; }

/* ======== STATS / COUNTER ======== */
.stats-area {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a8f 100%);
  padding: 80px 0; position: relative;
}
.stats-area::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 0%, rgba(0,188,212,.15) 0%, transparent 60%);
}
.counter-item { text-align: center; padding: 20px; position: relative; z-index: 1; }
.counter-item .count { font-family: 'Playfair Display',serif; font-size: 3.5rem; font-weight: 900; color: var(--cyan); line-height: 1; }
.counter-item .plus { font-size: 2rem; color: var(--pink); }
.counter-item p { color: rgba(255,255,255,.75); font-size: 15px; margin-top: 8px; margin-bottom: 0; }

/* ======== CATEGORY (Portal) CARDS ======== */
.portal-card {
  background: #fff; border-radius: 14px;
  border: 1px solid #eef0fa; padding: 32px 24px;
  text-align: center; transition: all .3s; height: 100%;
  position: relative; overflow: hidden;
}
.portal-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--pink));
  transform: scaleX(0); transition: transform .3s; transform-origin: left;
}
.portal-card:hover::after { transform: scaleX(1); }
.portal-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(13,36,97,.12); }
.portal-card .p-icon {
  width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.pi-blue { background: rgba(13,36,97,.1); color: var(--navy); }
.pi-cyan { background: rgba(0,188,212,.1); color: var(--cyan2); }
.pi-pink { background: rgba(233,30,140,.1); color: var(--pink); }
.pi-green { background: rgba(76,175,80,.1); color: #388e3c; }
.pi-amber { background: rgba(255,152,0,.1); color: #e65100; }
.portal-card h4 { font-size: 17px; color: var(--dark); margin-bottom: 8px; }
.portal-card p { color: var(--text); font-size: 13.5px; }

/* ======== SCHOOL/COLLEGE PARTNER CARDS ======== */
.partner-card {
  background: #fff; border-radius: 14px;
  border: 1px solid #eef0fa; padding: 28px;
  transition: all .3s;
}
.partner-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(13,36,97,.12); }
.partner-step {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 24px; background: #fff; border-radius: 12px;
  border-left: 4px solid var(--cyan);
  box-shadow: 0 4px 20px rgba(13,36,97,.08);
  margin-bottom: 20px; transition: all .3s;
}
.partner-step:hover { border-left-color: var(--pink); box-shadow: 0 8px 30px rgba(13,36,97,.15); }
.step-num {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display',serif; font-weight: 900; font-size: 18px; color: #fff;
}
.step-content h5 { color: var(--dark); font-size: 16px; margin-bottom: 6px; }
.step-content p { color: var(--text); font-size: 14px; margin: 0; }

/* ======== CTA SECTION ======== */
.cta-area {
  background: linear-gradient(135deg, var(--pink) 0%, var(--navy) 100%);
  padding: 80px 0; text-align: center;
}
.cta-area h2 { color: #fff; margin-bottom: 16px; }
.cta-area p { color: rgba(255,255,255,.8); font-size: 16px; margin-bottom: 32px; }
.btn-cta-white {
  background: #fff; color: var(--navy);
  padding: 14px 36px; border-radius: 30px;
  font-weight: 700; font-size: 15px; display: inline-block;
  transition: all .3s; border: 2px solid #fff;
}
.btn-cta-white:hover { background: transparent; color: #fff; }
.btn-cta-outline {
  background: transparent; color: #fff;
  padding: 14px 36px; border-radius: 30px;
  font-weight: 700; font-size: 15px; display: inline-block;
  border: 2px solid rgba(255,255,255,.5); transition: all .3s; margin-left: 16px;
}
.btn-cta-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* ======== FOOTER ======== */
.footer-area {
  background: #06102e;
  padding-top: 60px;
}
.footer-area .single-footer-widget h4 {
  color: #fff; font-family: 'Playfair Display',serif; font-size: 18px; margin-bottom: 20px;
}
.footer-area .single-footer-widget p,
.footer-area .single-footer-widget li { color: rgba(255,255,255,.6); font-size: 14px; }
.footer-area .single-footer-widget li { padding: 5px 0; }
.footer-area .single-footer-widget a { color: rgba(255,255,255,.6); transition: color .3s; }
.footer-area .single-footer-widget a:hover { color: var(--cyan); }
.footer-area .footer-bottom {
  background: #03081f;
  padding: 20px 0; margin-top: 40px;
}
.footer-area .footer-bottom p { color: rgba(255,255,255,.4); margin: 0; font-size: 13px; }
.footer-area .footer-bottom .footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.6);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; margin-left: 8px; transition: all .3s;
}
.footer-area .footer-bottom .footer-social a:hover {
  background: linear-gradient(135deg, var(--navy), var(--pink)) !important;
  color: #fff;
}

/* ======== PAGE BANNER ======== */
.generic-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a8f 100%);
  padding: 80px 0; text-align: center; position: relative; overflow: hidden;
}
.generic-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(233,30,140,.12) 0%, transparent 60%);
}
.generic-banner h2 { color: #fff; font-size: 42px; position: relative; z-index: 1; }
.generic-banner p { color: rgba(255,255,255,.7); position: relative; z-index: 1; }
.breadcrumb { background: transparent; padding: 0; justify-content: center; }
.breadcrumb-item, .breadcrumb-item a { color: rgba(255,255,255,.6); font-size: 14px; }
.breadcrumb-item.active { color: var(--cyan); }
.breadcrumb-item+.breadcrumb-item::before { color: rgba(255,255,255,.4); }

/* ======== LOGIN PAGE ======== */
.login-wrapper {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a8f 50%, #0a1e5e 100%);
  display: flex; align-items: center; justify-content: center; padding: 40px 20px;
}
.login-card {
  background: #fff; border-radius: 20px;
  padding: 48px 40px; width: 100%; max-width: 460px;
  box-shadow: 0 30px 80px rgba(0,0,0,.3);
  position: relative; overflow: hidden;
}
.login-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--cyan), var(--pink));
}
.login-card .brand-logo { text-align: center; margin-bottom: 28px; }
.login-card .brand-logo img { height: 65px; }
.login-card h3 { color: var(--dark); font-size: 22px; text-align: center; margin-bottom: 6px; }
.login-card .sub { text-align: center; color: var(--text); font-size: 14px; margin-bottom: 30px; }
.form-control-r {
  width: 100%; background: #f9f9ff;
  border: 1.5px solid #e0e4f5; color: #333;
  font-family: 'Roboto',sans-serif; font-size: 14.5px;
  padding: 13px 16px; border-radius: 10px; outline: none; transition: border .2s;
}
.form-control-r:focus { border-color: var(--navy); background: #fff; }
.input-icon-wrap { position: relative; }
.input-icon-wrap .fi { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #aaa; }
.input-icon-wrap .form-control-r { padding-left: 40px; }
.btn-login-r {
  width: 100%; background: linear-gradient(135deg, var(--navy), var(--pink));
  color: #fff; font-weight: 700; font-size: 15px;
  padding: 14px; border-radius: 10px; border: none; cursor: pointer;
  transition: all .3s;
}
.btn-login-r:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(13,36,97,.35); }
.alert-r { border-radius: 10px; font-size: 14px; padding: 12px 16px; margin-bottom: 20px; }
.alert-r.danger { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }
.alert-r.success { background: #f0fdf4; border: 1px solid #a7f3d0; color: #065f46; }

/* ======== PORTAL / DASHBOARD ======== */
.portal-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 260px; background: var(--navy);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 100; overflow-y: auto;
}
.sidebar .brand {
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar .brand img { height: 48px; }
.sidebar .user-info {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; gap: 12px;
}
.sidebar .user-av {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: 15px; flex-shrink: 0;
}
.sidebar .user-name { color: #fff; font-weight: 600; font-size: 14px; line-height: 1.3; }
.sidebar .user-role { color: rgba(255,255,255,.5); font-size: 12px; }
.sidebar-nav { padding: 12px 10px; flex: 1; }
.sidebar-nav .sec-label {
  color: rgba(255,255,255,.3); font-size: 10.5px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; padding: 12px 12px 6px;
}
.sidebar-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 10px; margin-bottom: 2px;
  color: rgba(255,255,255,.65); font-size: 14px; font-weight: 500;
  transition: all .2s; text-decoration: none;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
  background: rgba(255,255,255,.1); color: #fff;
}
.sidebar-nav a.active {
  background: rgba(0,188,212,.15);
  color: var(--cyan); border-left: 3px solid var(--cyan);
}
.sidebar-nav a i { width: 18px; text-align: center; }
.sidebar-bottom {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.sidebar-bottom a {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.4); font-size: 13px; text-decoration: none;
}
.sidebar-bottom a:hover { color: rgba(255,255,255,.7); }

.portal-main { margin-left: 260px; flex: 1; background: #f5f7ff; min-height: 100vh; }
.portal-topbar {
  background: #fff; border-bottom: 1px solid #e8eaf6;
  padding: 14px 28px; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 10px rgba(13,36,97,.06);
}
.topbar-title { font-family: 'Playfair Display',serif; font-weight: 700; color: var(--dark); font-size: 1.1rem; }
.portal-content { padding: 28px; }

/* Stat Cards */
.stat-card {
  background: #fff; border-radius: 14px;
  padding: 24px; border: 1px solid #e8eaf6;
  transition: all .2s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(13,36,97,.1); }
.stat-card .stat-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  margin-bottom: 16px;
}
.si-navy { background: rgba(13,36,97,.1); color: var(--navy); }
.si-cyan { background: rgba(0,188,212,.1); color: var(--cyan2); }
.si-pink { background: rgba(233,30,140,.1); color: var(--pink); }
.si-green { background: rgba(76,175,80,.1); color: #388e3c; }
.si-yellow { background: rgba(245,158,11,.1); color: #d97706; }
.si-purple { background: rgba(168,85,247,.1); color: #9333ea; }
.si-orange { background: rgba(249,115,22,.1); color: #ea580c; }
.si-amber { background: rgba(255,152,0,.1); color: #e65100; }
.stat-card .stat-num {
  font-family: 'Playfair Display',serif;
  font-size: 2rem; font-weight: 900; color: var(--dark); line-height: 1;
}
.stat-card .stat-label { color: var(--text); font-size: 13px; margin-top: 5px; }

/* Tables */
.data-table {
  width: 100%; border-collapse: collapse;
  background: #fff; border-radius: 12px; overflow: hidden;
}
.data-table th {
  background: var(--navy); color: rgba(255,255,255,.9);
  font-size: 12px; font-weight: 600; letter-spacing: .5px;
  text-transform: uppercase; padding: 14px 16px; text-align: left;
}
.data-table td { padding: 13px 16px; border-bottom: 1px solid #f0f0fa; font-size: 14px; color: #444; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #f9f9ff; }

.badge-status {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 20px;
}
.badge-active { background: rgba(76,175,80,.12); color: #2e7d32; }
.badge-inactive { background: rgba(244,67,54,.12); color: #c62828; }
.badge-completed { background: rgba(33,150,243,.12); color: #1565c0; }
.badge-pending { background: rgba(255,152,0,.12); color: #e65100; }
.badge-paid { background: rgba(76,175,80,.12); color: #2e7d32; }

/* Cards */
.portal-card-box {
  background: #fff; border-radius: 14px;
  border: 1px solid #e8eaf6; overflow: hidden;
}
.pcb-header {
  padding: 18px 22px; border-bottom: 1px solid #f0f0fa;
  display: flex; align-items: center; justify-content: space-between;
}
.pcb-title { font-family: 'Playfair Display',serif; font-weight: 700; font-size: 16px; color: var(--dark); }
.pcb-body { padding: 22px; }

/* Buttons */
.btn-r {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600; padding: 8px 18px;
  border-radius: 8px; border: none; cursor: pointer; transition: all .2s;
  text-decoration: none;
}
.btn-primary-r { background: var(--navy); color: #fff; }
.btn-primary-r:hover { background: var(--navy2); color: #fff; transform: translateY(-1px); }
.btn-cyan-r { background: var(--cyan); color: var(--navy); }
.btn-cyan-r:hover { background: var(--cyan2); color: var(--navy); }
.btn-pink-r { background: var(--pink); color: #fff; }
.btn-pink-r:hover { background: var(--pink2); color: #fff; }
.btn-outline-r { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline-r:hover { background: var(--navy); color: #fff; }
.btn-sm-r { font-size: 12px; padding: 5px 12px; }
.btn-danger-r { background: #ef5350; color: #fff; }
.btn-danger-r:hover { background: #e53935; }
.btn-success-r { background: #43a047; color: #fff; }
.btn-success-r:hover { background: #388e3c; }

/* Forms */
.form-group-r { margin-bottom: 18px; }
.form-label-r { display: block; font-size: 13px; font-weight: 600; color: #333; margin-bottom: 6px; }
.form-input-r {
  width: 100%; background: #f9f9ff; border: 1.5px solid #e0e4f5;
  color: #333; font-family: 'Roboto',sans-serif; font-size: 14.5px;
  padding: 11px 14px; border-radius: 10px; outline: none; transition: border .2s;
}
.form-input-r:focus { border-color: var(--navy); background: #fff; }
.form-input-r::placeholder { color: #aaa; }
select.form-input-r { cursor: pointer; }
textarea.form-input-r { resize: vertical; min-height: 90px; }
.form-row-r { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 768px) { .form-row-r { grid-template-columns: 1fr; } }

/* Modals */
.modal-overlay-r {
  position: fixed; inset: 0;
  background: rgba(6,16,46,.7); backdrop-filter: blur(4px);
  z-index: 9999; display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay-r.open { display: flex; }
.modal-box-r {
  background: #fff; border-radius: 18px;
  width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto;
}
.modal-header-r {
  padding: 20px 24px; border-bottom: 1px solid #f0f0fa;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; background: #fff;
}
.modal-title-r { font-family: 'Playfair Display',serif; font-weight: 700; font-size: 17px; color: var(--dark); }
.modal-close-r {
  width: 32px; height: 32px; border-radius: 50%;
  background: #f5f5f5; border: none; cursor: pointer; font-size: 16px; color: #666;
  display: flex; align-items: center; justify-content: center;
}
.modal-body-r { padding: 24px; }
.modal-footer-r { padding: 16px 24px; border-top: 1px solid #f0f0fa; display: flex; gap: 10px; justify-content: flex-end; }

/* Misc */
.flash-msg { border-radius: 10px; padding: 12px 16px; margin-bottom: 20px; font-size: 14px; }
.flash-success { background: #f0fdf4; border: 1px solid #a7f3d0; color: #065f46; }
.flash-error { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text); }
.empty-state i { font-size: 48px; color: #d0d5ee; margin-bottom: 16px; }
.page-header-r { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.page-title-r { font-family: 'Playfair Display',serif; font-weight: 900; font-size: 1.4rem; color: var(--dark); }
.search-bar-r {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1.5px solid #e0e4f5;
  border-radius: 10px; padding: 8px 14px;
}
.search-bar-r input {
  border: none; outline: none; font-size: 14px;
  color: #333; background: transparent; min-width: 200px;
}
.search-bar-r i { color: #aaa; }
/* Print */
@media print {
  .sidebar, .portal-topbar, .btn-r, .page-header-r { display: none !important; }
  .portal-main { margin-left: 0; }
}
/* Responsive */
@media (max-width: 991px) {
  .sidebar { transform: translateX(-100%); transition: transform .3s; }
  .sidebar.open { transform: translateX(0); }
  .portal-main { margin-left: 0; }
}

/* ======== MOBILE NAV FIX ======== */
/* On mobile, navbar collapses with white bg — ensure links are readable */
@media (max-width: 991px) {
  .header-area .navbar-collapse {
    background: #fff;
    border-top: 1px solid #eef0fa;
    padding: 10px 0 16px;
    box-shadow: 0 8px 30px rgba(13,36,97,.12);
  }
  .navbar-nav > li > a {
    color: var(--dark) !important;
    padding: 10px 20px !important;
    border-bottom: 1px solid #f5f7ff;
    font-weight: 600;
  }
  .navbar-nav > li > a:hover,
  .navbar-nav > li.active > a { color: var(--pink) !important; }
  .navbar-nav > li.active > a::after { display: none; }
  .navbar-nav > li:last-child > a {
    margin: 10px 20px 0;
    display: inline-block;
    width: auto;
    border-bottom: none;
  }
}

/* ======== SECTION TITLE TEXT CENTERING ======== */
.section-title.text-center p,
.section-title.text-center h2 { text-align: center; }
.section-title p { max-width: 680px; margin-left: auto; margin-right: auto; }

/* ======== FORCE CENTER ALIGNMENT IN CENTERED SECTION TITLES ======== */
.text-center p,
.text-center h2,
.text-center h3,
.text-center h4,
.section-title.text-center p { text-align: center !important; }
