@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #186A74;
  --primary-dark: #124d54;
  --primary-light: #208e9b;
  --secondary: #A38361;
  --accent: #8b6f52;
  --dark: #1E2526;
  --dark-2: #151a1a;
  --light: #FBF9F6;
  --gray: #6c757d;
  --gray-light: #e9ecef;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --transition: all 0.3s ease;
}

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

html { 
  scroll-behavior: smooth; 
  scroll-padding-top: 80px;
}

body {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  direction: rtl;
  text-align: right;
  color: #333;
  background: var(--white);
  line-height: 1.8;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--dark);
  color: var(--white);
  padding: 8px 0;
  font-size: 13px;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.top-bar a { color: var(--secondary); }
.top-bar a:hover { color: var(--white); }
.top-bar-links { display: flex; gap: 20px; align-items: center; }
.top-bar-links i { margin-left: 5px; }

/* ===== HEADER / NAVBAR ===== */
.header {
  background: transparent;
  box-shadow: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  padding: 5px 0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 5px;
  padding-bottom: 5px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-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;
  color: var(--white);
  font-size: 24px;
  font-weight: 700;
}
.logo-text h1 { font-size: 16px; font-weight: 700; color: var(--primary-dark); line-height: 1.3; }
.logo-text span { font-size: 11px; color: var(--gray); }

.main-nav { display: flex; align-items: center; gap: 5px; }
.main-nav > li { position: relative; }
.main-nav > li > a {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  border-radius: 8px;
  display: block;
}
/* Header elements when transparent (only on pages with hero) */
.header.hero-header:not(.scrolled) .logo-text h1 { color: var(--white); }
.header.hero-header:not(.scrolled) .logo-text span { color: rgba(255,255,255,0.8); }
.header.hero-header:not(.scrolled) .main-nav > li > a { color: var(--white); }
.header.hero-header:not(.scrolled) .hamburger span { background: var(--white); }

.main-nav > li > a.active {
  color: var(--primary);
  background: rgba(24,106,116,0.06);
}

@media (min-width: 993px) {
  .main-nav > li > a:hover {
    color: var(--primary);
    background: rgba(24,106,116,0.06);
  }
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--white);
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
}
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu li a {
  display: block;
  padding: 8px 20px;
  font-size: 13px;
  color: var(--dark);
}
.dropdown-menu li a:hover {
  background: rgba(24,106,116,0.06);
  color: var(--primary);
}



/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}
.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--dark);
  border-radius: 3px;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('images/hero.png') center/cover;
  opacity: 0.3;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(42, 32, 21, 0.5) 0%, rgba(163, 131, 97, 0.35) 95%, var(--light) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 800px;
  padding: 150px 20px 40px;
}
.hero-content h2 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.hero-content p {
  font-size: 18px;
  margin-bottom: 35px;
  opacity: 0.9;
  line-height: 1.8;
}
.hero-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.btn {
  padding: 14px 35px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(24,106,116,0.4); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-3px);
}

/* Floating shapes */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}
.hero-shape-1 { width: 300px; height: 300px; background: var(--secondary); top: -50px; right: -80px; }
.hero-shape-2 { width: 200px; height: 200px; background: var(--primary-light); bottom: -40px; left: -60px; animation-delay: 2s; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* ===== STATS ===== */
.stats {
  background: var(--white);
  padding: 0;
  margin-top: -50px;
  position: relative;
  z-index: 5;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.stat-card {
  background: var(--white);
  padding: 30px 20px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}
.stat-card:hover { transform: translateY(-5px); }
.stat-card i {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 10px;
}
.stat-card .number {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-dark);
  display: block;
}
.stat-card .label {
  font-size: 14px;
  color: var(--gray);
  margin-top: 5px;
}

/* ===== SECTION COMMON ===== */
.section { padding: 80px 0; }
.section-header {
  text-align: center;
  margin-bottom: 50px;
}
.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 15px;
}
.section-header p {
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}
.section-header .line {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  margin: 15px auto 0;
  border-radius: 2px;
}

/* ===== ABOUT ===== */
.about { background: var(--light); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.about-image {
  position: relative;
}
.about-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.about-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: var(--primary);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 14px;
}
.about-text h3 {
  font-size: 24px;
  color: var(--primary-dark);
  margin-bottom: 20px;
}
.about-text p {
  color: #555;
  margin-bottom: 15px;
  line-height: 1.9;
}
.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 25px;
}
.about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--white);
  border-radius: 8px;
}
.about-feature i { color: var(--primary); font-size: 18px; }
.about-feature span { font-size: 14px; font-weight: 500; }

/* ===== CEO ===== */
.ceo-section { background: var(--white); }
.ceo-card {
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(135deg, #f8fdf9, #eef7f0);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  gap: 30px;
  align-items: center;
  box-shadow: var(--shadow);
}
.ceo-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 48px;
  flex-shrink: 0;
}
.ceo-info h3 { font-size: 22px; color: var(--primary-dark); margin-bottom: 5px; }
.ceo-info .ceo-title { color: var(--primary); font-size: 14px; font-weight: 600; margin-bottom: 15px; }
.ceo-details { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ceo-detail { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #555; }
.ceo-detail i { color: var(--primary); }

/* ===== NEWS ===== */
.news { background: var(--light); }
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.news-card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 40px;
  position: relative;
  overflow: hidden;
}
.news-card-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card-date {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--primary);
  color: var(--white);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
}
.news-card-body { padding: 20px; }
.news-card-body .tag {
  display: inline-block;
  background: rgba(24,106,116,0.1);
  color: var(--primary);
  padding: 3px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 10px;
}
.news-card-body h3 { font-size: 16px; color: var(--dark); margin-bottom: 8px; line-height: 1.5; }
.news-card-body p { font-size: 13px; color: var(--gray); }

