/* Custom CSS for Government Portal */

:root {
  --primary-blue: #0066cc;
  --dark-blue: #0b3b7f;
  --light-blue: #f0f7ff;
  --hover-blue: #0055aa;
  --text-gray: #6c757d;
  --border-gray: #dee2e6;
}

/* Global Styles */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Top Bar */
.top-bar {
  background-color: var(--dark-blue);
  color: white;
  padding: 8px 0;
  font-size: 14px;
}

.top-link {
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.top-link:hover {
  color: white;
  text-decoration: underline;
}

.language-selector {
  display: flex;
  align-items: center;
  cursor: pointer;
}

/* Logo */
.logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-text {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-blue);
  margin-right: 8px;
}

.logo-dots {
  display: flex;
  gap: 2px;
  margin-top: -10px;
}

.dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary-blue);
  border-radius: 50%;
}

/* Header */
.main-header {
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 16px 0;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: #333;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-blue);
}

.search-input {
  border-radius: 25px;
  border: 1px solid var(--border-gray);
  padding: 8px 16px;
}

.search-btn {
  background-color: var(--primary-blue);
  border: 1px solid var(--primary-blue);
  color: white;
  border-radius: 0 25px 25px 0;
}

.search-btn:hover {
  background-color: var(--hover-blue);
  border-color: var(--hover-blue);
}

/* Hero Section */
.hero-section {
  background: transparent linear-gradient(-305deg,#0c3058,#0068f5) 0 0 no-repeat padding-box;
  padding: 80px 0;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 24px;
}

.hero-text {
  font-size: 1.125rem;
  margin-bottom: 32px;
  color: #fff;
}

.search-container-height{
  height: 60px;
}

.hero-buttons .btn {
  padding: 12px 24px;
  font-weight: 500;
  border-radius: 6px;
}

.btn-primary {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
}

.btn-primary:hover {
  background-color: var(--hover-blue);
  border-color: var(--hover-blue);
}

.btn-outline-primary {
  color: var(--primary-blue);
  border-color: var(--primary-blue);
}

.btn-outline-primary:hover {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
}

/* Services Section */
.services-section {
  padding: 80px 0;
  background-color: white;
}

.section-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 48px;
}

.service-card {
  display: block;
  background-color: white;
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  height: 100%;
}

.service-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
  transform: translateY(-2px);
}

.service-icon {
  background-color: var(--light-blue);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.service-icon i {
  font-size: 24px;
  color: var(--primary-blue);
}

.service-name {
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}

@media (min-width: 768px) {
  .service-name {
    font-size: 16px;
  }
}

/* News Section */
.news-section {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.view-all-link {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
}

.view-all-link:hover {
  text-decoration: underline;
}

.news-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
  height: 100%;
}

.news-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.news-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-content {
  padding: 24px;
}

.news-date {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 8px;
}

.news-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 12px;
}

.news-excerpt {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 16px;
}

.read-more {
  color: var(--primary-blue);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.read-more:hover {
  text-decoration: underline;
}

/* Footer */
.main-footer {
  background-color: #fff;
  color: #0c3058;
  padding: 48px 0 24px;
}

.footer-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #0c3058 !important;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ccc;
  text-decoration: underline;
}

.footer-divider {
  border-color: #4a6fa5;
  margin: 32px 0 24px;
}

.footer-logo .logo-text {
  color: white;
}

.footer-logo .dot {
  background-color: white;
}

.copyright {
  font-size: 14px;
  margin: 0;
  color: #ccc;
}

/* Breadcrumb */
.breadcrumb-section {
  background-color: white;
  border-bottom: 1px solid var(--border-gray);
  padding: 12px 0;
}

.breadcrumb {
  margin: 0;
  background: none;
  padding: 0;
}

.breadcrumb-item a {
  color: var(--text-gray);
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: var(--primary-blue);
  text-decoration: underline;
}

/* Page Title */
.page-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--dark-blue);
}

/* Search Section */
.search-section .card {
  border: 1px solid var(--border-gray);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Service Categories */
.service-category-card {
  background-color: white;
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  transition: box-shadow 0.3s ease;
  height: 100%;
}

.service-category-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}

.service-list li {
  margin-bottom: 8px;
}

.service-list a {
  color: var(--primary-blue);
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
}

.service-list a:hover {
  text-decoration: underline;
}

/* Popular Services */
.popular-service-item {
  display: flex;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.3s ease;
}

.popular-service-item:hover {
  background-color: #f8f9fa;
  text-decoration: none;
  color: inherit;
}

.service-icon-small {
  background-color: var(--light-blue);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
}

.service-icon-small i {
  font-size: 16px;
  color: var(--primary-blue);
}

.service-info h3 {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 4px 0;
}

.service-description {
  font-size: 14px;
  color: var(--text-gray);
  margin: 0;
}

/* Tabs */
.nav-tabs .nav-link {
  color: var(--text-gray);
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
}

.nav-tabs .nav-link.active {
  color: var(--primary-blue);
  border-bottom-color: var(--primary-blue);
  background: none;
}

.nav-tabs .nav-link:hover {
  color: var(--primary-blue);
  border-color: transparent;
}

.nav-pills .nav-link {
  color: var(--text-gray);
  background: none;
  border: 1px solid var(--border-gray);
  margin-bottom: 8px;
}

.nav-pills .nav-link.active {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
}

.nav-pills .nav-link:hover {
  color: var(--primary-blue);
}

