body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #f9f9f9;
  color: rgb(0, 0, 0);
  padding-top: 45px;


  /* 👇 Add these lines 👇 */
  position: relative;
  z-index: 0;
}
h1{
      margin-top: 0px;  
}
h2 {
  text-align: center;
}
.blog-card h3 {
  font-size: 12px;        /* smaller title */
  font-weight: 600;       /* lighter bold */
  line-height: 1.3;       /* better spacing */
  text-align: center;
  margin: 8px 0;
  color: #062BFF;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;  /* keep only 2 lines */
  overflow: hidden;
}

/* Header */
.header-bar {
  position: fixed; /* Changed from sticky */
  top: 0;
  width: 100%;
  background-color: #fff;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: top 0.3s ease;
}

.header-hidden {
  top: -100px; /* Pushes header out of view */
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  flex-wrap: wrap;
}
.logo-section {
  display: flex;
  align-items: center;
}
.logo-box {
  width: 50px;
  height: 50px;
  background: #0015FF;   /* your brand blue */
  color: #ffffff;
  display: flex;
  justify-content: center;
  margin-right: 10px;
  align-items: center;
  font-size: 36px;
  font-weight: 600;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0,0,0,0.15);
  font-family: "Inter", sans-serif;
  user-select: none;
}

.logo-box svg {
    width: 60px;
    height: 60px;
    display: block;
    fill: #fff;
}


.logo {
  height: 50px;
  width: 50px;
  border-radius: 10px;
  margin-right: 10px;
}
.site-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}
.nav-links {
  display: flex;
  gap: 10px;
}
.nav-link {
  padding: 8px 16px;
  background-color: #0015ff;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 700;
  border: 2px solid #0015ff;
}
.nav-link:hover {
  background-color: white;
  color: #0015ff;
}
/* ========== CONTAINER & TITLE ========== */
.container {
  max-width: 1250px;
  padding: 10px;
  margin: 0 auto;
}

h1 { text-align: center; font-weight: 700; margin-bottom: 30px; color: #062bff; }


/* ========== BLOG GRID ========== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.blog-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.4s ease;
}

.blog-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0px 10px rgba(0,0,0,0.22);
}

/* ========== IMAGE WRAPPER WITH SHINE ANIMATION ========== */
.image-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: #eaeaea;
}

.image-loader {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,#eaeaea 0%,#eaeaea 40%,#ffffff 50%,#eaeaea 60%, #eaeaea 150%);
  background-size: 300% 300%;
  animation: shine 1.5s linear 25 forwards; /* 2s per cycle × 15 = 30s total */
  border-radius: 0;
}

/* Smooth one shine per cycle */
@keyframes shine {
  0% {
    background-position: 150% 0;
  }
  110% {
    background-position: -150% 90%;
  }
}

/* Hide shimmer when image is loaded */
.image-loader.hide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
}

/* Initially hide actual image */
.hidden-img {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-wrapper img:not(.hidden-img) {
  opacity: 1;
}

/* ========== BLOG CONTENT ========== */
.blog-content {
  padding: 16px 20px;
}

.blog-content h3 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #062bff;
}

.blog-content p {
  font-size: 14px;
  color: #444;
  line-height: 1.6;
  margin-bottom: 14px;
}

.read-more {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  background: #0015ff;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.read-more:hover {
  background: #021fb8;
  transform: scale(1.06);
}
.meta {
  font-size: 12px;
  color: #777;
  margin-bottom: 8px;
    }

.read-time-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #eef1ff;
    color: #0015ff;
    font-weight: 600;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 20px;
    position: absolute;
    bottom: 15px;
    right: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.read-time-pill svg {
    stroke: #0015ff;
}

.blog-card {
    position: relative; /* Required to anchor pill */
}

.categories-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 40px 0px 10px;
}

.category-link {
    text-decoration: none;
    color: inherit;
    text-align: center;
}

.category-box {
    width: 40px;
    height: 40px;
    border: 2px solid #d1d1d1;
    border-radius: 15px;
    padding: 5px;
    background: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 8px auto; /* space under icon */
}

.category-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    border-color: #2a66ff;
}

.category-box img {
    width: 38px;
    height: 38px;
}

.category-name {
    font-size: 11px;
    font-weight: 600;
    margin: 0;
}
.category-box svg {
    width: 38px;
    height: 38px;
    color: #0015ff;   /* SVG becomes WHITE */
}




/* Force vertical scrollbar */
html {
  height: 100%;
  overflow-y: scroll !important;
}

/* Webkit Browsers (Chrome, Edge, Brave, Opera, newer Safari) */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #ffffff;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background-color: #bac6ff;
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #0015ff;
}

