:root {
  --primary-color: #0085ad;
  --secondary-color: #536390;
  --font-color: #696969;
  --bg-color: #fff;
  --heading-color: #292922;
  --border-radius: 5px;
  --border-color: #ddd;
  --border-light: #ddd;
  --nav-color: #292922;
  --breadcrumb-bg: #f5f5f5; 
}

[data-theme="dark"] {
  --primary-color: #0085ad;
  --secondary-color: #818cab;
  --font-color: #c2c2c2;
  --bg-color: #161625;
  --heading-color: #ddd;
  --border-color: #888;
  --border-light: #444;
  --nav-color: #fff;
  --breadcrumb-bg: #1a1b2a; 
}

/* --- New Header Styles --- */
.w3l-header {
  background-color: var(--bg-color);
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.05);
  position: sticky; 
  top: 0;
  z-index: 1020;
}

.w3l-header .top-bar-logo {
  border-bottom: 1px solid var(--border-light);
}

.w3l-header .navbar-brand span {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--heading-color);
  font-family: 'Poppins', sans-serif; /* Applying the header font */
}

.w3l-header .dropdown-toggle::after {
  display: none;
}

.navbar-expand-lg .navbar-nav .dropdown-menu {
  transform: translateX(-40%); 
  margin-top: .7em; 
}

.navbar-expand-lg .navbar-nav .dropdown-menu:before {
  content: '';
  width: 14px;
  height: 14px;
  background: var(--bg-color);
  border: 1px solid var(--border-light);
  display: block;
  border-right: none;
  border-bottom: none;
  transform: translateX(-50%) rotateZ(45deg);
  position: absolute;
  top: -7px;
  left: 50%; /* Centered arrow */
  z-index: 1001;
}

.dropdown-menu {
  border-radius: var(--border-radius);
  min-width: 13rem;
  padding: 1rem 0;
  background-color: var(--bg-color); /* For dark mode */
  border: 1px solid var(--border-light); /* For dark mode */
}

.w3l-header .navbar-nav .nav-link {
  background: none;
  text-transform: capitalize;
  font-size: 18px;
  font-weight: 400;
  display: block;
  line-height: 28px;
  padding: 10px 20px; /* Spacing for nav items */
  color: var(--font-color);
}

.w3l-header .navbar-nav .nav-item.active a.nav-link {
  color: var(--nav-color);
}

.dropdown-item.active, .dropdown-item:active {
  background-color: var(--primary-color);
  color: #fff;
}

.w3l-header .dropdown-item {
  background: transparent;
  text-transform: capitalize;
  font-size: 18px;
  font-weight: 400;
  display: block;
  line-height: 26px;
  padding: 5px 15px;
  color: var(--font-color);
}

.w3l-header .dropdown-item:hover {
  color: var(--heading-color);
  background-color: var(--border-light);
}

.w3l-header button.navbar-toggler .icon-close {
  display: block;
  color: var(--heading-color);
}

.w3l-header button.navbar-toggler .icon-expand {
  display: none;
  color: var(--heading-color);
}

.w3l-header button.navbar-toggler.collapsed .icon-close {
  display: none;
}

.w3l-header button.navbar-toggler.collapsed .icon-expand {
  display: block;
}

/* --- Mobile Responsive Header --- */
@media (max-width: 991px) {
  .w3l-header .navbar-nav .nav-link {
    padding: 8px 15px; /* Tweak mobile link padding */
  }
  .navbar-expand-lg .navbar-nav .dropdown-menu {
    transform: translateX(0px);
  }
  .navbar-expand-lg .navbar-nav .dropdown-menu:before {
    left: 7%;
  }
  .w3l-header .dropdown-menu {
    margin: 5px 0;
  }
  .w3l-header .navbar-light .navbar-toggler {
    border-color: transparent;
    outline: none;
    padding: 0;
  }
  .w3l-header .navbar-collapse {
    max-height: calc(100vh - 100px);
    overflow: auto;
    background: var(--bg-color);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid var(--border-light);
    margin-top: 10px; /* Add space below nav bar */
  }

  .w3l-header .navbar-toggler {
     /* Toggler on the left */
     margin-right: auto; 
  }
  .w3l-header .navbar-collapse {
    order: 3; /* Menu collapses below */
    width: 100%; /* Take full width */
  }
}
/* --- End of Header Styles --- */

/* --- Other Site Styles (from old file) --- */
body {
  font-family: 'Cabin', sans-serif;
  background-color: var(--bg-color);
  color: var(--font-color);
  font-size: calc(1rem + 0.25vh); 
}

h1 {
  font-size: 2rem;
  margin-bottom: 1vh; 
}

p {
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 26px;
  color: var(--font-color);
  font-family: 'Open Sans', sans-serif; 
}

a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold; 
}

.post-meta {
  font-size: 1rem;
  font-style: italic;
  display: block;
  margin-bottom: 4vh;
  color: var(--secondary-color); 
}

.noscroll {
  overflow: hidden;
  height: 100vh; 
}

html {
  scroll-behavior: smooth; 
}

body a,
button,
.btn {
  cursor: pointer !important; 
}

.clear {
  clear: both; 
}

.img-responsive {
  max-width: 100%;
  display: block; 
}

.d-grid {
  display: grid; 
}

.align-self {
  align-self: center; 
}

button,
input,
select,
label,
li {
  -webkit-appearance: none;
  outline: none; 
}

body a,
button,
.btn {
  cursor: pointer !important; 
}

a,
a:hover {
  text-decoration: none; 
}

