: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: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 12px 0;
}

.navbar-nav .nav-link {
  color: var(--navy-blue);
  font-weight: 500;
  margin: 0 10px;
  position: relative;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:before {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--navy-blue);
  visibility: hidden;
  transition: all 0.3s ease;
}

.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);
}

.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%);
}

.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;
}

.page-header h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.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 Section */
.blog-section {
  padding: 80px 0;
  background-color: var(--white);
}

.blog-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);
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.blog-card .card-img-top {
  height: 220px;
  object-fit: cover;
}

.blog-card .card-body {
  padding: 25px;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.blog-meta span {
  font-size: 0.85rem;
  color: var(--dark-gray);
}

.blog-meta i {
  color: var(--blue);
  margin-right: 5px;
}

.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-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.4;
}

.blog-card h3 a {
  color: var(--navy-blue);
  text-decoration: none;
  transition: all 0.3s ease;
}

.blog-card h3 a:hover {
  color: var(--blue);
}

.blog-card p {
  color: var(--dark-gray);
  margin-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.read-more {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
}

.read-more:after {
  content: "";
  position: absolute;
  opacity: 0;
  right: -15px;
  transition: all 0.3s ease;
}

.read-more:hover {
  color: var(--navy-blue);
  padding-right: 20px;
}

.read-more:hover:after {
  opacity: 1;
  right: 0;
}

/* Pagination */
.pagination .page-link {
  color: var(--navy-blue);
  padding: 10px 16px;
  border: none;
  transition: all 0.3s ease;
}

.pagination .page-link:hover {
  background-color: var(--pale-blue);
  color: var(--blue);
}

.pagination .page-item.active .page-link {
  background-color: var(--navy-blue);
  color: var(--white);
}

.pagination .page-item.disabled .page-link {
  color: #adb5bd;
}

/* 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);
}

.search-form {
  position: relative;
}

.search-form input {
  padding-right: 50px;
  border-radius: 50px;
  border: 1px solid #e9ecef;
  padding: 12px 20px;
  transition: all 0.3s ease;
}

.search-form input:focus {
  box-shadow: none;
  border-color: var(--light-blue);
}

.search-form button {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 50px;
  background: transparent;
  border: none;
  color: var(--blue);
  transition: all 0.3s ease;
}

.search-form button:hover {
  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);
}

.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;
}

.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);
}

/* Subscribe Box */
.subscribe-box {
  background: linear-gradient(135deg, var(--navy-blue) 0%, var(--blue) 100%);
  color: var(--white);
  padding: 40px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.subscribe-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='50'%3E%3Crect width='50' height='50' fill='none'/%3E%3Crect width='1' height='1' fill='%23ffffff10'/%3E%3C/svg%3E");
  opacity: 0.1;
}

.subscribe-box h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.subscribe-box p {
  opacity: 0.9;
  margin-bottom: 25px;
}

.subscribe-form {
  position: relative;
}

.subscribe-form input {
  height: 55px;
  padding: 10px 160px 10px 20px;
  border-radius: 50px;
  border: none;
  transition: all 0.3s ease;
}

.subscribe-form input:focus {
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.subscribe-form button {
  position: absolute;
  right: 5px;
  top: 5px;
  height: 45px;
  padding: 0 30px;
  background-color: var(--navy-blue);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.subscribe-form button:hover {
  background-color: var(--dark-gray);
}

/* 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-links a:hover:before {
  transform: translateX(5px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin-top: 40px;
}

.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;
  text-transform: none;
}

.social-links a:hover {
  background-color: var(--blue);
  transform: translateY(-3px);
}

/* Loader */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: all 0.6s ease;
}

.loader.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* Responsive */
@media (max-width: 991.98px) {
  .page-header {
    padding: 60px 0 40px;
  }

  .page-header h1 {
    font-size: 2.2rem;
  }

  .sidebar {
    margin-top: 60px;
  }
}

@media (max-width: 767.98px) {
  .page-header {
    padding: 50px 0 30px;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .blog-card .card-img-top {
    height: 180px;
  }

  .subscribe-form input {
    padding-right: 20px;
  }

  .subscribe-form button {
    position: static;
    width: 100%;
    margin-top: 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;
}
