/* === GLOBAL STYLES === */
body {
  margin: 0;
  font-family: 'Tajawal', sans-serif;
  background-color: #e6f0ff;
  color: #1a1a1a;
  line-height: 1.6;
  perspective: 1000px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px; /* ← هذه القيمة تتحكم في المسافة بين الزرين */
  position: absolute;
  left: 20px;
  top: 20px;
}


/* === NEWS CARDS === */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2em;
}

.news-card {
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.news-card:hover {
  transform: perspective(1000px) rotateY(-5deg) scale(1.02);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
}

.news-card img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 4px solid #A3D9A5;
}

.news-card h4 {
  padding: 1em;
  color: #004080;
  margin: 0;
}

.news-card p {
  padding: 0 1em 1em 1em;
}

.lang-toggle,
.email-check-button {
  display: flex;
  align-items: center;
  gap: 5px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  padding: 6px 10px;
  font-size: 0.9rem;
  text-decoration: none;
  color: #ffffff;
  transition: all 0.3s ease;
}

.lang-toggle:hover,
.email-check-button:hover {
  background-color: #f0f0f0;
  color: #0059b3;
}
/* HEADER */
.site-header {
  background-color: #0059b3;
  color: white;
  padding: 1em;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: relative;
}

.logo-container img {
  height: 80px;
  border-radius: 5px;
  margin-bottom: 0.5em;
}

.logo-container h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: bold;
}

.lang-toggle {
  position: absolute;
  left: 20px;
  top: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  background-color: #ffffff;
  border-radius: 5px;
  padding: 6px 10px;
  font-size: 0.9rem;
  text-decoration: none;
  color: #0059b3;
  transition: background-color 0.3s ease;
}

.lang-toggle img {
  width: 20px;
  height: 20px;
}

.lang-toggle:hover {
  background-color: #f0f0f0;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1em;
  margin: 1em 0 0 0;
  padding: 0;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.3s ease;
}

nav ul li a:hover {
  transform: scale(1.1);
  color: #cce5ff;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(to right, #cce5ff, #e6f0ff);
  padding: 3em 2em;
  text-align: center;
  border-bottom: 1px solid #b3d1ff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.hero-section h2 {
  font-size: 2rem;
  color: #003366;
  margin-bottom: 1em;
}

/* Main Content */
.main-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2em;
  padding: 2em;
  max-width: 1200px;
  margin: auto;
}
/* Bobup image Main gallery team  */

#image-popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.section-card {
  background-color: #ffffff;
  padding: 2em;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  transform: rotateX(2deg);
}