iframe {
  border: none;
  display: block; 
}

ul {
  margin: 0;
  padding: 0; 
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  padding: 0;
  color: var(--heading-color); 
}

li {
  list-style-type: none; 
}

p.white {
  color: #eee; 
}

.align-center {
  align-self: center; 
}

.noscroll {
  min-height: 100vh;
  overflow: hidden; 
}

.radius-image {
  border-radius: var(--border-radius); 
}

h3.section-title-left {
  font-weight: bold;
  font-size: 30px;
  line-height: 40px;
  margin-bottom: 40px;
  padding-bottom: 0.3em;
  position: relative;
  text-transform: capitalize;
  border-bottom: 1px solid var(--border-color); 
}

h3.main-title {
  font-size: 30px;
  font-weight: 600;
  padding-bottom: 5px;
  border-bottom: 1px solid #ddd;
  margin-bottom: 30px; 
}

.section-title-left::before {
  background-color: var(--heading-color);
  bottom: -2px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  width: 80px;
  box-sizing: border-box; 
}

.btn-style {
  padding: 12px 30px;
  font-size: 17px;
  line-height: 26px;
  text-transform: capitalize;
  font-weight: 600;
  transition: 0.3s ease-in;
  border-radius: 8px;
  background-color: var(--primary-color); 
}

.btn-outline {
  padding: 12px 30px;
  font-size: 17px;
  line-height: 26px;
  text-transform: capitalize;
  font-weight: 600;
  transition: 0.3s ease-in;
  border-radius: 8px;
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color); 
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: #fff; 
}

.header-author span {
  font-size: 16px; 
}

@media (max-width: 736px) {
  .img-block-mobile img {
    width: 100%; 
  }
  .img-block-mobile a.zoom {
    height: 300px;
    overflow: hidden; 
  } 
}

@media (max-width: 384px) {
  .img-block-mobile a.zoom {
    height: auto; 
  } 
}

@media (max-width: 600px) {
  .fixed {
    padding: 0 10px; 
  } 
}

@media (max-width: 415px) {
  h3.section-title-left {
    font-size: 26px;
    line-height: 36px; 
  } 
}

.w3l-homeblock1 .card, .w3l-blog-slider .card, .w3l-blog-block2 .card, .w3l-author .card {
  border: none;
  background: transparent; 
}

.w3l-homeblock1 .card-header, .w3l-blog-slider .card-header, .w3l-blog-block2 .card-header, .w3l-author .card-header {
  border: none; 
}

.w3l-homeblock1 a.blog-desc, .w3l-blog-slider a.blog-desc, .w3l-blog-block2 a.blog-desc, .w3l-author a.blog-desc {
  display: block;
  font-size: 22px;
  line-height: 28px;
  font-weight: 600;
  color: var(--heading-color);
  margin-top: 25px;
  margin-bottom: 15px;
  transition: .3s ease;
  -webkit-transition: .3s ease;
  -ms-transition: .3s ease;
  -o-transition: .3s ease; 
}

.w3l-homeblock1 a.blog-desc:hover,
.w3l-homeblock1 a.blog-desc1:hover,
.w3l-homeblock1 a.blog-desc-big:hover, .w3l-blog-slider a.blog-desc:hover,
.w3l-blog-slider a.blog-desc1:hover,
.w3l-blog-slider a.blog-desc-big:hover, .w3l-blog-block2 a.blog-desc:hover,
.w3l-blog-block2 a.blog-desc1:hover,
.w3l-blog-block2 a.blog-desc-big:hover, .w3l-author a.blog-desc:hover,
.w3l-author a.blog-desc1:hover,
.w3l-author a.blog-desc-big:hover {
  color: var(--primary-color);
  transition: .3s ease;
  -webkit-transition: .3s ease;
  -ms-transition: .3s ease;
  -o-transition: .3s ease; 
}

.w3l-homeblock1 a.blog-desc1, .w3l-blog-slider a.blog-desc1, .w3l-blog-block2 a.blog-desc1, .w3l-author a.blog-desc1 {
  display: block;
  font-size: 20px;
  line-height: 26px;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 10px; 
}

.w3l-homeblock1 a.blog-desc-big, .w3l-blog-slider a.blog-desc-big, .w3l-blog-block2 a.blog-desc-big, .w3l-author a.blog-desc-big {
  display: block;
  font-size: 30px;
  line-height: 36px;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 20px;
  transition: .3s ease;
  -webkit-transition: .3s ease;
  -ms-transition: .3s ease;
  -o-transition: .3s ease; 
}

.w3l-homeblock1 li.meta-item, .w3l-blog-slider li.meta-item, .w3l-blog-block2 li.meta-item, .w3l-author li.meta-item {
  display: inline-block;
  margin-right: 10px;
  font-size: 15px;
  color: #888; 
}

.w3l-homeblock1 .author, .w3l-blog-slider .author, .w3l-blog-block2 .author, .w3l-author .author {
  color: #999; 
}

.w3l-homeblock1 .author a, .w3l-blog-slider .author a, .w3l-blog-block2 .author a, .w3l-author .author a {
  color: var(--heading-color);
  font-weight: 400; 
}

.w3l-homeblock1 .author a:hover, .w3l-blog-slider .author a:hover, .w3l-blog-block2 .author a:hover, .w3l-author .author a:hover {
  color: var(--secondary-color); 
}

