/* Smouha Hospital Academy - Premium Styles */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Tajawal:wght@400;500;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --gold: #D4AF37;
  --gold-light: #F4E4BC;
  --navy: #0A1F44;
  --navy-dark: #05122B;
  --red: #C41E3A;
  --blue: #1B4F8A;
  --white: #FFFFFF;
  --off-white: #F8F6F0;
  --text: #1A1A1A;
  --text-light: #555;
  --shadow: 0 10px 40px rgba(0,0,0,0.12);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Tajawal', sans-serif;
  background: var(--off-white);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

body.rtl {
  direction: rtl;
  font-family: 'Tajawal', 'Inter', sans-serif;
}

/* Header */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 31, 68, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--gold);
  transition: var(--transition);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.logo-area img {
  height: 60px;
  width: auto;
  border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.logo-text {
  color: var(--white);
}

.logo-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.logo-text span {
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 1px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.8rem;
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  position: relative;
  transition: var(--transition);
}

nav a:hover, nav a.active {
  color: var(--gold);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

nav a:hover::after, nav a.active::after { width: 100%; }

.lang-switch {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.4rem 1rem;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.lang-switch:hover {
  background: var(--gold);
  color: var(--navy);
}

/* Hero */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, #0D2A5C 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding-top: 100px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('20261103183704286-a818bc5e-2a91-492c-a914-62e47eb9ca4f.png') center/cover no-repeat;
  opacity: 0.08;
  filter: blur(2px);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 2rem;
}

.hero-logo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 4px solid var(--gold);
  margin: 0 auto 2rem;
  box-shadow: 0 0 60px rgba(212, 175, 55, 0.5);
  object-fit: cover;
}

.hero h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 900;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--gold), #FFF, var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.slogan {
  font-size: 1.4rem;
  color: var(--gold-light);
  margin: 1.5rem 0;
  font-style: italic;
  font-weight: 500;
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 2.5rem;
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), #B8962E);
  color: var(--navy);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.6);
}

/* Sections */
section {
  padding: 6rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  color: var(--navy);
  position: relative;
  display: inline-block;
}

.section-title h3::after {
  content: '';
  position: absolute;
  bottom: -10px; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--red));
  border-radius: 2px;
}

.section-title p {
  color: var(--text-light);
  margin-top: 1.5rem;
  font-size: 1.1rem;
}

/* Centers Grid */
.centers-grid, .sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid var(--gold);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--red), var(--blue));
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.card h4 {
  color: var(--navy);
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  font-family: 'Playfair Display', serif;
}

.card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Library */
.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.video-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.video-card:hover { transform: translateY(-6px); }

.video-thumb {
  height: 180px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 3rem;
  overflow: hidden;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-info { padding: 1.2rem; }

.video-info h5 { color: var(--navy); margin-bottom: 0.4rem; }

/* Admin styles */
.admin-login, .admin-dashboard {
  max-width: 500px;
  margin: 120px auto 4rem;
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
}

.admin-dashboard { max-width: 1100px; }

.form-group { margin-bottom: 1.5rem; }

.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--navy); }

.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.2);
}

.btn {
  background: var(--navy);
  color: white;
  border: none;
  padding: 0.9rem 2rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.btn:hover { background: var(--gold); color: var(--navy); }

.admin-nav {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.admin-nav button {
  background: var(--off-white);
  border: 1px solid #ddd;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
}

.admin-nav button.active {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

/* Footer */
footer {
  background: var(--navy-dark);
  color: var(--white);
  padding: 4rem 2rem 2rem;
  text-align: center;
}

.footer-logo { width: 100px; border-radius: 50%; margin-bottom: 1rem; }

.gahar-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212,175,55,0.15);
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.9rem;
  margin: 1rem 0;
}

/* Responsive */
@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; gap: 1rem; }
  nav ul { gap: 1rem; font-size: 0.85rem; }
  .hero h2 { font-size: 2.2rem; }
  section { padding: 4rem 1.2rem; }
}
