/* ============================================
   معهد المرج العالي للعلوم والتقنية
   الأنماط الرئيسية v2 - تصميم محسن
   ============================================ */

:root {
  --primary: #1a5f2a;
  --primary-dark: #12471f;
  --primary-light: #2d7a3e;
  --secondary: #c9a227;
  --secondary-light: #ddb940;
  --dark: #1a1a2e;
  --text: #2c3e50;
  --text-light: #6c757d;
  --bg: #f4f6f9;
  --white: #ffffff;
  --light-gray: #e9ecef;
  --border: #e0e4e8;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  --font-body: 'Cairo', 'Tajawal', sans-serif;
  --font-heading: 'Tajawal', 'Cairo', sans-serif;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior:smooth; font-size:16px; }

body {
  font-family: var(--font-body);
  direction: rtl;
  text-align: right;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration:none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width:100%; height:auto; display:block; }

/* ===== News Ticker ===== */
.news-ticker {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 8px 0;
  font-size: 0.82rem;
}
.ticker-label {
  font-weight: 700;
  white-space: nowrap;
  padding-left: 15px;
  border-left: 1px solid rgba(255,255,255,0.3);
}
.ticker-scroll { overflow: hidden; position: relative; }
.ticker-content {
  animation: ticker 25s linear infinite;
  white-space: nowrap;
  display: inline-block;
}
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-social {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: inline-flex; align-items:center; justify-content:center;
  color: #fff; font-size: 0.7rem;
  transition: var(--transition);
}
.ticker-social:hover { background: var(--secondary); color: var(--dark); }

/* ===== Navbar ===== */
.navbar {
  background: var(--white);
  padding: 0;
  box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}
.navbar-brand {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
}
.brand-icon {
  width: 45px; height: 45px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius);
  display: flex; align-items:center; justify-content:center;
  color: var(--secondary);
  font-size: 1.3rem;
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--primary);
  line-height: 1.2;
  display: block;
}
.brand-tagline {
  font-size: 0.68rem;
  color: var(--text-light);
  font-weight: 500;
}
.nav-link {
  color: var(--text) !important;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 22px 16px !important;
  position: relative;
  transition: var(--transition);
}
.nav-link::after {
  content:''; position: absolute;
  bottom: 15px; left: 50%; right: 50%;
  height: 2px; background: var(--secondary);
  transition: var(--transition);
  border-radius: 2px;
}
.nav-link:hover::after,
.nav-link.active::after { left: 16px; right: 16px; }
.nav-link:hover,
.nav-link.active { color: var(--primary) !important; }
.dropdown-menu {
  border: none;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  padding: 8px;
  min-width: 220px;
}
.dropdown-item {
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.88rem;
  transition: var(--transition);
}
.dropdown-item:hover {
  background: var(--primary);
  color: #fff;
}
.btn-gold {
  background: var(--secondary);
  color: var(--dark);
  font-weight: 700;
  border: none;
  border-radius: 50px;
  padding: 8px 22px;
  transition: var(--transition);
}
.btn-gold:hover { background: var(--secondary-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,162,39,0.35); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex; align-items:center;
  background: linear-gradient(135deg, rgba(26,95,42,0.94), rgba(18,71,31,0.88)),
              url('../images/hero-bg.jpg') center/cover no-repeat;
  color: #fff;
  overflow: hidden;
}
.hero-overlay { position: absolute; inset:0; pointer-events:none; }
.hero-particle {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  animation: floatParticle 20s linear infinite;
}
@keyframes floatParticle {
  0% { transform: translateY(100vh) scale(0); opacity:0; }
  10% { opacity:1; }
  100% { transform: translateY(-10vh) scale(1); opacity:0; }
}
.hero-content { position: relative; z-index:2; padding: 60px 0; }
.hero-badge {
  display: inline-flex; align-items:center; gap:8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 0.88rem;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}
.hero-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 20px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
  line-height: 1.3;
}
.hero-subtitle {
  font-size: 1.15rem;
  opacity: 0.92;
  max-width: 600px;
  margin-bottom: 35px;
  line-height: 1.8;
}
.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }
.btn-primary-gold {
  background: var(--secondary);
  color: var(--dark);
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 800;
  border: none;
  transition: var(--transition);
  display: inline-flex; align-items:center; gap:8px;
}
.btn-primary-gold:hover {
  background: var(--secondary-light);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(201,162,39,0.45);
  color: var(--dark);
}
.btn-outline-white {
  border: 2px solid rgba(255,255,255,0.5);
  color: #fff;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 700;
  transition: var(--transition);
  display: inline-flex; align-items:center; gap:8px;
  background: transparent;
}
.btn-outline-white:hover {
  background: #fff; color: var(--primary);
  border-color: #fff;
}

