:root {
  --primary-blue: #0D4988;
  --accent-gold: #F5B014;
  --dark-blue: #061B36;
  --light-gray: #F9FAFB;
  --white: #FFFFFF;
  --text-dark: #1F2937;
  --text-muted: #6B7280;
  
  --font-main: 'Tajawal', 'Cairo', system-ui, sans-serif;
  --radius-lg: 20px;
  --radius-md: 12px;
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 25px 35px -5px rgba(13, 73, 136, 0.15);
  
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
}

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

body {
  font-family: var(--font-main);
  background-color: var(--light-gray);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.section-header h2 {
  font-size: 2.5rem;
  color: var(--dark-blue);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

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

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

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

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--dark-blue);
}

.nav-logo img {
  height: 50px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  font-weight: 600;
  color: var(--text-dark);
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--primary-blue);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dark-blue);
  cursor: pointer;
}

/* Buttons */
.btn-primary {
  background: var(--accent-gold);
  color: var(--dark-blue);
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 700;
  transition: all 0.3s;
  border: 2px solid var(--accent-gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: transparent;
  color: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(245, 176, 20, 0.3);
}

.btn-secondary {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(5px);
  color: var(--white);
  border: 2px solid var(--white);
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 700;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--dark-blue);
}

.btn-large {
  padding: 14px 32px;
  font-size: 1.1rem;
}

.btn-outline {
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-block;
}

.btn-outline:hover {
  background: var(--primary-blue);
  color: var(--white);
}
.btn-outline.disabled {
  border-color: var(--text-muted);
  color: var(--text-muted);
  pointer-events: none;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
  padding-top: 80px;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?auto=format&fit=crop&w=1920&q=80') center/cover;
  opacity: 0.15;
  mix-blend-mode: overlay;
}

.hero-shapes .shape {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-gold) 0%, transparent 70%);
  opacity: 0.2;
  filter: blur(40px);
}
.shape-1 { top: 10%; right: 10%; width: 400px; height: 400px; animation: float 10s infinite alternate; }
.shape-2 { bottom: -10%; left: -5%; width: 500px; height: 500px; background: radial-gradient(circle, #3B82F6 0%, transparent 70%); animation: float 15s infinite alternate-reverse; }

@keyframes float {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-50px) scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: var(--white);
}

.hero-text-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
}

.hero-title .highlight {
  color: var(--accent-gold);
  text-shadow: 0 0 20px rgba(245, 176, 20, 0.4);
}

.hero-subtitle {
  font-size: 1.3rem;
  opacity: 0.9;
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Glassmorphism About Section */
.about-section {
  padding: 100px 0;
  background: var(--light-gray);
  margin-top: -80px;
  position: relative;
  z-index: 20;
}

.glass-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card:hover {
  transform: translateY(-15px);
}

.main-glass-card {
  background: var(--primary-blue);
  color: var(--white);
  border: none;
  box-shadow: 0 20px 40px rgba(13, 73, 136, 0.3);
  transform: scale(1.05);
}
.main-glass-card:hover {
  transform: scale(1.05) translateY(-10px);
}

.glass-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--accent-gold);
}
.glass-card:not(.main-glass-card) .glass-icon {
  color: var(--primary-blue);
}

.glass-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: inherit;
}

/* Courses & Events (Tabs) */
.courses-section {
  padding: 100px 0;
  background: var(--white);
}

.tabs-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
}

.tab-btn {
  background: var(--light-gray);
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s;
}

.tab-btn.active {
  background: var(--primary-blue);
  color: var(--white);
  box-shadow: 0 8px 15px rgba(13, 73, 136, 0.2);
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}

.course-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.course-img-wrapper {
  position: relative;
  height: 200px;
}

.course-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-badge {
  position: absolute;
  top: 15px; right: 15px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
}

