@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

:root {
  --primary-color: #0056b3;
  --secondary-color: #333;
  --light-bg: #f4f4f4;
  --white: #ffffff;
  --text-color: #333;
  --accent-color: #d4af37; /* Gold for premium feel */
}

/* Reset & Global */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Cairo', sans-serif;
  background-color: var(--light-bg);
  color: var(--text-color);
  line-height: 1.6;
  direction: rtl; /* RTL Support */
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header */
header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo img {
  height: 60px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--secondary-color);
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
}

/* Utility: Mobile Menu (Simple Stack for small screens) */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    height: auto;
    padding: 15px;
  }
  .nav-links {
    margin-top: 15px;
    gap: 15px;
  }
}

/* Hero Section */
.hero {
  position: relative;
  height: 500px;
  background-color: #000;
  overflow: hidden;
  margin-bottom: 40px;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.hero-content {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  padding: 40px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  color: var(--white);
  text-align: right;
}

.hero-content .container {
  max-width: 1200px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  padding: 10px 25px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 5px;
  font-weight: 700;
  transition: background 0.3s;
}

.btn:hover {
  background-color: #004494;
}

/* Section Titles */
.section-title {
  font-size: 2rem;
  margin-bottom: 30px;
  color: var(--primary-color);
  border-right: 5px solid var(--accent-color);
  padding-right: 15px;
}

/* News Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.news-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-content {
  padding: 20px;
}

.news-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.news-content p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 15px;
}

.read-more {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.9rem;
}

/* About & Team */
.about-section, .team-section {
  padding: 50px 0;
}

.about-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
}

.about-image img {
  border-radius: 8px;
}

@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
  }
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.team-card {
  background: var(--white);
  text-align: center;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.team-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 15px;
  object-fit: cover;
}

.team-card h3 {
  margin-bottom: 5px;
  color: var(--primary-color);
}

.team-card span {
  font-size: 0.9rem;
  color: #777;
}

/* Article Template */
.article-page {
  padding: 40px 0;
}

.breadcrumb {
  margin-bottom: 20px;
  color: #666;
  font-size: 0.9rem;
}

.article-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.article-meta {
  color: #888;
  margin-bottom: 30px;
  font-size: 0.9rem;
}

.article-featured-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 40px;
}

.article-body {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #444;
  max-width: 900px;
  margin: 0 auto; /* Centered content focus */
}

/* Footer */
footer {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 50px 0 20px;
  text-align: center;
  margin-top: auto;
}

.footer-logo {
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 20px;
  display: inline-block;
}

.footer-links {
  margin-bottom: 30px;
}

.footer-links a {
  margin: 0 15px;
  color: #ccc;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--white);
}

.copyright {
  border-top: 1px solid #444;
  padding-top: 20px;
  font-size: 0.9rem;
  color: #888;
}

/* Responsive Typography */
@media (max-width: 600px) {
  .hero h1 { font-size: 1.8rem; }
  .section-title { font-size: 1.5rem; }
  .article-header h1 { font-size: 2rem; }
  .article-featured-image { height: 300px; }
}
