@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --primary-font: 'Inter', sans-serif;
  --heading-font: 'Poppins', sans-serif;
  --code-font: 'JetBrains Mono', monospace;
  --text-color: #3A3942;
  --light-text: #6A6972;
}

/* 1. Set the baseline */
html, body {
  font-family: var(--primary-font);
  color: var(--text-color);
  -webkit-font-smoothing: antialiased; /* Makes Inter look cleaner on Mac */
}

/* 2. Fix the Headlines */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 600;
}

/* 3. Fix the "Missed" Form Elements */
button, input, select, textarea {
  font-family: inherit;
}

/* 4. Apply the technical code font */
code, pre {
  font-family: var(--code-font);
}

input, textarea, button {
    font-family: inherit !important;
}

body {
  font-family: var(--primary-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65; /* Increased line-height for easier reading */
  color: var(--text-color);
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  
} 

/* 1. Apply Heading Font */
h1, h2, h3, h4, h5, h6, .display-4, .navbar-brand {
  font-family: var(--heading-font) !important;
  font-weight: 700;
  color: #1A1921; /* Stronger contrast for titles */
}  
/* This forces the footer to use the exact same fonts as your main content */

footer, 
footer p, 
footer span, 
footer div, 
footer small {
    font-family: var(--primary-font) !important;
    color: #6A6972; /* Matches your light-text variable */
    line-height: 1.6;
}

/* Force footer headings to look like site headings */
footer h1, footer h2, footer h3, footer h4, footer h5, footer h6 {
    font-family: var(--heading-font) !important;
    font-weight: 700 !important;
    color: #ffffff; /* Or whatever heading color you prefer */
}

/* Force footer links to match body font */
footer a {
    font-family: var(--primary-font) !important;
    text-decoration: none;
    color: #6A6972;
}
footer ul li {
    font-family: var(--primary-font) !important;
    text-decoration: none;
    color: #6A6972;
}

footer a:hover {
    color: #007bff; /* Array Blog Blue */
}

/* Sidebar "Latest Updates" Fix */
.sidebar-box, .latest-updates-link, .contents-nav {
  font-family: var(--primary-font);
}   
   
   aside {
            position: sticky;
            top: 20px; 
            height: 100vh; 
            overflow-y: auto; 
        }
        /* 1. MAKE IT STICK */
        .sticky-sidebar {
            position: -webkit-sticky; 
            position: sticky;
            top: 20px; 
            z-index: 100;
            max-height: 100vh;
            overflow-y: auto; 
            font-family: var(--primary-font);
        }
        
        /* 2. STYLE THE LINKS (DigitalOcean Look) */
        .toc-link {
            color: #6c757d;
            text-decoration: none;
            display: block;
            padding: 5px 0 5px 15px;
            border-left: 2px solid #ddd; 
            font-size: 0.9rem;
            transition: all 0.2s;
            font-family: var(--primary-font);
        }
        
        .toc-link:hover {
            color: #0d6efd;
            border-left-color: #0d6efd;
        }
        
        /* Active State (Added by JS) */
        .toc-link.active {
            color: #0d6efd; 
            font-weight: bold;
            border-left: 3px solid #0d6efd; 
            background: linear-gradient(90deg, rgba(13,110,253,0.1) 0%, rgba(255,255,255,0) 100%);
            font-family: var(--primary-font);
        }
        .share-links a:hover {
    color: #0d6efd !important; /* Bootstrap Blue */
    transform: translateY(-2px); /* Slight lift effect */
}
.share-links a {
    transition: all 0.2s ease;
}
article p {
    line-height: 1.8;
    margin-bottom: 1.6rem; /* This creates a perfect, consistent gap */
    line-height: 1.7;      /* This makes the text itself easier to read */
    color: #374151;
}
/* Also add gap after headings so they don't touch the text */
article h2, article h3 {
    margin-top: 2.5rem;    /* Space above the heading */
    margin-bottom: 1rem;   /* Space below the heading */
}
.image_main{
    border-radius:5px;
}
.main_heading{
    color: black;
    font-size: 30px;
    font-weight: 900;
}
.subheading{
    font-size:25px;
}
/* Hide scrollbar for Chrome, Safari and Opera */
.sticky-sidebar::-webkit-scrollbar {
    display: none;
}
/* Hide scrollbar for IE, Edge and Firefox */
.sticky-sidebar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Apply this to your main blog post text only */
article .blog-section p {
    line-height: 1.8;      /* Space between lines */
    font-size: 1.1rem;     /* Slightly larger font */
    color: #444;           /* Soft black (easier on eyes) */
    margin-bottom: 2rem;   /* Bigger gap between paragraphs */
}

/* Make headings stand out */
h2.subheading {
    letter-spacing: -0.5px; /* Tighter headings look more professional */
    margin-top: 4rem;       /* Huge gap before a new section starts */
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    font-family: var(--primary-font);
}
/*.container { width: 100%; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }*/

.column { 
    flex: 1; 
    min-width: 200px; 
    background: #0d6efd; color: white;
    padding: 20px; text-align: center; 
    border-radius: 8px;
   font-family: var(--primary-font);
}


.ad-container-inline {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 250px; /* Matches the height of your ad */
    margin: 20px 0;
    background-color: #f9f9f9; /* Optional: light grey box so it doesn't look empty */
    overflow: hidden;
    font-family: var(--primary-font);
}

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


pre code, .code-block {
    font-family: 'JetBrains Mono', monospace !important;
}

#contents-list a, .sidebar-link {
    font-family: 'Inter', sans-serif;
}