/* ===== PROGRAMS ===== */
.programs { background: var(--white); }
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}
.program-card {
  background: var(--light);
  padding: 40px 25px;
  border-radius: var(--radius);
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--gray-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.program-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.program-card i {
  font-size: 40px;
  color: var(--primary);
  margin-bottom: 20px;
}
.program-card h3 {
  font-size: 18px;
  color: var(--dark);
  line-height: 1.5;
}


/* ===== PROJECTS ===== */


/* ===== PARTNERS ===== */
.partners { background: var(--light); }
.partners-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.partner-logo {
  width: 150px;
  height: 80px;
  background: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  padding: 15px;
  font-weight: 700;
  color: var(--gray);
  font-size: 13px;
}
.partner-logo:hover { transform: scale(1.05); box-shadow: var(--shadow-lg); }

/* ===== CONTACT ===== */
.contact { background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-info-cards { display: grid; gap: 20px; }
.contact-card {
  display: flex;
  gap: 15px;
  padding: 20px;
  background: var(--light);
  border-radius: var(--radius);
  transition: var(--transition);
}
.contact-card:hover { transform: translateX(-5px); box-shadow: var(--shadow); }
.contact-card-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 20px;
  flex-shrink: 0;
}
.contact-card h4 { font-size: 15px; color: var(--dark); margin-bottom: 5px; }
.contact-card p { font-size: 13px; color: var(--gray); }

.contact-form { display: flex; flex-direction: column; gap: 15px; }
.contact-form input,
.contact-form textarea {
  padding: 14px 18px;
  border: 2px solid var(--gray-light);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  transition: var(--transition);
  direction: rtl;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(24,106,116,0.1);
}
.contact-form textarea { min-height: 120px; resize: vertical; }

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-about h3 {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 15px;
}
.footer-about p { font-size: 14px; line-height: 1.8; }
.footer-links h4,
.footer-contact h4 {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 15px;
}
.footer-links ul li { margin-bottom: 8px; }
.footer-links ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}
.footer-links ul li a:hover { color: var(--secondary); padding-right: 5px; }
.footer-contact .footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
}
.footer-contact i { color: var(--secondary); }
.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 45px;
  height: 45px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: var(--transition);
  box-shadow: 0 3px 15px rgba(24,106,116,0.3);
}
.scroll-top:hover { background: var(--primary-dark); transform: translateY(-3px); }
.scroll-top.show { display: flex; }

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 1s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .hamburger { display: flex; }
  .nav-wrapper {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    padding: 70px 20px 30px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    overflow-y: auto;
    z-index: 1000;
  }
  .nav-wrapper.open { left: 0; }
  .main-nav { flex-direction: column; width: 100%; }
  .main-nav > li > a { padding: 12px 15px; color: var(--dark) !important; }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding-right: 15px;
    display: none;
  }
  .dropdown.open .dropdown-menu { display: block; }
  .hero-content h2 { font-size: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .ceo-card { flex-direction: column; text-align: center; }
  .ceo-details { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 20px 10px; }
  .stat-card .number { font-size: 28px; }
  .hero-content h2 { font-size: 26px; }
  .news-grid { grid-template-columns: 1fr; }

  .section-header h2 { font-size: 24px; }
  .about-features { grid-template-columns: 1fr; }
  .top-bar { display: none; }
}

/* About Shuwaimas Section */
.shuwaimas-section {
    background: linear-gradient(to bottom, var(--light) 0%, rgba(92, 58, 33, 0) 5%, rgba(92, 58, 33, 0) 95%, var(--white) 100%), 
                linear-gradient(to left, rgba(92, 58, 33, 1) 0%, rgba(92, 58, 33, 0.95) 45%, rgba(92, 58, 33, 0.1) 100%), 
                url('images/الشويمس.jpeg') left center / cover no-repeat;
    color: white;
    padding: 80px 0;
}
.shuwaimas-container {
    display: flex;
    justify-content: flex-start;
    direction: rtl;
}
.shuwaimas-text-wrapper {
    width: 100%;
    max-width: 60%;
    padding-left: 20px;
}
.shuwaimas-header {
    text-align: right;
    margin-bottom: 30px;
}
.shuwaimas-header h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.shuwaimas-header .line {
    margin: 0;
    background: white;
    width: 80px;
}
.shuwaimas-content {
    font-size: 1.1rem;
    line-height: 1.8;
}
.shuwaimas-content p {
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    margin-bottom: 15px;
}
.shuwaimas-mobile-img {
    display: none;
}

@media (max-width: 992px) {
    .shuwaimas-section {
        background: linear-gradient(to bottom, var(--light) 0%, #f5f0e6 5%, #f5f0e6 95%, var(--white) 100%);
        color: var(--text);
        padding: 60px 0;
    }
    .shuwaimas-container {
        flex-direction: column;
    }
    .shuwaimas-mobile-img {
        display: block;
        width: 100%;
        border-radius: var(--radius);
        margin-bottom: 30px;
        box-shadow: var(--shadow);
    }
    .shuwaimas-text-wrapper {
        max-width: 100%;
        padding-left: 0;
    }
    .shuwaimas-header {
        text-align: right;
    }
    .shuwaimas-header h2 {
        color: var(--primary);
        font-size: 2rem;
    }
    .shuwaimas-header .line {
        background: var(--primary);
    }
    .shuwaimas-content p {
        color: var(--text);
        text-shadow: none;
    }
}
