/* ===== FILTER SECTION ===== */
.filter-section {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  padding: 30px 0;
  position: relative;
  z-index: 999;
}

.filter-header {
  margin-bottom: 30px;
}

.filter-title {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.filter-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.filter-form {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-label {
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
}

.form-select:focus {
  outline: none;
  border-color: #fff;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.form-select-lg {
  padding: 15px 20px;
  font-size: 16px;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
}

.form-control-lg {
  padding: 15px 20px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.form-control-lg:focus {
  outline: none;
  border-color: #fff;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.input-group {
  position: relative;
  display: flex;
  align-items: stretch;
}

.input-group-text {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-right: none;
  padding: 0 15px;
  border-radius: 8px 0 0 8px;
  color: #1e3c72;
  font-size: 18px;
}

.input-group .form-control {
  border-radius: 0 8px 8px 0;
}

.btn-filter {
  background: linear-gradient(135deg, #fff, #f8f9fa);
  color: #1e3c72;
  border: none;
  font-weight: 600;
  font-size: 16px;
  padding: 15px 30px;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-filter:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-lg {
  padding: 15px 30px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

/* ===== HEADER ===== */
.header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header .container {
  padding: 15px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo img {
  height: 50px;
  transition: all 0.3s ease;
}

.logo:hover img {
  transform: scale(1.05);
}

.main-nav {
  flex: 1;
  text-align: right;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  color: #333;
  font-weight: 500;
  padding: 10px 15px;
  display: block;
  position: relative;
  transition: all 0.3s ease;
  border-radius: 5px;
}

.nav-menu > li > a:hover {
  color: #1e3c72;
  background: rgba(30, 60, 114, 0.05);
}

.nav-menu > li > a.active {
  color: #1e3c72;
  background: rgba(30, 60, 114, 0.1);
}

.nav-menu > li > a:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #1e3c72;
  transition: width 0.3s ease;
}

.nav-menu > li > a:hover:after,
.nav-menu > li > a.active:after {
  width: 80%;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 200px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  list-style: none;
  padding: 10px 0;
  margin: 0;
  z-index: 1001;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  display: block;
}

.dropdown-menu li a {
  padding: 10px 20px;
  display: block;
  color: #333;
  transition: all 0.3s ease;
  border-radius: 5px;
  margin: 2px 10px;
}

.dropdown-menu li a:hover {
  background: rgba(30, 60, 114, 0.1);
  color: #1e3c72;
  transform: translateX(5px);
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
}

.dropdown-toggle i {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle i {
  transform: rotate(180deg);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 30px;
  height: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: #333;
  margin: 2px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Header scrolled state */
.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header.scrolled .logo img {
  height: 45px;
}

/* ===== RESPONSIVE HEADER ===== */
@media (max-width: 991px) {
  .header-content {
    padding: 10px 0;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 20px;
    transition: left 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    gap: 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu > li {
    display: block;
    width: 100%;
    margin: 0;
  }

  .nav-menu > li > a {
    padding: 15px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .nav-menu > li > a:after {
    display: none;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(30, 60, 114, 0.05);
    margin: 0;
    padding: 0;
    display: none;
    border-radius: 0;
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }

  .dropdown-menu li {
    padding-left: 20px;
  }

  .dropdown-menu li a {
    padding: 10px 0;
    border-bottom: none;
  }

  .mobile-toggle {
    display: flex;
  }
}

@media (max-width: 575px) {
  .header-content {
    padding: 8px 0;
  }

  .logo img {
    height: 40px;
  }

  .nav-menu {
    top: 70px;
    height: calc(100vh - 70px);
  }

  .nav-menu > li > a {
    font-size: 15px;
    padding: 12px 0;
  }
}

/* ===== HERO SLIDER ===== */
.hero-slider {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.slider-container {
  position: relative;
}

.slide {
  display: none;
}

.slide.active {
  display: block;
}

.slide-content {
  color: #fff;
}

.slide-text h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.slide-text p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.slide-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.slide-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.slide-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
}

.slide-controls button {
  width: 50px;
  height: 50px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: all;
}

.slide-controls button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.slide-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.indicator {
  width: 12px;
  height: 12px;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: #fff;
  width: 30px;
  border-radius: 6px;
}

/* ===== SECTIONS ===== */
.quick-search {
  padding: 40px 0;
  background: #fff;
  position: relative;
  z-index: 10;
}

.search-box {
  background: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.statistics {
  padding: 80px 0;
  background: #fff;
}

.stat-box {
  text-align: center;
  padding: 30px;
  border-radius: 10px;
  background: #f8f8f8;
  transition: all 0.3s ease;
  height: 100%;
}

.stat-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #fff;
  font-size: 30px;
}

.stat-number {
  font-size: 36px;
  font-weight: 700;
  color: #1e3c72;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 16px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.services {
  padding: 80px 0;
  background: #f8f8f8;
}

.service-card {
  background: #fff;
  padding: 40px 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  color: #fff;
  font-size: 30px;
}

.service-card h3 {
  font-size: 22px;
  font-weight: 600;
  color: #1e3c72;
  margin-bottom: 15px;
}

.service-card p {
  color: #666;
  margin-bottom: 25px;
  line-height: 1.6;
}

.latest-documents {
  padding: 80px 0;
  background: #fff;
}

.document-list {
  max-width: 800px;
  margin: 0 auto;
}

.document-item {
  display: flex;
  align-items: center;
  padding: 20px;
  background: #f8f8f8;
  border-radius: 10px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.document-item:hover {
  background: #f0f0f0;
  transform: translateX(5px);
}

.doc-icon {
  width: 50px;
  height: 50px;
  background: #e74c3c;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  margin-right: 20px;
  flex-shrink: 0;
}

.doc-info {
  flex-grow: 1;
}

.doc-info h4 {
  margin-bottom: 5px;
}

.doc-info h4 a {
  color: #333;
  font-weight: 500;
}

.doc-info p {
  color: #666;
  font-size: 14px;
  margin: 0;
}

.doc-actions {
  margin-left: 20px;
}

.btn-outline {
  background: transparent;
  border: 1px solid #ddd;
  color: #666;
  padding: 8px 12px;
  border-radius: 5px;
}

.btn-outline:hover {
  background: #1e3c72;
  color: #fff;
  border-color: #1e3c72;
}

.news {
  padding: 80px 0;
  background: #f8f8f8;
}

.news-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  margin-bottom: 30px;
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.news-image {
  height: 200px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.1);
}

.news-content {
  padding: 25px;
}

.news-date {
  color: #1e3c72;
  font-size: 14px;
  font-weight: 500;
  display: block;
  margin-bottom: 10px;
}

.news-content h4 {
  margin-bottom: 15px;
  line-height: 1.4;
}

.news-content h4 a {
  color: #333;
  font-weight: 600;
}

.news-content p {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

.partners {
  padding: 80px 0;
  background: #fff;
}

.partners-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.partner-item {
  width: 150px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f8f8;
  border-radius: 10px;
  padding: 20px;
  transition: all 0.3s ease;
}

.partner-item:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.partner-item img {
  max-width: 100%;
  max-height: 100%;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.partner-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

.footer {
  background: #1a1a1a;
  color: #ccc;
}

.footer-top {
  padding: 60px 0 40px;
}

.footer-logo {
  height: 50px;
  margin-bottom: 20px;
}

.footer-about p {
  margin-bottom: 25px;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: #1e3c72;
  color: #fff;
  transform: scale(1.1);
}

.footer-links h4,
.footer-contact h4 {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
}

.footer-links h4:after,
.footer-contact h4:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: #1e3c72;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  color: #ccc;
  transition: all 0.3s ease;
}

.footer-links ul li a:hover {
  color: #fff;
  padding-left: 5px;
}

.footer-contact p {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-contact i {
  width: 20px;
  color: #1e3c72;
}

.footer-bottom {
  background: #0a0a0a;
  padding: 20px 0;
  border-top: 1px solid #333;
}

.footer-bottom p {
  margin: 0;
  font-size: 14px;
}

.footer-bottom a {
  color: #1e3c72;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
  .filter-title {
    font-size: 24px;
  }

  .filter-subtitle {
    font-size: 16px;
  }

  .filter-form {
    padding: 20px;
  }

  .form-label {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .form-select-lg,
  .form-control-lg {
    padding: 12px 15px;
    font-size: 14px;
  }

  .btn-filter {
    padding: 12px 20px;
    font-size: 14px;
  }
}

.slide-text h1 {
  font-size: 28px;
}

.slide-text p {
  font-size: 16px;
}

.section-header h2 {
  font-size: 28px;
}

.stat-number {
  font-size: 28px;
}

.stat-icon {
  width: 60px;
  height: 60px;
  font-size: 24px;
}

.service-icon {
  width: 60px;
  height: 60px;
  font-size: 24px;
}

.footer-top .row > div {
  margin-bottom: 40px;
}

.footer-bottom .row > div {
  text-align: center;
  margin-bottom: 10px;
}

@media (max-width: 575px) {
  .filter-title {
    font-size: 22px;
  }

  .filter-subtitle {
    font-size: 14px;
  }

  .form-label {
    font-size: 12px;
  }

  .form-select-lg,
  .form-control-lg {
    padding: 12px 15px;
    font-size: 13px;
  }

  .btn-filter {
    padding: 10px 20px;
    font-size: 13px;
  }

  .slide-text h1 {
    font-size: 24px;
  }

  .slide-text p {
    font-size: 14px;
  }

  .section-header h2 {
    font-size: 24px;
  }

  .stat-number {
    font-size: 24px;
  }

  .stat-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }

  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }
}
