/*-- -------------------------- -->
<---        Core Styles         -->
<--- -------------------------- -*/
/* Mobile-first base styles */
:root {
  --bodyHeader: #1a1a1a;
  --bodyText: #737373;
}

.blog-container {
  width: 100%;
  max-width: 70em;
  margin: 0 auto;
  padding: 0 1rem;
}

.blog-link {
  font-size: 1rem;
  line-height: clamp(2.875em, 5.5vw, 3.5em);
  text-decoration: none;
  font-weight: 700;
  text-align: center;
  margin: auto;
  color: #fff;
  min-width: 9.375rem;
  padding: 0 1.5rem;
  background-color: var(--bodyHeader);
  border-radius: 0.25rem;
  display: inline-block;
  position: relative;
  box-sizing: border-box;
  z-index: 1;
  transition: color .3s;
}
.blog-link:before {
  content: '';
  position: absolute;
  height: 100%;
  width: 100%;
  background: #fff;
  opacity: 0;
  top: 0;
  left: 0;
  box-sizing: border-box;
  border-radius: 0.25rem;
  transition: opacity .3s;
  border: 1px solid var(--bodyHeader);
  z-index: -1;
}
.blog-link:hover {
  color: var(--bodyHeader);
}
.blog-link:hover:before {
  opacity: 1;
}

/* --- BLOG HERO & SECTION (Match site aesthetic) --- */
#blog-hero { padding-top: 12rem; padding-bottom: 0; text-align: center; background-color: var(--background); position: relative; z-index: 1;}
.dark #blog-hero { background: linear-gradient(145deg, #00031F 0%, #0C2B33 96%); }
/* curved-divider styles moved to critical.css to avoid duplication */
#blog-content { background-color: var(--secondary); padding-top: 0; overflow: visible; overflow-x: clip; }