.w3l-homeblock1 .list-view .grids5-info, .w3l-blog-slider .list-view .grids5-info, .w3l-blog-block2 .list-view .grids5-info, .w3l-author .list-view .grids5-info {
  display: grid;
  grid-template-columns: 35% 60%;
  grid-gap: 5%; 
}

.w3l-homeblock1 .list-view.list-view1 .grids5-info, .w3l-blog-slider .list-view.list-view1 .grids5-info, .w3l-blog-block2 .list-view.list-view1 .grids5-info, .w3l-author .list-view.list-view1 .grids5-info {
  display: grid;
  grid-template-columns: 35% 60%;
  grid-gap: 5%; 
}

.w3l-homeblock1 .trending .grids5-info, .w3l-blog-slider .trending .grids5-info, .w3l-blog-block2 .trending .grids5-info, .w3l-author .trending .grids5-info {
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-gap: 10px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 15px;
  margin-bottom: 15px; 
}

.w3l-homeblock1 .trending .grids5-info h4, .w3l-blog-slider .trending .grids5-info h4, .w3l-blog-block2 .trending .grids5-info h4, .w3l-author .trending .grids5-info h4 {
  color: #999; 
}

.w3l-homeblock1 .most-recent .grids5-info, .w3l-blog-slider .most-recent .grids5-info, .w3l-blog-block2 .most-recent .grids5-info, .w3l-author .most-recent .grids5-info {
  display: grid;
  grid-template-columns: 65% 30%;
  grid-gap: 5%; 
}

.w3l-homeblock1 .most-recent-inner .grids5-info, .w3l-blog-slider .most-recent-inner .grids5-info, .w3l-blog-block2 .most-recent-inner .grids5-info, .w3l-author .most-recent-inner .grids5-info {
  display: grid;
  grid-template-columns: 35% 60%;
  grid-gap: 5%; 
}

.w3l-homeblock1 span.category, .w3l-blog-slider span.category, .w3l-blog-block2 span.category, .w3l-author span.category {
  display: inline-block;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-size: 16px;
  color: #888; 
}

.w3l-homeblock1 .page-pagination li, .w3l-blog-slider .page-pagination li, .w3l-blog-block2 .page-pagination li, .w3l-author .page-pagination li {
  display: inline-block;
  margin: 0 5px; 
}

.w3l-homeblock1 span.page-numbers, .w3l-blog-slider span.page-numbers, .w3l-blog-block2 span.page-numbers, .w3l-author span.page-numbers {
  display: block;
  text-align: center;
  border: 0;
  color: var(--primary-color);
  padding: 0;
  font-size: 20px;
  font-weight: 600;
  margin-right: 5px; 
}

.w3l-homeblock1 a.page-numbers, .w3l-blog-slider a.page-numbers, .w3l-blog-block2 a.page-numbers, .w3l-author a.page-numbers {
  font-size: 20px;
  font-weight: 600;
  color: var(--font-color);
  width: 20px;
  display: block;
  text-align: center; 
}

.w3l-homeblock1 a.next span.fa, .w3l-blog-slider a.next span.fa, .w3l-blog-block2 a.next span.fa, .w3l-author a.next span.fa {
  font-size: 20px;
  font-weight: 600;
  color: var(--font-color);
  width: 20px;
  display: block; 
}

.w3l-homeblock1 a.page-numbers:hover, .w3l-blog-slider a.page-numbers:hover, .w3l-blog-block2 a.page-numbers:hover, .w3l-author a.page-numbers:hover {
  color: var(--primary-color); 
}

.w3l-homeblock1 .pagination-wrapper, .w3l-blog-slider .pagination-wrapper, .w3l-blog-block2 .pagination-wrapper, .w3l-author .pagination-wrapper {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  width: 100%; 
}

.w3l-homeblock1 .pos-sticky, .w3l-blog-slider .pos-sticky, .w3l-blog-block2 .pos-sticky, .w3l-author .pos-sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 20px; 
}

@media (max-width: 1080px) {
  .w3l-homeblock1 .trending .grids5-info:last-child, .w3l-blog-slider .trending .grids5-info:last-child, .w3l-blog-block2 .trending .grids5-info:last-child, .w3l-author .trending .grids5-info:last-child {
    display: none; 
  } 
}

@media (max-width: 736px) {
  .w3l-homeblock1 .list-view .grids5-info, .w3l-blog-slider .list-view .grids5-info, .w3l-blog-block2 .list-view .grids5-info, .w3l-author .list-view .grids5-info {
    display: block; 
  }
  .w3l-homeblock1 .trending .grids5-info:last-child, .w3l-blog-slider .trending .grids5-info:last-child, .w3l-blog-block2 .trending .grids5-info:last-child, .w3l-author .trending .grids5-info:last-child {
    display: grid; 
  } 
}

@media (max-width: 415px) {
  .w3l-homeblock1 a.blog-desc1, .w3l-blog-slider a.blog-desc1, .w3l-blog-block2 a.blog-desc1, .w3l-author a.blog-desc1 {
    font-size: 18px; 
  }
  .w3l-homeblock1 .trending .grids5-info, .w3l-blog-slider .trending .grids5-info, .w3l-blog-block2 .trending .grids5-info, .w3l-author .trending .grids5-info {
    grid-template-columns: 30px 1fr; 
  }
  .w3l-homeblock1 a.blog-desc-big, .w3l-blog-slider a.blog-desc-big, .w3l-blog-block2 a.blog-desc-big, .w3l-author a.blog-desc-big {
    font-size: 24px;
    line-height: 30px; 
  } 
}

