:root {
  --navy-blue: #0a3161;
  --blue: #2c71b8;
  --light-blue: #6ea5d9;
  --baby-blue: #abd1e7;
  --pale-blue: #e3f2fd;
  --white: #ffffff;
  --black: #000000;
  --gray: #f8f9fa;
  --dark-gray: #343a40;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--black);
  overflow-x: hidden;
}

/* Navbar Styles */
.navbar {
  background-color: transparent;
  transition: background-color 0.3s ease;
  padding: 20px 0;
}

.navbar.scrolled {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 12px 0;
}

.navbar-brand img {
  height: 40px;
  transition: all 0.3s ease;
}

.navbar-scrolled .navbar-brand img {
  height: 35px;
}

.scrolled .navbar-brand img {
  height: 35px;
  filter: invert(100%);
}

/* Default nav link styles (transparent navbar) */
.navbar-nav .nav-link {
  color: var(--white);
  font-weight: 500;
  margin: 0 10px;
  position: relative;
  transition: all 0.3s ease;
}

/* Nav link styles when scrolled */
.scrolled .navbar-nav .nav-link {
  color: var(--navy-blue);
}

.navbar-nav .nav-link:before {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--white);
  visibility: hidden;
  transition: all 0.3s ease;
}

/* Scrolled state underline */
.scrolled .navbar-nav .nav-link:before {
  background-color: var(--navy-blue);
}

.navbar-nav .nav-link:hover:before {
  visibility: visible;
  width: 100%;
}

.navbar-nav .nav-link.active {
  color: var(--blue);
  font-weight: 600;
}

.navbar-nav .nav-link.active:before {
  visibility: visible;
  width: 100%;
  background-color: var(--blue);
}

.btn-primary {
  background-color: var(--navy-blue);
  border: none;
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--navy-blue) 0%, var(--blue) 100%);
  color: var(--white);
  padding: 80px 0 50px;
  position: relative;
}

.breadcrumb-item,
.breadcrumb-item a {
  color: var(--white);
  opacity: 0.9;
  text-decoration: none;
}

.breadcrumb-item.active {
  color: var(--white);
  opacity: 1;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--white);
  opacity: 0.7;
}

/* Blog Content Styles */
.blog-content {
  padding: 80px 0;
  background-color: var(--white);
}

.blog-featured-image {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.blog-featured-image img {
  width: 100%;
  height: auto;
}

.blog-meta {
  display: flex;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e9ecef;
}

.blog-meta-item {
  margin-right: 25px;
  display: flex;
  align-items: center;
  color: var(--dark-gray);
  font-size: 0.9rem;
}

.blog-meta-item i {
  color: var(--blue);
  margin-right: 8px;
}

.blog-meta-item a {
  color: var(--dark-gray);
  text-decoration: none;
  transition: all 0.3s ease;
}

.blog-meta-item a:hover {
  color: var(--blue);
}

.blog-category {
  display: inline-block;
  background-color: var(--pale-blue);
  color: var(--blue);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.blog-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy-blue);
  margin-bottom: 20px;
  line-height: 1.3;
}

.blog-content-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--dark-gray);
}

.blog-content-text p {
  margin-bottom: 24px;
}

.blog-content-text h2 {
  font-size: 1.8rem;
  color: var(--navy-blue);
  font-weight: 700;
  margin: 40px 0 20px;
}

.blog-content-text h3 {
  font-size: 1.5rem;
  color: var(--navy-blue);
  font-weight: 600;
  margin: 30px 0 15px;
}

.blog-content-text ul,
.blog-content-text ol {
  margin-bottom: 24px;
  padding-left: 20px;
}

.blog-content-text li {
  margin-bottom: 10px;
}

.blog-content-text blockquote {
  background-color: var(--pale-blue);
  border-left: 4px solid var(--blue);
  padding: 20px;
  margin: 30px 0;
  font-style: italic;
  position: relative;
}

.blog-content-text blockquote p {
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.blog-content-text blockquote::before {
  content: '"';
  font-family: Georgia, serif;
  font-size: 5rem;
  position: absolute;
  top: -15px;
  left: 10px;
  color: rgba(0, 0, 0, 0.05);
  z-index: 0;
}

/* Author Box */
.author-box {
  background-color: var(--gray);
  border-radius: 10px;
  padding: 30px;
  margin: 50px 0;
  display: flex;
  align-items: center;
}

.author-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 20px;
  flex-shrink: 0;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--navy-blue);
}

