/* create a style for the root class */
:root {
    --clr-white: #ffffff;
    --clr-white-80: #ffffffc7;
    --clr-white-60: #ffffff99;
    --clr-white-40: #ffffff68;
    --clr-light-border: #22282d;
    --clr-black: #000000;
    --clr-black-sheer: rgba(0, 0, 0, 0.3);
	--clr-light-background: #0d1014;
	--clr-light-background-50: #0d1014a0;
	--clr-light-background-10: #0d10147e;
	--clr-light-background-clear: #0d10144d;
	--clr-secondary-text: #6A7E97;
	--clr-light-background-blue: #1D242D;
	--clr-light-background-blue-50: #1D242D50;

	--clr-accent-green: #72BB9A;
	--clr-link-blue: #58a0ff;

	--clr-blog-card-body: #20202180;

	--clr-gpt-grey-background: #434241;
	--clr-gpt-grey-font: #8D8E9E;

    /*font sizes */
    /* desktop */
    --desktop-h1: 3rem;
    --desktop-h2: 1.2rem;
    --desktop-h3: 1.1rem;
    --desktop-h4: 1rem;
    --desktop-p: 1rem;
    --desktop-small: 0.7rem;
    
    --tablet-h1: 2.5rem;
    --tablet-h2: 1.2rem;
    --tablet-h3: 1.1rem;
    --tablet-h4: 1rem;
    --tablet-p: 1rem;
    --tablet-small: 0.7rem;

    --mobile-h1: 2rem;
    --mobile-h2: 1.1rem;
    --mobile-h3: 1rem;
    --mobile-h4: 1rem;
    --mobile-p: 0.9rem;
    --mobile-small: 0.7rem;

    /* font sizes */
    --fs-h1: var(--mobile-h1);
    --fs-h2: var(--mobile-h2);
    --fs-h3: var(--mobile-h3);
    --fs-h4: var(--mobile-h4);
    --fs-p: var(--mobile-p);
    --fs-small: var(--mobile-small);

    --fs-0-8rem: 0.8rem;
    --fs-1rem: 1rem;
    --fs-1-5rem: 1.5rem;


    /*font weights */
	--fw-h1: 600;
	--fw-h2: 600;
	--fw-h3: 400;
	--fw-h4: 400;
	--fw-p: 500;
	--fw-button: 600;
	--fw-nav: 700;
	--fw-very-light: 200;
    --fw-light: 300;
    --fw-normal: 400;
    --fw-semi: 500;
    --fw-bold: 600;
    --fw-heavy: 800;

    color-scheme: light dark;

    --ff-mono: 'Roboto Mono', monospace;
    --ff-main: 'Inter', sans-serif;

}
/* --- anmations --- */

/* ensure darkmode doesn't affect the styling */
@media (prefers-color-scheme: dark) {
    :root {
      color-scheme: dark;
    }
  }
  
  @media (forced-colors: active) {
    :root {
      forced-color-adjust: none;
    }
  }

/* Inter Variable Font Face Declarations */
@font-face {
    font-family: 'Inter';
    src: url("../fonts/Inter-VariableFont_opsz,wght.0a77e23a8fdb.ttf") format('truetype-variations');
    font-weight: 100 900;
    font-stretch: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url("../fonts/Inter-Italic-VariableFont_opsz,wght.6dce17792107.ttf") format('truetype-variations');
    font-weight: 100 900;
    font-stretch: normal;
    font-style: italic;
    font-display: swap;
}


.hidden {
	opacity: 0;
	filter: blur(5px);
	/* transform: translateX(-100%); */
	transition: all 0.3s;
}
.hidden-slide {
	opacity: 0;
	filter: blur(5px);
	transform: translateX(-100%);
	transition: all 0.3s;
}
.hidden-drop {
	opacity: 0;
	filter: blur(5px);
	transform: translateY(30%);
	transition: all 0.3s;
}
.show {
	opacity: 1;
	filter: blur(0px);
	transform: translateX(0);
	transform: translateY(0);
}
/* --- end anmations --- */

html {
	font-family: var(--ff-main);
	color: var( --clr-black);
	-webkit-appearance: none;
	overflow-x: hidden;  
}

body {
  background: #000 !important;
  margin: 0;
  padding: 0;
  flex-direction: column;
  height: 100dvh;
}
body.black {
	background: var(--clr-black);
}

button {
    background: none;  
    color: inherit;    
    border: none;      
    padding: 0;        
    font: inherit;     
    cursor: pointer;   
    outline: inherit;  
}

.container-centered {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	overflow: hidden;
    /* to fill full screen even if not a lot of blogs */
    flex: 1;
    padding: 0;
}
.container-centered.to-black {
	background: linear-gradient(to bottom, var(--clr-light-background), var(--clr-black));
}
.container {
	width: 100%;
	display: flex;
    justify-content: center;
    flex-direction: column;
}
.container.blog {
	/* max-width: none; */
    width: 100%;
    padding: 0;
}

h1 {
	color: var(--clr-white);
	font-size: var( --fs-h1);
	font-weight: var(--fw-h1);
	margin: 5px 0px 5px 0px;
}

h2 {
	color: var(--clr-white);
	font-size: var(--fs-h2);
	font-weight: var(--fw-h2);
	margin: 0px;
}