.w3l-startup .most-recent .grids5-info {
  display: grid;
  grid-template-columns: 30% 65%;
  grid-gap: 5%; 
}

@media (max-width: 736px) {
  .w3l-startup .list-view .grids5-info {
    display: block; 
  } 
}

.w3l-footer-16 {
  border-top: 1px solid var(--border-light); 
}

.w3l-footer-16 .footer-content {
  position: relative; 
}

.w3l-footer-16 .copy-right p {
  font-size: 0.9rem; /* Makes it slightly smaller and more refined */
  color: var(--font-color);
  line-height: 1.6;
  margin: 0;
}

.w3l-footer-16 .copy-right p a {
  font-size: 0.9rem;
  font-weight: 400; /* No need for bold */
  color: var(--font-color);
  text-decoration: underline; /* Clearer link */
}

.w3l-footer-16 .copy-right p a:hover {
  color: var(--primary-color);
}

.w3l-footer-16 .footer-gd-16 li {
  display: inline-block;
  list-style: none;
  margin: 0px 4px;
  color: #5E6271;
  font-size: 14px; 
}

.w3l-footer-16 .footer-gd-16 li a {
  color: #5E6271;
  padding: 0;
  font-weight: 500; 
}

.w3l-footer-16 .footer-gd-16 li a:hover {
  opacity: 0.8; 
}

.w3l-footer-16 .copy-right p {
  font-style: normal;
  font-weight: normal;
  line-height: 22px;
  color: #5E6271; 
}

.w3l-footer-16 #movetop {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 15px;
  z-index: 99;
  border: none;
  outline: none;
  cursor: pointer;
  width: 45px;
  height: 45px;
  background: var(--primary-color);
  border-radius: 50px;
  -webkit-border-radius: 50px;
  -o-border-radius: 50px;
  -moz-border-radius: 50px;
  -ms-border-radius: 50px;
  padding: 0; 
}

.w3l-footer-16 #movetop span.fa {
  color: #fff;
  font-size: 24px;
  font-weight: 600; 
}

.breadcrumbs {
  padding: 12px 0;
  background-color: var(--breadcrumb-bg); 
}

.breadcrumbs a {
  font-size: 18px;
  font-weight: 500;
  padding-right: 5px;
  color: var(--heading-color); 
}

.breadcrumbs a:hover {
  color: var(--primary-color); 
}

.breadcrumbs span {
  font-size: 18px;
  font-weight: 500;
  color: var(--para-color);
  padding-left: 5px; 
}

.author-icons a {
  width: 30px;
  height: 30px;
  line-height: 30px;
  display: inline-block;
  font-size: 18px;
  color: #69696980; 
}

.author-icons a span.fa {
  line-height: 30px; 
}

.author-icons a:hover {
  color: var(--primary-color); 
}

.author-icons li {
  display: inline-block;
  margin-right: 5px; 
}

.author-page .tagline {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.author-page h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--heading-color);
  font-size: 2.5rem;
}

.author-page .bio-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--font-color);
}

.author-page .author-links .btn {
  margin-right: 10px;
  margin-top: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 20px;
  border-color: var(--border-color); /* Lighter border */
  color: var(--font-color);
}

.author-page .author-links .btn:hover {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: #fff;
}

.author-page .author-links .btn span {
  margin-right: 8px;
}

/* Call to Action styles */
.author-page hr {
  border-top: 1px solid var(--border-light);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.author-page h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--heading-color);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.author-page .btn-style {
  color: #fff;
  background-color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 12px 30px;
}

.author-page .btn-style:hover {
  opacity: 0.8;
  color: #fff;
}

h3.blog-desc-big {
  display: block;
  font-size: 34px;
  line-height: 44px;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 20px;
  transition: .3s ease;
  -webkit-transition: .3s ease;
  -ms-transition: .3s ease;
  -o-transition: .3s ease;
  max-width: 700px;
  margin: auto; 
}

.blog-post-align {
  display: grid;
  grid-template-columns: 70px 1fr;
  max-width: 300px;
  margin: auto;
  align-items: center; 
}

.single-post-content {
  max-width: 850px;
  margin: auto; 
}

span.big-letter {
  font-size: 85px;
  color: var(--heading-color);
  font-weight: 600; 
}
span.big-letter-m {
  display: inline-block; /* Ensures the big letter behaves like an inline block */
  font-size: 50px; /* Size of the big letter */
  color: var(--heading-color); /* Heading color */
  font-weight: 600; /* Bold weight */
  margin-right: 10px; /* Adds a small space after the letter */
  vertical-align: top; /* Aligns the letter to the top of the text */
}

p.alphabet {
  display: grid;
  grid-template-columns: 75px auto;
  align-items: center; 
}
p.alphabet-m {
  display: grid;
  grid-template-columns: 70px auto;
  align-items: start;
}

p.alphabet-m::after {
  content: "";        /* Clear any floating effect from other elements if needed */
  display: block;
  clear: both;
}

.blog-post-main .blockquote {
  position: relative;
  position: relative;
  padding-left: 60px;
  font-size: 20px;
  font-style: italic;
  font-weight: 500; 
}

.blog-post-main .icon-quote span.fa {
  font-size: 45px;
  opacity: 0.1;
  transition: .3s; 
}

.blog-post-main .icon-quote {
  position: absolute;
  top: 4px;
  left: 0px; 
}

.blog-post-main .blockquote-footer {
  display: flex;
  align-items: center;
  color: #999; 
}

