/* Custom Premium styles for COOPLAG */

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.typed-cursor {
  font-weight: 200;
  color: var(--theme-color2, #f5a623);
  animation: blink 0.7s infinite;
  margin-left: 2px;
}

#typed-hero-subtitle {
  color: #101249;
}


/* Uniform Card Image Sizes */
.team-block .inner-box .image img,
.team-block-two .inner-box .image-box .image img,
.team-block-three .inner-box .image-box .image img,
.team-block-four .inner-box .image-box .image img {
  height: 380px !important;
  width: 100% !important;
  object-fit: cover !important;
  object-position: top center !important;
  display: block;
}

.blog-block .inner-box .image-box .image img,
.blog-block-two .inner-box .image-box .image img,
.blog-block-three .inner-box .image-box .image img,
.blog-block-four .inner-box .image-box .image img {
  height: 250px !important;
  width: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block;
}

.service-block .inner-box .image-box .image img,
.service-block-two .inner-box .image-box .image img,
.service-block-three .inner-box .image-box .image img {
  height: 250px !important;
  width: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block;
}

/* --- Redesigned Services Section (Light Theme) --- */
.services-filter-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.filter-tab-btn {
  background: #f4f6f9;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--theme-color1);
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-tab-btn:hover,
.filter-tab-btn.active {
  background: var(--theme-color1);
  border-color: var(--theme-color1);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(21, 101, 192, 0.2);
}

.services-grid-wrapper {
  transition: all 0.3s ease;
}

.service-card-premium {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 35px 25px;
  height: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(239, 87, 50, 0.06) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.service-card-premium:hover {
  transform: translateY(-8px);
  border-color: var(--theme-color2);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  background: #ffffff;
}

.service-card-premium:hover::before {
  opacity: 1;
}

.service-card-premium .card-icon-wrapper {
  position: relative;
  z-index: 1;
  width: 70px;
  height: 70px;
  border-radius: 12px;
  background: rgba(21, 101, 192, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  transition: all 0.3s ease;
}

.service-card-premium:hover .card-icon-wrapper {
  background: var(--theme-color1);
  color: #ffffff;
  transform: scale(1.05);
}

.service-card-premium .card-icon-wrapper svg {
  width: 36px;
  height: 36px;
  stroke: var(--theme-color1);
  fill: none;
  transition: all 0.3s ease;
}

.service-card-premium:hover .card-icon-wrapper svg {
  stroke: #ffffff;
}

.service-card-premium .card-content {
  position: relative;
  z-index: 1;
  flex-grow: 1;
}

.service-card-premium .card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--theme-color1);
  margin-bottom: 12px;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.service-card-premium:hover .card-title {
  color: var(--theme-color2);
}

.service-card-premium .card-text {
  font-size: 14px;
  line-height: 1.6;
  color: #666666;
  margin-bottom: 25px;
}

.service-card-premium .card-action {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--theme-color1);
  transition: all 0.3s ease;
  margin-top: auto;
}

.service-card-premium .card-action i {
  transition: transform 0.3s ease;
}

.service-card-premium:hover .card-action {
  color: var(--theme-color2);
}

.service-card-premium:hover .card-action i {
  transform: translateX(4px);
}

.service-card-col {
  transition: all 0.4s ease;
}

.service-card-col.filtered-out {
  opacity: 0;
  transform: scale(0.85);
  position: absolute;
  pointer-events: none;
  visibility: hidden;
}

/* Global Top Bar Icon Color Override */
.header-top .top-left .info-list i {
  color: var(--theme-color1) !important;
}

/* Top Header White Text */
.header-top .top-right .useful-links li a,
.header-top .top-right .top-social-icon li a i,
.header-top .top-right .top-social-icon li a {
  color: #ffffff !important;
}

/* Hide services filter buttons container on mobile */
@media (max-width: 767.98px) {
  .services-filter-container {
    display: none !important;
  }
}

/* =====================================================
   iOS / Mobile: Disable 3D tilt transforms to prevent
   blurry image rendering on Safari / iPhone
   ===================================================== */
@media (max-width: 1024px),
(hover: none) {
  [data-tilt] {
    transform: none !important;
  }
}

/* =====================================================
   Project Premium Cards Redesign
   ===================================================== */
.project-card-premium {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 15px;
  height: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card-premium:hover {
  transform: translateY(-8px);
  border-color: var(--theme-color2);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}

.project-card-premium .card-image-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 20px;
  /* Force GPU rendering to fix nested backdrop-filter visual clipping glitches */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.project-card-premium .project-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.project-card-premium:hover .project-card-img {
  transform: scale(1.08);
}

.project-card-premium .card-content-wrapper {
  padding: 0 10px 10px 10px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.project-card-premium .card-content {
  flex-grow: 1;
}

.project-card-premium .project-category {
  font-size: 11px;
  font-weight: bold;
  color: var(--theme-color1);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 8px;
}

.project-card-premium .card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--theme-color1);
  margin-bottom: 8px;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.project-card-premium:hover .card-title {
  color: var(--theme-color2);
}

.project-card-premium .text-muted {
  font-size: 13px;
  margin-bottom: 12px;
  color: #777777;
}

.project-card-premium .text-muted i {
  color: var(--theme-color2);
  margin-right: 4px;
}

.project-card-premium .card-text {
  font-size: 14px;
  line-height: 1.6;
  color: #666666;
  margin-bottom: 20px;
}

.project-card-premium .card-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--theme-color1);
  transition: all 0.3s ease;
  margin-top: auto;
  text-decoration: none;
}

