@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Merriweather, Arial, sans-serif;
}

body { 
  background-color: white;
  color: #1E1E1E;
  line-height: 1.6;
}

/* Top Heading */
.header {
  background-color: #1E4B8B;
  color: #ffffff;
  text-align: center;
  /* max-width: 1920px; */
  margin: 0 auto;
  padding: 3rem 0.5rem;
}

main {
  font-family: Montserrat !important;
}

.header h1 {
  font-family: "Merriweather", serif;
  font-size: 64px;
  font-weight: 400;
  line-height: 100%;
}

/* Blog Section Heading */
.blog-title {
  font-size: 48px;
  text-align: left;
  color: #1e1e1e;
  font-family: "Merriweather", serif;
  font-weight: 400;
    margin: 2rem auto 3rem auto;
  font-style: normal;
  font-weight: 400;
  line-height: 28px;
}

/* Blog Container */
.blog-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  max-width: 1920px;
  margin: 0 auto;
  gap: 252px;
  padding: 1rem 130px;
}

/* Blog Main Section */
.blog-main {
  flex: 1 1 50%;
}

/* Blog Post Card */
.blog-post {
  padding: 0;
  border: none;
  background: transparent;
}

/* Blog Heading */
.blog-heading {
  font-size: 1.5rem;
  color: #1E1E1E;
  margin-bottom: 0.5rem;
}

/* Blog Title Link */
.blog-link {
  font-family: "Montserrat", sans-serif;
  font-size: 36px;
  text-decoration: none;
  color: #1E1E1E;
  font-style: normal;
  font-weight: 400;
  line-height: 28px;
  margin-bottom: 0px !important;
}

.blog-link:hover {
  text-decoration: underline;
}

/* Blog Image */
.blog-img {
  width: 100%;
  height: auto;
  /* max-height: 250px; */
  object-fit: cover;
  margin: 1rem 0;
}

/* Summary Paragraphs */
.blog-summary {
  font-size: 16px;
  font-family: "Montserrat", sans-serif;
  line-height: 28px;
  color: #1E1E1E;
  margin-bottom: 1rem;
}

/* Read More Button Container */
.read-more-container {
  display: flex;
  justify-content: flex-end;
  /* margin-top: -25px; */
}
/* .summary-2{
  max-width: 72%;
} */
.blog-post-two{
  margin-top: 46px;
}
/* Read More Button */
.read-more-link {
  color: #1E4B8B;
  font-weight: bold;
  font-size: 32px;
  font-weight: 400;
  text-decoration: none;
  background-color: transparent;
  text-decoration: underline;
  text-decoration-color: #1e3a8a;
  /* border: 2px solid #1e3a8a; */
  padding: 0px;
  border-radius: 5px;
  transition: all 0.3s ease;
  line-height: 28px;
  margin-bottom: 20px !important;
}

/* .read-more-link:hover {
  background-color: #1e3a8a;
  color: #fff;
  text-decoration: underline;
  text-decoration-color: white;
} */

/* Sidebar */
.blog-sidebar {
  flex: 1 1 30%;
  /* margin-top: 80px; */
  margin-top: 200px;

  margin-top: 250px;
  /* margin: auto 0px; */

  margin-top: 250px;
  /* margin: auto 0px; */
}

/* Sidebar Titles */
.sidebar-title {
  font-size: 36px;
  font-family: "Montserrat", sans-serif;
  color: #1E1E1E;
  font-weight: 400;
  margin-bottom: 0.75rem;
  line-height: 28px;
}

/* Sidebar Lists */
.recent-posts,
.archives {
  list-style: none;
  padding-left: 0;
  margin-bottom: 2rem;
}

.recent-posts li,
.archives li {
  margin-bottom: 0.5rem;
}

.archives a {
  text-decoration: none;
  color: #1E1E1E;
  font-family: "Montserrat", sans-serif;
  font-size: 22px;
  line-height: 28px;
}
.recent-posts a{
  text-decoration: none;
  color: #1E1E1E;
  font-family: "Montserrat", sans-serif;
  font-size: 22px;
  line-height: 28px;
}
.sidebar-col-two
 {
    margin-top: 8rem;
}
.recent-posts a:hover,
.archives a:hover {
  text-decoration: underline;
}

@media (max-width:1550px){
  .blog-container{
    gap: 120px;
  }
}