.text-list ol li {
  font-size: 18px;
  line-height: 26px;
  margin: 12px 0;
  color: var(--heading-color);
  list-style-type: decimal;
  font-weight: 600; 
}

.single-post-content p a {
  font-weight: 600;
  color: var(--heading-color); 
}

.single-post-content p a:hover {
  text-decoration: underline; 
}

.left-right {
  grid-template-columns: auto auto;
  grid-gap: 50px;
  justify-content: space-between; 
}

.buttons-singles h4 {
  display: inline-block;
  margin-right: 30px;
  font-size: 24px;
  font-weight: 600; 
}

.buttons-singles a {
  color: #999;
  font-size: 18px;
  margin-right: 10px;
  display: inline-block; 
}

.buttons-singles a:hover {
  color: var(--primary-color); 
}

.buttons-singles.tags a {
  color: var(--font-color);
  font-size: 16px;
  margin-right: 10px;
  display: inline-block;
  padding: 0 10px;
  border: 1px solid var(--border-light);
  font-weight: 500;
  border-radius: var(--border-radius); 
}

.author-card {
  padding: 40px;
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius); 
}

h4.side-title {
  font-size: 28px;
  line-height: 34px; 
}

.input-grids input.form-control,
.leave-comment-form textarea.form-control {
  width: 100%;
  color: #555;
  background: #fff;
  font-size: 17px;
  line-height: 26px;
  font-weight: normal;
  font-style: normal;
  border: none;
  font-family: inherit;
  padding: 15px;
  border: none;
  border: 1px solid #ddd;
  outline: none;
  border-radius: 0px;
  margin-bottom: 16px;
  border-radius: 4px;
  height: 55px;
  box-shadow: none; 
}

.leave-comment-form textarea.form-control {
  height: 150px;
  box-shadow: none;
  margin-bottom: 30px; 
}

.input-grids input:focus,
.leave-comment-form textarea:focus {
  border: 1px solid var(--primary-color); 
}

.blog-post-main .comments .media {
  display: grid;
  grid-template-columns: auto 1fr;
  margin-top: 30px;
  grid-gap: 20px;
  border-radius: 10px;
  transition: 0.3s ease-in;
  border: 1px solid var(--border-light);
  padding: 30px; 
}

.blog-post-main .media.second {
  background: none;
  border: none; 
}

.blog-post-main li.reply-last {
  text-align: right; 
}

.blog-post-main .comments .media-body {
  color: var(--para-color);
  line-height: 26px; 
}

.blog-post-main .comments .img-circle {
  width: 80px;
  height: 80px;
  display: inline-block;
  overflow: hidden;
  background: #f3f6f9;
  border-radius: 50%; 
}

.blog-post-main .comments .img-circle img {
  width: 100%;
  min-height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: center;
  object-position: center; 
}

.blog-post-main .comments a.name {
  font-size: 20px;
  font-weight: 600;
  color: var(--heading-color); 
}

.blog-post-main .comments ul.time-rply li {
  display: inline-block;
  color: #abaeb1;
  font-size: 16px;
  margin-right: 20px; 
}

.blog-post-main .comments ul.time-rply li:last-child {
  margin-right: 0px; 
}

.blog-post-main .comments .media-top img {
  display: block; 
}

.blog-post-main .comments ul.time-rply li a.reply {
  color: var(--primary-color);
  font-weight: 600; 
}

.blog-post-main li.reply-last a span.fa {
  margin-right: 6px; 
}

.blog-post-main .submit .btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transition: .3s ease; 
}

/*-- video post --*/
.post-content iframe {
  width: 100%;
  height: 600px;
  border-radius: var(--border-radius); 
}

.sing-post-thumb iframe {
  width: 100%;
  height: 450px;
  border-radius: var(--border-radius); 
}

/*-- //video post --*/
@media (max-width: 768px) {
  .post-content iframe {
    height: 450px; 
  }
  .sing-post-thumb iframe {
    height: 400px; 
  } 
}

@media (max-width: 667px) {
  .post-content iframe, .sing-post-thumb iframe {
    height: 300px; 
  } 
}

@media (max-width: 736px) {
  h3.blog-desc-big {
    font-size: 30px;
    line-height: 40px; 
  }
  .left-right {
    grid-template-columns: auto;
    grid-gap: 25px; 
  } 
}

@media (max-width: 568px) {
  h3.blog-desc-big {
    font-size: 28px;
    line-height: 36px; 
  } 
}

@media (max-width: 480px) {
  .blog-post-main .blockquote {
    font-size: 18px; 
  }
  .text-list ol {
    padding-left: 20px; 
  }
  .buttons-singles h4 {
    margin-right: 8px; 
  }
  .buttons-singles.tags a {
    font-size: 15px;
    margin-right: 5px; 
  }
  .author-card {
    padding: 20px; 
  }
  .blog-post-main .media.second {
    grid-template-columns: 1fr; 
  }
  .post-content iframe, .sing-post-thumb iframe {
    height: 300px; 
  } 
}

@media (max-width: 415px) {
  .post-content iframe, .sing-post-thumb iframe {
    height: 210px; 
  } 
}

@media (max-width: 384px) {
  h3.blog-desc-big {
    font-size: 26px;
    line-height: 32px; 
  }
  .blog-post-main .comments .media {
    grid-template-columns: auto;
    grid-gap: 20px; 
  } 
}

@media (max-width: 375px) {
  h3.blog-desc-big {
    font-size: 24px;
    line-height: 30px; 
  }
  .post-content iframe, .sing-post-thumb iframe {
    height: 190px; 
  } 
}

