/*----------------------------------------------
    :: Enhanced Header Search Box & Contact Sections
----------------------------------------------*/

/* Enhanced Search Box */
.search-box .header-search {
  background: linear-gradient(
    135deg,
    rgba(1, 123, 110, 0.08) 0%,
    rgba(1, 123, 110, 0.03) 100%
  );
  border: 1.5px solid rgba(1, 123, 110, 0.15);
  box-shadow: 0 4px 20px rgba(1, 123, 110, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.search-box .header-search::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(1, 123, 110, 0.1),
    transparent
  );
  transition: left 0.6s;
}

.search-box .header-search:hover::before {
  left: 100%;
}

.search-box .header-search:hover {
  border-color: rgba(1, 123, 110, 0.3);
  box-shadow: 0 6px 30px rgba(1, 123, 110, 0.15);
  transform: translateY(-2px);
}

.search-box .header-search .pera {
  font-weight: 500;
  color: var(--primary-color);
}

.search-box .light-text {
  background: rgba(1, 123, 110, 0.08);
  border-radius: 6px;
  padding: 6px 10px;
  border-color: rgba(1, 123, 110, 0.2);
  opacity: 0.9;
  transition: all 0.3s ease;
}

.search-box .light-text:hover {
  background: rgba(1, 123, 110, 0.12);
  opacity: 1;
  transform: scale(1.05);
}

.search-icon {
  color: var(--primary-color);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

/* Enhanced Contact Sections */
.top-header-right .contact-section {
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.top-header-right .contact-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--primary-color);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.top-header-right .contact-section:hover::before {
  transform: scaleY(1);
}

.top-header-right .contact-section:hover {
  background: linear-gradient(
    135deg,
    rgba(1, 123, 110, 0.1) 0%,
    rgba(1, 123, 110, 0.05) 100%
  );
  border-color: rgba(1, 123, 110, 0.2);
  box-shadow: 0 8px 25px rgba(1, 123, 110, 0.12);
  transform: translateY(-3px);
}

.top-header-right .contact-section .circle-primary-sm {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #01a591 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(1, 123, 110, 0.25);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.top-header-right .contact-section .circle-primary-sm::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transform: scale(0);
  border-radius: 50%;
  transition: transform 0.4s ease;
}

.top-header-right .contact-section:hover .circle-primary-sm::before {
  transform: scale(1);
}

.top-header-right .contact-section:hover .circle-primary-sm {
  transform: rotate(360deg);
  box-shadow: 0 6px 20px rgba(1, 123, 110, 0.4);
}

.top-header-right .contact-section .circle-primary-sm i {
  font-size: 20px;
  color: #ffffff;
  position: relative;
  z-index: 2;
}

.top-header-right .contact-section .info .pera {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary-color);
  margin-bottom: 4px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.top-header-right .contact-section:hover .info .pera {
  opacity: 1;
}

.top-header-right .contact-section .info .title {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-title);
  transition: color 0.3s ease;
}

.top-header-right .contact-section:hover .info .title {
  color: var(--primary-color);
}

.top-header-right .contact-section .info .title a {
  position: relative;
  display: inline-block;
}

.top-header-right .contact-section .info .title a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.top-header-right .contact-section:hover .info .title a::after {
  width: 100%;
}

/* Responsive adjustments */
@media (max-width: 1399px) {
  .top-header-right .contact-section {
    padding: 10px 14px;
  }

  .top-header-right .contact-section .circle-primary-sm {
    width: 45px;
    height: 45px;
  }

  .top-header-right .contact-section .circle-primary-sm i {
    font-size: 18px;
  }

  .top-header-right .contact-section .info .title {
    font-size: 14px;
  }
}

@media (max-width: 1199px) {
  .search-box .header-search {
    width: 250px;
    padding: 10px 16px 10px 40px;
  }
}

/*----------------------------------------------
    :: Clean & Minimal Navigation Menu
----------------------------------------------*/

/* Navigation Clean Styling */
.main-menu .listing .single-list .single {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--primary-title);
  opacity: 0.85;
  transition: all 0.3s ease;
}

.main-menu .listing .single-list .single:hover {
  color: var(--primary-color);
  opacity: 1;
}

.main-menu .listing .single-list .link-active {
  color: var(--primary-color) !important;
  opacity: 1;
}

/* Dropdown Arrow */
.main-menu .listing .single-list .dropdown-arrow {
  font-size: 14px;
  margin-left: 4px;
  transition: transform 0.3s ease;
}

.main-menu .listing .single-list:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/*----------------------------------------------
    :: Clean Social Media Icons
----------------------------------------------*/

.social-media-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 0;
  margin-left: 0;
  border-left: none;
}

.social-media-nav .social-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--primary-title);
  font-size: 16px;
  opacity: 0.7;
  transition: all 0.3s ease;
  position: relative;
}