@media (max-width:1435px){
  .blog-title{
    font-size: 42px;
  }
  /* .blog-link{
    font-size: 30px;
  } */
  /* .tags-heading,
  .blog-summary{
    font-size: 14px;
  } */
  .read-more-link{
    font-size: 26px;
  }
  .sidebar-title{
    font-size: 30px;
  }
  .recent-posts a, .archives a{
    font-size: 19px;
  }
  .tags-heading{
    font-size: 30px !important;
  }
  .tag-link{
    /* font-size: 14px !important; */
  }
  
}
@media (max-width:1250px){
  .blog-title{
    font-size: 38px;
  }
  .blog-link{
    font-size: 26px;
  }

  /* .tags-heading,
  .blog-summary{
    font-size: 12px;
  } */
  .read-more-link{
    font-size: 22px;
  }
  .sidebar-title{
    font-size: 26px;
  }
  .recent-posts a, .archives a{
    font-size: 17px;
  }
  .tags-heading{
    font-size: 28px !important;
  }
    .tag-link{
    /* font-size: 12px !important; */
  }
  
}
@media (max-width:1110px){
  .blog-title{
    font-size: 34px;
  }
  .blog-link{
    font-size: 22px;
  }
  /* .tags-heading,
  .blog-summary{
    font-size: 11px;
  } */
  .read-more-link{
    font-size: 18px;
  }
  .sidebar-title{
    font-size: 22px;
  }
  .recent-posts a, .archives a{
    font-size: 14px;
  }
  .tags-heading{
    font-size: 24px !important;
  }
    .tag-link{
    /* font-size: 12px !important; */
  }
  
}
@media (max-width:970px){
  .blog-title{
    font-size: 30px;
  }
  /* .blog-link{
    font-size: 18px;
  } */
  /* .tags-heading,
  .blog-summary{
    font-size: 11px;
  } */
  .read-more-link{
    font-size: 14px;
  }
  .sidebar-title{
    font-size: 18px;
  }
  .recent-posts a, .archives a{
    font-size: 14px;
  }
  .tags-heading{
    font-size: 20px !important;
  }
  .tag-link{
    /* font-size: 14px !important; */
  }
  
}

/* Responsive Styles */
@media (max-width: 768px) {

  .blog-main,
  .blog-sidebar {
    flex: 1 1 100%;
  }

  .read-more-container {
    justify-content: center;
  }

  .blog-img {
    max-height: 200px;
  }

  .blog-sidebar {
    margin-top: 40px;
  }

  /* .blog-title {
    text-align: center;
  } */
}

/* --- Tags Section --- */
.blog-meta-section {
  margin: 2rem 0;
  padding: 1rem;
  border-top: 1px solid #d1d5db;
  border-bottom: 1px solid #d1d5db;
}

.tags-wrapper {
  margin-top: 15rem;
}

.tags-heading {
  font-size: 32px;
  font-family: "Montserrat", sans-serif;
  color: #1E1E1E;
  font-weight: 400;
  line-height: 28px;
}

.tags-list {
  display: grid;
  grid-template-columns: repeat(3, auto); /* 3 columns on desktop */
  gap: 3rem;
  row-gap: 1rem;
  padding: 0;
  justify-content: start;
}

@media (max-width: 768px) {
  .tags-list {
    grid-template-columns: repeat(2, auto); /* 2 columns on small screens */
  }
}

.tag-item {
  display: flex;
  align-items: center;
}

/* .tag-item:nth-child(5),
.tag-item:nth-child(6),
.tag-item:nth-child(7) {
  justify-self: center;
} */



.tag-list ul li a {
  background-color: none;
}

.tag-link {
  font-family: "Montserrat", sans-serif;
  color: #1E1E1E;
  text-decoration: none;
}

/* .tag-link:hover,
.tag-link:focus {
  background-color: #1e3a8a;
  color: #1e3a8a;
  outline: none;
} */

/* --- Pagination --- */
.pagination-wrapper {
  text-align: center;
  margin-top: 1rem;
  padding-left: 150px;
  margin-bottom: 50px;
}

.pagination-list {
  list-style: none;
  padding: 0;
  display: inline-flex;
  gap: 0.5rem;
}

.pagination-link {
    display: inline-block;
    border-radius: 4px;
    font-family: "Montserrat", sans-serif;
    color: #1E4B8B;
    text-decoration: none;
    font-weight: 400;
    font-size: 16px;
    line-height: 28px;
}

.pagination-link:hover{
  color: #1e1e1e;
  outline: none;
}
.pagination-link.active{
  color: #1e1e1e;
  outline: none;
}
.cta-section {
  background-color: #ffffff;
  padding: 3rem 1rem;
  text-align: center;
}

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

.cta-text {
  font-size: 1.2rem;
  font-weight: 500;
  color: #222;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.cta-subtext {
  display: block;
  font-size: 1rem;
  color: #444;
  margin-top: 0.5rem;
}

.cta-button {
  background-color: #00a9b7;
  color: white;
      padding: 1.5rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
  line-height: 28px;
}



.blog-tags {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #ccc;
}

.tags-title {
  font-size: 1rem;
  font-weight: 600;
  /* margin-bottom: 0.5rem; */
  color: #1E1E1E;
}