.w3l-error {
  max-width: 950px;
  margin: auto; 
}

h1.error-title {
  font-size: 80px;
  color: var(--primary-color);
  font-weight: 700; 
}

@media (max-width: 736px) {
  .w3l-error {
    max-width: 650px;
    text-align: center; 
  } 
}

.contact-grids {
  grid-template-columns: 1fr 1fr;
  grid-gap: 30px; 
}

.contact-right {
  padding-left: 28px; 
}

.contact-left {
  padding-right: 28px; 
}

.contact-left h4 {
  font-size: 52px;
  line-height: 60px;
  margin-bottom: 24px;
  font-weight: 700;
  text-transform: capitalize; 
}

.contact-left h6 {
  font-size: 18px;
  line-height: 28px; 
}

.contact-grids input,
.contact-grids textarea {
  width: 100%;
  color: #555;
  background: #fff;
  font-size: 17px;
  line-height: 26px;
  font-weight: normal;
  font-style: normal;
  border: none;
  font-family: inherit;
  padding: 15px;
  border: none;
  border: 1px solid #ddd;
  outline: none;
  border-radius: 0px;
  margin-bottom: 16px;
  border-radius: 4px; 
}

.contact-grids textarea {
  height: 120px;
  margin: 0 0 20px 0; 
}

.contact-grids input:focus,
.contact-grids textarea:focus {
  border: 1px solid var(--primary-color); 
}

.cont-top {
  display: grid;
  grid-template-columns: 20px auto;
  grid-column-gap: 20px; 
}

.cont-details p, .cont-details p a {
  font-style: normal;
  font-weight: normal;
  font-size: 16px;
  line-height: 24px;
  margin-top: 3px;
  color: var(--font-color); 
}

.cont-details p a:hover {
  color: var(--primary-color); 
}

.margin-up {
  margin-top: 2rem; 
}

.cont-details h6 {
  font-size: 20px;
  font-weight: 600; 
}

@media (max-width: 992px) {
  .contact-right {
    padding-left: 0px;
    margin-top: 1em; 
  }
  .contact-grids {
    grid-template-columns: 1fr; 
  } 
}

@media (max-width: 415px) {
  .cont-top {
    grid-column-gap: 10px; 
  } 
}

.manjari-font {
  font-family: 'Manjari', sans-serif;
}


#comments-list {
    margin-top: 20px;
}

.comment-item {
    display: flex;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.comment-avatar {
    width: 50px; /* Increased size for better visibility */
    height: 50px;
    background-color: #6f42c1; /* Purple color like in the image */
    border-radius: 50%; /* Ensures a perfect circle */
    color: white;
    font-size: 24px; /* Larger font for the letter */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.comment-content {
    flex-grow: 1;
}

.comment-header {
    margin-bottom: 5px;
}

.comment-name {
    font-weight: 600;
    color: #333;
    margin-right: 10px; /* Adjusted margin to account for timestamp */
}

.comment-time {
    color: #999;
    font-size: 14px;
}

.comment-text {
    color: #333;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .comment-item {
        padding: 10px 0;
    }

    .comment-avatar {
        width: 40px; /* Slightly smaller on mobile */
        height: 40px;
        font-size: 20px; /* Adjust font size for mobile */
    }

    .comment-name, .comment-time {
        font-size: 14px;
    }
}

/* 1. Tames the Hero Post */
.hero-featured-post {
  max-width: 900px; /* Constrains width */
  margin-left: auto;
  margin-right: auto;
  border-bottom: 1px solid var(--border-light); /* Adds a nice separator */
  padding-bottom: 2rem;
}

.hero-featured-post .card {
  border: none; /* Removes card border */
  box-shadow: none; /* Removes card shadow */
}

.hero-featured-post .card-body {
  padding: 1.5rem 0 0 0; /* Cleans up padding */
}

.hero-featured-post .card-body h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 2.25rem;
  line-height: 1.2;
}

.hero-featured-post .card-img-top {
  border-radius: var(--border-radius); /* Soften the image corners */
}

/* 2. Styles the "Recent Posts" grid */
#main-content h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
  margin-bottom: 2rem;
}

#main-content .card {
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  height: 100%; /* Makes all cards in a row the same height */
}

#main-content .card:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  transform: translateY(-5px);
}

#main-content .card .card-img-top {
  /* This is key for a uniform grid */
  height: 200px; 
  object-fit: cover; /* Ensures image fills the space */
  border-top-left-radius: var(--border-radius);
  border-top-right-radius: var(--border-radius);
  border-bottom: 1px solid var(--border-light);
}

#main-content .card .card-body {
  display: flex;
  flex-direction: column;
}

#main-content .card .card-body h4 {
  font-size: 1.25rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 0.5rem;
}

#main-content .card .card-body p {
  font-size: 0.95rem;
  flex-grow: 1; /* Pushes the <small> tag to the bottom */
  margin-bottom: 1rem;
}

#main-content .card .card-body a {
  font-weight: 600;
  color: var(--heading-color);
}

#main-content .card .card-body a:hover {
  color: var(--primary-color);
}

/* --- Step 5: Newsletter Form Styles --- */

.newsletter-form-wrapper {
  max-width: 600px; /* Constrains the width */
  margin-left: auto;
  margin-right: auto;
  padding: 2.5rem;
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  background-color: var(--bg-color); /* Ensures it has a background in dark mode */
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.newsletter-form-wrapper h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--heading-color);
  font-size: 1.75rem;
}

