:root {
  --primary: #1e6f5c;
  --primary-dark: #164d3f;
  --primary-light: #2a9d8f;
  --gold: #d4af37;
  --gold-light: #f4d03f;
  --dark: #1a1a2e;
  --light: #f8f9fa;
  --white: #ffffff;
  --text: #333333;
  --text-light: #666666;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --radius: 12px;
  --transition: all 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--light);
  line-height: 1.7;
}

/* RTL Support */
[dir="rtl"] { direction: rtl; }
[dir="rtl"] .nav-links { flex-direction: row-reverse; }
[dir="rtl"] .lang-select { margin-left: 0; margin-right: auto; }

/* Navbar */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  z-index: 1000;
  transition: var(--transition);
}

.nav-container {
  max-width: 1200px; margin: 0 auto;
  padding: 0 20px; height: 70px;
  display: flex; align-items: center; justify-content: space-between;
}

.logo-area {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--dark);
}

.logo-area img {
  width: 48px; height: 48px; object-fit: contain;
  border-radius: 50%; border: 2px solid var(--gold);
}

.logo-text {
  font-size: 1.1rem; font-weight: 700;
  color: var(--primary); line-height: 1.2;
}

.logo-text span {
  display: block; font-size: 0.75rem; color: var(--text-light); font-weight: 500;
}

.nav-links {
  display: flex; gap: 8px; list-style: none; align-items: center;
}

.nav-links a {
  text-decoration: none; color: var(--text);
  font-weight: 500; font-size: 0.9rem;
  padding: 8px 14px; border-radius: 8px;
  transition: var(--transition); white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active {
  background: var(--primary); color: var(--white);
}

.lang-select {
  display: flex; gap: 6px; align-items: center;
  margin-left: 16px;
}

.lang-select a {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  padding: 4px 8px; border-radius: 4px; text-decoration: none;
  color: var(--text-light); border: 1px solid transparent;
  transition: var(--transition);
}

.lang-select a:hover, .lang-select a.active {
  background: var(--gold); color: var(--dark); border-color: var(--gold);
}

.mobile-toggle {
  display: none; background: none; border: none;
  font-size: 1.5rem; cursor: pointer; color: var(--primary);
}

/* Hero */
.hero {
  position: relative; min-height: 85vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--white);
  overflow: hidden; margin-top: 70px;
}

.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
}

.hero-pattern {
  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='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%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.3;
}

.hero-content {
  position: relative; z-index: 2; max-width: 800px; padding: 40px 20px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800; margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  opacity: 0.95; margin-bottom: 32px; max-width: 600px; margin-inline: auto;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 50px;
  font-weight: 600; text-decoration: none; border: none; cursor: pointer;
  transition: var(--transition); font-size: 1rem;
}

.btn-primary {
  background: var(--gold); color: var(--dark);
  box-shadow: 0 4px 15px rgba(212,175,55,0.4);
}

.btn-primary:hover {
  background: var(--gold-light); transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212,175,55,0.5);
}

.btn-outline {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: var(--white); color: var(--primary);
}

/* Sections */
.section {
  padding: 80px 20px; max-width: 1200px; margin: 0 auto;
}

.section-header {
  text-align: center; margin-bottom: 60px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--dark); margin-bottom: 16px;
  position: relative; display: inline-block;
}

.section-header h2::after {
  content: ''; position: absolute; bottom: -8px; left: 50%;
  transform: translateX(-50%); width: 60px; height: 4px;
  background: var(--gold); border-radius: 2px;
}

.section-header p {
  color: var(--text-light); max-width: 600px; margin: 20px auto 0;
  font-size: 1.05rem;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: var(--transition); border: 1px solid rgba(0,0,0,0.04);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.card-icon {
  height: 160px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white); font-size: 3rem;
}

.card-body { padding: 28px; }

.card-body h3 {
  font-size: 1.25rem; color: var(--dark); margin-bottom: 12px;
}

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

.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px; color: var(--primary);
  text-decoration: none; font-weight: 600; font-size: 0.9rem;
  transition: var(--transition);
}

.card-link:hover { gap: 10px; color: var(--primary-dark); }

/* News */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

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

.news-card:hover { transform: translateY(-4px); }