.tags-list {
  display: grid;
  /* 3 equal columns on desktop, fallback to 2 on small screens via media query below */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 0.5rem; /* row-gap then column-gap (very tight) */
  row-gap: 1rem;
  margin-top: 20px;
  padding: 0;
  justify-content: start;
  align-items: start;
}

.tags-list .tag-item {
  display: block; /* stack the link inside each grid cell */
  list-style: none;
  margin: 0;
  padding: 0;
}

.tags-list .tag-link {
  font-family: "Montserrat", sans-serif;
  font-size: 20px; /* match screenshot size */
  line-height: 1.6;
  color: #1E1E1E;
  text-decoration: none;
  display: inline-block;
  padding: 0;
  margin: 0;
}

.tags-list .tag-link:hover {
  text-decoration: underline;
}

/* Higher specificity for sidebar to override global .tag-link styles (background, borders) */
.blog-sidebar .tags-list {
  /* Fill tags vertically down columns and size columns to content (auto) so there's no large white space */
  display: grid;
  grid-auto-flow: column; /* populate down columns */
  grid-template-rows: repeat(3, auto); /* number of rows per column */
  grid-auto-columns: auto; /* each column sizes to its content */
  gap: 0.75rem 0; /* small row-gap, no column gap */
  margin-top: 20px;
  padding: 0;
  justify-content: start;
}

.blog-sidebar .tags-list .tag-link {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  color: #1E1E1E !important;
  font-size: 22px !important;
  line-height: 28px !important;
  text-decoration: none !important;
}

.blog-sidebar .tags-list .tag-link:hover {
  text-decoration: underline !important;
}

/* Normalize all tag-list markup variations (li, .tag-item, anchor) so tags always appear in 3 columns
   as plain text (no pills), and avoid underlines except on hover. This covers different templates
   that render tags as <li><a>, <div class="tag-item"><a>, or inline anchors. */
.tags-list,
.blog-sidebar .tags-list,
.blog-main .tags-list {
  list-style: none;
  padding: 0;
    margin-top: 13px;
  display: grid;
  /* Use auto column widths so columns hug their content and avoid large whitespace */
  grid-template-columns: repeat(3, auto);
  gap: 0.75rem 24px; /* smaller vertical gap, zero horizontal gap */
  row-gap: 0.75rem;
  align-items: start;
}