.badge-active { background: #10B981; }
.badge-closed { background: #EF4444; }

.course-details {
  padding: 25px;
}

.course-meta {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.course-details h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.course-details p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Services */
.services-section {
  padding: 100px 0;
  background: var(--light-gray);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-box {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all 0.3s;
}

.service-box:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: rgba(13, 73, 136, 0.05);
  color: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: all 0.3s;
}

.service-box:hover .service-icon {
  background: var(--primary-blue);
  color: var(--white);
}

/* Masonry Gallery */
.gallery-section {
  padding: 100px 0;
  background: var(--white);
}

.masonry-gallery {
  column-count: 3;
  column-gap: 20px;
}

.gallery-item {
  position: relative;
  margin-bottom: 20px;
  break-inside: avoid;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  display: block;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(245, 176, 20, 0.25);
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(6, 27, 54, 0.95), rgba(6, 27, 54, 0.65));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
  padding: 15px;
}

.gallery-overlay span {
  color: var(--white);
  font-weight: 700;
  font-size: 1.15rem;
  transform: translateY(15px);
  transition: transform 0.3s ease;
}

.gallery-overlay .album-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 176, 20, 0.2);
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  transform: translateY(15px);
  transition: transform 0.3s ease 0.05s;
}

.gallery-item:hover img {
  transform: scale(1.08);
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-item:hover .gallery-overlay span,
.gallery-item:hover .gallery-overlay .album-badge {
  transform: translateY(0);
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.show { display: flex; }
.lightbox-content { max-width: 90%; max-height: 90vh; border-radius: 8px; }
.lightbox-close {
  position: absolute;
  top: 20px; right: 30px;
  color: white; font-size: 40px; cursor: pointer;
}

/* Committees Section */
.committees-section {
  padding: 100px 0;
  background: var(--light-gray);
}

.committees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.committee-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 25px;
  border-right: 4px solid var(--accent-gold);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}

.committee-card:hover {
  transform: translateX(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-blue);
}

.com-icon {
  font-size: 1.8rem;
  color: var(--primary-blue);
  margin-bottom: 15px;
}

/* Values */
.values-section {
  padding: 80px 0;
  background: var(--dark-blue);
  color: var(--white);
}

.values-section .section-header h2 {
  color: var(--white);
}

.values-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.value-badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 12px 25px;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 700;
  backdrop-filter: blur(5px);
  transition: all 0.3s;
}

.value-badge:hover {
  background: var(--accent-gold);
  color: var(--dark-blue);
  border-color: var(--accent-gold);
  transform: scale(1.1);
}

/* CTA Section */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary-blue) 0%, #1e3a8a 100%);
  text-align: center;
  color: var(--white);
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--white);
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

/* Footer */
.footer {
  background: #041224;
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  height: 60px;
  margin-bottom: 20px;
}

.footer-about p {
  color: var(--text-muted);
  max-width: 400px;
}

.footer h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--accent-gold);
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  color: rgba(255,255,255,0.7);
  transition: color 0.3s;
}

.footer-links ul li a:hover {
  color: var(--accent-gold);
  padding-right: 5px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  transition: all 0.3s;
}

.social-icons a:hover {
  background: var(--accent-gold);
  color: var(--dark-blue);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
  .glass-grid { grid-template-columns: 1fr; }
  .main-glass-card { transform: none; }
  .main-glass-card:hover { transform: translateY(-10px); }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-about p { margin: 0 auto; }
  .social-icons { justify-content: center; }
  .masonry-gallery { column-count: 2; }
}

/* Login Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.login-modal-box {
  background: var(--white);
  width: 90%;
  max-width: 400px;
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  position: relative;
  transform: translateY(30px);
  transition: all 0.3s ease;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.modal-overlay.active .login-modal-box {
  transform: translateY(0);
}

.close-modal-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.3s;
}

.close-modal-btn:hover {
  color: var(--error-color);
}

.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-header img {
  height: 60px;
  margin-bottom: 15px;
}

.login-header h3 {
  color: var(--dark-blue);
  font-size: 1.5rem;
}

.login-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.login-form .form-group {
  margin-bottom: 20px;
}

.login-form label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark-blue);
}

.login-form input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-md);
  font-family: 'Cairo', sans-serif;
  transition: border-color 0.3s;
}

.login-form input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(13, 73, 136, 0.1);
}

.login-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.login-footer a {
  color: var(--accent-gold);
  font-weight: 700;
  text-decoration: none;
}

.w-100 {
  width: 100%;
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 80px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.active { display: flex; }
  .mobile-menu-btn { display: block; }
  
  .hero-title { font-size: 2.8rem; }
  .hero-actions { flex-direction: column; }
  
  .masonry-gallery { column-count: 1; }
  .tabs-container { flex-direction: column; }
}
