/* Non-critical styles - loaded after initial render */

/* Raleway fonts - moved from critical CSS as they're not used above the fold */
@font-face {
  font-display: swap;
  font-family: "Raleway";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/raleway-v34-latin-regular.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Raleway";
  font-style: normal;
  font-weight: 500;
  src: url("../fonts/raleway-v34-latin-500.woff2") format("woff2");
}

/* Additional font weights that aren't immediately needed */

/* montserrat-500 - cyrillic_cyrillic-ext_latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/montserrat-v31-cyrillic_cyrillic-ext_latin_latin-ext-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-600 - cyrillic_cyrillic-ext_latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/montserrat-v31-cyrillic_cyrillic-ext_latin_latin-ext-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-700 - cyrillic_cyrillic-ext_latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/montserrat-v31-cyrillic_cyrillic-ext_latin_latin-ext-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-800 - cyrillic_cyrillic-ext_latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  src: url('../fonts/montserrat-v31-cyrillic_cyrillic-ext_latin_latin-ext-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-900 - cyrillic_cyrillic-ext_latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 900;
  src: url('../fonts/montserrat-v31-cyrillic_cyrillic-ext_latin_latin-ext-900.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}


@font-face {
  font-display: swap;
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/raleway-v34-latin-500.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/raleway-v34-latin-700.woff2') format('woff2');
}

/* Touch-friendly interactions */
.touch-manipulation {
  touch-action: manipulation;
}

/* Ensure minimum touch target sizes on mobile */
@media (max-width: 768px) {
  button, 
  a[role="button"], 
  input[type="submit"], 
  input[type="button"], 
  [role="button"] {
    min-height: 36px;
    min-width: 36px;
    touch-action: manipulation;
  }
  .copy-link-btn {
    min-height: 25px;
    min-width: 25px;
  }
  /* Add spacing between touch targets */
  button + button,
  a + a,
  button + a,
  a + button {
    margin-left: 8px;
  }
}

/* Hero section styles */
#hero h1 {
  font-family: var(--font-primary);
  letter-spacing: 0.9px;
}
#hero h2 {
  font-family: var(--font-primary);
}

#navbar a {
  font-family: var(--font-secondary);
  font-weight: 500;
  letter-spacing: 1px;
}

footer a,
footer span {
  font-family: var(--font-secondary)
}

#tag {
  font-family: var(--font-secondary);
}

.table-of-content-tablet {
  display: none;
}

/* Scoped heading styles for increased specificity */
html h1,
html h2,
html h3,
html h4,
html h5,
html h6,
html h1 a,
html h2 a,
html h3 a,
html h4 a,
html h5 a,
html h6 a {
  color: #344054;
  font-family: var(--font-primary);
  margin: 1rem 0;
  line-height: var(--line-height);
  font-weight: 500;
  letter-spacing: 0.7px;
  cursor: default;
}

/* Responsive font sizes and styles */
body h1 {
  font-size: var(--title-size-1); /* 48px */
  margin: 3.25rem 0 2.25rem;
  line-height: 1.2;
  /* letter-spacing: -0.5px; */
}

body h2 {
  font-size: var(--title-size-2); /* 26px */
  margin: 3.75rem 0 1.75rem;
  line-height: 1.3;
}

body h3 {
  font-size: var(--title-size-3); /* 32px */
  margin: 3rem 0 1rem;
  line-height: 1.35;
}

body h4 {
  font-size: var(--title-size-4); /* 24px */
  margin: 0.75rem 0;
  line-height: 1.4;
}

body h5 {
  font-size: var(--title-size-5); /* 20px */
  margin: 0.5rem 0;
  line-height: 1.5;
}

body h6 {
  font-size: var(--title-size-6); /* 16px */
  margin: 0.25rem 0;
  line-height: 1.6;
}

/* Adjustments for medium screens (tablets) */
@media (max-width: 768px) {
  body h1 {
    font-size: 2.5rem; /* 40px */
  }
  body h2 {
    font-size: 2rem; /* 32px */
  }
  body h3 {
    font-size: 1.75rem; /* 28px */
  }
  body h4 {
    font-size: 1.25rem; /* 20px */
  }
  body h5 {
    font-size: 1rem; /* 16px */
  }
  body h6 {
    font-size: 0.875rem; /* 14px */
  }
}

/* Adjustments for small screens (mobile phones) */
@media (max-width: 480px) {
  body h1 {
    font-size: 2rem; /* 32px */
  }
  body h2 {
    font-size: 1.75rem; /* 28px */
  }
  body h3 {
    font-size: 1.5rem; /* 24px */
  }
  body h4 {
    font-size: 1.125rem; /* 18px */
  }
  body h5 {
    font-size: 1rem; /* 16px */
  }
  body h6 {
    font-size: 0.875rem; /* 14px */
  }
}

a, li {
  font-family: var(--font-secondary);
}

p a,
table tbody a {
  font-family: var(--font-secondary);
  font-weight: 600;
  color: rgb(67, 56, 202); /* Darker blue on hover */
  text-decoration: underline; /* Remove underline */
  text-decoration-thickness: 1px; /* Thickness of the underline */
  text-underline-offset: 6px; /* Move underline 3px to the bottom */ 
  transition: color 0.5s ease, text-decoration-color 0.5s ease; /* Smooth transition for color and underline change */

  &:hover {
    color: #7E22CE; 
    text-decoration-color: transparent; /* Change underline color on hover */
  }
 
 
  &:visited {
    color: #7E22CE; /* Even darker blue when active */
    text-decoration-color: #0a3a8a; /* Change underline color when active */
  }
}

