/* --- GLOBAL ROOT VARIABLES --- */
:root {
  --bg-color: #f4f6f9; /* Light background for desktop */
  --card-bg: #ffffff;
  --primary-blue: #173881;
  --accent-yellow: #fca311;
  --text-dark: #222222;
  --text-muted: #666666;
  --border-radius: 8px;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
}

body {
  background-color: var(--bg-color);
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  color: var(--text-dark);
}

/* Page Outer Container (Prevents weird centering on desktop) */
.main-container, main {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
}

/* Navigation Bar Container */
.navbar {
  background-color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 40px;
}

/* Logo Styling */
.navbar .logo img {
  height: 45px;
  display: block;
}

/* Navigation Links Container */
.nav-links {
  display: flex;
  gap: 35px;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: color 0.3s ease;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--accent-yellow);
}

/* Content & Article Styling */
.content-section, article.single-post {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
}

p {
  text-align: justify;
  line-height: 1.7;
}

/* Blog Cards & Grid Fix */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

.blog-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  width: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}