.newsletter-form-wrapper p {
  color: var(--font-color);
  font-size: 1rem;
}

/* These styles will target the form MailerLite 
  dynamically injects into your .ml-embedded div 
*/
.ml-embedded .form-control {
  background-color: var(--bg-color) !important;
  color: var(--font-color) !important;
  border: 1px solid var(--border-color) !important;
  height: 50px;
}

.ml-embedded .form-control:focus {
  border-color: var(--primary-color) !important;
  box-shadow: none !important;
}

.ml-embedded .btn-primary {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  font-weight: 600;
  height: 50px;
}


.post-header .post-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 2.75rem; /* Large, impactful title */
  color: var(--heading-color);
  line-height: 1.2;
}

.post-header .post-meta {
  font-size: 0.95rem;
}

.post-content .figure-caption {
  font-size: 0.9rem;
  color: var(--secondary-color);
}

.post-body {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem; /* Slightly larger for easier reading */
  line-height: 1.2;
  color: var(--font-color);
}

/* This targets all P tags directly inside post-body */
.post-body > p {
  margin-bottom: 1.5rem;
}

.post-body h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--heading-color);
}

.post-body .malayalam {
  font-family: 'Manjari', sans-serif;
  font-size: 1.2rem; /* Manjari often looks better slightly larger */
  line-height: 1.9;
}

.post-body blockquote {
  border-left: 4px solid var(--primary-color);
  background-color: var(--breadcrumb-bg); /* Use the light grey bg */
  font-style: italic;
  color: var(--heading-color);
  font-size: 1.1rem;
}

.post-body blockquote .blockquote-footer {
  font-style: normal;
  color: var(--secondary-color);
}

.comments h4.side-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--heading-color);
  font-size: 1.75rem;
}

.leave-comment-form h4.side-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--heading-color);
  font-size: 1.75rem;
}

.author-card {
  padding: 30px;
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  background: var(--bg-color);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.author-card h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--heading-color);
}

.post-header .post-title.malayalam {
  font-family: 'Manjari', sans-serif;
}

.post-content > .figure {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.post-body img {
  display: block; 
  margin-left: auto; 
  margin-right: auto; 
  max-width: 100%; 
  height: auto; 
  margin-top: 2rem; 
  margin-bottom: 2rem; 
  border-radius: var(--border-radius); 
  box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}

.post-content {
  max-width: 1000px; /* Overall max width for the content area */
}

.info-box {
  display: flex; /* Aligns icon and text */
  align-items: flex-start;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-light);
}

.info-box-blue {
  background-color: #f0f8ff; /* A very light, academic blue */
  border-left: 5px solid var(--primary-color);
}
.info-box-gray {
  background-color: var(--breadcrumb-bg); /* Use your existing light gray */
  border-left: 5px solid var(--secondary-color);
}

.info-box .info-box-icon {
  font-size: 1.5rem;
  margin-right: 1.25rem;
  margin-top: 0.25rem;
}
.info-box-blue .info-box-icon {
  color: var(--primary-color);
}
.info-box-gray .info-box-icon {
  color: var(--secondary-color);
}

.info-box .info-box-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 0.25rem;
}

.info-box .info-box-content p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
}

/* 2. Reference List Styles */
.references-section h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--heading-color);
}

.references-section .reference-list {
  list-style-type: decimal;
  padding-left: 1.5rem; /* Standard indentation */
}

.references-section .reference-list li {
  list-style-type: decimal; /* Ensures numbers are shown */
  padding-left: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem; /* References are typically smaller */
  line-height: 1.6;
  color: var(--secondary-color);
}

.post-body-literary,
.post-body-literary p {
  font-family: 'Lora', serif; /* The new book-like font */
  font-size: 1.15rem; /* Slightly larger for easier reading */
  line-height: 1.9;
}

/* 2. The Drop Cap */
.post-body-literary .has-drop-cap::first-letter {
  float: left;
  font-family: 'Poppins', sans-serif; /* Use the elegant heading font */
  font-size: 4.5rem; /* Makes it big */
  line-height: 0.8; /* Pulls the next line up */
  padding-right: 0.75rem;
  color: var(--heading-color);
  font-weight: 600;
}

/* 3. New Blockquote Style (Centered, Italic) */
.post-body-literary blockquote {
  border: none;
  background: none;
  text-align: center;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--secondary-color);
  padding: 1rem 0;
}

.post-body-literary blockquote .blockquote-footer {
  text-align: center;
  font-size: 1rem;
}

/* 4. Elegant Separator (* * *) */
.literary-separator {
  text-align: center;
  border: 0;
  margin: 3rem 0;
}
.literary-separator::before {
  content: "* * *";
  font-size: 1.5rem;
  letter-spacing: 0.5em; /* Adds space between the stars */
  color: var(--border-color);
}

/* 5. Malayalam Font Override 
  This ensures Manjari is used over Lora
*/
.post-body-literary .malayalam {
  font-family: 'Manjari', sans-serif !important;
}

.call-out-box {
  background: var(--breadcrumb-bg); /* Use the light gray */
  border: 1px solid var(--border-light);
  border-left: 5px solid var(--primary-color);
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: var(--border-radius);
}
.call-out-box p {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--heading-color);
  line-height: 1.7;
  margin: 0;
}

