/* ========== Base Reset & Typography ========== */

:root {
  --primary-color: #b0926a;
  --secondary-color: #d1bfa6;
  --third-color: rgba(196, 122, 43, 0.966);
  --fourth: rgba(196, 122, 43, 0.966);
  --text-color: #333;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --footer-text: #9ca3af;
  --bg-light: #f9f9f9;
  --bg-dark: #ebe7e7;
  --max-width: 1200px;
  --shadow: 0 4px 6px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

h1 {
  font-family: 'Playfair Display', serif;
  color: #111;
  font-weight: 900;
  padding-bottom: 1rem;
}

.container {
  width: 95%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Roboto, sans-serif;
  color: var(--text-color);
  background-color: var(--bg-light);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* ========== Global Layout ========== */
.main-wrapper {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 50px;
  width: 100%;
  max-width: 1200px;
  margin: 20px;
  direction: rtl;
}

.main-wrapper > * {
  direction: ltr; /* keeps content inside normal */
}

@media (max-width: 992px) {
  .main-wrapper {
    grid-template-columns: 1fr;
  }
}

/* ======= Header & Navigation ======= */

.main-header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 2rem;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.menu {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.menu li {
  position: relative;
  cursor: pointer;
}

.menu li a {
  text-decoration: none;
  color: var(--text-color);
}

/*.dropdown-menu {
  display: none;
  position: absolute;
  background: #fff;
  top: 2.5rem;
  left: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border-radius: 6px;
  z-index: 999;
}*/

.dropdown-menu li {
  padding: 0.5rem 1rem;
  white-space: nowrap;
}

.dropdown-menu li a {
  color: var(--text-color);
}

.menu a:hover,
.menu a.active {
  color: var(--third-color);
}

.cta-btn {
  background: var(--primary-color);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.3s;
  text-decoration: none;
}

.cta-btn:hover {
  background: var(--third-color);
  text-decoration: none;
}


/* ========== Quick Links ========== */
.quick-links {
  background: #fff;
  border: 1px solid #eaeaea;
  border-left: 4px solid #0a214a;
  padding: 15px 20px;
  margin: 30px 0;
  border-radius: 10px;
}

.quick-links h2 {
  font-size: 1.1rem;
  color: #0a214a;
  margin-bottom: 10px;
}

.quick-links ul {
  list-style-type: none;
}

.quick-links ul li {
  margin: 8px 0;
}

.quick-links ul li a {
  text-decoration: none;
  color: #0077cc;
  transition: color 0.2s ease;
}

.quick-links ul li a:hover {
  color: #004f91;
}

/* ========== Blog Sections ========== */
section {
  /*background: #fff;
  padding: 30px 25px; */
  margin-bottom: 40px;
  /*box-shadow: 0 2px 6px rgba(0,0,0,0.05);*/
  /*border: #333 1px solid;*/

}

section a {
  color: var(--primary-color);
  text-decoration: none;
}

section a:hover {
  text-decoration: none;
  /*box-shadow: var(--shadow-lg);*/
  border-radius: 10px;
  filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.2));
  border-radius: 10px;
  color: var(--third-color);
}

section ul {
  margin-left: 2rem;
  padding-bottom: 1rem;
}

section h2 {
  margin-bottom: 1rem;
  font-family: 'Playfair Display', serif;
  color: #111;
  font-weight: 900;
}

section p {
  color: #444;
  font-size: 1rem;
  margin-bottom: 15px;
}

section h3 {
  margin-bottom: 1rem;
  font-family: 'Playfair Display', serif;
  color: #111;
  font-weight: 900;
}

/* ========== Sidebar Layout ========== */
.sidebar {
  display: flex;
  flex-direction: column;
  /*gap: 25px;*/
  top: 100px;
  /*align-self: start;*/
  background: var(--bg-dark);
  border-radius: 8px;
  padding: 1rem;
  /*border: 1px solid #ddd;*/
  position: sticky;
  height: fit-content;
} 

.sidebar .widget {
  /*background: #fff;*/
  padding: 10px;
  border-radius: 12px;
  /*box-shadow: 0 2px 6px rgba(0,0,0,0.05);*/
  /*border: 1px solid #ddd;*/
}

.sidebar .widget h3 {
  color: #0a214a;
  font-size: 1.1rem;
  /*margin-bottom: 10px;*/
  padding-bottom: 10px;
}

.sidebar .widget ul {
  list-style: none;
}

.sidebar .widget ul li {
  margin-bottom: 8px;
}

.sidebar .widget ul li a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s;
}

.sidebar .widget ul li a:hover {
  color: var(--third-color);
}

/* Call-to-action box (optional) */
.sidebar .cta-box {
  background: #0a214a;
  color: #fff;
  padding: 20px;
  text-align: center;
  border-radius: 12px;
}

.sidebar .cta-box h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.sidebar .cta-box p {
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.sidebar .cta-box a {
  background: #fff;
  color: #0a214a;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.sidebar .cta-box a:hover {
  background: #0077cc;
  color: #fff;
}

/* ========== Related Articles ========== */
.related-articles {
  /*background: var(--bg-light);*/
  padding: 10px;
  border-radius: 12px;
  /*box-shadow: 0 2px 6px rgba(0,0,0,0.05);*/
  /*border: 1px solid #ddd;*/
}

.related-articles h3 {
  color: #0a214a;
  /*margin-bottom: 10px;*/
  padding-bottom: 10px;
}

.related-articles a {
  display: block;
  color: var(--primary-color);
  /*margin: 5px 0;*/
  text-decoration: none;
}

.related-articles a:hover {
  color: var(--third-color);
}

/* ======== Footer Design ======== */

footer {
  background: var(--text-dark);
  padding: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--footer-text);
  border-top: 1px solid #ddd;
}

footer a {
  text-decoration: none;
  color: var(--primary-color);
  margin: 0 5px;
}

footer a:hover {
  color: var(--fourth);
}

/* ========== Responsive Adjustments ========== */
@media (max-width: 768px) {
  .header h1 {
    font-size: 1.6rem;
  }
  section {
    padding: 20px;
  }
  .sidebar {
    margin-top: 20px;
  }
}