/* ===== Page Header ===== */
.page-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 100px 0 50px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content:''; position:absolute; inset:0;
  background: 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='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%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/g%3E%3C/svg%3E");
  opacity: 0.6;
}
.page-header h1 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 900;
  position: relative;
  margin-bottom: 12px;
}
.breadcrumb-custom {
  background: transparent;
  justify-content: center;
  margin: 0;
  padding: 0;
  position: relative;
}
.breadcrumb-custom a { color: var(--secondary); font-weight: 500; }
.breadcrumb-custom .active { color: rgba(255,255,255,0.7); }

/* ===== Section Title ===== */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}
.section-header h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-line {
  width: 60px;
  height: 3px;
  background: var(--secondary);
  margin: 0 auto 15px;
  border-radius: 2px;
}
.section-header p {
  color: var(--text-light);
  max-width: 500px;
  margin: 0 auto;
}

/* ===== About Section ===== */
.about-section { padding: 80px 0; background: var(--white); }
.about-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-img-wrap::before {
  content:''; position: absolute;
  top: -15px; right: -15px;
  width: 80px; height: 80px;
  border: 3px solid var(--secondary);
  border-radius: var(--radius);
  z-index: -1;
}
.about-img-wrap::after {
  content:''; position: absolute;
  bottom: -15px; left: -15px;
  width: 80px; height: 80px;
  border: 3px solid var(--primary);
  border-radius: var(--radius);
  z-index: -1;
}
.about-img-wrap img { width: 100%; border-radius: var(--radius-lg); }
.about-features { margin-top: 24px; }
.about-feature {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 14px;
}
.about-feature i {
  width: 28px; height: 28px;
  min-width: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items:center; justify-content:center;
  font-size: 0.7rem;
  margin-top: 3px;
}
.about-feature span { font-size: 0.92rem; font-weight: 600; }

/* ===== Stats ===== */
.stats-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 60px 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content:''; position:absolute; inset:0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='40' cy='40' r='40'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.stat-item { text-align: center; position: relative; padding: 20px; }
.stat-item::after {
  content:''; position:absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: rgba(255,255,255,0.15);
}
.stat-item:first-child::after { display:none; }
.stat-icon {
  width: 55px; height: 55px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  display: flex; align-items:center; justify-content:center;
  margin: 0 auto 12px;
  font-size: 1.4rem;
  color: var(--secondary);
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--secondary);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* ===== Department Cards ===== */
.dept-section { padding: 80px 0; background: var(--bg); }
.dept-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  border: 1px solid var(--border);
}
.dept-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(26,95,42,0.15);
}
.dept-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}
.dept-img img { width:100%; height:100%; object-fit:cover; transition: transform 0.5s ease; }
.dept-card:hover .dept-img img { transform: scale(1.08); }
.dept-img-overlay {
  position: absolute; inset:0;
  background: linear-gradient(transparent 50%, rgba(0,0,0,0.5));
}
.dept-icon {
  position: absolute;
  bottom: -28px;
  right: 24px;
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius);
  display: flex; align-items:center; justify-content:center;
  font-size: 1.4rem;
  color: #fff;
  box-shadow: 0 6px 20px rgba(26,95,42,0.3);
  z-index: 2;
}
.dept-body { padding: 45px 24px 24px; }
.dept-body h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
}
.dept-body p {
  color: var(--text-light);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 16px;
}
.dept-meta {
  display: flex; justify-content: space-between; align-items:center;
  font-size: 0.8rem;
  color: var(--text-light);
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.dept-meta span { display: flex; align-items:center; gap:6px; }
.dept-meta i { color: var(--secondary); }

/* ===== Faculty ===== */
.faculty-section { padding: 80px 0; background: var(--white); }
.faculty-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  border: 1px solid var(--border);
  height: 100%;
}
.faculty-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(26,95,42,0.15);
}
.faculty-img-wrap {
  width: 120px; height: 120px;
  margin: 30px auto 18px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--border);
  transition: var(--transition);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items:center; justify-content:center;
}
.faculty-card:hover .faculty-img-wrap {
  border-color: var(--secondary);
  transform: scale(1.05);
}
.faculty-img-wrap svg { width:100%; height:100%; }
.faculty-avatar {
  width: 100%; height: 100%;
  display: flex; align-items:center; justify-content:center;
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  font-family: var(--font-heading);
}
.faculty-body { padding: 0 20px 25px; }
.faculty-body h5 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}
.faculty-degree {
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.82rem;
  display: block;
  margin-bottom: 4px;
}
.faculty-title {
  color: var(--text-light);
  font-size: 0.82rem;
  margin-bottom: 12px;
}
.faculty-contact {
  font-size: 0.78rem;
  color: var(--text-light);
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.faculty-contact i { color: var(--primary); margin-left: 5px; }

/* ===== News Cards ===== */
.news-section { padding: 80px 0; background: var(--bg); }
.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  border: 1px solid var(--border);
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.news-img { height: 200px; overflow: hidden; }
.news-img img { width:100%; height:100%; object-fit:cover; transition: transform 0.4s; }
.news-card:hover .news-img img { transform: scale(1.06); }
.news-body { padding: 22px; }
.news-meta {
  display: flex; align-items:center; gap: 12px;
  margin-bottom: 10px;
  font-size: 0.78rem;
  color: var(--text-light);
}
.news-meta .badge-cat {
  background: var(--primary);
  color: #fff;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
}
.news-body h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.5;
}
.news-body p {
  color: var(--text-light);
  font-size: 0.85rem;
  line-height: 1.7;
}