/* Arrows: Only WebKit allows this */
::-webkit-scrollbar-button:single-button {
  display: block;
  background-color: #bec0ff;
  height: 12px;
  width: 100%;
  background-position: center;
  background-repeat: no-repeat;
}

/* Up Arrow */
::-webkit-scrollbar-button:single-button:decrement {
  height: 10px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
  background-color: transparent;
  background-image: url("../media/up-arrow.png"); /* Replace with correct path */
  /* Make it an up arrow */
}

/* Down Arrow */
::-webkit-scrollbar-button:single-button:increment {
  height: 10px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
  background-color: transparent;
  background-image: url("../media/down-arrow.png"); /* Use original image */
}


/* Footer */
.footer {
  background-color: #f0f0f0;
  padding: 40px 20px;
  text-align: center;
  margin-top: 60px;
  width: 100%;  /* Ensure full width */
  box-sizing: border-box;  /* Prevent any overflow */
}
.features {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100px;
}

a {
  text-decoration: none;
}
.feature-item {
  display: flex; /* Display type */
  justify-content: center; /* Horizontal alignment */
  align-items: center; /* Vertical alignment */
  flex-direction: column; /* Flexbox layout */
  padding: 1rem; /* Padding for spacing */
  text-align: center; /* Text alignment */
  transition: transform 0.2s ease-in-out; /* Smooth transitions */
}

.feature-item a {
  display: flex; /* Display type */
  flex-direction: column; /* Flexbox layout */
  align-items: center; /* Vertical alignment */
  text-decoration: none;
  color: inherit; /* Text color */
  transition: transform 0.2s ease-in-out; /* Smooth transitions */
}

.feature-item a:hover {
  transform: scale(1.08);
}
.useful-links ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  font-weight: bold;
  font-size: 16px;
}
.useful-links a {
  text-decoration: none;
  color: #3c00ff;
}
.footer-bar {
  background-color: #fff;
  border-top: 1px solid #DBDBDB;
  padding: 8px;
  color: #000;
  font-weight: 500;
  font-size: 15px;
  position: fixed;  /* Make sure it's at the bottom */
  bottom: 0;  /* Stick to the bottom */
  left: 0;
  width: 100%;  /* Ensure it's full width */
  text-align: center;
  z-index: 1000;
}
a {
  text-decoration: none;
}
/* Inline SVG Icon Styling */
.footer-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
  color: #0015ff;  /* Icon color (change based on theme) */
  display: block;
}


@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins/Poppins-Regular.woff2') format('woff2'),
       url('../fonts/poppins/Poppins-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins/Poppins-SemiBold.woff2') format('woff2'),
       url('../fonts/poppins/Poppins-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins/Poppins-Bold.woff2') format('woff2'),
       url('../fonts/poppins/Poppins-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
}

/* Apply it to the whole site */
body {
  font-family: 'Poppins', sans-serif;
}





/* ============================
   MOBILE OPTIMIZATION
   Screens: 0px – 480px
=============================== */
@media (max-width: 480px) {

  /* Body */
  body {
    padding-top: 45px; /* More room for fixed header */
  }
  /* Container */
  .container {
    padding: 6px;
    max-width: 100%;
  }

  /* Blog Title */
  h1.blog-title,
  h1 {
    font-size: 20px !important;
    margin-bottom: 12px;
  }

  /* Meta */
  .meta {
    font-size: 12px;
    margin-bottom: 10px;
  }

  /* Short Description */
  .short-desc {
    font-size: 14px;
    line-height: 1.5;
  }

  /* Content */
  .content {
    font-size: 14px;
    line-height: 1.6;
    padding: 0 2px;
  }

  .content img {
    width: 100% !important;
    height: auto !important;
  }

  /* Blog Image */
  .image-wrapper {
    height: 170px; /* smaller for mobile */
  }
.search-container {
  margin: 10px 5px 0px;
}
}





/* Sidebar title */
.sidebar-title {
  margin-top: 17px;   /* space below close button */
  margin-bottom: 0px;
  font-size: 20px;
  font-weight: bold;
  text-align: left;
  color: #333;
}

/* Divider line */
.sidebar-divider {
  height: 2px;
  background: #ccc;
  margin: 5px 0 20px;
}
/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 300px;
    height: 100vh; /* full viewport height */
  overflow-y: auto; /* allow scroll if content is longer */

  background: #f5f5f5;
  box-shadow: -2px 0 8px rgba(0,0,0,0.3);
  padding: 0px 20px;
  transition: right 0.3s ease;
  z-index: 9999;
}
.sidebar.open {
  right: 0;
  height: 100vh;
}

