/*BLOG BASE STYLES*/

/* Blog Index Styles */
#blog-index {
background: linear-gradient(45deg, var(--blue), var(--black), var(--blue));
padding: 80px 20px;
}

#blog-index .container {
max-width: 1100px;
margin: 0 auto;
}

.blog-intro {
text-align: center;
max-width: 700px;
margin: 0 auto 60px;
}

.blog-intro p {
font-size: 1.15em;
line-height: 1.6em;
color: rgba(255, 255, 255, 0.9);
}

/* Blog Grid */
.blog-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
gap: 30px;
margin-top: 40px;
}

/* Blog Card */
.blog-card {
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
background-color: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 8px;
overflow: hidden;
transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
display: flex;
flex-direction: column;
}

.blog-card:hover {
transform: translateY(-5px);
border-color: var(--orange);
box-shadow: 0 8px 20px rgba(247, 148, 29, 0.2);
}

.blog-card-image {
width: 100%;
height: 220px;
overflow: hidden;
background: var(--lightblack);
position: relative;
}

.blog-card-image img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-image img {
transform: scale(1.05);
}

.blog-card-content {
padding: 25px;
display: flex;
flex-direction: column;
flex-grow: 1;
}

/* Blog Meta */
.blog-meta {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 15px;
font-size: 0.85em;
flex-wrap: wrap;
gap: 10px;
}

.blog-date {
color: rgba(255, 255, 255, 0.7);
display: flex;
align-items: center;
gap: 6px;
}

.blog-date i {
color: var(--orange);
}

/* Blog Card Title */
.blog-card h3 {
font-size: 1.35em;
margin-bottom: 15px;
line-height: 1.3em;
color: white;
font-weight: 700;
letter-spacing: 0.5px;
transition: color 0.3s ease;
}

.blog-card:hover h3 {
color: var(--orange);
}

/* Blog Card Excerpt */
.blog-card p {
color: rgba(255, 255, 255, 0.8);
line-height: 1.6em;
margin-bottom: 20px;
flex-grow: 1;
display: -webkit-box;
-webkit-line-clamp: 4;
-webkit-box-orient: vertical;
overflow: hidden;
}

/* Read More Link */
.blog-read-more {
display: inline-flex;
align-items: center;
gap: 8px;
color: var(--orange);
font-weight: 700;
text-transform: uppercase;
letter-spacing: 1px;
font-size: 0.9em;
transition: gap 0.3s ease, color 0.3s ease;
margin-top: auto;
}

.blog-read-more i {
transition: transform 0.3s ease;
}

.blog-read-more:hover {
color: white;
}

.blog-read-more:hover i {
transform: translateX(5px);
}

/*BLOG INDIVIDUAL BASE STYLES*/

#blog-post-hero h1 {
  text-align: center;
  max-width: 900px;
  margin:0 auto 20px;
}

.blog-post-date {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-family: "Open Sans", sans-serif;
}

#blog-post-content {
  background: linear-gradient(45deg, var(--blue), var(--black), var(--blue));
  padding: 60px 20px;
}

.blog-post-container {
  max-width: 800px;
  margin: 0 auto;
}

.blog-post-body {
  color: rgba(255, 255, 255, 0.85);
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

.blog-post-body h2 {
  font-family: "Raleway", sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin-top: 40px;
  margin-bottom: 16px;
  line-height: 1.3;
}

.blog-post-body h2:first-of-type {
  margin-top: 0;
}

.blog-post-body h3 {
  font-family: "Raleway", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-top: 30px;
  margin-bottom: 12px;
}

.blog-post-body p {
  margin-bottom: 20px;
}

.blog-post-body ul,
.blog-post-body ol {
  margin: 20px 0;
  padding-left: 24px;
}

.blog-post-body li {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
}

.blog-post-body li::marker {
  color: var(--orange);
}

.blog-post-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px 0;
  border-radius: 8px;
}

.blog-post-body .callout {
  background: rgba(255, 255, 255, 0.08);
  border-left: 4px solid var(--orange);
  padding: 20px 24px;
  margin: 30px 0;
  border-radius: 4px;
}

.blog-post-body .callout p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.9);
}

/* Comparison Table */
.comparison-table {
  margin: 40px 0;
  overflow-x: auto;
  border-radius: 6px;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.comparison-table th,
.comparison-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
}

.comparison-table th {
  background: rgba(255, 255, 255, 0.1);
  font-weight: 700;
  color: #fff;
}

.comparison-table tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.04);
}

.comparison-table td:first-child {
  font-weight: 600;
  color: var(--orange);
}

/* Disclaimer below table */
.disclaimer {
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 10px;
  font-style: italic;
}


@media (width >= 1100px) {
  /*BLOG DESKTOP STYLES*/

  #blog-post-content {
      padding: 80px 40px;
    }

    .blog-post-body {
      font-size: 17px;
    }

    .blog-post-body h3 {
      font-size: 24px;
    }

    .comparison-table th,
    .comparison-table td {
      font-size: 16px;
      padding: 16px 18px;
    }

}


@media (width <= 1099px) {
  /*BLOG TABLET STYLES*/

  .blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
  }

  /*BLOG INDIVIDUAL PAGE STYLES*/

    #blog-post-content {
      padding: 60px 30px;
    }

    .comparison-table table {
      min-width: 550px;
    }

    .comparison-table th,
    .comparison-table td {
      font-size: 14px;
      padding: 12px 14px;
    }

    .disclaimer {
      font-size: 0.85em;
    }
}


@media (max-width: 768px) {
/*BLOG MOBILE STYLES*/

  #blog-index {
    padding: 60px 20px;
  }

  .blog-intro {
    margin-bottom: 40px;
  }

  .blog-intro p {
    font-size: 1em;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .blog-card-image {
    height: 200px;
  }

  .blog-card-content {
    padding: 20px;
  }

  .blog-card h3 {
    font-size: 1.2em;
  }

}

/*BLOG SMALL MOBILE STYLES*/

@media (max-width: 480px) {
  .blog-card-image {
    height: 180px;
  }

  .blog-meta {
    font-size: 0.8em;
  }

  .blog-card h3 {
    font-size: 1.1em;
  }

  /*BLOG INDIVIDUAL PAGE STYLES*/

  #blog-post-hero {
      padding: 100px 20px 50px;
    }

    #blog-post-hero h1 {
      font-size: 28px;
    }

    #blog-post-content {
      padding: 40px 20px;
    }

    .blog-post-body {
      font-size: 15px;
    }

    .blog-post-body h2 {
      font-size: 24px;
      margin-top: 30px;
    }

    .blog-post-body h3 {
      font-size: 19px;
    }

    .comparison-table table {
      min-width: 480px;
    }

    .comparison-table th,
    .comparison-table td {
      font-size: 13px;
      padding: 10px 12px;
    }

    .disclaimer {
      font-size: 0.8em;
    }
}