/* Reset dan dasar */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  direction: rtl;
  font-family: 'Tajawal', 'Cairo', sans-serif;
  background-color: #f2f2f2;
  color: #111;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* Header */
.site-header {
  background-color: #002d5f;
  color: #fff;
  padding: 15px 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo {
  max-height: 60px;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.nav-menu li a {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  font-size: 1rem;
  transition: 0.3s;
}

.nav-menu li a:hover {
  color: #ffc107;
}

/* Hero */
.hero-section {
  position: relative;
  margin-top: 10px;
}

.hero-section img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-overlay {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 45, 95, 0.85);
  color: #fff;
  padding: 20px;
  max-width: 60%;
  border-radius: 8px;
}

.hero-overlay h1 {
  margin-bottom: 10px;
  font-size: 1.8rem;
}

/* Main Content Layout */
.content-grid {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 30px;
  margin: 40px 0;
}

.main-news {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.news-card {
  background-color: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
}

.news-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.news-card h2 {
  font-size: 1.2rem;
  padding: 15px 15px 0;
  color: #002d5f;
}

.news-card p {
  padding: 0 15px;
  color: #444;
}

.news-card a {
  display: block;
  background: #002d5f;
  color: #fff;
  margin: 15px;
  text-align: center;
  padding: 10px;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s;
}

.news-card a:hover {
  background: #014c9e;
}

/* Sidebar */
.sidebar {
  background-color: #fff;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.1);
}

.sidebar h3 {
  margin-bottom: 15px;
  color: #002d5f;
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  margin-bottom: 10px;
}

.sidebar a {
  text-decoration: none;
  color: #0056b3;
  transition: 0.2s;
}

.sidebar a:hover {
  color: #ff5722;
}

/* Footer */
.site-footer {
  background-color: #002d5f;
  color: #ccc;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
}

/* Responsiveness */
@media (max-width: 768px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero-overlay {
    max-width: 90%;
    font-size: 90%;
    right: 10px;
    bottom: 10px;
  }

  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-menu {
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }
}