/* ===== Footer ===== */
.site-footer { background: var(--dark); color: #b0b3c8; }
.footer-main { padding: 60px 0 30px; }
.footer-brand .footer-logo {
  width: 50px; height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius);
  display: flex; align-items:center; justify-content:center;
  color: var(--secondary);
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.footer-brand h4 { color: #fff; font-size: 1.1rem; font-weight: 800; margin-bottom: 12px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.8; margin-bottom: 18px; }
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items:center; justify-content:center;
  color: #fff;
  font-size: 0.85rem;
  transition: var(--transition);
}
.social-links a:hover {
  background: var(--secondary);
  color: var(--dark);
  transform: translateY(-3px);
}
.footer-links h5,
.footer-contact h5 {
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}
.footer-links h5::after,
.footer-contact h5::after {
  content:''; position:absolute;
  bottom: 0; right: 0;
  width: 35px; height: 2px;
  background: var(--secondary);
  border-radius: 1px;
}
.footer-links ul { list-style:none; padding:0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #b0b3c8; font-size: 0.88rem; transition: var(--transition); display:inline-flex; align-items:center; gap:8px; }
.footer-links a::before { content:'›'; color: var(--secondary); font-size: 1.2rem; }
.footer-links a:hover { color: var(--secondary); padding-right: 5px; }
.footer-contact ul { list-style:none; padding:0; }
.footer-contact li {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 14px;
  font-size: 0.88rem;
}
.footer-contact i {
  color: var(--secondary);
  margin-top: 4px;
  min-width: 18px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  font-size: 0.85rem;
}
.footer-bottom-links a { color: var(--secondary); font-size: 0.82rem; }

/* ===== Scroll Top ===== */
.scroll-top {
  position: fixed;
  bottom: 25px; left: 25px;
  width: 42px; height: 42px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items:center; justify-content:center;
  opacity: 0; visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 4px 15px rgba(26,95,42,0.3);
}
.scroll-top.visible { opacity:1; visibility:visible; }
.scroll-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ===== Department Detail Page ===== */
.dept-hero {
  position: relative;
  min-height: 50vh;
  display: flex; align-items:center;
  background-size: cover;
  background-position: center;
}
.dept-hero::before {
  content:''; position:absolute; inset:0;
  background: linear-gradient(135deg, rgba(26,95,42,0.92), rgba(18,71,31,0.88));
}
.dept-hero-content { position:relative; z-index:2; padding: 60px 0; color:#fff; }
.dept-hero-content h1 { font-family:var(--font-heading); font-size:2.2rem; font-weight:900; }
.info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  height: 100%;
  transition: var(--transition);
}
.info-card:hover { box-shadow: var(--shadow-lg); border-color: rgba(26,95,42,0.15); }
.info-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 15px;
  display: flex; align-items:center; gap:10px;
}
.info-card h3 i { color: var(--secondary); }
.info-card p { color: var(--text-light); font-size: 0.92rem; line-height: 1.8; }
.info-card ul { list-style:none; padding:0; }
.info-card li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex; align-items:center; gap:10px;
  font-size: 0.9rem;
}
.info-card li:last-child { border:none; }
.info-card li i { color: var(--primary); font-size: 0.8rem; }
.program-badge {
  display: inline-flex; align-items:center; gap:8px;
  background: var(--bg);
  padding: 10px 18px;
  border-radius: 8px;
  margin: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.program-badge:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.program-badge i { color: var(--secondary); }

/* ===== Admission Page ===== */
.admission-section { padding: 60px 0; }
.timeline {
  position: relative;
  padding-right: 35px;
}
.timeline::before {
  content:''; position:absolute;
  right: 10px; top:0; bottom:0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
}
.timeline-item {
  position: relative;
  margin-bottom: 35px;
}
.timeline-item::before {
  content:''; position:absolute;
  right: -30px; top: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--secondary);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--primary);
}
.timeline-item h5 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}
.timeline-item p { color: var(--text-light); font-size: 0.9rem; }
.requirement-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  height: 100%;
  transition: var(--transition);
}
.requirement-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.req-icon {
  width: 55px; height: 55px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex; align-items:center; justify-content:center;
  margin: 0 auto 15px;
  font-size: 1.3rem;
  color: #fff;
}

