/* ===========================
   ROOT VARIABLES
=========================== */
:root {
  --primary: #0E7490;
  --secondary: #F1F5F9;
  --accent: #FACC15;
  --text: #0b2b33;
  --white: #ffffff;
  --maxw: 1200px;
}

/* ===========================
   GLOBAL RESET
=========================== */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--secondary);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.maxw {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 18px;
}

/* ===========================
   NAVBAR (UPDATED WITH ICONS)
=========================== */
.cs-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 22px;
  background: var(--white);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  top: 0;
  z-index: 40;
}
.cs-logo img {
  width: 70px;   /* adjust size */
  height: auto;
}
.cs-logo {
  display: flex;         /* NEW: aligns items horizontally */
  align-items: center;   /* NEW: centers text vertically with logo */
  gap: 10px;     
  font-size: 22px;
  font-family: 'Poppins', sans-serif;
  color: var(--primary);
  font-weight: 700;
}

.cs-navlist {
  display: flex;
  gap: 20px;
  list-style: none;
  margin-left: auto;
  align-items: center;
  padding: 0;
}

.cs-navlink {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cs-navlink:hover {
  background: #e5eef1;
}

.cs-active {
  background: var(--accent);
  color: #000;
}

.cs-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
}

/* ===========================
   HOMEPAGE HERO + CARDS
=========================== */
.hero-section {
  position: relative;
  margin: 28px auto;
}

.hero-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  box-shadow: 0 8px 30px rgba(6,13,20,0.15);
}

.hero-overlay {
  position: absolute;
  left: 36px;
  bottom: 36px;
  color: var(--white);
  text-shadow: 0 6px 18px rgba(0,0,0,0.6);
}

.hero-overlay h1 {
  font-family: 'Playfair Display', serif;
  font-size: 44px;
  margin: 0;
}

.hero-overlay .tag {
  font-family: 'Poppins', sans-serif;
  margin-top: 6px;
  font-weight: 600;
}

/* ===========================
   HOMEPAGE CARDS
=========================== */
.intro { padding: 36px 0; }
.intro h2 {
  font-family: 'Poppins', sans-serif;
  color: var(--primary);
  margin-bottom: 6px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.card {
  background: var(--white);
  border-radius: 10px;
  padding: 22px;
  box-shadow: 0 6px 18px rgba(6,13,20,0.06);
  text-align: center;
}

.card img {
  width: 100%;
  height: 360px; 
  border-radius: 8px;
  object-fit: cover;
}

.card h3 {
  margin: 12px 0 6px;
  font-family: 'Poppins', sans-serif;
}

.btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 14px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

/* ===========================
   BLOG PAGE LAYOUT (FIXED)
=========================== */

.blog-container,
.cs-main {
  max-width: 1000px;
  margin: 40px auto;
  padding: 10px;
}

/* Blog grid cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 20px;
}

.card, .blog-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: 0.25s;
}

.card:hover, .blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.blog-card img, 
.card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.blog-card h2, .card-body h2 {
  font-size: 1.2rem;
  margin: 10px 0;
  color: var(--primary);
}

.blog-card p, .excerpt {
  color: #475569;
  font-size: 14px;
}

/* ===========================
   BLOG ARTICLE (CENTERED)
=========================== */

.post {
  max-width: 850px;
  margin: 30px auto;
  padding: 10px;
}

.post h1 {
  font-size: 2rem;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--primary);
}

.post .lead {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #334155;
}

/* Make article images smaller + centered */
.post img {
  max-width: 550px;
  width: 100%;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  object-fit: cover;
}

.code {
  background: #0f1112;
  padding: 12px;
  color: #b9f0b9;
  border-radius: 8px;
  font-size: 0.95rem;
  overflow-x: auto;
}

/* ===========================
   FOOTER
=========================== */
.footer, .cs-footer {
  padding: 18px;
  background: transparent;
  text-align: center;
  color: #6b7280;
  margin-top: 30px;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .cs-navlist { display: none; }
  .hero-overlay { left: 16px; bottom: 16px; }
  .hero-overlay h1 { font-size: 28px; }
  .post img { max-width: 90%; }
}

/* ---------- BRAND: logo + text alignment ---------- */
/* Put this near the end of style.css so it takes precedence */
header.cs-navbar .cs-logo {
  display: flex;            /* place image and text on one row */
  align-items: center;      /* vertically center the text with the logo */
  gap: 12px;                /* space between logo and text */
  margin-left: 8px;         /* optional: nudges brand slightly from left */
}

/* constrain logo height so it doesn't push the navbar taller */
header.cs-navbar .cs-logo img,
header.cs-navbar .site-logo {
  width: auto;              /* keep aspect ratio */
  max-height: 48px;         /* adjust 40-60px to taste */
  height: auto;
  display: block;
}

/* style and vertical alignment for the text link */
header.cs-navbar .cs-logo-title {
  font-size: 20px;          /* adjust: 18-26px as you prefer */
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;    /* remove underline */
  line-height: 1;           /* prevent extra baseline shifting */
  display: inline-block;    /* ensures align-items centers it */
  margin: 0;
}

/* reduce navbar vertical padding if header still tall */
header.cs-navbar {
  padding: 8px 22px;        /* adjust to 6px/10px if you want it tighter */
}












