* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

body {
  background-color: #F5F7FA;
  color: #2C3E50;
  direction: rtl;
}

/* Header */
header {
  background-color: #68a8e9;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  flex-wrap: wrap;
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-title img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid white;
  object-fit: cover;
}

.logo-title h1 {
  font-size: 20px;
  margin: 0;
}

nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

nav a {
  color: #2C3E50;
  background: white;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 500;
  transition: 0.3s;
}

    nav a:hover,
    nav a.active {
        background-color: #0077cc;
        color: white;
    }
main {
  display: flex;
  flex-direction: row;
  gap: 20px;
  padding: 20px;
  flex-wrap: wrap;
}

/* Sidebar */
.sidebar {
  flex: 1;
  min-width: 180px;
  max-width: 250px;
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  gap: 5px;
  height: fit-content;
}

.main-btn {
  background-color: #3498DB;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-family: cairo;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.sidebar button:hover {
  background-color: #2980B9;
}

/* Content */
.content {
  flex: 3;
  min-width: 300px;
  background-color: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.1);
}

.content h2 {
  color: #2980B9;
  margin-bottom: 10px;
}

.content h3 {
  margin-top: 20px;
  color: #2C3E50;
}

.content p {
  margin-bottom: 10px;
}

.content img {
  max-width: 100%;
  margin-top: 15px;
  border-radius: 6px;
}
.gallery {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 15px;
      padding: 20px;
      max-width: 1200px;
      margin: auto;
    }

    .gallery a {
      display: block;
      border-radius: 10px;
      overflow: hidden;
    }

    .gallery img {
      width: 100%;
      height: 220px;
      object-fit: cover;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      cursor: zoom-in;
    }

    .gallery img:hover {
      transform: scale(1.05);
      box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }

    /* Lightbox */
    .lightbox {
      display: none;
      position: fixed;
      z-index: 999;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.8);
      text-align: center;
      padding: 40px 20px;
    }

    .lightbox img {
      max-width: 90%;
      max-height: 80%;
      margin-top: 50px;
      border-radius: 10px;
      box-shadow: 0 0 15px #000;
    }

    .lightbox:target {
      display: block;
    }

/* Footer */
footer {
  background-color: #68a8e9;
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: 30px;
}