.news-thumb {
  width: 100%; height: 200px; object-fit: cover;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.news-body { padding: 24px; }

.news-date {
  font-size: 0.8rem; color: var(--primary); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px;
}

.news-body h3 {
  font-size: 1.15rem; color: var(--dark); margin-bottom: 10px;
  line-height: 1.4;
}

.news-body p {
  color: var(--text-light); font-size: 0.9rem; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Video Embed */
.video-wrapper {
  position: relative; padding-bottom: 56.25%; height: 0;
  overflow: hidden; border-radius: var(--radius); margin: 20px 0;
  background: var(--dark);
}

.video-wrapper iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}

/* Content Pages */
.content-page {
  padding-top: 100px; min-height: 60vh;
}

.content-page .section-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white); padding: 60px 20px; margin-bottom: 0;
}

.content-page .section-header h2,
.content-page .section-header p { color: var(--white); }

.content-page .section-header h2::after { background: var(--gold); }

.page-content {
  max-width: 900px; margin: 0 auto; padding: 60px 20px;
}

.page-content h3 {
  color: var(--primary); font-size: 1.4rem; margin: 32px 0 16px;
  padding-bottom: 8px; border-bottom: 2px solid var(--gold);
}

.page-content p { margin-bottom: 16px; color: var(--text); }

.page-content ul { margin-left: 24px; margin-bottom: 16px; }
.page-content li { margin-bottom: 8px; }

.info-box {
  background: linear-gradient(135deg, rgba(30,111,92,0.05), rgba(42,157,143,0.05));
  border-left: 4px solid var(--primary); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px; margin: 24px 0;
}

[dir="rtl"] .info-box {
  border-left: none; border-right: 4px solid var(--primary);
  border-radius: var(--radius) 0 0 var(--radius);
}

.info-box h4 { color: var(--primary); margin-bottom: 8px; }

/* Contact */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start;
}

.contact-info h3 { color: var(--primary); margin-bottom: 20px; }

.contact-item {
  display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px;
}

.contact-item .icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white); display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}

.contact-item div h4 { font-size: 1rem; color: var(--dark); margin-bottom: 4px; }
.contact-item div p { font-size: 0.9rem; color: var(--text-light); }

.contact-form {
  background: var(--white); padding: 32px; border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.9rem; }
.form-group input,
.form-group textarea {
  width: 100%; padding: 12px 16px; border: 1px solid #ddd;
  border-radius: 8px; font-family: inherit; font-size: 1rem;
  transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30,111,92,0.1);
}

/* Footer */
.footer {
  background: var(--dark); color: rgba(255,255,255,0.7);
  padding: 60px 20px 30px;
}

.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px;
}

.footer-col h4 {
  color: var(--white); font-size: 1.1rem; margin-bottom: 20px;
  position: relative; padding-bottom: 10px;
}

.footer-col h4::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 40px; height: 3px; background: var(--gold); border-radius: 2px;
}

[dir="rtl"] .footer-col h4::after { left: auto; right: 0; }

.footer-col a {
  display: block; color: rgba(255,255,255,0.7);
  text-decoration: none; margin-bottom: 10px; transition: var(--transition);
}

.footer-col a:hover { color: var(--gold); padding-left: 4px; }
[dir="rtl"] .footer-col a:hover { padding-left: 0; padding-right: 4px; }

.footer-bottom {
  max-width: 1200px; margin: 40px auto 0; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center; font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
  .mobile-toggle { display: block; }
  .nav-links {
    position: fixed; top: 70px; left: 0; right: 0;
    background: var(--white); flex-direction: column;
    padding: 20px; gap: 4px; box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-150%); transition: transform 0.3s ease;
    align-items: stretch;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px; border-radius: 8px; }
  .lang-select { margin: 12px 0 0; justify-content: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 20px; }
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate { animation: fadeInUp 0.8s ease forwards; }

/* Admin link badge */
.admin-link {
  position: fixed; bottom: 20px; right: 20px;
  background: var(--primary); color: var(--white);
  padding: 10px 18px; border-radius: 50px;
  text-decoration: none; font-size: 0.8rem; font-weight: 600;
  box-shadow: 0 4px 15px rgba(30,111,92,0.3); z-index: 999;
  transition: var(--transition);
}
.admin-link:hover { background: var(--primary-dark); transform: scale(1.05); }
[dir="rtl"] .admin-link { right: auto; left: 20px; }