.author-info p {
  font-size: 0.95rem;
  color: var(--dark-gray);
  margin-bottom: 15px;
}

.author-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: var(--white);
  color: var(--blue);
  margin-right: 10px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.author-social a:hover {
  background-color: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

/* Tags */
.blog-tags {
  margin: 30px 0;
}

.blog-tags h5 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--navy-blue);
}

.blog-tags a {
  display: inline-block;
  background-color: var(--pale-blue);
  color: var(--navy-blue);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  margin: 0 5px 10px 0;
  text-decoration: none;
  transition: all 0.3s ease;
}

.blog-tags a:hover {
  background-color: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

/* Share Buttons */
.blog-share {
  margin: 30px 0;
}

.blog-share h5 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--navy-blue);
}

.share-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--white);
  margin-right: 10px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.share-buttons a:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.share-buttons .facebook {
  background-color: #3b5998;
}

.share-buttons .twitter {
  background-color: #1da1f2;
}

.share-buttons .linkedin {
  background-color: #0077b5;
}

.share-buttons .whatsapp {
  background-color: #25d366;
}

/* Related Posts */
.related-posts {
  margin-top: 80px;
  padding-top: 80px;
  border-top: 1px solid #e9ecef;
}

.related-posts h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--navy-blue);
  text-align: center;
}

.related-post-card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.related-post-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.related-post-card .card-img-top {
  height: 180px;
  object-fit: cover;
}

.related-post-card .card-body {
  padding: 20px;
}

.related-post-card .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.related-post-card .card-title a {
  color: var(--navy-blue);
  text-decoration: none;
  transition: all 0.3s ease;
}

.related-post-card .card-title a:hover {
  color: var(--blue);
}

.recent-post {
  display: flex;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e9ecef;
}

.recent-post:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.recent-post-img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  margin-right: 15px;
  flex-shrink: 0;
}

.recent-post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-post-content h5 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 5px;
  line-height: 1.4;
}

.recent-post-content h5 a {
  color: var(--navy-blue);
  text-decoration: none;
  transition: all 0.3s ease;
}

.recent-post-content h5 a:hover {
  color: var(--blue);
}

.recent-post-content span {
  font-size: 0.75rem;
  color: var(--dark-gray);
}

.recent-post-content span i {
  color: var(--blue);
  margin-right: 5px;
}

/* Sidebar */
.sidebar-widget {
  background-color: var(--white);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.sidebar-widget h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--pale-blue);
  color: var(--navy-blue);
}

.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list li {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e9ecef;
}

.category-list a {
  color: var(--dark-gray);
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.category-list a:hover {
  color: var(--blue);
  padding-left: 5px;
}

.tag-cloud a {
  display: inline-block;
  background-color: var(--pale-blue);
  color: var(--navy-blue);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  margin: 0 5px 10px 0;
  text-decoration: none;
  transition: all 0.3s ease;
}

.tag-cloud a:hover {
  background-color: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background-color: var(--dark-gray);
  color: var(--white);
  padding: 70px 0 20px;
}

.footer-brand img {
  height: 40px;
  margin-bottom: 20px;
}

.footer h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 25px;
  position: relative;
}

.footer h4:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--light-blue);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: var(--pale-blue);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 15px;
}

.footer-links a:before {
  content: "";
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin-top: 40px;
}

/* Responsive */
@media (max-width: 991.98px) {
  .page-header {
    padding: 60px 0 40px;
  }

  .blog-title {
    font-size: 2rem;
  }

  .sidebar {
    margin-top: 60px;
  }
}

@media (max-width: 767.98px) {
  .page-header {
    padding: 50px 0 30px;
  }

  .blog-title {
    font-size: 1.8rem;
  }

  .blog-meta {
    flex-wrap: wrap;
  }

  .blog-meta-item {
    margin-bottom: 10px;
  }
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  margin-right: 10px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.sidebar-widget {
  background-color: var(--white);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.sidebar-widget h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--pale-blue);
  color: var(--navy-blue);
}

.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list li {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e9ecef;
}

.category-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.category-list a {
  color: var(--dark-gray);
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.category-list a:hover {
  color: var(--blue);
  padding-left: 5px;
}

.category-list .badge {
  background-color: var(--pale-blue);
  color: var(--blue);
  font-weight: 600;
  transition: all 0.3s ease;
}

.category-list a:hover .badge {
  background-color: var(--blue);
  color: var(--white);
}