#content section article ul {
  margin-bottom: 2rem !important;
}

#content section article .article-content hr {
  margin: 2rem 0 !important;
}

blockquote {
  font-family: var(--font-secondary);
  font-size: 1.25rem; /* Slightly larger text for emphasis */
  font-weight: 500;
  line-height: 1.6;
  color: #555; /* Neutral color for readability */
  border-left: 4px solid #7E22CE; /* Accent border */
  padding: 1rem;
  margin: 2rem 0 !important;
  background-color: #f9f9f9 !important; /* Light background for contrast */
}

blockquote p {
  margin: 0 !important; /* Remove default paragraph margin inside blockquote */
}

.blog-icon {
    margin: 1.25rem;
    /* display:inline-block; */
    object-fit: contain; 

    img {
      /* background: #f3f4f6; */
      color: #344054;
      border-radius: 0.7rem;
    }
}
.blog-inline-picture {
    margin: 1.25rem;
    /* display:inline-block; */
    min-width: 180px;
    max-width:230px;
    max-height:250px;
    width:23vw;
    object-fit: contain; 
    float: right;

    img {
      object-fit: contain;
      /* background: #f3f4f6; */
      color: #344054;
      border-radius: 0.7rem;
      max-height:250px;
    }
    
    @media screen and (max-width: 481px) {
      display: flex !important;
      float: none !important;
      margin: 1.75rem auto 1.75rem auto !important;
    }
}

.blog-section-picture {
    margin: 1.25rem;
    display: flex;
    justify-content: center;
    /* display:inline-block; */
    /* min-width: 180px; */
    /* max-width:230px; */
    /* max-height:250px; */
    /* width:23vw; */
    object-fit: contain; 
    border-radius: 0.7rem;
    /* float: right; */

    img {
      /* object-fit: contain; */
      /* background: #f3f4f6; */
      /* color: #344054; */
      border-radius: 0.5rem;
      /* max-height:250px; */
    }
    
    @media screen and (max-width: 481px) {
      display: flex !important;
      height: 100% !important;
      margin: 0 auto 1.25rem auto !important;
      justify-content: center;
    }
}


#blog-content ol, 
#blog-content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

#blog-content ul li {
  list-style-type: disc;
}

#blog-content ol li {
  list-style-type: decimal;
}

#blog-content ol li::marker {
  font-size: 1.125rem;
  color: #333;
}

#blog-content ul li,
#blog-content ol li {
  margin-left: 0;
  padding-left: 0;
  font-family: var(--font-secondary);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.5;
  color: #333;
  letter-spacing: 0.6px;
  cursor: default;
}

#blog-content ul li:not(:first-child),
#blog-content ol li:not(:first-child) {
  margin-top: 10px;
}

#blog-content ol li {
  list-style-type: decimal;
}

/* Base styling for paragraph */
p {
  font-family: var(--font-secondary);
  font-size: 1.125rem; /* 18px for slightly larger text in blog posts */
  font-weight: 500;
  line-height: 1.5; /* Ensures comfortable spacing between lines */
  margin-bottom: 1.5rem; /* Space below each paragraph for clarity */
  color: #333; /* Neutral dark color for readability */
  letter-spacing: 0.6px; /* Slightly increases spacing for clarity */
  cursor: default; /* Default cursor for better UX */
}

/* Styling for paragraphs within blog content */
body p {
  letter-spacing: 0.8px;
  line-height: 1.8; /* Enhanced readability for longer texts */
  color: #222; /* Slightly darker shade for blog content */
  margin-bottom: 2rem; /* More spacing for better visual separation */
}

/* Styling for emphasis within paragraphs */
p strong {
  font-weight: 800;
  color: #000; /* Ensure emphasis is visible */
}

p em {
  font-style: italic;
  color: #333; /* Subtle color difference for italic text */
}

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

  p,
  body p,
  #blog-content ol li, 
  #blog-content ul li {
    font-size: 1rem !important; /* Adjust to maintain readability */
    margin-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  

  p,
  body p,
  #blog-content ol li, 
  #blog-content ul li {
    font-size: 1rem !important; /* Slightly larger than default for mobile blog posts */
    margin-bottom: 1rem !important;
  }
}

@media screen and (max-width: 768px) {
  .table-of-content-tablet {
    display: block;
  }
  .sidebar-nav {
    display: none;
  }
}
@media screen and (max-width: 1024px) {
  .table-of-content-tablet {
    display: block;
  }
  .sidebar-nav {
    display: none;
    width: 300px;
  }
}

.text-shadow {
  text-shadow: 2px 2px 2px #000000; /* Adds a subtle shadow to text for better readability */
}

a.social-share-btn {
  height: 22px;
  width: 22px;
  transition: all 0.3s ease-in-out;
}

a.social-share-btn:hover {
  opacity: 0.6;
  transition: all 0.2s ease-in-out;
  scale: 1.1;
}


