/* =========================
   Global Styles
========================= */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  background: #f4f4f8;
  color: #333;
  line-height: 1.7;
  font-size: 16px;
}

/* =========================
   Header (Front page & Article page)
========================= */
header {
  background: linear-gradient(90deg, #6a11cb, #2575fc);
  color: white;
  text-align: center;
  padding: 4rem 1rem; /* unified hero size */
}

header h1 {
  font-size: 2.5rem;
  line-height: 1.3;
  max-width: 900px;
  margin: 0 auto 1rem auto; 
}

header p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Responsive Header */
@media (max-width: 900px) {
  header h1 {
    font-size: 2rem;
  }
  header p {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  header {
    padding: 3rem 1rem;
  }
  header h1 {
    font-size: 1.8rem; 
    line-height: 1.4;
  }
  header p {
    font-size: 1rem;
  }
}

/* =========================
   Front Page Grid
========================= */
main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.card h2 {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
  color: #2575fc;
}

.card p {
  margin-bottom: 1rem;
}

.card a {
  text-decoration: none;
  color: #47D45A;
  font-weight: bold;
}

.card a:hover {
  color: #47D45A;
}

/* =========================
   Article Page – Blog Style
========================= */
.main-article {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 2rem 2.5rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* Extra spacing after header */
header + .main-article {
  margin-top: 4rem;
}

/* Headings */
.main-article h2 {
  color: #2575fc;
  font-size: 2rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  line-height: 1.4;
  border-bottom: 2px solid #f0f0f5;
  padding-bottom: 0.3rem;
}

.main-article h3 {
  color: #2575fc;
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

/* Paragraphs */
.main-article p {
  margin-bottom: 1.4rem;
  font-size: 1rem;
  line-height: 1.75;
}

/* Lists */
.main-article ul,
.main-article ol {
  margin: 1rem 0 1.5rem 2rem;
  line-height: 1.6;
}

/* Links */
.main-article a {
  color: #2575fc;
  text-decoration: underline;
}

.main-article a:hover {
  color: #47D45A;
}

/* Images */
.main-article img {
  max-width: 100%;
  margin: 1.5rem 0;
  border-radius: 8px;
}

/* Blockquotes */
.main-article blockquote {
  border-left: 4px solid #2575fc;
  padding-left: 1rem;
  color: #555;
  font-style: italic;
  margin: 1.5rem 0;
  background: #f9f9fb;
  border-radius: 6px;
}

/* Code snippets */
.main-article code {
  background: #f0f0f5;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
}

/* =========================
   Footer
========================= */
footer {
  text-align: center;
  padding: 2rem;
  color: #666;
  font-size: 0.9rem;
  margin-top: 2rem;
  background: #f9f9fb;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.footer-links a {
  background: linear-gradient(90deg, #6a11cb, #2575fc);
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.breadcrumbs {

  max-width: 1000px;
  margin: 2.5rem auto 0rem auto;
  padding: 0 1rem;
  font-size: 0.9rem;
  color: #666;
}

.breadcrumbs a {
  color: #2575fc;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

/* =========================
   Responsive Adjustments
========================= */
@media (max-width: 400px) {
  main {
    grid-template-columns: 1fr;
  }

  .main-article {
    padding: 1rem 1rem;
    margin: 2rem auto;
  }

  .main-article h2 {
    font-size: 1.7rem;
    margin-top: 2.5rem;
  }

  .main-article h3 {
    font-size: 1.3rem;
    margin-top: 1.8rem;
  }
}



