.light-theme {

    /**
     * light theme colors 
     */

    --background-primary: hsl(0, 0%, 100%);
    --background-secondary: hsl(0, 0%, 97%);

    --action-primary: hsl(214, 32%, 91%);
    --action-secondary: hsl(210, 38%, 95%);

    --foreground-primary: hsl(218, 23%, 23%);
    --foreground-secondary: hsl(218, 10%, 31%);
    --foreground-tertiary: hsl(214, 20%, 69%);

    --accent: #6A1B9A;

}

.dark-theme {

    /**
     * dark theme colors 
     */

    --background-primary: hsl(218, 23%, 23%);
    --background-secondary: hsl(220, 26%, 14%);

    --action-primary: hsl(216, 15%, 52%);
    --action-secondary: hsl(218, 23%, 23%);

    --foreground-primary: hsl(210, 38%, 95%);
    --foreground-secondary: hsl(211, 25%, 84%);
    --foreground-tertiary: hsl(214, 20%, 69%);

    --accent: hsl(229, 76%, 66%);

}

:root {

    /**
     * color
     */

    --white: hsl(0, 0%, 100%);

    /**
     * typography 
     */

    --fs-base: 0.85rem;
    --fs-1: 1.875rem;
    --fs-2: 1.5rem;
    --fs-3: 1.25rem;
    --fs-4: 0.875rem;
    --fs-5: 0.75rem;

    /**
     * spacing 
     */

    --py: 5rem;

}

/*-----------------------------------*\ 
  #RESET
\*-----------------------------------*/

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

li {
    list-style: none;
}

img,
button {
    display: block;
}

a,
span {
    display: inline-block;
}

button {
    font: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

html {
    font-family: "Inter", sans-serif;
    font-size: var(--fs-base);
    /* base font-size (0.85rem = 13.6px) */
    line-height: 1.8;
}

:focus {
    outline-offset: 4px;
}


/**
   * scrollbar style
   */

::-webkit-scrollbar {
    width: 16px;
}


::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 20px;
    border: 4px solid;
}

.light-theme::-webkit-scrollbar-thumb {
    border-color: hsl(0, 0%, 90%);
}

.dark-theme::-webkit-scrollbar-thumb {
    border-color: hsl(219, 27%, 20%);
}

.light-theme::-webkit-scrollbar-track {
    background: hsl(0, 0%, 90%);
}

.dark-theme::-webkit-scrollbar-track {
    background: hsl(219, 27%, 20%);
}

/*-----------------------------------*\ 
  #REUSED STYLE
\*-----------------------------------*/



.btn {
    min-width: 10rem;
    border-radius: 100px;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    padding: 0.6875rem 1.1875rem;
}

.btn-primary:hover {
    background: var(--foreground-secondary);
    color: var(--action-primary);
}

.btn-secondary {
    background: var(--action-secondary);
    color: var(--foreground-secondary);
    padding: 0.5rem 1rem;
    border: 3px solid var(--foreground-tertiary);
}

.btn-secondary:hover {
    border-color: var(--accent);
}

/*-----------------------------------*\ 
  #Extra style for dark theme
\*-----------------------------------*/

.dark-theme .btn-primary:hover {
    color: var(--background-primary);
}

.dark-theme .blog-topic {
    background: var(--action-primary);
    color: var(--foreground-secondary);
}

.dark-theme .blog-topic:hover {
    background: var(--foreground-primary);
    color: var(--action-primary);
}

.dark-theme .load-more:hover {
    color: var(--white);
}

.dark-theme .aside .h2 {
    color: var(--foreground-primary);
}

/*-----------------------------------*\ 
  #HEADER
\*-----------------------------------*/

header { 
    background: var(--background-primary); 
  }
  
  header .flex-wrapper {
    display: flex;
    gap: 10px;
  }
  
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
  }
  
  .logo-light,
  .logo-dark { 
    display: none; 
  }
  
  .light-theme .logo-light,
  .dark-theme .logo-dark { 
    display: block; 
  }
  
  header .btn-group {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  
  .desktop-nav {
    display: flex !important;
    align-items: center;
    gap: 15px;
    list-style: none; /* Use this instead of 'list-style: none;' */
    padding: 0;
    margin: 0;
  }
  
  .desktop-nav .nav-link {
    color: var(--foreground-secondary);
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
  }

  .desktop-nav li {
    list-style-type: none;  /* Remove bullets from list items */
    margin: 0;
    padding: 0;
}
  
  /* Hover effect */
  .desktop-nav .nav-link:hover {
    color: var(--accent);
  }
  
  .theme-btn-desktop {
    position: relative;
    background: var(--background-secondary);
    color: var(--white);
    width:  52px;
    height: 26px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 100px;
  }
  
  .theme-btn-desktop.light {
    background: linear-gradient(45deg, hsl(7, 100%, 71%), hsl(46, 100%, 65%));
  }
  
  .theme-btn-desktop.dark {
    background: linear-gradient(45deg, hsl(225, 100%, 60%), hsl(296, 80%, 40%));
  }
  
  .theme-btn-desktop::before {
    content: '';
    position: absolute;
    background: var(--white);
    width:  21px;
    height: 21px;
    border-radius: 30px;
    top: 50%;
    left: 3px;
    transform: translateY(-50%);
    box-shadow: 0 2px 10px -2px hsla(0, 0%, 0%, 0.05);
    z-index: 2;
  }
  
  .theme-btn-desktop.dark::before { 
    left: calc(100% - 24px); 
  }
  
  :is(.theme-btn-desktop):hover {
    background: var(--accent);
    color: var(--white);
  }
  
  /* Show the icons based on light or dark mode */
  .theme-btn-desktop.light .sun,
  .theme-btn-desktop.dark .moon {
    display: block;
  }
  




/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--background-secondary);
    color: #333;
}