/* Sidebar links & buttons */
.sidebar a, .sidebar button:not(.close-btn) {
  display: block;
  margin: 15px 0;   /* consistent spacing */
  padding: 12px;
  text-align: center;
  border-radius: 6px;
  background:  #0015ff;
  color: #fff;
  text-decoration: none;
  transition: background 0.3s;
}
.sidebar a:hover, .sidebar button:not(.close-btn):hover {
  background: #005bb5;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
}
/* On mobile, move close button to 10px from top */
@media (max-width: 768px) {
  .close-btn {
    top: 10px;
    right: 15px;
  }
}
/* Default (light mode) */
.dark-mode-card {
  padding: 12px;
  background: #ddd;
  border-radius: 8px;
  margin: 15px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #000;
}

/* Dark mode version */
body.dark .dark-mode-card {
  background: #333;
  color: #fff;
}
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}
.switch input { display: none; }
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  border-radius: 34px;
  transition: 0.4s;
}
.slider:before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  border-radius: 50%;
  transition: 0.4s;
}
input:checked + .slider {
  background-color:  #0015ff;
}
input:checked + .slider:before {
  transform: translateX(26px);
}

/* Light / Dark */
body.light { background: #fff; color: #000; }
body.dark { background: #000; color: #fff; }




.search-container {
  width: 90%;
  max-width: 700px;
  margin: 10px auto 0px;
  display: flex;
      background: #ffffff;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.12);
  gap: 8px;
}

#searchInput {
  flex: 1;
  width: 90%;
  padding: 12px 16px;
  font-size: 16px;
  border: 1px solid #0015ff;
  border-radius: 10px;
  outline: none;
  transition: 0.2s;
}

#searchInput:focus {
  border-color: #001eff;
  box-shadow: 0 0 5px rgba(0, 30, 255, 0.3);
}

#searchBtn {
  padding: 12px 20px;
  background: #0015ff;
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
    transition: 0.2s;
}

#searchBtn:hover {
  background: #000FA3;
}

.search-wrapper {
    width: 90%;
    max-width: 700px;
    margin: 20px auto;
    display: flex;
    gap: 10px;
}

#searchInput {
    flex: 1;
    padding: 12px 15px;
    font-size: 17px;
    border: 1px solid #0015ff;
    border-radius: 8px;
}

#searchBtn {
    padding: 12px 18px;
    background: blue;
    color: white;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}







.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 2px 10px;
    margin: 0px auto 20px;
    border-radius: 6px;
    width: fit-content;
    max-width: 95%;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.breadcrumbs a {
    text-decoration: none;
    color: #0015ff;
    font-weight: 600;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
        font-size: 20px;
    color: #FF6500;
}

.breadcrumbs .current {
    font-size: 14px;
    font-weight: 700;
    color: #333;
}





/* FADE TRANSITION SUPPORT */
body.theme-transition {
  transition: background-color 0.35s ease, color 0.35s ease;
}

body.theme-transition * {
  transition: background-color 0.35s ease, color 0.35s ease;
}






.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin: 40px 0;
    flex-wrap: nowrap; 
}

.pagination button,
.pagination .dots {
    padding: 10px 18px;
    border-radius: 4px;
    background: #c4c4c4;
    border: 1px solid #dcdcdc;
    font-size: 15px;
    cursor: pointer;
    transition: 0.25s;
    white-space: nowrap;
}

.pagination button:hover {
    background: #0015ff;
    color: #fff;
    transform: scale(1.06);
}

.pagination .active {
    background: #0015ff;
    color: #fff;
}

/* Pagination dots — plain look, tighter spacing, slightly lowered */
.pagination .dots {
    display: inline-block !important;
    padding: 0 4px !important;      /* Reduce side spacing */
    margin: 0 2px !important;       /* Reduce outside gap */
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 20px;                /* Bigger dots if you want */
    font-weight: bold;
    color: #0015ff !important;
    position: relative;
    top: 11px;                       /* Move dots slightly down */
    pointer-events: none;
}
/* Reduce the effect of global gap ONLY for dots */
.pagination .dots {
    margin-left: -6px !important; 
    margin-right: -6px !important;
}

/* Dark mode version */
body.dark .pagination .dots {
    color: #bbb !important;
}


.no-blogs {
    background: #FFE5E5;
    border: 2px solid red;
    padding: 16px 20px;
    border-radius: 10px;
    color: #0015ff;
    font-size: 17px;
    font-weight: 500;
    max-width: 680px;

    margin: 40px auto;          /* centers the box */
    text-align: center;

    grid-column: 1 / -1;        /* FIX: takes the full grid width */
    justify-self: center;       /* FIX: centers inside the grid */

    box-shadow: 0 4px 12px rgba(0, 94, 255, 0.15);
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

