@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,700;1,400&family=Oswald:wght@400;500;700&display=swap');

:root {
  --bg-color: #ffffff;
  --text-color: #090606;
  --text-light: #1a1a2c;
  --accent-color: #4d6fd2;
  --border-color: #adb5d4;
  --border-light: #e5e5e5;
  --font-main: 'Lora', serif;
  --font-heading: 'Oswald', sans-serif;
  --max-width: 1140px;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}

a:hover {
  color: #000;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border-light);
  padding: 20px 0;
  text-align: center;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 15px;
}

.site-logo:hover {
  color: var(--accent-color);
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  list-style: none;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  text-transform: uppercase;
}

.main-nav a {
  color: #000;
  font-weight: 500;
}

.main-nav a:hover {
  color: var(--accent-color);
}

/* Layout */
.main-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.article-section {
  flex: 1 1 65%;
  max-width: 70%;
}

.sidebar {
  flex: 1 1 30%;
  max-width: 30%;
}

@media (max-width: 768px) {
  /* Layout */
  .article-section, .sidebar {
    flex: 1 1 100%;
    max-width: 100%;
  }
  
  /* Typography */
  .site-logo {
    font-size: 2rem;
    margin-bottom: 10px;
  }
  .post-title {
    font-size: 1.8rem;
  }
  .post-content h2 {
    font-size: 1.6rem;
    margin-top: 30px;
  }
  .post-content h3 {
    font-size: 1.3rem;
  }

  /* Navigation: Pill layout on mobile */
  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding-bottom: 15px;
  }
  .main-nav li {
    background: #f8f9fa;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
  }
  .main-nav a {
    font-size: 0.85rem;
    white-space: nowrap;
    display: block;
  }
  
  /* Grid Layouts */
  .home-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* General Spacing */
  .main-content {
    margin-top: 20px;
    gap: 30px;
  }
  .widget {
    padding: 15px;
    margin-bottom: 30px;
  }
  .site-header {
    padding: 15px 0 5px;
  }
}


/* Article Styling */
.post-header {
  margin-bottom: 30px;
}

.post-category {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--accent-color);
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: inline-block;
}

.post-title {
  font-family: var(--font-heading);
  font-size: 2.7rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #000;
}

.post-meta {
  font-size: 0.9rem;
  color: #666;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 15px;
  margin-bottom: 30px;
}

.post-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
}

.post-content p {
  margin-bottom: 25px;
}

.post-content h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #000;
}

.post-content h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-top: 30px;
  margin-bottom: 15px;
}

/* Image Galleries like Hadviser */
.gallery-item {
  margin-bottom: 40px;
}

.gallery-item img {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.gallery-caption {
  font-size: 0.95rem;
  color: #666;
  text-align: center;
  font-style: italic;
}

.gallery-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #000;
}

/* Sidebar Widgets */
.widget {
  margin-bottom: 40px;
  background: #fdfdfd;
  padding: 25px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--accent-color);
  display: inline-block;
  color: #000;
}

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

.widget-list li {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px dashed var(--border-light);
  display: flex;
  align-items: center;
  gap: 15px;
}

.widget-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.widget-list img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
}

.widget-list a {
  font-family: var(--font-heading);
  color: #000;
  font-weight: 500;
  line-height: 1.4;
  font-size: 1.05rem;
}

.widget-list a:hover {
  color: var(--accent-color);
}

/* Footer */
.site-footer {
  background-color: #090606;
  color: #fff;
  padding: 40px 0;
  text-align: center;
  font-family: var(--font-heading);
}

.site-footer p {
  color: #adb5d4;
  font-size: 0.95rem;
}

.site-footer a {
  color: #fff;
  text-decoration: underline;
}

.site-footer a:hover {
  color: var(--accent-color);
}

/* Home Grid */
.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.grid-item {
  border: 1px solid var(--border-light);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.2s ease;
}

.grid-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.grid-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 6px 6px 0 0;
  border-bottom: 1px solid var(--border-light);
}

.grid-item-content {
  padding: 20px;
}

.grid-item-category {
  font-family: var(--font-heading);
  color: var(--accent-color);
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 5px;
  display: block;
}

.grid-item-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  line-height: 1.3;
  color: #000;
  margin-bottom: 10px;
}

.grid-item-desc {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* Dynamic Gallery Enhancements */
.gallery-image-wrapper {
  position: relative;
  display: block;
  margin-bottom: 5px;
}

.gallery-image-wrapper img {
  display: block;
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.gallery-nav-buttons {
  position: absolute;
  bottom: 15px;
  right: 15px;
  display: flex;
  gap: 10px;
  z-index: 10;
}

.btn-gallery {
  background: var(--accent-color);
  color: #fff !important;
  padding: 8px 16px;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.9rem;
  border-radius: 4px;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-gallery:hover {
  background: #000;
  color: #fff;
  transform: translateY(-2px);
}