.section-card:hover {
  transform: rotateX(0deg) translateZ(10px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
}

.section-card h3 {
  color: #004080;
  margin-top: 0;
}

.btn-read-more {
  display: inline-block;
  margin-top: 1em;
  padding: 0.6em 1.2em;
  background-color: #007acc;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.btn-read-more:hover {
  background-color: #005fb2;
}

/* Footer */
.site-footer {
  background-color: #0059b3;
  color: white;
  text-align: center;
  padding: 1.5em;
  margin-top: 2em;
}
/* === GALLERY STYLES === */
.tab-container {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.tab {
  padding: 10px 20px;
  margin: 0 10px;
  background-color: #007acc;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  color: white;
  transition: all 0.3s ease;
}

.tab:hover,
.tab.active {
  background-color: #005fb2;
  color: white;
  transform: scale(1.05);
}
.gallery-wrapper {
  display: none;
  opacity: 0;
  animation: fadeIn 0.6s forwards;
}

.gallery-wrapper.active {
  display: block;
  opacity: 1;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.gallery-card {
  background-color: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transform: perspective(1000px) rotateY(0deg);
  transition: transform 0.4s ease;
}

.gallery-card:hover {
  transform: perspective(1000px) rotateY(-5deg) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.gallery-card img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 4px solid #A3D9A5;
}

/* === COMMITTEES STYLES === */

.committee-section {
  margin-top: 2em;
}

.committee-card {
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  padding: 1.5em;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.committee-card:hover {
  transform: perspective(1000px) rotateY(-5deg) scale(1.02);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
}

.committee-card h4 {
  color: #004080;
  margin-bottom: 1em;
}

.committee-members ul {
  list-style: none;
  padding-right: 1em;
}

.committee-members li {
  position: relative;
  padding-left: 20px;
}

.committee-members li::before {
  content: '•';
  color: #007acc;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 2px;
}

/* === NEWS DETAIL IMAGES === */
.news-images img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 1em;
}

.lang-toggle,
.email-check-button {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  font-size: 0.9rem;
  text-decoration: none;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  transition: all 0.3s ease;
}

.email-check-button img {
  width: 16px;
  height: 16px;
  margin-left: 5px;
}

.lang-toggle:hover,
.email-check-button:hover {
  background-color: #f0f0f0;
  color: #0059b3;
}

    .upload-section {
      max-width: 600px;
      margin: 2em auto;
      background-color: #f0f8ff;
      border-radius: 15px;
      padding: 2em;
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .upload-section h4 {
      color: #004080;
      margin-bottom: 1em;
    }

    .form-control {
      width: 100%;
      padding: 0.7em;
      margin-bottom: 1em;
      border: 1px solid #b3d1ff;
      border-radius: 10px;
    }

    .btn-admin {
      background-color: #007acc;
      color: white;
      padding: 0.7em 1.5em;
      font-size: 1rem;
      border: none;
      border-radius: 10px;
      cursor: pointer;
      transition: background-color 0.3s ease;
    }

    .btn-admin:hover {
      background-color: #005fb2;
    }

        .organizational-chart {
      margin-top: 2em;
      text-align: center;
    }

    .chart-card {
      background-color: #ffffff;
      border-radius: 15px;
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
      padding: 1.5em;
      transition: transform 0.4s ease, box-shadow 0.4s ease;
    }

    .chart-card:hover {
      transform: perspective(1000px) rotateY(-5deg) scale(1.02);
      box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
    }

    .chart-img {
      max-width: 100%;
      width: 100%;
      height: auto;
      border-radius: 10px;
      border: 2px solid #A3D9A5;
    }

    
    .social-icons {
      display: flex;
      justify-content: center;
      gap: 20px;
      margin-top: 2em;
      flex-wrap: wrap;
    }

    .social-card {
      background-color: #ffffff;
      border-radius: 15px;
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
      padding: 1em 1.5em;
      text-align: center;
      transition: transform 0.4s ease, box-shadow 0.4s ease;
      width: 160px;
    }

    .social-card:hover {
      transform: perspective(1000px) rotateY(-5deg) scale(1.05);
      box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
    }

    .social-card img {
      width: 40px;
      height: 40px;
      margin-bottom: 10px;
      transition: filter 0.3s ease;
    }

    .social-card:hover img {
      filter: brightness(1.2);
    }

    .social-card a {
      display: block;
      color: #004080;
      font-weight: bold;
      text-decoration: none;
      transition: color 0.3s ease;
    }

    .social-card a:hover {
      color: #007acc;
    }



      /* Gallery Tabs */
    .tab-container {
      display: flex;
      justify-content: center;
      margin: 20px 0;
    }

    .tab {
      padding: 10px 20px;
      margin: 0 10px;
      background-color: #FFDEAD;
      border-radius: 25px;
      cursor: pointer;
      font-weight: bold;
      transition: all 0.3s ease;
    }

    .tab:hover,
    .tab.active {
      background-color: #FF851B;
      color: white;
    }

    /* Gallery Grid */
    .gallery-wrapper {
      display: none;
      opacity: 0;
      animation: fadeIn 0.6s forwards;
    }

    .gallery-wrapper.active {
      display: block;
      opacity: 1;
    }

    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 20px;
      margin-top: 20px;
    }

    .gallery-card {
      background-color: #fff;
      border-radius: 15px;
      overflow: hidden;
      box-shadow: 0 10px 20px rgba(0,0,0,0.1);
      transform: perspective(1000px) rotateY(0deg);
      transition: transform 0.4s ease;
    }

    .gallery-card:hover {
      transform: perspective(1000px) rotateY(-5deg) scale(1.02);
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    }

    .gallery-card img {
      width: 100%;
      height: auto;
      display: block;
      border-bottom: 4px solid #A3D9A5;
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(20px); }
      to { opacity: 1; transform: translateY(0); }
    }


    
    .news-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 2em;
      margin-top: 2em;
    }

    .news-card {
      background-color: #ffffff;
      border-radius: 15px;
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
      overflow: hidden;
      transition: transform 0.4s ease, box-shadow 0.4s ease;
      cursor: pointer;
    }

    .news-card:hover {
      transform: perspective(1000px) rotateY(-5deg) scale(1.02);
      box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
    }

    .news-card img {
      width: 100%;
      height: auto;
      display: block;
      border-bottom: 4px solid #A3D9A5;
    }

    .news-card h4 {
      padding: 1em;
      color: #004080;
      margin: 0;
    }

    .news-card p {
      padding: 0 1em 1em 1em;
    }

    .news-card a {
      display: inline-block;
      margin-left: 1em;
      margin-bottom: 1em;
      color: #007acc;
      text-decoration: none;
      font-weight: bold;
      transition: color 0.3s ease;
    }

    .news-card a:hover {
      color: #005fb2;
    }



       .social-icons {
      display: flex;
      justify-content: center;
      gap: 20px;
      margin-top: 2em;
      flex-wrap: wrap;
    }

    .social-card {
      background-color: #ffffff;
      border-radius: 15px;
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
      padding: 1em 1.5em;
      text-align: center;
      transition: transform 0.4s ease, box-shadow 0.4s ease;
      width: 160px;
    }

    .social-card:hover {
      transform: perspective(1000px) rotateY(-5deg) scale(1.05);
      box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
    }

    .social-card img {
      width: 40px;
      height: 40px;
      margin-bottom: 10px;
      transition: filter 0.3s ease;
    }

    .social-card:hover img {
      filter: brightness(1.2);
    }

    .social-card a {
      display: block;
      color: #004080;
      font-weight: bold;
      text-decoration: none;
      transition: color 0.3s ease;
    }

    .social-card a:hover {
      color: #007acc;
    }

    .committees-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.committee-card {
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.committee-card h5 {
  margin-top: 0;
  color: #333;
}

.committee-card ul {
  list-style: disc;
  padding-left: 1.2rem;
  margin: 0.5rem 0;
}

.committee-card li {
  margin-bottom: 0.3rem;
}