/* ----------------------------------------------
   GRAVEPEDIA - MASTER STYLESHEET
   Complete CSS for entire website
------------------------------------------------- */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background: #f4f6f9;
  color: #1a2c3e;
  line-height: 1.5;
}

/* ----------------------------------------------
   HEADER & NAVIGATION
------------------------------------------------- */

.gp-header {
  background: #1d3e2b;
  padding: 0.8rem 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  border-bottom: 3px solid #f4c542;
}

.logo a {
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
  white-space: nowrap;
}

.logo a:hover {
  color: #f4c542;
}

.nav-center {
  display: flex;
  justify-content: center;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

.nav-links a {
  color: #f4f4f4;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: 30px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  background: rgba(244, 197, 66, 0.15);
  color: #f4c542;
}

.search-box {
  display: flex;
  justify-content: flex-end;
}

.search-form {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 40px;
  overflow: hidden;
}

.search-form input {
  border: none;
  outline: none;
  padding: 0.55rem 0.9rem;
  width: 180px;
  font-size: 0.9rem;
}

.search-form button {
  border: none;
  background: #f4c542;
  color: #1d3e2b;
  padding: 0.55rem 1rem;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s;
}

.search-form button:hover {
  background: #ffd95e;
}

/* ----------------------------------------------
   HERO SECTION
------------------------------------------------- */

.hero {
  background: linear-gradient(135deg, #2c553d 0%, #1d3e2b 100%);
  text-align: center;
  padding: 3rem 1rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: white;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: white;
}

/* ----------------------------------------------
   CONTAINER & LAYOUT
------------------------------------------------- */

.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.section-title {
  font-size: 1.8rem;
  margin: 1.5rem 0 1rem;
  border-left: 5px solid #f4c542;
  padding-left: 1rem;
  color: #1d3e2b;
}

/* ----------------------------------------------
   BLOG GRID & CARDS
------------------------------------------------- */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin: 1.5rem 0;
}

.blog-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s;
}

.blog-card:hover {
  transform: translateY(-4px);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-content {
  padding: 1.2rem;
}

.blog-date {
  font-size: 0.75rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.blog-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #1d3e2b;
}

.blog-excerpt {
  font-size: 0.9rem;
  color: #4a5b6e;
  margin-bottom: 1rem;
}

.read-more {
  color: #2c553d;
  font-weight: bold;
  text-decoration: none;
}

.read-more:hover {
  color: #f4c542;
}

/* ----------------------------------------------
   CTA BOX
------------------------------------------------- */

.cta-box {
  background: #eef2e6;
  border-radius: 24px;
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
}

.cta-box h2 {
  margin-bottom: 0.5rem;
  color: #1d3e2b;
}

.cta-button {
  background: #1d3e2b;
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 40px;
  margin-top: 1rem;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
}

/* ----------------------------------------------
   INFO BOX (FOR ARTICLE PAGES)
------------------------------------------------- */

.info-box {
  background: #f8f9fa;
  padding: 1rem 1.2rem;
  border-radius: 16px;
  margin-top: 0.5rem;
}

.info-box p {
  margin-bottom: 0.6rem;
  font-size: 0.92rem;
  color: #2c3e50;
}

.info-box p:last-child {
  margin-bottom: 0;
}

/* ----------------------------------------------
   HIGHLIGHT & DID YOU KNOW BOXES
------------------------------------------------- */

.highlight-box {
  background: #fef7e0;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  margin: 1.2rem 0;
  border-left: 5px solid #f4c542;
  font-weight: 500;
}

.did-you-know {
  background: #e3f2fd;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  margin: 1.2rem 0;
  border-left: 5px solid #2196f3;
}

.did-you-know strong {
  color: #0b5e8a;
}

.related-links {
  background: #f9f5eb;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  margin: 1.5rem 0;
}

.related-links a {
  color: #1d3e2b;
  text-decoration: underline;
  font-weight: 500;
}

/* ----------------------------------------------
   TABLES
------------------------------------------------- */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  border-radius: 12px;
  overflow: hidden;
}

table th {
  background: #1d3e2b;
  color: white;
  padding: 0.8rem;
  text-align: left;
  font-weight: 600;
}

table td {
  padding: 0.8rem;
  border: 1px solid #e5e7eb;
  background: #fafafa;
}

/* ----------------------------------------------
   FAQ SECTION
------------------------------------------------- */

.faq-item {
  margin: 1.2rem 0;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 1rem;
}

.faq-question {
  font-weight: bold;
  color: #1d3e2b;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

/* ----------------------------------------------
   TYPOGRAPHY
------------------------------------------------- */

h1 {
  font-size: 2.2rem;
  color: #1d3e2b; 
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

h2 {
  font-size: 1.6rem;
  color: #2c553d;
  margin: 2rem 0 1rem;
  border-left: 5px solid #f4c542;
  padding-left: 1rem;
  scroll-margin-top: 1.5rem;
}

h3 {
  margin: 1.8rem 0 0.8rem;
  color: #1d3e2b;
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
  color: #334155;
}

ul, ol {
  margin: 1rem 0 1rem 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

/* ----------------------------------------------
   RIGHT SIDEBAR (STICKY)
------------------------------------------------- */

.right-col {
  background: white;
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 1rem;
}

.right-col h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #1d3e2b;
  border-bottom: 2px solid #f4c542;
  display: inline-block;
  padding-bottom: 0.3rem;
}

.right-col ul {
  list-style: none;
  margin-top: 0.8rem;
}

.right-col li {
  margin: 0.9rem 0;
}

.right-col a {
  text-decoration: none;
  color: #2c553d;
  font-size: 0.92rem;
  font-weight: 500;
  display: block;
  padding: 0.2rem 0;
}

.right-col a:hover {
  color: #f4c542;
  text-decoration: underline;
}

/* ----------------------------------------------
   TWO COLUMN LAYOUT
------------------------------------------------- */

.two-columns {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.5rem;
  align-items: start;
}

.left-col {
  background: white;
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* ----------------------------------------------
   TOP CARD
------------------------------------------------- */

.top-card {
  background: white;
  border-radius: 24px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.top-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.top-image {
  flex-shrink: 0;
  width: 380px;
}

.top-image img {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background: #e9ecef;
}

.top-right {
  flex: 1;
}

/* ----------------------------------------------
   FOOTER
------------------------------------------------- */

.footer {
  background: #1d3e2b;
  color: white;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 2rem;
  font-size: 0.85rem;
}

.footer a {
  color: white;
  text-decoration: none;
}

/* ----------------------------------------------
   RESPONSIVE DESIGN
------------------------------------------------- */

@media (max-width: 1000px) {
  .gp-header {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .nav-center {
    justify-content: center;
  }
  .search-box {
    justify-content: center;
  }
}

@media (max-width: 800px) {
  .two-columns {
    grid-template-columns: 1fr;
  }
  .right-col {
    position: static;
    margin-top: 0;
  }
  .top-flex {
    flex-direction: column;
  }
  .top-image {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
  }
  h1 {
    font-size: 1.6rem;
  }
  .left-col {
    padding: 1.2rem;
  }
}

@media (max-width: 600px) {
  .gp-header {
    padding: 1rem;
  }
  .nav-links {
    gap: 0.3rem;
  }
  .nav-links a {
    font-size: 0.85rem;
    padding: 0.4rem 0.7rem;
  }
  .search-form {
    width: 100%;
    max-width: 350px;
  }
  .search-form input {
    width: 100%;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .container {
    padding: 0 0.5rem;
  }
}