.social-media-nav .social-icon:hover {
  opacity: 1;
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* Responsive Social Media */
@media (max-width: 1399px) {
  .social-media-nav {
    gap: 10px;
  }

  .social-media-nav .social-icon {
    width: 30px;
    height: 30px;
    font-size: 15px;
  }
}

@media (max-width: 1199px) {
  .search-media-nav {
    display: none;
  }

  .main-menu .listing .single-list .single {
    font-size: 13px;
  }
}

/*----------------------------------------------
    :: Modern Search Modal Styling
----------------------------------------------*/

/* Search Container - Modern Gradient Background */
.search-container {
  background: linear-gradient(
    135deg,
    rgba(1, 123, 110, 0.97) 0%,
    rgba(1, 100, 90, 0.95) 50%,
    rgba(0, 80, 70, 0.97) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: absolute;
  overflow: hidden;
  padding: 20px;
}

/* Animated Background Pattern */
.search-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.05) 50%,
    transparent 70%
  );
  animation: shimmer 3s infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0%,
  100% {
    transform: translateX(-50%);
  }
  50% {
    transform: translateX(50%);
  }
}

/* Decorative Circles */
.search-container::after {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

/* Top Section Styling */
.search-container .top-section {
  position: relative;
  z-index: 2;
  padding: 40px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 30px;
}

.search-container .modal-search-box {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
}

.search-container .search-icon {
  width: 65px;
  height: 65px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}

.search-container .search-icon:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.search-container .search-icon i {
  font-size: 30px;
  color: #ffffff !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Search Field */
.search-container .search-field {
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  height: 60px;
  padding: 0 24px;
  font-size: 18px;
  color: #ffffff !important;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  font-weight: 500;
  flex: 1;
  min-width: 250px;
  width: 100%;
}

.search-container .search-field::placeholder {
  color: rgba(255, 255, 255, 0.7) !important;
  font-weight: 400;
}

.search-container .search-field:focus {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  outline: none;
  color: #ffffff !important;
}

/* Close Button */
.search-container .close-search-btn {
  width: 100px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  padding: 14px 24px;
  color: #ffffff !important;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  flex-shrink: 0;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-container .close-search-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.search-container .close-search-btn .light-text {
  color: #ffffff !important;
  opacity: 1;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  letter-spacing: 1px;
  display: inline-block;
}

.search-container .close-search-btn:hover .light-text {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Body Section */
.search-container .body-section {
  position: relative;
  z-index: 2;
  padding: 20px 0;
}

/* Search Labels */
.search-container .search-label {
  color: #ffffff !important;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  opacity: 1;
}

/* Search List Items */
.search-container .listing {
  list-style: none;
  padding: 0;
  margin: 0;
}

.search-container .single-list {
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.search-container .single-list a {
  display: block;
  padding: 15px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.search-container .single-list a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.search-container .single-list a:hover::before {
  left: 100%;
}

.search-container .single-list a:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateX(8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* Search Flex Layout */
.search-container .search-flex {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

/* Search Content Image */
.search-container .content-img {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  width: 120px;
  height: 90px;
}

.search-container .single-list a:hover .content-img {
  transform: scale(1.05);
}

.search-container .content-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.search-container .single-list a:hover .content-img img {
  transform: scale(1.1);
}

/* Search Content Text */
.search-container .content {
  flex: 1;
  min-width: 0;
}

.search-container .content .title {
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.search-container .single-list a:hover .content .title {
  color: #f0f9ff !important;
}

.search-container .content .pera {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* Hide Filter Options */
.search-container .right-section,
.search-container .filter_menu,
.search-container .col-md-4 {
  display: none !important;
}

/* Make search take full width */
.search-container .col-md-8 {
  max-width: 100%;
  flex: 0 0 100%;
}

/* Line Clamp Utilities */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .search-container .top-section {
    padding: 20px 0;
  }

  .search-container .search-icon {
    width: 50px;
    height: 50px;
  }

  .search-container .search-icon i {
    display: none;
    font-size: 24px;
  }

  .search-container .search-field {
    height: 50px;
    font-size: 16px;
    min-width: 200px;
  }

  .search-container .content-img {
    width: 100px;
    height: 75px;
  }
}

@media (max-width: 768px) {
  .search-container {
    padding: 15px 0;
  }

  .search-container .top-section {
    padding: 15px 0;
    margin-bottom: 20px;
  }

  .search-container .modal-search-box {
    flex-direction: column;
    gap: 12px;
    height: 60px;
  }

  .search-container .content .title {
    font-size: 14px;
    margin-bottom: 6px;
  }

  .search-container .content .pera {
    font-size: 13px;
  }

  .search-container .single-list a:hover {
    transform: translateX(4px);
  }
}

@media (max-width: 576px) {
  .search-container .search-flex {
    flex-direction: column;
  }

  .search-container .content-img {
    width: 100%;
    height: 180px;
  }
}

/* Scroll Animation for List Items */
.search-container .single-list {
  animation: fadeInUp 0.5s ease backwards;
}

.search-container .single-list:nth-child(2) {
  animation-delay: 0.1s;
}
.search-container .single-list:nth-child(3) {
  animation-delay: 0.2s;
}
.search-container .single-list:nth-child(4) {
  animation-delay: 0.3s;
}
.search-container .single-list:nth-child(5) {
  animation-delay: 0.4s;
}
.search-container .single-list:nth-child(6) {
  animation-delay: 0.5s;
}
.search-container .single-list:nth-child(7) {
  animation-delay: 0.6s;
}
.search-container .single-list:nth-child(8) {
  animation-delay: 0.7s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ensure all text is white */
.search-container * {
  color: inherit;
}

.search-container h1,
.search-container h2,
.search-container h3,
.search-container h4,
.search-container h5,
.search-container h6,
.search-container p,
.search-container span,
.search-container a,
.search-container li {
  color: #ffffff !important;
}