/* Responsive Design */
@media (max-width: 767px) {
  .hero-title {
    font-size: 2rem;
  }

  .page-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .hero-section {
    padding: 48px 0;
  }

  .services-section,
  .news-section {
    padding: 48px 0;
  }

  .hero-buttons .btn {
    width: 100%;
    margin-bottom: 12px;
  }

  .hero-buttons .btn:last-child {
    margin-bottom: 0;
  }
}

/* Loading Animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary-blue);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}



    .nav-toggle {
      background-color: white;
      border-radius: 30px;
      display: inline-flex;
      padding: 5px;
      margin-bottom: 2rem;
    }
    .nav-toggle .btn {
      border: none;
      border-radius: 30px;
      padding: 10px 60px;
      color: #666;
    }
    .nav-toggle .btn.active {
      background-color: #fff;
      color: #0056ff;
    }
    .card-service {
      background-color: white;
      border-radius: 10px;
      padding: 15px;
      text-align: left;
      display: flex;
      align-items: center;
      gap: 15px;
      transition: all 0.3s;
    }
    .card-service:hover {
      box-shadow: 0 0 10px rgba(0,0,0,0.1);
    }
    .card-service i {
      font-size: 1.8rem;
      color: #0056ff;
    }


      .service-card {
      background: white;
      border-radius: 12px;
      padding: 20px;
      box-shadow: 0 0 10px rgba(0,0,0,0.04);
      transition: 0.3s;
      position: relative;
      height: 100%;
    }
    .service-card:hover {
      box-shadow: 0 0 15px rgba(0,0,0,0.08);
    }
    .service-icon {
      font-size: 2rem;
      margin-bottom: 15px;
      display: inline-block;
    }
    .service-title {
      font-weight: 600;
      color: #0056ff;
      font-size: 1rem;
    }
    .service-subtitle {
      font-size: 0.875rem;
      color: #555;
    }
    .badge-online {
      background: #e6efff;
      color: #0044cc;
      font-size: 0.7rem;
      border-radius: 12px;
      padding: 2px 8px;
      position: absolute;
      top: 15px;
      right: 15px;
    }

      .category-card {
      background: white;
      border-radius: 12px;
      padding: 16px 20px;
      display: flex;
      align-items: center;
      gap: 15px;
      box-shadow: 0 0 10px rgba(0,0,0,0.04);
      transition: all 0.3s ease;
      height: 100%;
    }
    .category-card:hover {
      box-shadow: 0 0 12px rgba(0,0,0,0.08);
    }
    .category-icon {
      width: 42px;
      height: 42px;
      background-color: #e6f0ff;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      color: #0056ff;
    }
    .category-title {
      font-weight: 600;
      color: #00337c;
      font-size: 1rem;
    }

    
      .subtitle {
      text-align: center;
      color: #666;
      margin-bottom: 2rem;
    }

    .swiper {
      padding-bottom: 60px;
    }

    .swiper-slide {
      background: white;
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
      overflow: hidden;
    }

    .news-card img {
      width: 100%;
      height: 160px;
      object-fit: cover;
    }

    .news-content {
      padding: 15px;
    }

    .news-meta {
      font-size: 0.85rem;
      color: #777;
    }

    .news-heading {
      color: #003399;
      font-weight: bold;
      font-size: 1rem;
      margin-top: 5px;
    }

    .news-description {
      font-size: 0.9rem;
      margin-top: 5px;
      color: #333;
    }

    .swiper-button-next,
    .swiper-button-prev {
          background: #fff;
    border-radius: 50%;
    width: 45px;
    font-size: 8px;
    top: var(--swiper-navigation-top-offset, 30%);
    }

    .swiper-pagination-bullet-active {
      background: #1d4ed8;
    }


    .img-fade-area{
      background-image: linear-gradient(270deg,rgba(247,250,255,.05),#f7faff);
    left: -1px;
    }


       .banner-section {
      background-color: #edf5ff;
      padding: 60px 20px;
    }

    .banner-title {
      font-weight: bold;
      color: #003366;
    }

    .underline {
      width: 40px;
      height: 3px;
      background-color: #0056d2;
      margin-top: 8px;
      margin-bottom: 16px;
      border-radius: 10px;
    }

    .search-box {
      max-width: 500px;
      position: relative;
    }

    .search-box input {
      border-radius: 50px;
      padding: 12px 50px 12px 20px;
      border: 1px solid #ccc;
      width: 100%;
      font-size: 16px;
    }

    .search-box button {
      position: absolute;
      right: 6px;
      top: 6px;
      bottom: 6px;
      background-color: #007bff;
      border: none;
      border-radius: 50%;
      color: white;
      width: 36px;
      height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .right-image img {
      width: 100%;
      border-radius: 10px;
    }


     .counter-section {
      background: linear-gradient(90deg, #2e62f2, #14398b);
      color: white;
      padding: 50px 0;
    }

    .counter-box {
      text-align: center;
    }

    .counter-number {
      font-size: 48px;
      font-weight: bold;
    }

    .counter-label {
      font-size: 18px;
      margin-top: 5px;
    }

    .divider {
      border-left: 1px solid rgba(255,255,255,0.5);
      height: 80px;
    }

    @media (max-width: 768px) {
      .divider {
        display: none;
      }
    }

    .swiper-button-next:after, .swiper-button-prev:after{
          font-size: 24px !important;
    }