.project-card-premium .card-action i {
  transition: transform 0.3s ease;
}

.project-card-premium:hover .card-action {
  color: var(--theme-color2);
}

.project-card-premium:hover .card-action i {
  transform: translateX(4px);
}

/* Glassmorphic Project Status Badges */
.status-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  z-index: 2;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  /* Fix Chromium backdrop-filter paint glitches */
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.badge-completed {
  background: rgba(39, 174, 96, 0.85);
  /* Emerald Green */
  color: #ffffff !important;
}

.badge-ongoing {
  background: rgba(243, 156, 18, 0.85);
  /* Warm Amber */
  color: #ffffff !important;
}

.badge-upcoming {
  background: rgba(41, 128, 185, 0.85);
  /* Premium Blue */
  color: #ffffff !important;
}

.project-card-premium:hover .status-badge {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Scrollable Filters on Mobile */
@media (max-width: 767.98px) {
  .filter-tab-btn {
    flex: 0 0 auto;
  }


  /* Hide the filters specifically on the projects page in mobile view */
  #projects-filter-container {
    display: none !important;
  }

  /* Scroll Snap Carousel for Project Categories on Mobile */
  .mobile-carousel-wrapper {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
    margin-left: -15px !important;
    margin-right: -15px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 20px !important;
    scrollbar-width: none !important;
    /* Hide scrollbar Firefox */
  }

  .mobile-carousel-wrapper::-webkit-scrollbar {
    display: none !important;
    /* Hide scrollbar Safari/Chrome */
  }

  .mobile-carousel-wrapper .service-card-col {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    scroll-snap-align: start !important;
    margin-right: 0 !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Smaller badges on mobile view */
  .status-badge {
    top: 10px !important;
    right: 10px !important;
    padding: 2px 8px !important;
    font-size: 9px !important;
    letter-spacing: 0.5px !important;
  }

  /* Mobile Carousel Dots */
  .carousel-indicators-mobile {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 25px;
  }

  .carousel-indicators-mobile .indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(21, 101, 192, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
  }

  .carousel-indicators-mobile .indicator-dot.active {
    width: 20px;
    border-radius: 4px;
    background: var(--theme-color2, #f5a623);
  }

  /* Smaller page title banner on mobile view */
  .page-title {
    padding: 60px 0 50px !important;
  }

  .page-title .title {
    font-size: 42px !important;
    margin-bottom: 10px !important;
  }
}

/* Category Overview Panels styles */
.category-overview-section {
  background: #ffffff;
  padding: 100px 0;
}

.category-row {
  margin-bottom: 80px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.category-row:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.category-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.category-image-wrap img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.category-image-wrap:hover img {
  transform: scale(1.05);
}

.category-details-wrap {
  padding: 0 10px;
}

.category-details-wrap .project-tag {
  background: rgba(245, 166, 35, 0.1);
  color: var(--theme-color2, #f5a623);
  padding: 5px 12px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 15px;
}

.category-details-wrap h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--theme-color1, #1a3c6e);
  margin-bottom: 10px;
  line-height: 1.2;
}

.category-details-wrap h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--theme-color2, #f5a623);
  margin-bottom: 20px;
  font-style: italic;
}

.category-details-wrap p {
  font-size: 15px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 25px;
}

.category-details-wrap .project-insights {
  margin-bottom: 30px;
  background: #fafafa;
  border-left: 4px solid var(--theme-color2, #f5a623);
  padding: 15px 20px;
  border-radius: 0 8px 8px 0;
}

.category-details-wrap .project-insights h5 {
  font-size: 15px;
  font-weight: 700;
  color: var(--theme-color1, #1a3c6e);
  margin-bottom: 8px;
}

.category-details-wrap .project-insights ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-details-wrap .project-insights li {
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

.category-details-wrap .project-insights li i {
  margin-top: 4px;
}

.category-details-wrap .project-insights li:last-child {
  margin-bottom: 0;
}

/* Projects Page Blog Section */
.projects-blog-section {
  background: #fafafa;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 100px 0 70px 0;
}

/* Responsive adjustments for category overview */
@media (max-width: 991px) {
  .category-overview-section {
    padding: 60px 0;
  }

  .category-row {
    margin-bottom: 50px;
    padding-bottom: 30px;
  }

  .category-image-wrap img {
    height: 280px;
  }

  .category-details-wrap {
    padding: 20px 0 0 0 !important;
    /* Add top spacing when stacked */
  }

  .category-details-wrap h2 {
    font-size: 26px;
  }

  .category-details-wrap h4 {
    font-size: 16px;
    margin-bottom: 15px;
  }

  .projects-blog-section {
    padding: 60px 0 30px 0;
  }
}

/* =====================================================
   Mobile Dropdown Filter Redesign
   ===================================================== */
.premium-mobile-select {
  border-radius: 30px !important;
  padding: 0 40px 0 48px !important;
  /* Zero vertical padding, explicit height */
  height: 54px !important;
  line-height: 54px !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  color: var(--theme-color1) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  background-color: #ffffff !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04) !important;
  outline: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image:
    url('data:image/svg+xml;utf8,<svg fill="%23253b70" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>'),
    url('data:image/svg+xml;utf8,<svg fill="none" stroke="%23253b70" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 24 24" height="18" width="18" xmlns="http://www.w3.org/2000/svg"><polygon points="22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"/></svg>') !important;
  background-repeat: no-repeat, no-repeat !important;
  background-position: right 15px center, left 18px center !important;
  background-size: 24px, 18px !important;
  transition: all 0.3s ease !important;
  cursor: pointer;
  transition: all 0.3s ease !important;
  text-align-last: left !important;
  display: block !important;
}

/* Hide the duplicate dropdown generated by nice-select.js */
.premium-mobile-select+.nice-select {
  display: none !important;
}

.premium-mobile-select:focus {
  box-shadow: 0 0 0 4px rgba(37, 59, 112, 0.15), 0 8px 25px rgba(0, 0, 0, 0.04) !important;
  border-color: var(--theme-color1) !important;
}

/* Custom Slick Dots to match mobile-carousel-wrapper */
.slick-dots {
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  list-style: none;
  padding: 0;
  bottom: -35px;
}

.slick-dots li {
  margin: 0;
  width: auto;
  height: auto;
}

.slick-dots li button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  padding: 0;
  text-indent: -9999px;
  border: none;
}

.slick-dots li button:before {
  display: none !important;
}

.slick-dots li.slick-active button {
  background-color: var(--theme-color2) !important;
  width: 25px !important;
  border-radius: 5px !important;
}

/* Mobile Login Icon */
.mobile-login-icon {
  position: relative;
  display: inline-block;
  font-size: 40px;
  color: var(--theme-color1);
  cursor: pointer;
  line-height: 1;
  top: 0;
  margin-top: 5px;
}

@media (max-width: 991.98px) {
  .mobile-login-icon {
    display: inline-block;
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
  }
}



.sticky-header .mobile-login-icon {
  margin-left: 100px;
}

.sticky-header .nav-outer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Make Read More buttons text white */
.btn-one-rounded {
  color: #ffffff !important;
}
