/* Color Palette */
:root {
  --primary-dark: #732F29;
  --secondary-light: #D9B1A3;
  --text-dark: #0D0D0D;
  --background-dark: #000F1A;
  --background-light: #F2F2F2;
  --accent-blue: #4D748C;
}

/* Custom Font */
@font-face {
  font-family: 'NotoNaskhArabicUI';
  src: url('../fonts/NotoNaskhArabicUI-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
}

/* RTL Base Styles */
body {
  direction: rtl;
  font-family: 'NotoNaskhArabicUI', 'Tahoma', 'Arial', sans-serif;
  background-color: var(--background-light);
  color: var(--text-dark);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Navigation */
nav {
  background-color: var(--primary-dark);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: var(--background-light);
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-menu li {
  margin-right: 2rem;
}

.nav-menu a {
  color: var(--background-light);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: var(--secondary-light);
}

/* Hero Section */
.hero {
  background-color: var(--background-dark);
  color: var(--background-light);
  padding: 150px 0 100px;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
  }
  
  .hero-text {
    width: 100%;
    text-align: center;
  }
  
  .hero-image {
    width: 100%;
    text-align: center;
  }
  
  .email-form {
    max-width: 100%;
  }
}

.hero-text {
  flex: 1;
}

.hero-image {
  flex: 1;
  text-align: center;
}

.book-cover {
  width: 100%;
  max-width: 300px;
  height: auto;
  border: 3px solid var(--secondary-light);
  border-radius: 5px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--secondary-light);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 700px;
}

.email-form {
  width: 100%;
  max-width: 500px;
}

.form-group {
  display: flex;
  gap: 10px;
}

.email-form input {
  flex: 1;
  padding: 0.9rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.email-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.email-form input:focus {
  outline: none;
  border-color: var(--accent-blue);
  background: rgba(255, 255, 255, 0.15);
}

.email-form button {
  background-color: var(--primary-dark);
  color: var(--background-light);
  border: none;
  padding: 12px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition: background-color 0.3s;
  white-space: nowrap;
}

.email-form button:hover {
  background-color: var(--accent-blue);
}

/* Section Styling */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-dark);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 100px;
  height: 3px;
  background-color: var(--accent-blue);
  margin: 10px auto;
}

/* About Section */
.about {
  background-color: var(--background-light);
}

.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* Blog Section */
.blog {
  background-color: var(--background-light);
}

.blog-posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 2rem;
}

.blog-post {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}
.blog-post a {
    text-decoration: none;
}

.blog-post:hover {
  transform: translateY(-5px);
}

.blog-post-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-post-title {
  padding: 1rem 1rem 0.5rem;
  color: var(--primary-dark);
  font-size: 1.3rem;
}

.blog-post-excerpt {
  padding: 0 1rem 1rem;
  color: var(--text-dark);
  font-size: 1rem;
}

/* Download Section */
.download {
  background-color: var(--secondary-light);
}

.download-box {
  background-color: var(--background-light);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.book-details {
  margin: 1.5rem 0;
  text-align: right;
}

.detail-item {
  margin: 0.8rem 0;
  font-size: 1.1rem;
}

.detail-label {
  font-weight: bold;
  color: var(--primary-dark);
}

.download-button {
  background-color: var(--primary-dark);
  color: var(--background-light);
  border: none;
  padding: 15px 30px;
  font-size: 1.1rem;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  margin-top: 1rem;
  transition: background-color 0.3s;
}

.download-button:hover {
  background-color: var(--accent-blue);
}

/* Caution Section */
.caution {
  background-color: var(--background-dark);
  color: var(--background-light);
  text-align: center;
}

.caution-box {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
  border-right: 5px solid var(--accent-blue);
}

.caution-box h2 {
  color: var(--secondary-light);
}

.caution-box p {
  font-size: 1.1rem;
}

/* Footer */
footer {
  background-color: var(--primary-dark);
  color: var(--background-light);
  text-align: center;
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.social-links {
  display: flex;
  margin: 1rem 0;
}

.social-links a {
  color: var(--background-light);
  margin: 0 1rem;
  font-size: 1rem;
  text-decoration: none;
}

.copyright {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--secondary-light);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu li {
    margin-right: 1rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  section {
    padding: 40px 0;
  }
}

@media (max-width: 480px) {
  .nav-menu {
    flex-direction: column;
    background-color: var(--primary-dark);
    position: fixed;
    right: -100%;
    top: 70px;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0,0,0,0.05);
    padding: 2rem 0;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-menu li {
    margin: 1rem 0;
  }
}