.tags-list li,
.tags-list .tag-item,
.tags-list .tag-item div {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags-list a,
.tags-list .tag-link,
.tags-list .tag-item a {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  color: #1E1E1E !important;
  font-size: 20px !important;
  line-height: 1.6 !important;
  text-decoration: none !important;
  display: inline-block !important;
}

.tags-list a:visited {
  color: inherit !important;
}

@media (max-width: 768px) {
  .tags-list,
  .blog-sidebar .tags-list,
  .blog-main .tags-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Inline tag list for single article pages */
.full-blog-post .blog-tags {
  display: flex;
  /* flex-wrap: nowrap; keep label + tags on one line */
  align-items: center;
  gap: 0.5rem;
}

.full-blog-post .blog-tags .tags-list {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 0;
  align-items: center;
  padding: 0;
  margin-top: 0.5rem;
  margin-left: 0;
  margin-right: 0;
  white-space: nowrap; /* prevent tags wrapping */
}

/* On single article pages remove the top border and tighten spacing */
.full-blog-post .blog-tags {
  margin-top: 2rem; /* reduce gap from content */
  padding-top: 0;     /* remove the inner padding */
  border-top: none;   /* remove the grey rule */
}

.full-blog-post .tags-title {
    margin-right: 0.5rem;
    font-weight: 500;
    font-size: 16px;
    line-height: 28px;
    font-family: "Montserrat", sans-serif;
}

.full-blog-post .tags-inline {
  margin-top: 0; /* ensure no extra top spacing */
}

.full-blog-post .blog-tags .tags-list .tag-item {
  display: inline;
  list-style: none;
  margin: 0; /* remove extra spacing */
}

/* add comma after each tag with a non-breaking space, so it appears: Tag1, Tag2 */
.full-blog-post .blog-tags .tags-list .tag-item::after {
  content: ",\00a0";
}

.full-blog-post .blog-tags .tags-list .tag-item:last-child::after {
  content: "";
}

.tag-item {
  display: flex;
  align-items: center;
}

/* Inline tags container for article pages when rendered as text */
.full-blog-post .tags-inline {
  display: inline-block;
  /* white-space: nowrap; keep tags on single line */
  font-size: 16px;
}

.full-blog-post .tags-inline .tag-link {
  text-decoration: none;
  color: #1E1E1E;
}
.summer-sun {
    margin-top: 46px;
}

/* .tag-link {
  padding: 0.4rem 0.75rem;
  font-weight: 400;
  border-radius: 3px;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  color: #1E1E1E;
  text-decoration: none;
  transition: background-color 0.3s ease;
} */

/* .tag-link:hover,
.tag-link:focus {
  background-color: #d7f1f4;
  outline: 2px solid #007b8a;
  outline-offset: 2px;
} */
@media (max-width: 768px) {
  .header h1 {
    font-size: 50px;
    font-weight: 400;
  }
 
  .header {
    padding: 3rem 0.5rem;
  }
 
  .blog-title {
    font-size: 26px;
    font-weight: 400;
    /* margin: 0px !important */
  }
 
  .blog-summary,
  .read-more-link {
    font-size: 16px;
    font-weight: 400;
    line-height: 28px;
    font-family: Montserrat;
    color: #1E1E1E;
  }
 
  .blog-summary {
    font-size: 13.5px;
  }
 
  .blog-heading {
    /* margin-bottom: 0px; */
    font-size: 26px;
    font-weight: 400;
    font-family: 'Montserrat';
    line-height: 40px;
  }
 
  .read-more-container {
    justify-content: end;
  }
 
  .blog-img {
    max-height: 200px;
    margin: 0px;
  }
 
  .read-more-link {
    font-family: 'Merriweather';
    color: #1E4B8B;
  }
 
  /* .mobile-none {
    display: none;
  } */

  .tags-list {
    grid-template-columns: auto auto;
    gap: 3rem;
    row-gap: 1.5rem;
    justify-content: start;
  }
 
  .pagination-wrapper {
    display: flex;
    width: 100%;
    justify-content: center;
    padding-left: 0px !important;
 
  }
 
  .blog-content p,
  h3,
  h4,
  h5 {
    font-size: 13px;
    line-height: 30px;
    font-weight: 400;
    font-family: 'Montserrat';
    color: #1E1E1E;
  }
 
  .blog-content h3 {
    margin: 25px 0px;
  }
 
  .blog-content h4 {
    font-weight: 500;
    font-size: 14px;
    margin-top: 25px;
  }
 
  .font-700 {
    font-weight: 700 !important;
  }
 
  .blog-content h5 {
    font-weight: 500;
    margin: 30px 0px 0px;
    color: black;
  }
 
  .cta-section {
    padding: 3rem 0rem !important;
  }
 
  .cta-text {
    font-size: 26px !important;
    line-height: 30px !important;
    font-weight: 400 !important;
    font-family: 'Montserrat' !important;
  }
 

  #summer-safety-title {
    line-height: 28px !important;
  }
 
  .blog-main {
    flex: 1 1 100%;
    padding: 5px;
  }

 
  .blog-sidebar {
    margin-top: 40px;
  }

}

 @media(min-width:1440px){

  .blog-heading{
    font-size: 36px !important;
  }
  .blog-tags{
    align-items: center;
  }
  .tags-title{
    margin-bottom: 0px !important;
  }
  .cta-section{
    padding: 0px !important;
  }
  .last-container{
    max-width: 100% !important;
  }
  .cta-container{
    padding: 2rem 90px !important;
  }
  .cta-text{
    line-height: 28px;
  }
  .tags-list .tag-item a {
    font-size: 22px;
    line-height: 28px;
}
 }

 @media screen and (min-width:1440px) and (max-width:1585px) {
  .sidebar-col-one {
    margin-top: 3.3rem;
}
 }
 @media screen and (min-width:1220px) and (max-width:1250px) {
  .sidebar-col-one {
    margin-top: -2.7rem;
}
 }
 @media screen and (min-width:1086px) and (max-width:1111px) {
  .sidebar-col-one {
    margin-top: -2.7rem;
}
 }
 @media screen and (min-width:950px) and (max-width:970px) {
  .sidebar-col-one {
    margin-top: -2.7rem;
}
 }
 @media  screen and (max-width:800px) {
  .blog-container {
    flex-direction: column;
  }
 }
 @media screen and (min-width:1200px) and (max-width:1400px) {
  .tags-wrapper {
    margin-top: 10rem !important;
}
 }
 @media screen and (min-width:950px) and (max-width:1199px) {
  .tags-wrapper {
    margin-top: 5rem !important;
}
 }
 @media screen and  (max-width:949px) {
  .tags-wrapper {
    margin-top: 5rem !important;
}
.sidebar-col-two {
  margin-top: 4rem;
}
 }
 @media screen and  (max-width:800px) {
  aside.blog-sidebar {
    margin-top: 50px !important;
}
.blog-container {
  gap: 0px;
}
.tags-wrapper {
  margin-top: 2rem !important;
}
.sidebar-col-two {
  margin-top: 2rem;
}
 }

@media(max-width:1600px) {
  .blog-container {
    padding: 30px 80px;
}
}
@media(max-width:1200px) {
  .blog-container {
    padding: 30px 40px;
}
}
@media(max-width:600px) {
  .blog-container {
    padding: 30px 20px;
}
}