/* This styles the <pre> container */
pre[class*="language-"] {
  background: #f8f8f8; /* A very light, clean gray */
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  font-size: 0.95rem; /* Slightly smaller for code */
  line-height: 1.6;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

/* This makes sure the code block scrolls on mobile */
pre[class*="language-"] code {
  white-space: pre-wrap;       /* Wrap short lines */
  word-wrap: break-word;
}

@media (min-width: 768px) {
  pre[class*="language-"] code {
    white-space: pre;          /* Don't wrap on desktop, allow scroll */
  }
}

/* --- Step 23: File Download Button Style --- */
.btn-download {
  display: inline-block;
  padding: 10px 20px;
  margin: 5px;
  background-color: var(--breadcrumb-bg); /* Your light gray */
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  color: var(--heading-color);
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Adds the little download icon */
.btn-download::before {
  font-family: "Font Awesome 6 Free"; /* Use Font Awesome */
  font-weight: 900; /* Solid icon */
  content: "\f019"; /* The 'fa-download' icon */
  margin-right: 10px;
  color: var(--primary-color);
}

.btn-download:hover {
  border-color: var(--primary-color);
  background-color: var(--bg-color);
  color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transform: translateY(-2px);
}

/* --- Step 24: Citation Box Style --- */
.citation-box {
  padding: 1.5rem;
  background: var(--bg-color);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.citation-box h5 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

/* This <p> tag is for the citation itself */
.citation-box p {
  font-family: 'Lora', serif; /* Use the elegant serif font */
  font-size: 1rem;
  color: var(--secondary-color);
  line-height: 1.7;
  margin: 0;
}

.citation-box p i {
  font-style: italic;
}

/* --- Step 25: Author Comment Styling --- */
.comment-avatar-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
  flex-shrink: 0;
  object-fit: cover; /* Ensures your photo isn't stretched */
}

@media (max-width: 768px) {
    .comment-avatar-img {
        width: 40px;
        height: 40px;
    }
}

/* =========================================
   DARK MODE SUPPORT
   (Automatically switches based on user's device settings)
   ========================================= */

@media (prefers-color-scheme: dark) {
  :root {
    /* 1. Swap the Backgrounds */
    --bg-color: #121212;        /* Very dark gray (better than pure black) */
    --card-bg: #1e1e1e;         /* Slightly lighter for cards/boxes */
    --breadcrumb-bg: #2d2d2d;   /* Dark gray for highlights */
    
    /* 2. Swap the Text Colors */
    --heading-color: #e0e0e0;   /* Off-white for headings */
    --text-color: #b0b0b0;      /* Light gray for reading text */
    --secondary-color: #a0a0a0; /* Muted text */
    
    /* 3. Adjust Borders to be subtle */
    --border-light: #333333;
    
    
    /* 4. Keep the Primary Color (Green/Blue) but make it pop */
    /* Usually the existing primary color works, but you can brighten it if needed */
  }

  /* --- Specific Overrides for Dark Mode --- */

  /* Make the Navbar Dark */
  .navbar {
    background-color: var(--card-bg) !important;
    border-bottom: 1px solid var(--border-light);
  }
  
  .navbar-brand, .nav-link {
    color: var(--heading-color) !important;
  }
  
  /* Fix the Cards (Author card, citation box) */
  .author-card, .citation-box, .card, pre[class*="language-"] {
    background-color: var(--card-bg);
    border-color: var(--border-light);
    color: var(--text-color);
  }

  /* Make the "Code" blocks look good */
  pre[class*="language-"] {
    background: #1e1e1e; /* Dark background for code */
  }

  /* Make the footer dark */
  footer {
    background-color: #0a0a0a;
    border-top: 1px solid var(--border-light);
  }

  /* PRO TIP: Slightly dim images so they aren't too bright in the dark */
  img {
    filter: brightness(0.85);
    transition: filter 0.3s ease;
  }
  
  img:hover {
    filter: brightness(1); /* Brighten up when hovered */
  }
  
  /* Fix links inside content to ensure they are readable */
  a {
    color: #4da3ff; /* A lighter blue is better for dark mode */
  }
  
  /* Buttons */
  .btn-primary {
    border-color: transparent;
  }
  
  .btn-download {
      background-color: var(--breadcrumb-bg);
      color: var(--heading-color);
      border-color: var(--border-light);
  }
  
  /* Fix the Table striping for dark mode */
  .table {
    color: var(--text-color);
    border-color: var(--border-light);
  }
  .table-striped > tbody > tr:nth-of-type(odd) > * {
    color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.05); /* Subtle light stripe */
  }
  .table-bordered > :not(caption) > * {
      border-color: var(--border-light);
  }
  .text-muted, .post-meta, .post-date, .read-time {
    color: #bbbbbb !important; /* Make them light gray instead of dark gray */
  }

  /* 2. Fix Subheadings (h2, h3, h4...) */
  h1, h2, h3, h4, h5, h6 {
    color: #ffffff !important; /* Force headings to be pure white */
  }

  /* 3. Fix Comments Visibility */
  .comment-item {
    background-color: #1e1e1e; /* Give comments a slight background card */
    border: 1px solid #333;    /* Subtle border to separate them */
    padding: 15px;             /* Add padding since we added a background */
    border-radius: 8px;
    margin-bottom: 10px;
  }

  .comment-name {
    color: #ffffff !important; /* Author name white */
  }

  .comment-time {
    color: #aaaaaa !important; /* Timestamp light gray */
  }

  .comment-text {
    color: #e0e0e0 !important; /* Comment body off-white */
  }

  /* 4. Fix Author Card Text */
  .author-bio, .author-description {
    color: #cccccc !important;
  }
}

/* === END OF FILE === */