.container {
    width: 80%;
    margin: 0 auto;

}

/* Blog Post Header */

.blog-post h1 {
    font-size: var(--fs-1);
    text-align: center;
    color: var(--accent);
    margin-bottom: 10px;
}

.blog-meta {
    font-size: 0.9rem;
    text-align: center;
    color: var(--foreground-primary);
    margin-bottom: 20px;
}


.blog-text {
    color: var(--foreground-secondary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  .blog-text a{
    color: var(--foreground-secondary);
    font-size: 1.2rem;
    
  }
  .blog-text strong {
    color: var(--accent);
  }

  

.blog-meta strong {
    color: var(--accent);
}

/* Blog Image */
.blog-image {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    margin: 20px 0;
  /* Adjust the height as needed to create a vertical centering space */
}

.blog-image img {
    width:  50%;
    height: 50%;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


/* Intro Paragraph */
.intro {
    font-size: 1.2rem;
    color: var(--foreground-primary);
    margin-bottom: 20px;
    line-height: 1.8;
    text-align: justify;
}

/* Section Headings */
h2 {
    font-size: 1.8rem;
    color: var(--accent);
    margin-top: 30px;
    margin-bottom: 15px;
    text-align: left;
}

h3 {
    color: var(--accent);
    
    margin-bottom: 15px;
    text-align: left;
}

p {
    font-size: 1.6rem;

}

/* Lists */
ul {
    margin-left: 20px;
    margin-bottom: 20px;
    color: #555;
}

ul li {
    margin-bottom: 10px;
    font-size: 1rem;
    line-height: 1.6;
    list-style-type: disc; /* Ensures bullet points are displayed */

}

ul li strong {
    color: #333;
}

/* Conclusion */
.conclusion {
    font-size: 1.1rem;
    color: #444;
    background: #fce4ec;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-top: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


/**
   * FOOTER 
   */

footer .container {
    padding: var(--py) 30px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;


}


footer .wrapper {
    text-align: left;
}

.footer-text {
    font-size: 1.2rem;
    margin: 0;
    color: var(--foreground-secondary);
    max-width: 300px;
    
}

footer {
    background: var(--background-primary);
}


.footer__socials {
    display: flex;
    gap: 1rem;
    font-size: 1.2rem;
    margin-top: 2rem;
    color: white;
}

.footer__socials li {
    list-style-type: none;  /* Remove bullets from list items */
   
}




.copyright {
    color: var(--foreground-secondary);
    font-size: var(--fs-4);
    text-align: center;
    padding: 1rem;
    border-top: 1px solid var(--action-primary);
}

.copyright a {
    color: var(--accent);
    font-weight: 500;
}

.copyright a:hover {
    text-decoration: underline;
}

.footer-logo {
    margin-bottom: 10px;
}

.footer-title {
    font-size: 1.125rem;
    color: var(--foreground-primary);
  font-weight: 700;
  margin-bottom: 0.4rem;

}

.footer-links {
    margin-bottom: 0.3rem;
    color: var(--foreground-secondary);
    text-decoration: none; /* Optional: keeps the style consistent */
}

.footer-links a {
    color: var(--foreground-secondary); /* Define the default link color */
    text-decoration: none; /* Optional: keeps links without underlines */
}

.footer-links a:visited {
    color: var(--foreground-secondary); /* Ensure visited links have the same color */
}

.footer-links a:hover {
    text-decoration: underline; /* Optional: Adds underline on hover */
}

.footer-links a:active {
    color: var(--foreground-secondary); /* Ensures active state doesn't change color */
}

.footer-links a, .email-link {
    color: var(--foreground-secondary); /* Same color for all links */
    text-decoration: none; /* Remove underline */
}

.footer-links a:visited, .email-link:visited {
    color: var(--foreground-secondary); /* Prevent color change on visited links */
}

.footer-links a:hover, .email-link:hover {
    text-decoration: underline; /* Optional hover effect */
}

.footer-links a:active, .email-link:active {
    color: var(--foreground-secondary); /* Prevent color change on active links */
}





/* Responsive Design */
@media screen and (max-width: 600px) {
    .container {
        padding: 1px;
    }

    .blog-post h1 {
        font-size: 1.6rem;
    }

    .intro {
        font-size: 1.2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    ul li {
        font-size: 1.2rem;
    }

    .conclusion {
        font-size: 1.2rem;
    }

    /*-----------------------------------*\ 
  #FOOTER
\*-----------------------------------*/

   

    footer .container {
        padding: var(--py) 5px;
        display: grid;
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-links {
        margin: 0 auto; /* Center horizontally */
        text-align: center; /* Align inline elements inside */
        display: inline-block; /* Prevent full-width stretching */
    }

    .footer-links li {
        margin-bottom: 0.3rem; /* Add space between links */
    }

    footer .wrapper {
        text-align: center;
    }

    .footer-logo {
        margin-bottom: 10px;
    }


    .blog-image {
        text-align: center;
        margin: 5px 0;
    }

    .blog-image img {
        width:  100%;
    height: 100%;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

  

    

   



    .copyright {
        color: var(--foreground-secondary);
        font-size: var(--fs-4);
        text-align: center;
        padding: 1rem;
        border-top: 1px solid var(--action-primary);
    }

    .copyright a {
        color: var(--accent);
        font-weight: 500;
    }

    .copyright a:hover {
        text-decoration: underline;
    }



}