/* ===== Contact Page ===== */
.contact-section { padding: 60px 0; }
.contact-info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
  height: 100%;
  transition: var(--transition);
}
.contact-info-card:hover { box-shadow: var(--shadow-lg); border-color: rgba(26,95,42,0.15); }
.contact-icon {
  width: 55px; height: 55px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius);
  display: flex; align-items:center; justify-content:center;
  margin: 0 auto 15px;
  font-size: 1.3rem;
  color: #fff;
}
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 35px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.form-control-custom {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.92rem;
  transition: var(--transition);
  text-align: right;
}
.form-control-custom:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(26,95,42,0.1);
}

/* ===== Admin Login ===== */
.admin-login {
  min-height: 100vh;
  display: flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}
.login-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 45px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}
.login-card .login-icon {
  width: 70px; height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex; align-items:center; justify-content:center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  color: var(--secondary);
}

/* ===== Admin Dashboard ===== */
.admin-sidebar {
  background: var(--dark);
  color: #b0b3c8;
  min-height: 100vh;
  position: fixed;
  right: 0; top:0; bottom:0;
  width: 260px;
  z-index: 1000;
  overflow-y: auto;
}
.admin-sidebar-header {
  padding: 25px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}
.admin-sidebar-header h4 { color:#fff; font-size:1rem; font-weight:800; }
.admin-nav { list-style:none; padding: 15px; }
.admin-nav li { margin-bottom: 4px; }
.admin-nav a {
  display: flex; align-items:center; gap:12px;
  padding: 12px 16px;
  border-radius: 8px;
  color: #b0b3c8;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
}
.admin-nav a:hover,
.admin-nav a.active { background: var(--primary); color: #fff; }
.admin-nav i { width: 22px; text-align: center; }
.admin-main {
  margin-right: 260px;
  padding: 30px;
  background: var(--bg);
  min-height: 100vh;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 25px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex; align-items:center; gap: 18px;
}
.stat-card-icon {
  width: 50px; height: 50px;
  border-radius: var(--radius);
  display: flex; align-items:center; justify-content:center;
  font-size: 1.3rem;
  color: #fff;
}
.stat-card-info h4 {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text);
  margin: 0;
  line-height: 1;
}
.stat-card-info span { font-size: 0.85rem; color: var(--text-light); }
.data-table {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}
.data-table table { margin: 0; width:100%; }
.data-table th {
  background: var(--bg);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 14px 18px;
  border-bottom: 2px solid var(--border);
  color: var(--text);
}
.data-table td {
  padding: 14px 18px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tr:hover { background: rgba(26,95,42,0.02); }
.btn-sm-action {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  transition: var(--transition);
}
.btn-edit { background: #e8f4fd; color: #0d6efd; }
.btn-edit:hover { background: #0d6efd; color: #fff; }
.btn-delete { background: #fde8e8; color: #dc3545; }
.btn-delete:hover { background: #dc3545; color: #fff; }
.admin-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* ===== Centers Page ===== */
.center-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
  height: 100%;
}
.center-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.center-img { height: 220px; overflow: hidden; }
.center-img img { width:100%; height:100%; object-fit:cover; transition: transform 0.4s; }
.center-card:hover .center-img img { transform: scale(1.06); }
.center-body { padding: 28px; }
.center-body h4 { font-family:var(--font-heading); font-size:1.1rem; font-weight:800; color:var(--primary); margin-bottom:10px; }
.center-body p { color:var(--text-light); font-size:0.88rem; }

/* ===== Responsive ===== */
@media (max-width: 991px) {
  .admin-sidebar { width: 100%; position: relative; min-height:auto; }
  .admin-main { margin-right: 0; }
  .hero-title { font-size: 2.2rem; }
  .stat-item::after { display:none; }
  .nav-link { padding: 12px 16px !important; }
}
@media (max-width: 576px) {
  .hero-title { font-size: 1.7rem; }
  .hero-subtitle { font-size: 0.95rem; }
  .page-header h1 { font-size: 1.7rem; }
  .section-header h2 { font-size: 1.5rem; }
  .stats-section .stat-number { font-size: 2rem; }
  .about-img-wrap::before,
  .about-img-wrap::after { display:none; }
}
