.container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

@media (min-width: 900px) {
  .container {
    flex-direction: row;
    align-items: flex-start;
  }
}


/* Blog */
.blog {
  background: #fff;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  flex: 2;         /* blog takes more space */
  min-width: 0;    /* prevent content from overflowing */
}

.blog h1 {
  font-size: 2.4rem;
  margin-bottom: 10px;
  color: #B70C01;
}

.meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 16px;
}

/* Categories */
.categories {
  margin-bottom: 10px;
}

.category {
  display: inline-block;
  background: #002230;
  color: #000;
  padding: 4px 10px;
  font-size: 0.8rem;
  border-radius: 9px 0;
  margin-right: 8px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.category a {
    color: #ffffff !important;
}

/* Content */
.content {
  overflow-wrap: break-word;  /* modern standard */
  word-wrap: break-word;      /* fallback */
}

.content p {
  margin-bottom: 1.2em;
}

.content p.dropcap-target::first-letter {
  font-size: 3rem;
  font-weight: 700;
  float: left;
  line-height: 1;
  margin-right: 0.2em;
  font-family: Georgia, "Times New Roman", serif;
  color: #000;
}


/* Generic blog images */
.content img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px 0;
  margin: 0em auto;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.content h2 {
  margin: 1.6em 0 0.6em;
  font-size: 1.8rem;
  color: #222;
}

.content h3 {
  margin: 1.2em 0 0.5em;
  font-size: 1.4rem;
  color: #970c0c;
}

.content a {
  color: #ffffff;
  text-decoration: none;
}

.content a:hover {
  text-decoration: none;
}

.content ul,
.content ol {
  margin: 1em 0 1.5em 0.5em;
}

.content ul li {
  list-style: disc;
  margin-bottom: 0.5em;
}

.content ol li {
  list-style: decimal;
  margin-bottom: 0.5em;
}

.content blockquote {
  margin: 1.5em 0;
  padding: 1em 1.5em;
  background: #f0f4f8;
  border-left: 4px solid #0077ff;
  font-style: italic;
  color: #444;
  border-radius: 6px;
}

.content hr {
  margin: 1.5em 0;
  border: none;
  border-top: 1px solid #ddd;
}

.content pre {
  background: #111;
  color: #eee;
  padding: 1em;
  border-radius: 6px;
  margin: 1.5em 0;
  overflow-x: auto;
}

.content code {
  font-family: "Courier New", monospace;
  background: #f4f4f4;
  padding: 0.2em 0.4em;
  border-radius: 4px;
}

.content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}

.content th,
.content td {
  border: 1px solid #ddd;
  padding: 0.6em;
  text-align: left;
}

.content th {
  background: #f0f0f0;
}

figure {
  margin: 2em 0;
  text-align: center;
}

figure img,
figure video {
  max-width: 100%;
  border-radius: 10px;
}

figcaption {
  margin-top: 0.5em;
  font-size: 0.9rem;
  color: #000000;
  font-style: italic;
}

/* Callouts */
.callout {
  border-left: 4px solid #ff9900;
  background: #fff7e6;
  padding: 1em 1.2em;
  margin: 1.5em 0;
  border-radius: 6px;
}

.callout a {
    color:#fd0000
}

/* Tags */
.tags {
  margin-top: 2em;
}

.tags span {
  display: inline-block;
  background: #B70C01;
  color: #fff;
  padding: 6px 12px;
  font-size: 0.85rem;
  border-radius: 0 6px;
  margin: 4px;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}



/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;        /* sidebar takes less space */
  min-width: 0;   /* prevents sidebar overflow */
}

.card {
  background: #fff;
  padding: 16px;
  border-radius: 12px 0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}






.related-posts {
  margin-top: 40px;
}

.related-posts h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  border-bottom: 2px solid #eee;
  padding-bottom: 8px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.post-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 12px 0;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
}

.post-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.post-card h3 {
  font-size: 1rem;
  padding: 12px;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}





 .gnBreadcrumb {
    font-family: system-ui, sans-serif;
    font-size: 0.95rem;
    display: flex;
    flex-wrap: wrap;
  }

  .gnBreadcrumb > div {
    display: flex;
    align-items: center;
  }

  .gnBreadcrumb > div + div::before {
    content: "›";
    margin: 0 0.5em;
    color: #9ca3af;
  }

  .gnBreadcrumb a {
    color: #eb2525;
    text-decoration: none;
  }

  .gnBreadcrumb a:hover {
    text-decoration: underline;
  }

  .gnBreadcrumb .current {
    color: #111827;
    font-weight: 600;
  }




  /* Overlay background */
.img-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

/* Expanded image */
.expanded-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 25px rgba(0,0,0,0.5);
  animation: zoomIn 0.3s ease;
  cursor: zoom-out;
}

/* Fade + zoom animations */
@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

@keyframes zoomIn {
  from {transform: scale(0.8);}
  to {transform: scale(1);}
}

.fade-out {
  animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
  from {opacity: 1;}
  to {opacity: 0;}
}
