/* ==========================================================================
   GLOBAL STYLES & RESETS
   ========================================================================== */

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden !important;
}

body {
  margin: 0;
  padding-top: 170px;
  font-family: 'Poppins', sans-serif;
  background-color: #F5F7F8;
  max-width: 100%;
  overflow-x: hidden !important;
}

.row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

img {
  max-width: 100%;
  height: auto;
}

.carousel-item img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;
  padding: 0 1rem;
  background: transparent;
  transition: all 0.4s ease;
}

.navbar.sticky {
  background: #ffffff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.navbar-brand img {
  height: 160px;
  transition: height 0.4s ease;
}

.navbar.sticky .navbar-brand img {
  height: 130px;
}

.navbar-nav {
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-link {
  font-family: 'Jost', sans-serif;
  font-size: 18px;
  font-weight: 600;
  padding: 6px 12px;
  color: #333 !important;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #2e3192 !important;
}

.btn-login {
  background-color: #2e3192;
  color: white;
  padding: 6px 14px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  transition: background-color 0.3s ease;
}

.btn-login:hover {
  background-color: #1f236e;
  color: #ffc107;
}

/* Offcanvas Menu */
.offcanvas.offcanvas-end {
  height: 100vh;
}

.offcanvas-header {
  border-bottom: 1px solid #ddd;
}

.offcanvas-body {
  overflow-y: auto;
  max-height: calc(100vh - 56px);
}

.offcanvas-body .nav-link {
  display: block;
  padding: 10px 0;
  font-weight: 500;
}

.offcanvas-body .btn-login {
  width: 100%;
  margin-top: 20px;
}

/* ==========================================================================
   BLOG HERO SECTION
   ========================================================================== */

.blog-hero-section {
  background-color: #2e3192;
  background-image: linear-gradient(rgba(46, 49, 146, 0.7), rgba(46, 49, 146, 0.7)),
    url('/static/Image/Blogbg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 100px 20px;
  color: #fff;
  text-align: center;
}

.blog-hero-section h1,
.blog-hero-section p {
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   BLOG FILTER SECTION
   ========================================================================== */

.blog-filter-section {
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

.btn-filter {
  border: 2px solid #2e3192;
  background-color: transparent;
  color: #2e3192;
  border-radius: 30px;
  padding: 8px 20px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-filter:hover,
.btn-filter.active {
  background-color: #2e3192;
  color: #fff;
  box-shadow: 0 8px 16px rgba(46, 49, 146, 0.2);
  transform: scale(1.05);
}

/* ==========================================================================
   BLOG CARD SECTION
   ========================================================================== */

.blog-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s ease;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.blog-img-wrapper img {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.blog-card-body h5 {
  font-size: 1.1rem;
  color: #2e3192;
  transition: color 0.3s ease;
}

.read-more-link {
  color: #2e3192;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.read-more-link:hover {
  text-decoration: underline;
  color: #1f236e;
}

/* ==========================================================================
   FEATURED ARTICLES SECTION
   ========================================================================== */

.featured-articles-section {
  background-color: #f9fafe;
  overflow: visible;
}

.featured-articles-section .row {
  overflow: visible;
}

.featured-articles-section .col-md-4,
.featured-articles-section .col-sm-6 {
  padding: 20px 15px;
}

.featured-articles-section img {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.featured-articles-section img:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   BLOG CATEGORIES SECTION
   ========================================================================== */

.blog-categories-section {
  background: linear-gradient(135deg, #f5f7fa, #ffffff);
  overflow: visible;
}

.blog-categories-section .row {
  overflow: visible;
}

.blog-categories-section .col-md-3,
.blog-categories-section .col-sm-6 {
  padding: 20px 15px;
}

.category-card {
  background-color: #fff;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 20px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.category-card:hover {
  transform: translateY(-8px);
  border-color: #2e3192;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.category-card .icon-wrapper i {
  transition: transform 0.3s ease;
}

.category-card:hover .icon-wrapper i {
  transform: scale(1.2) rotate(3deg);
}

/* ==========================================================================
   BLOG IMPACT & STATS SECTION
   ========================================================================== */

.blog-impact-section {
  background: linear-gradient(135deg, #f3f6fb, #ffffff);
  overflow: visible;
}

.blog-impact-section .row {
  overflow: visible;
}

.blog-impact-section .col-md-3,
.blog-impact-section .col-sm-6 {
  padding: 20px 15px;
}

.impact-card {
  padding: 20px;
  border-radius: 12px;
  transition: transform 0.4s ease, box-shadow 0.3s ease;
}

.impact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.impact-card h3.counter {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   READER TESTIMONIALS SECTION
   ========================================================================== */

.blog-testimonials-section {
  background: #f8f9fc;
  overflow: visible;
}

.blog-testimonials-section .row {
  overflow: visible;
}

.blog-testimonials-section .col-md-4,
.blog-testimonials-section .col-sm-6 {
  padding: 20px 15px;
}

.testimonial-card {
  background-color: #fff;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 20px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  border-color: #2e3192;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #2e3192;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.testimonial-card:hover .testimonial-avatar {
  transform: scale(1.1);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer.footer {
  margin-top: auto;
}

.footer-logo {
     height: 100px;
    margin-right: 10px;
    margin-left: -23px;

}

footer a.text-light:hover i {
  color: #ffc107;
  text-decoration: underline;
}

footer .social-icons a:hover i {
  color: #ffc107;
  transform: scale(1.2) translateZ(0);
  transition: all 0.3s ease;
}

/* ==========================================================================
   RESPONSIVE DESIGN - TABLET (991px and below)
   ========================================================================== */

@media (max-width: 991px) {
  .navbar-nav {
    gap: 15px;
  }

  .nav-link {
    font-size: 16px;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN - MOBILE (768px and below)
   ========================================================================== */

@media (max-width: 768px) {
  body {
    padding-top: 120px;
  }

  /* Navigation */
  .navbar-brand img {
    height: 100px;
  }

  .navbar.sticky .navbar-brand img {
    height: 130px;
  }

  /* Blog Hero */
  .blog-hero-section {
    padding: 60px 15px;
  }

  /* Cards - Add spacing for hover effects */
  .blog-card,
  .category-card,
  .impact-card,
  .testimonial-card {
    margin-bottom: 30px;
  }

  /* Footer */
  .footer-logo {
    height: 100px;
    margin-right: 0;
    margin-left: 0;
  }

  footer .col-md-4 {
    text-align: center;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN - SMALL MOBILE (576px and below)
   ========================================================================== */

@media (max-width: 576px) {
  body {
    padding-top: 100px;
  }

  .blog-hero-section {
    padding: 50px 10px;
  }

  .impact-card h3.counter {
    font-size: 2rem;
  }
}