/*-- -------------------------- -->
<---           Header           -->
<--- -------------------------- -*/
/* Mobile-first: Blog header */
#header {
  position: relative;
  z-index: 1;
}
#header .blog-container {
  padding: clamp(100px, 14vw, 200px) 0 clamp(50px, 11vw, 100px);
}
#header .blog-header {
  font-size: clamp(24px, 4vw, 48px);
  color: #fff;
  font-weight: 700;
  line-height: 1.2em;
  margin: 0;
  width: 100%;
  text-align: left;
}
#header .blog-bg {
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}
#header .blog-bg:before {
  content: '';
  width: 100%;
  height: 100%;
  background: #000;
  opacity: .6;
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  z-index: 1;
}
#header .blog-bg img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
}
/*-- -------------------------- -->
<---   Interior Page Header     -->
<--- -------------------------- -*/
/* Mobile-first: Interior hero */
#int-hero {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: relative;
  z-index: 1;
  min-height: 30vh;
  padding-top: 3.125rem;
}
#int-hero:before {
  content: '';
  position: absolute;
  display: block;
  height: 100%;
  width: 100%;
  background: #000;
  opacity: .7;
  top: 0;
  left: 0;
  z-index: -1;
}
#int-hero picture {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: -2;
}
#int-hero picture img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
}
#int-hero h1 {
  color: #fff;
  font-size: 2.13333333rem;
  text-align: center;
  margin: 0 auto;
  position: relative;
  width: 96%;
  max-width: 31.25rem;
  margin-top: 4.375rem;
  margin-bottom: 1.875rem;
}
#int-hero p {
  color: #fff;
  text-align: center;
  max-width: 25rem;
  margin: auto;
  margin-bottom: 1.875rem;
  display: block;
  width: 96%;
}
/* Tablet */
/* Tablet and up: 768px */
@media (min-width: 768px) {
  #int-hero {
    font-size: 100%;
  }
  #int-hero h1 {
    font-size: 4rem;
  }
}
/* Small Desktop */
/* Desktop and up: 1024px */
@media (min-width: 1024px) {
  #int-hero {
    min-height: 18.75rem;
    height: auto;
    padding-top: 11.25rem;
    padding-block-end: 6.25rem;
    background-attachment: fixed;
    font-size: inherit;
  }
}
/*-- -------------------------- -->
<---        Main Content        -->
<--- -------------------------- -*/
/* Mobile-first: Main content wrapper */
.blog-container {
  padding: clamp(60px, 7vw, 100px) 0;
}
.main-content-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  row-gap: 3.125em;
}
.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  row-gap: 3.125em;
  width: 100%;
}
/* Tablet - 1024px */
/* Desktop and up: 1024px */
@media (min-width: 1024px) {
  .main-content-wrapper {
    flex-direction: row;
    align-items: flex-start;
    column-gap: 1.25em;
  }
  .main-content {
    flex: 1;
    min-width: 0;
    order: 1;
  }
  .blog-sidebar {
    order: 2;
  }
}
/*-- -------------------------- -->
<---    Recent Blog Articles    -->
<--- -------------------------- -*/
/* Mobile-first: Recent articles */
.recent-articles {
  overflow: hidden;
  max-width: 49.6875em;
  flex: none;
  width: 100%;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 8px 20px hsla(var(--foreground-hsl), 0.05);
}
.recent-articles .blog-mainImage {
  width: 100%;
  height: clamp(200px, 30vw, 400px);
  position: relative;
  display: block;
  border-radius: 1rem 1rem 0 0;
  overflow: hidden;
}
.recent-articles .blog-mainImage img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.recent-articles .article-group {
  padding: clamp(24px, 4vw, 40px);
  border-top: 1px solid var(--border);
  border-radius: 0 0 1rem 1rem;
  background-color: var(--card);
}
.recent-articles .blog-author-img {
  width: 2em;
  height: 2em;
  position: relative;
  display: block;
  border-radius: 50%;
  overflow: hidden;
}
.recent-articles .blog-author-img img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.recent-articles .blog-authorGroup {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.75rem;
}
.recent-articles .blog-author,
.recent-articles .blog-date {
  font-size: 0.875rem;
  color: var(--bodyText);
  line-height: 1.5em;
}
.recent-articles .blog-dot {
  width: 3px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 50%;
  display: block;
}
.recent-articles .blog-h1 {
  font-size: clamp(20px, 5vw, 32px);
  line-height: 1.3;
  font-weight: 800;
  margin: 0.5rem 0 0.75rem;
  color: var(--foreground);
  letter-spacing: -0.02em;
}
.recent-articles .blog-desc {
  font-size: 1rem;
  line-height: 1.7;
  margin: 0.25rem 0 1.25rem;
  color: var(--muted-foreground);
}
.recent-articles .blog-link { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  gap: .5rem; 
  padding: .9rem 1.4rem; 
  border-radius: 9999px; 
  font-weight: 600; 
  text-decoration: none; 
  transition: all .35s var(--ease-out-cubic); 
  border: 1px solid var(--primary); 
  color: var(--primary); 
  background-color: transparent; 
  position: relative; 
  overflow: hidden; 
  z-index: 1; 
  font-size: .9rem; 
}
.recent-articles .blog-link:hover { 
  color: var(--primary-foreground); 
  transform: translateY(-3px) scale(1.05); 
  box-shadow: 0 6px 15px hsla(var(--primary-hsl), 0.3); 
}
/* Mobile - 1024px */
/* Desktop and up: 1024px */
@media (min-width: 1024px) {
  .recent-articles .blog-h1 {
    max-width: 31.25rem;
  }
}
/* Dark Mode */
body.dark-mode .recent-articles .blog-h1,
body.dark-mode .recent-articles .blog-desc,
body.dark-mode .recent-articles .blog-author,
body.dark-mode .recent-articles .blog-date {
  color: #f7f7f7;
}
body.dark-mode .blog-sidebar .feature-h3,
body.dark-mode .blog-sidebar .feature-date,
body.dark-mode .blog-sidebar .blog-header {
  color: #f7f7f7;
}
body.dark-mode .blog-sidebar .blog-header:after {
  background: var(--primary);
}
body.dark-mode .blog-article .blog-h1,
body.dark-mode .blog-article .blog-author,
body.dark-mode .blog-article .blog-date {
  color: #f7f7f7;
}
body.dark-mode .blog-article #blog-content h2,
body.dark-mode .blog-article #blog-content h3,
body.dark-mode .blog-article #blog-content h4,
body.dark-mode .blog-article #blog-content h5,
body.dark-mode .blog-article #blog-content h6 {
  color: #f7f7f7;
}
body.dark-mode .blog-article #blog-content p,
body.dark-mode .blog-article #blog-content li {
  color: #f7f7f7;
  opacity: .8;
}
body.dark-mode .blog-article #blog-content a {
  color: #9dafe5;
}
/*-- -------------------------- -->
<---          Sidebar           -->
<--- -------------------------- -*/
/* Mobile-first: Blog sidebar */
.blog-sidebar {
  max-width: 49.6875em;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  box-sizing: border-box;
  row-gap: 3.125em;
}
.blog-sidebar .blog-featured-group {
  padding: 2.1875em 1.875em;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background-color: var(--card);
  box-shadow: 0 8px 20px hsla(var(--foreground-hsl), 0.05);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  width: 100%;
}
.blog-sidebar .blog-header {
  display: block;
  font-size: 1.25em;
  color: var(--foreground);
  font-weight: bold;
  text-align: center;
  position: relative;
  margin-bottom: 1.875rem;
}
.blog-sidebar .blog-header:after {
  content: '';
  position: relative;
  display: block;
  width: 3.125rem;
  height: 3px;
  background: var(--accent);
  border-radius: 0.25rem;
  margin: 1rem auto;
}
.blog-sidebar .blog-feature {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  column-gap: 1.5em;
  width: 100%;
  text-decoration: none;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.blog-sidebar .blog-feature:nth-of-type(1) {
  padding-top: 0;
}
.blog-sidebar .blog-feature:last-of-type {
  padding-bottom: 0;
  border: none;
}
.blog-sidebar .blog-featureImage {
  display: block;
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  width: 3.75em;
  height: 3.75em;
  flex: none;
}
.blog-sidebar .blog-featureImage img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.blog-sidebar .feature-h3 {
  font-size: 0.9375rem;
  line-height: 1.5em;
  color: var(--foreground);
  margin: 0;
  margin-bottom: 0.25rem;
  font-weight: 700;
  display: block;
  text-decoration: none;
}
.blog-sidebar .feature-date {
  font-size: 0.875rem;
  line-height: 1.5em;
  color: var(--muted-foreground);
  display: block;
}
/* Desktop and up: 1024px */
@media (min-width: 1024px) {
  .blog-sidebar {
    max-width: 22.5em;
    width: 22.5em;
    flex: 0 0 auto;
    position: sticky;
    top: 6rem;
    align-self: flex-start;
  }
}
/*-- -------------------------- -->
<---        Blog Articles       -->
<--- -------------------------- -*/
/* Mobile-first: Blog article */
.blog-article {
  max-width: 49.6875em;
  width: 100%;
  display: block;
}
.blog-article .blog-mainImage {
  width: 100%;
  height: clamp(200px, 30vw, 400px);
  position: relative;
  display: block;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 8px 20px hsla(var(--foreground-hsl), 0.05);
}
.blog-article .blog-mainImage img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.blog-article .blog-author-img {
  width: 2em;
  height: 2em;
  position: relative;
  display: block;
  border-radius: 50%;
  overflow: hidden;
}
.blog-article .blog-author-img img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.blog-article .blog-authorGroup {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.75rem;
}
.blog-article .blog-author,
.blog-article .blog-date {
  font-size: 0.875rem;
  color: var(--bodyText);
  line-height: 1.5em;
}
.blog-article .blog-dot {
  width: 3px;
  height: 3px;
  background-color: #fe4f70;
  border-radius: 50%;
  display: block;
}
.blog-article .blog-h1 {
  font-size: clamp(24px, 5vw, 40px);
  line-height: 1.2;
  font-weight: 800;
  margin: 0.5rem 0 0.75rem;
  max-width: 40ch;
  color: var(--foreground);
  letter-spacing: -0.02em;
}
#blog-article-content {
  padding-top: 1.5rem;
  margin-top: 1rem;
  border-top: 1px solid var(--border);
}
#blog-article-content h2 {
  font-size: 1.75rem;
  line-height: 1.5em;
  color: var(--foreground);
  font-weight: 700;
  margin-bottom: 1rem;
}
#blog-article-content h3 {
  font-size: 1.5rem;
  line-height: 1.5em;
  color: var(--foreground);
  font-weight: 700;
  margin-bottom: 1rem;
}
#blog-article-content h4,
#blog-article-content h5,
#blog-article-content h6 {
  font-size: 1.25rem;
  line-height: 1.5em;
  color: var(--foreground);
  font-weight: 700;
  margin-bottom: 1rem;
}
#blog-article-content p {
  font-size: 1rem;
  line-height: 1.75;
  margin: 0;
  margin-bottom: 1rem;
  color: var(--muted-foreground);
}
#blog-article-content a {
  text-decoration: underline;
  font-size: inherit;
  color: var(--primary);
}
#blog-article-content ul,
#blog-article-content ol {
  padding-left: 2.5rem;
  margin: 0;
  margin: 1rem 0;
}
#blog-article-content ul li,
#blog-article-content ol li {
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1rem;
  color: var(--muted-foreground);
  list-style: circle;
}
#blog-article-content img {
  width: 100%;
  height: auto;
  display: block;
  margin: 1rem 0;
  border-radius: 0.5rem;
}
/*-- -------------------------- -->
<---           Footer           -->
<--- -------------------------- -*/
/* Mobile-first: Footer */
#cs-footer {
  font-family: 'Roboto', 'Arial', sans-serif;
  padding: clamp(3.75em, 7.82vw, 6.25em) 1em;
  background-color: #1a1a1a;
}
#cs-footer .cs-container {
  width: 100%;
  max-width: 80em;
  margin: auto;
}
#cs-footer .cs-logo-group {
  width: 100%;
  position: relative;
}
#cs-footer .cs-logo {
  width: clamp(13.125em, 8vw, 15em);
  height: auto;
  display: block;
  margin-bottom: clamp(1.75em, 4.17vw, 2.75em);
}
#cs-footer .cs-logo-img {
  width: 100%;
  height: auto;
}
#cs-footer .cs-text {
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  line-height: 1.5em;
  margin: 0;
  margin-bottom: 2.5rem;
  max-width: 21.5rem;
  color: var(--bodyTextColorWhite);
}
#cs-footer .cs-nav {
  padding: 0;
  padding-left: 1em;
  margin: 0;
  margin-bottom: clamp(2em, 5.3vw, 2.5em);
}
#cs-footer .cs-nav-li {
  list-style: none;
  line-height: 1.5em;
}
#cs-footer .cs-nav-li:last-of-type {
  margin-bottom: 0;
}
#cs-footer .cs-header {
  font-size: 1rem;
  line-height: 1.5em;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--bodyTextColorWhite);
  position: relative;
  display: block;
}
#cs-footer .cs-nav-link {
  font-size: 1rem;
  text-decoration: none;
  line-height: 1.5em;
  color: var(--bodyTextColorWhite);
  position: relative;
}
#cs-footer .cs-nav-link:before {
  content: '';
  width: 0%;
  height: 0.125rem;
  background: currentColor;
  opacity: 1;
  position: absolute;
  display: block;
  bottom: -0.125rem;
  left: 0;
  transition: width .3s;
}
#cs-footer .cs-nav-link:hover:before {
  width: 100%;
}
#cs-footer .cs-bottom {
  width: 100%;
  position: relative;
  padding-left: 1em;
}
#cs-footer .cs-copyright {
  font-size: 1rem;
  line-height: 1.5em;
  color: #B4B2C7;
  display: block;
}
#cs-footer .cs-social {
  display: inline-flex;
  justify-content: flex-start;
  flex-direction: column;
  gap: 0.75em;
  position: absolute;
  right: 1em;
  bottom: 0;
}
#cs-footer .cs-social-link {
  width: 1.5rem;
  height: 1.5rem;
  background-color: #4E4B66;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
  transition: transform 0.3s, background-color 0.3s;
}
#cs-footer .cs-social-link:hover {
  background-color: var(--primary);
  transform: translateY(-0.1875rem);
}
#cs-footer .cs-social-img {
  height: 0.8125rem;
  width: auto;
  display: block;
}
/* Inbetween - 600px */
@media only screen and (min-width: 37.5em) {
  #cs-footer .cs-container {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    /* 48px - 60px */
    column-gap: clamp(3em, 5.9vw, 3.75em);
  }
}
/* Tablet - 768px */
/* Tablet and up: 768px */
@media (min-width: 768px) {
  #cs-footer .cs-logo-group {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* 20px - 60px */
    margin-bottom: clamp(1.25em, 4vw, 3.75em);
  }
  #cs-footer .cs-logo {
    margin: 0;
  }
  #cs-footer .cs-text {
    text-align: right;
    width: 50%;
    max-width: 32.5625rem;
    margin: 0;
  }
  #cs-footer .cs-nav {
    padding: 0;
  }
  #cs-footer .cs-bottom {
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  #cs-footer .cs-social {
    flex-direction: row;
    position: relative;
    /* reset these positions */
    bottom: auto;
    right: auto;
  }
}