h3 {
	color: var(--clr-white);
	font-size: var(--fs-h3);
	font-weight: var(--fw-h3);
	margin: 0px;
}

p {
	color: var(--clr-white);
	font-size: var( --fs-p);
	font-weight: var(--fw-p);
	margin-top: 10px;
}

a {
    text-decoration: none;
    color: inherit; 
}

/* a:hover {
    cursor: pointer;
	filter: brightness(75%);
}  */

.logo {
    width: 200px;
    height: auto;
    margin-top: 0px;
}
.gradient1-text {
	font-weight: var(--fw-bold); 
	background: linear-gradient(70deg, #687e58, #f58742, #f56f7f, #c378f3, #7f7f7f);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	display: inline-block;
}
.gradient2-text {
	font-weight: var(--fw-bold); 
	background: linear-gradient(90deg, #928dff, #c378f3, #f082f3, #f67fc0, #f67f6f, #f04e37);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	display: inline-block;
}
.gradient3-text {
	font-weight: var(--fw-bold); 
	background: linear-gradient(135deg, #6e7f42, #c37842, #f04e42);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	display: inline-block;
}
.gradient5-text {
	font-weight: var(--fw-bold); 
	background: linear-gradient(20deg, #e384ac, #d17ba8, #aa77d1, #7a6dd1, #6b94e1);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	display: inline-block;
}
.gradient4-text {
	font-weight: var(--fw-bold); 
	background: linear-gradient(90deg, #3C4653 28%, #6A7E97 73%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	display: inline-block;
}
/* ------------------------------------------ NAV BAR ----------------------- */
/* Styling for a fixed navigation bar at the top */

header {
    position: -webkit-sticky; /* For Safari */
    position: sticky;
    top: 0;
    z-index: 100; 
    padding: 10px;
}

nav {
    background-color: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px); /* Apply blur effect */
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    color: white;
    font-weight: var(--fw-h2);
    display: flex;
    justify-content: center;
    padding: 10px 0;
    width: 100%;
    border-radius: 10px;
    transition: background-color 0.7s ease, backdrop-filter 0.3s ease; /* Smooth transition */
}

nav a {
    color: var(--clr-white-80);
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease; /* Smooth transition for color and movement */
    display: inline-block; /* Allows the transform to work properly */
}
nav a:hover {
    font-weight: 400;
}

nav a.nav-hover {
    color: var(--clr-white-80);
    text-decoration: none;
    position: relative;
    padding: 4px 0; /* Creates space for the underline */
    overflow: hidden;
    display: inline-block;
}

nav a.nav-hover .nav-text {
    display: inline-block;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

nav a.nav-hover::before {
    content: attr(data-text);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
nav a.nav-hover:hover .nav-text {
    transform: translateY(-200%);
}

nav a.nav-hover:hover::before {
    transform: translateY(-120%);
    color: var(--clr-white);
}

.nav-max-size {
    max-width: 1340px;
    width: 100%;
    display: flex;
    flex-direction: row;
    padding: 0px 10px;
}

.nav_links {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    /* width: 100%; */
    margin: 0px 0px 0px 10px;
    padding: 0;
}
    .nav_links li {
        list-style: none;
        padding: 0px 20px 0px 20px;
        display: flex;
        flex-direction: row;
        align-items: center;
    }
.nav_logo {
    /* display: none; */
    margin: 0px 20px 0px 0px;
}
    .logo-svg {
        height: 20px; 
        width: auto; 
    }
    .logo-footer-svg {
        width: 85%;
        max-width: 300px;
    }
    

.navLeft {
    display: flex;
    align-items: center;
}

.navRight {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    list-style: none;
}
    .navRight img {
        display: flex;
        align-items: center;
        height: 20px;
    }

/* Dropdown menu Styling */
.dropdown-menu {
    display: none;
    position: absolute;
    border-radius: 5px;
    top: 42px;
    right: 3px;
    z-index: 10;
    background-color: var(--clr-black);
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 240px;
    list-style: none;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}
    .dropdown-menu img {
        height: 24px;
    }
    .dropdown-menu li {
        padding: 10px;
    }
    .dropdown-menu.show { 
        /* class that toggles the hamburger menu */
        /* there's a script that uses this */
        display: block;
    }

/* Mobile styles */
@media (max-width: 767px) {
    .showMobile {
        display: flex !important;
    }
    .showNotMobile {
        display: none !important;
    }
    
    .navRight {
        justify-content: flex-end;
    }
    
    .dropdown {
        list-style: none;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .nav-max-size {
        padding: 0 15px;
    }
    nav {
        padding: 10px 0;
    }
    .nav_logo img {
        height: 30px;
    }
}

/* ------------------------------------------ BUTTON STYLING ----------------------- */
.primary-button {
    color: var(--clr-black);
    background-color: var(--clr-white);
    box-sizing: border-box;
    width: 160px;
    height: 45px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    font-size: var(--fs-button);
    font-weight: var(--fw-button);
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.primary-button.full-width {
    width: 100%;
}

.primary-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #58f1ff63, #5f83f04f, #e54bdb49);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.primary-button:hover {
    color: var(--clr-black);
    transform: translateY(-2px);
}

.primary-button:hover::before {
    opacity: 1;
}

.primary-button:hover .button-icon {
    filter: invert(10%);
}

.primary-button.footer {
    width: 160px;
}

.secondary-button {
    color: var(--clr-white);
    border: 2px solid var(--clr-white-40);
    box-sizing: border-box;
    width: 160px;
    height: 45px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    font-size: var(--fs-button);
    font-weight: var(--fw-button);
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.secondary-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.secondary-button:hover {
    transform: translateY(-2px);
    border-color: var(--clr-white);
}

.secondary-button:hover::before {
    transform: translateX(0);
}

.back-button {
    display: flex;
    flex-direction: row;
    align-items: center;
    color: var(--clr-white-80);
    column-gap: 10px;
    margin: 20px 0px;
}
.back-button.blog-detail {
    display: flex;
    flex-direction: row;
    align-items: center;
    color: var(--clr-white-80);
    column-gap: 10px;
    margin: 20px 0px;
    width: calc(100% - 2rem);
    max-width: 1360px;

}

/* for the chevrons */
.button-icon { 
	height: 14px;
	margin: 0px 0px 0px 7px;
}
.button-icon.white { 
	filter: invert(100%);
}
.chevron-left {
	height: 14px;
	margin: 0px 0px 0px 7px;
    transform: rotate(270deg);
}

/* --------------------------------------- FORMS (only in footer)---------------------------- */
/* Reset styling for all input fields within a form */
form input {
    background: none;  
    color: var(--clr-white);    
    border-radius: 10px;
	border: 1px solid var(--clr-white);
    padding: 3px 10px;
    font: inherit;     
	transition: all 0.3s ease;
    /* outline: var(--clr-accent);     Remove default focus outline */
}
form input:focus {
	transform: scale(1.02);
}
.input-field{
	width: 180px;
	height: 35px;
	border-radius: 20px;
}
/* ------------------------------------------ FOOTER SECTION ----------------------- */
.footer-container {
	width: 100%;
	display: flex;
    justify-content: center;
    flex-direction: column;
	/* gap: 40px; */
}

footer {
	background-color: var(--clr-black);
	padding: 40px 20px 10px 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	overflow: hidden;

}
.footer-header-section {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.footer-header img {
	width: 85%;
    max-width: 300px;
}
.footer-subheader p {
	color: var(--clr-white);
	font-size: medium;
	font-weight: 400;
	margin: 15px 0px;
}
.footer-social-links-section {
	display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    column-gap: 10px;
	margin: 40px 0px 5px 0px;
}
.footer-social-links-section img {
	width: 40px;
}
.footer-docs-list {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	row-gap: 10px;
}
.footer-docs-list p {
	color: var(--clr-white);
	font-size: small;
}
.footer-newsletter-signup {
	display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    row-gap: 10px;
}
.footer-bottom p {
	color: var(--clr-white);
	font-size: x-small;
}
p.footer-docs-header {
	color: var(--clr-secondary-text);
}
.footer-section-holder {
	width: 100%;
	padding: 0px 10px;
}
.footer-header-section-right {
	display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
	column-gap: 20px;
	padding: 20px 0px 40px 0px;
}
.footer-bottom {
	display: flex;
	width: 100%;
	column-gap: 10px;
	/* add a thin border to the top */
	border-top: 2px solid var(--clr-light-background-blue);
}
.footer-bottom p {
	color: var(--clr-secondary-text);
}
.footer-bottom-space {
	display: flex;
	flex-direction: row;
	justify-content: center;
	width: 100%;
}

/* ------------------------------------------ PAGE: TERMS --------------------------------------------------- */
.blog-body a {
	text-decoration: underline;
	color: var(--clr-link-blue);
}
.blog-body img {
    display: block;
    width: auto;
    max-width: 100%;
    margin: 30px auto; /* Centers the image and adds vertical spacing */
    padding: 5px;
    background-color: var(--clr-light-background-50);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.blog-body img::before {
    content: "Image";
    display: block;
    text-align: center;
    color: var(--clr-white-60);
    margin-bottom: 10px;
    font-style: italic;
}
.blog-body h1 {
	font-size: var(--fs-h3);
	font-weight: 500;	
	padding: 10px 0px;
	color: var(--clr-white);
	font-size: 1.4rem;
	margin: 20px 0px;
}
.blog-body h2 {
	font-size: var(--fs-h4);
	padding: 5px 0px;
	font-weight: 500;	
	color: var(--clr-white);
	font-size: 1.2rem;
	margin: 35px 0px 0px 0px;
}
.blog-body h3 {
	font-size: var(--fs-p);
	font-weight: 400;	
	padding: 3px 0px;
	color: var(--clr-white);
	font-size: 1rem;
	margin: 5px 0px;
}
.blog-body p {
	font-size: var(--fs-p);
	font-weight: var(--fw-light);	
	color: var(--clr-white-80);
	font-size: 1rem;
	margin: 15px 0px;
    line-height: 1.6;
}
.blog-body ol,
.blog-body ul {
    font-size: 1rem;
    color: var(--clr-white-80);
    margin: 15px 0px;
    line-height: 1.6;
}

.blog-body li {
    margin-bottom: 10px; /* Adds space between list items */
}
strong {
    font-weight: 600;
	color: var(--clr-white);
}
.blog-body code {
    font-family: var(--ff-mono);
    font-size: 0.9rem;
    font-weight: var(--fw-light);
    color: var(--clr-white-80);
    background-color: var(--clr-light-background-blue);
    padding: 2px 5px;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}

.blog-body code:hover {
    background-color: var(--clr-light-background-blue);
    color: var(--clr-white);
}

/* Code blocks */
.blog-body pre {
    background-color: var(--clr-light-background-blue-50);
    border-radius: 8px;
    padding: 2.2em 1.2em 1.2em 1.2em;
    margin: 25px 0;
    overflow-x: auto;
    border-left: 3px solid var(--clr-accent-green);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    position: relative;
}

.blog-body pre::before {
    content: "Code";
    position: absolute;
    top: 4px;
    left: 15px;
    background-color: var(--clr-light-background-blue);
    color: var(--clr-white-60);
    font-family: var(--ff-mono);
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 4px;
}

.blog-body pre code {
    display: block;
    background-color: transparent;
    padding: 0;
    font-size: 0.9em;
    line-height: 1.6;
    white-space: pre;
    color: var(--clr-white-80);
    border: none;
}

/* Table styling */
.blog-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.blog-body th,
.blog-body td {
    border: 2px solid var(--clr-light-background);
    background-color: var(--clr-light-background-blue-50);
    padding: 12px 15px;
    text-align: left;
    transition: background-color 0.2s ease;
    color: var(--clr-white-80);
}

.blog-body th {
    background-color: var(--clr-light-background-blue);
    color: var(--clr-white);
    font-weight: var(--fw-semi);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.blog-body tr:hover td {
    background-color: rgba(29, 36, 45, 0.7);
}

.blog-body table caption {
    margin-bottom: 10px;
    font-style: italic;
    color: var(--clr-white-60);
    text-align: left;
    font-size: 0.9rem;
}

/* Add responsive table for mobile */
@media (max-width: 767px) {
    .blog-body table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* ------------------------------------------ BLOGS list Styling --------------------------------------------------- */
h1.blog-page-header {
    margin: 20px 0px 40px 0px;
    text-align: center;
}
.blog-page-section-holder {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}
.blog-card {
    display: flex;
    flex-direction: column;
    row-gap: 20px;
    justify-content: space-between;
    align-items: center;
    border: 3px solid var(--clr-light-background-blue);
    border-radius: 10px;
    padding: 10px;
    margin: 10px 0px;
    background-color: var(--clr-blog-card-body);
    transition: transform 0.3s ease;
}
.blog-card:hover {
    transform: scale(1.02);
}
.blog-card img { /* thumbnail */
    width: auto;
    max-width: calc(100% - 4rem);
    height: auto;
    max-height: 300px;
}
span.blog-card-date {
    font-size: var(--fs-small);
    font-weight: var(--fw-light);
    font-family: var(--ff-mono);
    color: var(--clr-white-40);
}
h2.card-title {
    font-weight: var(--fw-semi);
    margin: 7px 0px;
}
p.card-text {
    font-weight: var(--fw-light);
    color: var(--clr-white-80);
}
.blog-card-body {
    container-type: inline-size;
    container-name: blog-card-body;
    width: 100%;
}
.blog-card-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
}
  
  @container blog-card-body (min-width: 400px) {
    .blog-card-footer {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
  }
.author-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    column-gap: 10px;
}
.author-info.blog-post {
    align-items: flex-start;
    margin: 50px 0px 10px 0px;
}
img.author-image {
    width: 30px !important;
}
.author-details {}
p.author-name {
    margin: 0px;
    font-weight: var(--fw-light);
    color: var(--clr-white-80);
    font-family: var(--ff-mono);

}
p.card-meta {
    font-size: var(--fs-small);
    font-weight: var(--fw-light);
    font-family: var(--ff-mono);
    color: var(--clr-white-40);

}
/* .blog-list-snippet {
    height: 84px !important;
} */
 .blog-list-author {
    display: flex;
    align-items: center;
    gap: 5px;
 }

/* ------------------- FULL BLOG POST Styling -------------------------- */
.blog-post {
    margin: 0px 0px 20px 0px;
}
p.blog-post-meta {
    font-size: var(--fs-p);
    font-weight: var(--fw-light);
    font-family: var(--ff-mono);
    color: var(--clr-white-40);
    margin: 20px 0px;
}
p.blog-post-meta.small {
    font-size: var(--fs-small);
}
img.author-image.blog-post {
    width: 90px !important;
}
.social-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    column-gap: 10px;
}
.social-links img {
    width: 20px;
}
p.blog-post-author-name {
    font-size: var(--fs-p);
    font-weight: var(--fw-light);
    font-family: var(--ff-mono);
    color: var(--clr-white-80);
}
.blog-body iframe {
    display: block;
    max-width: 100%;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

/* Add a responsive wrapper for iframes */
.blog-body .video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 30px 0;
}

.blog-body .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}

.blog-thumbnail img {
    display: block;
    width: auto;
    max-width: 100%;
    margin: 30px auto;
    padding: 5px;
    background-color: var(--clr-light-background-50);
    border-radius: 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

/* --------------------------------------- MINI FOOTER ---------------------------- */
.mini-footer-section-holder {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    row-gap: 20px;
	margin: 3rem 0 0 0;
}
.mini-footer-left {
	padding: 0px 15px 0px 0px;
}
.mini-footer-right {
	display: flex;
    flex-direction: column;
    align-items: flex-start;
    row-gap: 20px;
}

/* --------------------------------------- RELATED BLOGS ---------------------------- */
.related-blogs-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 1rem;
    margin: 1rem 0;
}
.related-blogs-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    column-gap: 10px;
}
.related-blogs-header h2 {
    color: var(--clr-secondary-text);
}
.related-blogs-header img {
    width: 2rem;
}
.related-blogs-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: calc(100% - 1rem);
    gap: 1rem;
}
.related-blog a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
    border: 3px solid var(--clr-light-background-blue);
    border-radius: 12px;
    width: 220px;
    height: 140px;
    background-color: var(--clr-light-background);
    transition: transform 0.2s ease;
}
.related-blog a:hover {
    transform: scale(1.05);
}
.related-blog-author {
    display: flex;
    flex-direction: row;
    align-items: center;
    column-gap: 10px;
}
.related-blog-author span {
    font-weight: var(--fw-light);
    color: var(--clr-white-80);
    font-family: var(--ff-mono);
    font-size: var(--fs-0-8rem);
}
.related-blog-author img {
    width: 2rem;
}
.related-blog-title {
    flex: 1;
    display: flex;
    align-items: center;
    margin: -20px 0 0 0;
}
.related-blog-title h3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}
.related-blog-date {}
.related-blog-date span {
    font-weight: var(--fw-light);
    color: var(--clr-white-60);
    font-family: var(--ff-mono);
    font-size: var(--fs-0-8rem);
}

/* ------------------------------------------ RESPONSIVE Styling --------------------------------------------------- */
/* replace 100dvh with 100vh if not supported */
@supports not (height: 100dvh) {
    .showMobile {
        height: 100vh;
    }
}

.showMobile {
	display: none;
}
.showNotMobile {  /* for tablet and desktop */
	display: flex;
}
/* for people who don't like animations */
@media(prefers-reduced-motion) {
	.hidden {
		transition: none;
	}
}


/* bigger than a phone, smaller than ipad? */
@media (min-width: 380px) {
    	/* ---------------- MINI FOOTER ----------- */
	.mini-footer-section-holder {
		flex-direction: column;
		row-gap: 30px;
		justify-content: space-between;
	}
	.mini-footer-right {
		flex-direction: row;
		align-items: center;
		width: 100%;
		max-width: 380px;
		justify-content: space-between;
	}
	/* ---------------- FOOTER ----------- */
	.input-field{
		width: 200px;
	}
	.footer-newsletter-signup {
		display: flex;
		flex-direction: row;
		justify-content: flex-start;
		align-items: center;
		column-gap: 10px;
	}
	.footer-header-section-right {
		column-gap: 20px;
	}

}

/* bigger than a phone, smaller than ipad? */
@media (min-width: 460px) {
	.primary-animated-button {
		width: 180px;
	}
	.primary-button {
		width: 180px;
	}
	.secondary-button {
		width: 180px;
	}

	
}

@media (min-width: 670px) {
    /* ---------------------------- MINI FOOTER ----------------------- */
    .mini-footer-section-holder {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }
}

/* styles for tablet */
@media (min-width: 768px) {
	:root {
        --fs-h1: var(--tablet-h1);
        --fs-h2: var(--tablet-h2);
        --fs-h3: var(--tablet-h3);
        --fs-p: var(--tablet-p);
        --fs-small: var(--tablet-small);
    }
	.container {
		max-width: 1340px;
		/* gap: 40px; */
	}
	.footer-header-section {
		flex-direction: row;
	}
	.footer-section-holder {
		max-width: 1360px;
		width: 100%;
		/* margin: 20px; */
		gap: 40px;
	}
	.footer-social-links-section {
		column-gap: 20px;
		margin: 80px 0px 30px 0px;
	}
	/* ---------------------------- NAV BAR ----------------------- */
	.navRight {
		display: flex;
		flex-direction: row;
		justify-content: flex-end;
		width: 100%;
	}
	/* ---------------------------- FOOTER SECTION ----------------------- */
	.footer-social-links-section img {
		width: 35px;
	}
	.footer-header-section-right {
		padding: 0px 0px 0px 30px;
	}
    /* ---------------------------- BLOG SECTION ----------------------- */
    .blog-card {
        flex-direction: row;
        column-gap: 20px;
    }
    .blog-card.reverse-order {
        flex-direction: row-reverse;
    }
    .blog-card img { /* thumbnail */
        width: auto;
        max-width: 450px;
    }
}




/* styles for desktop */
@media (min-width: 991px) {
	:root {
        --fs-h1: var(--desktop-h1);
        --fs-h2: var(--desktop-h2);
        --fs-h3: var(--desktop-h3);
        --fs-p: var(--desktop-p);
        --fs-small: var(--desktop-small);
    }
	.showNotDesktop { 
		display: none !important;
	}
	.showDesktop {
		display: flex;
	}
	.container {
		/* gap: 60px; */
	}
	.button-icon {
		height: 14px;
		margin: 0px 0px 0px 9px;
	}
	.backshape3-layer {
		width: 80%;
		height: 100%;
		background-position: 20px -150px;
	}
	/* -------------- Footer--------- */
	.footer-header-section-right {
		column-gap: 50px;
		padding: 0px;
	}
	
}


/* styles for desktop */
@media (min-width: 1330px) {

}

/* --- BLOGS NEW LAYOUT --- */
.featured-content {
  flex: 2 1 400px;
  padding: 2.5rem 2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.explore-header {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #222;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}
body.black .explore-header { color: var(--clr-white, #fff); }
.blog-category-widgets {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  background: none;
  justify-content: center;
  align-items: center;
  margin-bottom: 2.5rem;
}
.category-widget {
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  background: #23242a;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  border: 2px solid transparent;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
    transform: translateY(0) scale(1);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                background-color 0.3s ease, 
                color 0.3s ease, 
                box-shadow 0.3s ease;
    will-change: transform;
    box-sizing: border-box; /* Ensure consistent sizing */
    position: relative; /* For proper z-index handling */
    z-index: 1;
}

.category-widget.selected, 
.category-widget:hover {
    background-color: #6cace1 !important;
  color: #000000 !important;
    border: 2px solid transparent !important; /* Keep border size consistent */
    transform: translateY(-2px) scale(1.05) !important; /* Scale up slightly */
    box-shadow: 0 6px 12px rgba(0,0,0,0.1) !important;
    z-index: 2; /* Bring hovered button forward */
}
body.black .category-widget.selected, body.black .category-widget:hover {
  color: #0040ff !important;
  border: 2px solid #e0e0e0 !important;
}
.blog-bg, .container-centered, .container.blog {
  background: transparent !important;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  padding-left: 1.2rem;
  padding-right: 1.2rem;
  margin: 0 0 2rem 0;
}
.blog-card-grid {
background: #18191c73 !important;
  border: none !important;
  box-shadow: none !important;
  overflow: hidden;
  border-radius: 8px;
  box-sizing: border-box;
  transition: transform 0.18s cubic-bezier(.4,1.3,.6,1), z-index 0.18s;
  position: relative;
}
.blog-card-grid:hover {
  box-shadow: none;
  border: none;
  background: transparent;
  outline: none;
  /* Only image zoom remains */
  transform: none;
  z-index: auto;
}
.blog-card-image {
    width: 100%;
    aspect-ratio: 16/9;
    background: #18191c;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
}
.blog-card-grid:hover .blog-card-image img {
  transform: scale(1.07);
  transition: transform 0.18s cubic-bezier(.4,1.3,.6,1);
  z-index: 2;
  outline: none;
  border: none;
}
.blog-card-image img {
  border-radius: 8px;
  transition: transform 0.18s cubic-bezier(.4,1.3,.6,1);
  outline: none;
  border: none;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: #18191c;
}
@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }
}
@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr;
    padding-left: 0.3rem;
    padding-right: 0.3rem;
  }
  .blog-card-grid {
    margin-bottom: 1.2rem;
  }
}
.blog-card-content {
  padding: 1.2rem 1.2rem 1.5rem 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-category-label {
  font-size: 0.9em;
  color: #ffb300;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}
.blog-card-title {
  font-size: 1.25rem;
  color: #222;
  font-weight: 700;
  margin: 0 0 0.7rem 0;
}
body.black .blog-card-title { color: var(--clr-white, #fff); }
.blog-card-snippet {
  color: var(--clr-white-60) !important;
  font-size: 1rem;
  margin-bottom: 1.2rem;
  font-weight: 400 !important;
}
body.black .blog-card-snippet { color: var(--clr-white-80, #bbb); }
.blog-meta-line {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.98rem;
  color: var(--clr-white-60) !important;
  margin-top: auto;
  font-family: var(--ff-mono, monospace);
  font-weight: 300 !important;
}
body.black .blog-meta-line { color: var(--clr-white-40, #bbb); }
.author-image-meta {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}
.dot {
  font-size: 1.1em;
  margin: 0 0.2em;
  color: inherit;
}
.no-blogs {
  text-align: center;
  color: #888;
}
body.black .no-blogs { color: var(--clr-white-40, #bbb); }

.blog-card-title {
  color: #18191c;
  text-shadow: none;
}
body.black .blog-card-title {
  color: #fff;
  text-shadow: 0 2px 8px #000a, 0 0 2px #ffb30033;
}
.blog-category-label {
  color: #ffb300;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: none;
}
body.black .blog-category-label {
  color: #ffd966;
  text-shadow: 0 1px 4px #000a;
}
.blog-meta-line {
  color: #444;
}
body.black .blog-meta-line {
  color: #fff;
  text-shadow: 0 1px 4px #000a;
}

.featured-blog, .blog-card-horizontal {
  background: #18191c !important;
  border: none !important;
  color: #fff;
  box-shadow: none !important;
}
.featured-title, .blog-card-title, .featured-snippet, .blog-card-snippet, .blog-meta-line, .blog-category-label {
  color: #fff;
  text-shadow: none;
}
.author-image-meta {
  border: 2px solid #333;
}
.explore-header, .blog-category-widgets, .category-widget {
  color: #fff;
}
body.black .blog-bg {
  background: #18191c;
}
body.black .container-centered, body.black .container.blog {
  background: #18191c;
}
body.black .category-widget.selected, body.black .category-widget:hover {
  background: #e0e0e0 !important;
  color: #18191c !important;
  border: 2px solid #e0e0e0 !important;
}

.blog-card-horizontal * {
  color: #fff !important;
}

@media (max-width: 900px) {
  .blog-maxwidth {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
@media (max-width: 600px) {
  .blog-maxwidth {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.featured-blog-link {
  display: block;
  padding-left: 1.2rem;
  padding-right: 1.2rem;
  padding-top: 0;
  padding-bottom: 0;
  margin: 2rem 0;
}
@media (max-width: 900px) {
  .featured-blog-link {
    padding-left: 0.7rem;
    padding-right: 0.7rem;
    margin: 1.5rem 0;
  }
}
@media (max-width: 600px) {
  .featured-blog-link {
    padding-left: 0.3rem;
    padding-right: 0.3rem;
    margin: 1rem 0;
  }
}

@media (max-width: 600px) {
  .blog-category-widgets {
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }
  .category-widget {
    font-size: 0.98rem;
    padding: 0.45rem 1rem;
    min-width: 90px;
  }
}

.blog-bg, .container-centered, .container.blog, footer {
  background: transparent !important;
}

.author-meta-top {
    display: flex;
    align-items: center;
    gap: 0.7em;
    margin-bottom: 0.7em;
    font-family: var(--ff-main);
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
}
.author-meta-top .author-image-meta {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.author-name-meta {
    font-family: var(--ff-main);
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
}

.blog-meta-info {
    display: flex;
    align-items: center;
    gap: 1em;
    font-family: var(--ff-main);
    font-size: 1rem;
    color: #888;
    margin-top: 1.2em;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.featured-title, .blog-card-title {
    font-family: var(--ff-main);
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5em;
}

.featured-snippet, .blog-card-snippet {
    font-family: var(--ff-main);
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 3rem;
    font-weight: 400;
}

.blog-card-footer-row {
    display: flex;
    width: 100%;

    position: absolute;
    bottom: 15px;
    left: 0;
}
.blog-card-footer-row-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: calc(100% - 40px);
    padding: 0 20px;
    font-family: var(--ff-main);
    font-size: 0.87rem;
    color: var(--clr-white-40);
    letter-spacing: 0.01em;
}

.blog-card-footer-author,
.blog-card-footer-date {
    font-weight: 400;
    color: var(--clr-white-40);
}

.featured-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 1.5em;
    font-family: var(--ff-main);
    font-size: 0.98rem;
    color: var(--clr-white-40);
}

.featured-footer-author {
    font-weight: 400;
    color: var(--clr-white-40) !important;
}

.featured-footer-meta {
    font-weight: 400;
    color: var(--clr-white-40);
    text-align: right;
}

.with-footer-alignment .featured-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 1.5em;
    font-family: var(--ff-main);
    font-size: 0.98rem;
    color: var(--clr-white-40);
    position: relative; /* For absolute positioning fallback if needed */
}

.with-footer-alignment .featured-footer-author {
    font-weight: 400;
    color: var(--clr-white-40);
    float: left; /* Extra alignment help */
    position: absolute;
    left: 0;
}

.with-footer-alignment .featured-footer-meta {
    font-weight: 400;
    color: var(--clr-white-40);
    float: right; /* Extra alignment help */
    position: absolute;
    right: 0;
}

.featured-footer-table {
    width: 100%;
    margin-top: 1.5em;
    font-family: var(--ff-main);
    font-size: 0.98rem;
    color: var(--clr-white-40);
    border-collapse: collapse;
}

.featured-footer-table td {
    padding: 0;
}

.featured-footer-author {
    font-weight: 400;
    color: var(--clr-white-40) !important;
}

.featured-footer-meta {
    font-weight: 400;
    color: var(--clr-white-40);
    text-align: right;
    display: inline-block;
}

/* Also ensure the table version is correctly colored */
.featured-footer-table .featured-footer-author {
    color: var(--clr-white-40) !important;
}

/* Share Section Styles */
.share-section {
	margin: 2rem 0;
	padding: 1.5rem 0;
	border-top: 1px solid var(--clr-light-border);
}

.share-section h3 {
	color: var(--clr-white);
	font-weight: var(--fw-h2);
    font-size: var(--fs-h2);
    /* font-weight: var(--fw-light);
    font-family: var(--ff-mono);
    color: var(--clr-white-80); */
	margin-bottom: 1rem;
}

.share-buttons {
	display: flex;
	gap: 1rem;
	align-items: center;
}

.share-button {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1rem;
	background: var(--clr-light-background-blue);
	border: 1px solid var(--clr-white-40);
	border-radius: 6px;
	color: var(--clr-white);
	text-decoration: none;
	font-size: var(--fs-p);
	font-weight: var(--fw-p);
	transition: all 0.3s ease;
}

.share-button:hover {
	background: var(--clr-white-40);
	border-color: var(--clr-white);
	transform: translateY(-2px);
}

.share-button img {
	width: 18px;
	height: 18px;
	filter: brightness(0) invert(1);
}

.share-button.linkedin-share:hover {
	background: #0077b5;
	border-color: #0077b5;
}

.share-button.twitter-share:hover {
	background: #000000;
	border-color: #ffffff;
}

@media (max-width: 600px) {
	.share-buttons {
		flex-direction: column;
		align-items: stretch;
	}
	
	.share-button {
		justify-content: center;
	}
}

/* Continue Reading Section Styles */
.continue-reading-section {
	margin: 3rem 0;
	padding: 2rem;
	/* background: var(--clr-light-background-blue); */
	border-radius: 12px;
	border: 1px solid var(--clr-light-border);
	transition: all 0.3s ease;
}

.continue-reading-section:hover {
	border-color: var(--clr-white);
	background: var(--clr-light-background);
}

.continue-reading-label {
	color: var(--clr-white-60);
	font-size: var(--fs-p);
	font-weight: var(--fw-light);
	font-family: var(--ff-main);
	margin: 0 0 1rem 0;
	/* text-transform: uppercase; */
	letter-spacing: 0.05em;
}

.continue-reading-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.continue-reading-title {
	color: var(--clr-white);
	font-size: 2rem;
	font-weight: var(--fw-h1);
	margin: 0 0 1rem 0;
	line-height: 1.3;
	transition: color 0.3s ease;
}

.continue-reading-section:hover .continue-reading-title {
	color: var(--clr-link-blue);
}

.continue-reading-arrow {
	color: var(--clr-link-blue);
	font-size: var(--fs-p);
	font-weight: var(--fw-p);
	display: flex;
	align-items: center;
	gap: 0.5rem;
	transition: all 0.3s ease;
}

.continue-reading-section:hover .continue-reading-arrow {
	transform: translateX(5px);
	color: var(--clr-white);
}

@media (max-width: 600px) {
	.continue-reading-section {
		margin: 2rem 0;
		padding: 1.5rem;
	}
	
	.continue-reading-title {
		font-size: var(--fs-h2);
	}
}

/* Add popular articles section here. */
.blog-detail-container {
	max-width: 1320px;
    width: 100%;
    padding: 0;
    display: flex;
    justify-content: space-evenly;

    flex-direction: column;
    align-items: center;
}
.blog-detail-body {
	max-width: 800px;
    width: calc(100% - 2rem);
    gap: 2rem;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-direction: column;
}
.blog-detail-right-panel {
	/* max-width: 976px; */
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}
@media (min-width: 991px) {
    .blog-detail-body {
        max-width: 600px;
    } 
    .blog-detail-container {
        flex-direction: row;
        align-items: flex-start;

        justify-content: center;
        gap: 2rem;
    } 
    .blog-detail-popular-articles {
        max-width: 800px;
        width: calc(100% - 2rem);
    }
    .blog-detail-right-panel {
        width: 320px;
    }
    .blog-detail-popular-articles {
        width: 270px;
        padding: 24px;
    }
}
@media (min-width: 1210px) {
    .blog-detail-body {
        max-width: 800px;
    }   
}
.blog-detail-popular-articles {
    max-width: 800px;
    width: calc(100% - 5rem);
    padding: 24px;

    color: var(--clr-white);
    border: 1px solid var(--clr-light-border);
    border-radius: 8px;
    height: min-content;
}
.blog-detail-popular-articles img {
    width: 100%;
    margin: 0 0 1rem 0;
}

/* Popular Articles Section Styles */
.popular-articles-header {
	color: var(--clr-white);
	font-size: var(--fs-h3);
	font-weight: var(--fw-h2);
	margin: 0 0 1.5rem 0;
	padding-bottom: 0.5rem;
	/* border-bottom: 1px solid var(--clr-light-border); */
}

.popular-articles-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.popular-article-item {
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--clr-light-border);
}

.popular-article-item:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.popular-article-link {
	display: block;
	text-decoration: none;
	color: inherit;
	transition: all 0.3s ease;
}

.popular-article-link:hover {
	transform: translateX(5px);
}

.popular-article-title {
	display: block;
	color: var(--clr-white-80);
	font-size: var(--fs-p);
	font-weight: var(--fw-semi);
	line-height: 1.4;
	margin-bottom: 0.3rem;
	transition: color 0.3s ease;
}

.popular-article-link:hover .popular-article-title {
	color: var(--clr-link-blue);
}

.popular-article-date {
	display: block;
	color: var(--clr-white-60);
	font-size: var(--fs-small);
	font-weight: var(--fw-light);
	font-family: var(--ff-mono);
}

.no-popular-articles {
	color: var(--clr-white-60);
	font-style: italic;
	font-size: var(--fs-p);
	margin: 0;
}

@media (max-width: 990px) {
	.popular-articles-header {
		font-size: var(--fs-h2);
		margin-bottom: 1rem;
	}
	
	.popular-article-item {
		margin-bottom: 1rem;
		padding-bottom: 0.75rem;
	}
	
	/* .popular-article-title {
		font-size: var(--fs-small);
	} */
}

.blog-detail-teaser {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.blog-detail-teaser p {
    color: var(--clr-white-80);
    font-weight: var(--fw-light);
}