/* ===================================
   SWIPER SLIDER ZOOM EFFECT (Flickity-style)
   =================================== */

/* Container cho slider */
.bg-gray2 {
  background-color: #f5f5f5;
}

.swiper-main-slider {
  position: relative;
  width: 100%;
  overflow: visible !important;
  
}

.swiper-main-slider .swiper-slide {
  position: relative;
  overflow: hidden;
}

/* Slide item layout */
.swiper-main-slider .slide-item {
  position: relative;
  display: flex;
  align-items: center;
  /* min-height: 600px; */
}

/* Slide content */
.swiper-main-slider .slide-content {
  position: absolute;
  z-index: 3;
  width: 100%;
  top: 10%;
  padding: 40px 0;
}

/* Slide title and subtitle - Hidden by default */
.swiper-main-slider .slide-title,
.swiper-main-slider .slide-subtitle {
  opacity: 0;
  transform: translateY(30px);
  transition: none;
}

/* FadeInUp Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply animation when slide is active */
.swiper-main-slider .swiper-slide-active .slide-title {
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.swiper-main-slider .swiper-slide-active .slide-subtitle {
  animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

/* Slide title styling */
.swiper-main-slider .slide-title {
  margin-bottom: 15px;
  font-size: 1.2rem;
  color: #333;
  line-height: 1.6;
}

/* Slide subtitle styling */
.swiper-main-slider .slide-subtitle {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 15px;
  line-height: 1.2;
  font-family: var(--fontTitle);
}

/* Slide image wrapper */
.swiper-main-slider .slide-image {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

/* Base image styling */
.swiper-main-slider .slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1);
  transition: none;
}

/* Zoom In Animation - Flickity Style */
.swiper-main-slider .slide-image img.zoom-in-animation {
  animation: zoomInFlickity 6s ease-out forwards;
}

@keyframes zoomInFlickity {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.15);
  }
}

/* Pagination styling */
.swiper-main-slider .swiper-pagination {
  bottom: 180px;
  z-index: 10;
}

.swiper-main-slider .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  display: none !important;
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
  transition: all 0.3s ease;
}

.swiper-main-slider .swiper-pagination-bullet-active {
  background: #fff;
  width: 30px;
  border-radius: 6px;
}

/* ===================================
   SERVICES SECTION (Bottom of Slider)
   =================================== */

.slide-services {
  position: absolute;
  bottom: 10%;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 0 20px 30px;
}

.slide-services .container {
  /* max-width: 1200px; */
}

.services-grid {
  max-width: 505px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  position: relative;
  background: #ffffffcc;
  overflow: hidden;
}

.service-item {
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
}

.service-item:hover {
  transform: translateY(-5px);
}

.service-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.service-icon img {
  width: 46px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(46%) sepia(89%) saturate(1500%) hue-rotate(360deg);
  /* transition: all 0.3s ease; */
  filter: brightness(100) invert(1);
}

.service-item:hover .service-icon img {
  filter: none;
}

.service-item:hover .service-name {
  color: var(--primary);
}

.service-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: #333;
  line-height: 1;
  text-decoration: none;
}

/* Optional: Fade overlay effect */
.swiper-main-slider .slide-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.3) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Performance optimization */
.swiper-main-slider .slide-image img {
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 1024px) {
  .services-grid {
    padding: 35px 25px;
  }

  
  .services-grid::before {
    left: 25px;
    right: 25px;
  }

  .service-icon {
    width: 60px;
    height: 60px;
  }

  .service-name {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .swiper-main-slider .slide-content {
    padding: 0;
    top: auto;
    bottom: 0;
  }

  .swiper-main-slider .slide-item {
    /* min-height: 500px; */
  }

  .swiper-main-slider .slide-title {
    font-size: 1.4rem;
    margin: 0;
  }

  .swiper-main-slider .slide-subtitle {
    font-size: 1.5rem;
  }

  /* GiÃƒÆ’Ã‚Â¡Ãƒâ€šÃ‚ÂºÃƒâ€šÃ‚Â£m zoom trÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Âªn mobile */
  @keyframes zoomInFlickity {
    0% {
      transform: scale(1);
    }

    100% {
      transform: scale(1.08);
    }
  }

  .swiper-main-slider .swiper-pagination {
    bottom: 160px;
  }

  .swiper-main-slider .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
  }

  .swiper-main-slider .swiper-pagination-bullet-active {
    width: 20px;
  }

  .services-grid {
    border-radius: 15px;
  }

  
  .services-grid::before {
    display: none;
  }

  .slide-services {
    padding: 15px;
    position: static;
    background: #f8f8f8;
  }

  .service-icon {
    width: 55px;
    height: 55px;
  }

  .service-icon img {
    /* width: 30px; */
    /* height: 30px; */
  }

  .service-name {
    font-size: 0.85rem;
  }
}

/* Daily List Dropdown */
.daily-list {
  border-top: 1px solid #eee;
}

.daily-item {
  border-bottom: 1px solid #eee;
}

.daily-header {
  padding: 15px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.3s;
  padding-left: 5px;
}

.daily-header:hover .daily-title {
  opacity: 0.8;
}

.daily-icon {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 6px solid var(--primary);
  margin-right: 15px;
  transition: all 0.3s;
}

.daily-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--primary);
  transition: color 0.3s;
}

/* Active State */
.daily-item.active .daily-icon {
  transform: rotate(-90deg);
  /* Points Up */
  border-left-color: #666;
}

.daily-item.active .daily-title {
  color: #666;
}

.daily-content {
  display: none;
  padding: 0 0 15px 21px;
  color: #666;
}

.daily-item.active .daily-content {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

.daily-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.daily-content li {
  margin-bottom: 5px;
  position: relative;
  padding-left: 15px;
}

.daily-content li:before {
  content: "-";
  position: absolute;
  left: 0;
  font-size: 1.2em;
  line-height: 1;
  color: #999;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== COLOR INSPIRATION SECTION ===== */
.inner-page-detail #block-color {
  background: transparent;
  padding-top: 20px;
}

#block-color {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  /* margin-top: -168px; */
}

.color-section-header .home-title {
  color: var(--primary);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.color-section-header .home-description {
  color: #6c757d;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* RGB/CMYK Tabs */
.color-mode-tabs {
  display: flex;
  gap: 0.5rem;
}

.color-mode-tab {
  padding: 0.5rem 1.5rem;
  border: 2px solid #dee2e6;
  background: #fff;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.3s ease;
}

.color-mode-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.colors-wrap {
  background: #fff;
  padding: 30px;
  padding-top: 40px;
  box-shadow: var(--bs-box-shadow) !important;
  position: relative;
  z-index: 2;
  border-radius: 0px 100px 0px 0px;
}

.color-mode-tab.active {
  background: #ff5722;
  border-color: #ff5722;
  color: #fff;
}

/* Color Palette Grid */
.color-palette-grid {
  width: 100%;
}

.color-palette-scroll-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
}

/* Custom Scrollbar for Color Palette */
.color-palette-scroll-wrapper::-webkit-scrollbar {
  height: 8px;
}

.color-palette-scroll-wrapper::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.color-palette-scroll-wrapper::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #ff5722 0%, #ff7043 100%);
  border-radius: 10px;
  transition: background 0.3s ease;
}

.color-palette-scroll-wrapper::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #f4511e 0%, #ff5722 100%);
}

/* Firefox Custom Scrollbar */
.color-palette-scroll-wrapper {
  scrollbar-width: thin;
  scrollbar-color: #ff5722 #f1f1f1;
}

.color-row {
      display: grid;
      grid-template-rows: repeat(10, 55px);
      grid-auto-flow: column;
      grid-auto-columns: 55px;
      gap: 4px;
      padding-bottom: 6px;
      overflow-x: auto;
      overflow-y: hidden;
}

.color-swatch.active:after {
  background: url(../icon/water.svg) no-repeat center;
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: 40px;
}

.color-swatch.active {
  border-color: var(--primary);
  z-index: 10;
}

.color-swatch {
    width: 55px;
    height: 55px;
    cursor: pointer;
    border: 1px solid #eee;
    border-radius: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    position: relative;
    overflow: hidden;

  
  /* flex: 1;
  aspect-ratio: 1;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  width: 61px;
  position: relative; */
}

.color-swatch:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10;
  position: relative;
}

/* House Preview Container */
.house-preview-container {
  background: transparent;
  border-radius: 0;
  padding: 0;
  z-index: 1;
}

.house-image-wrapper .house-image-wrap svg {}

.house-image-wrapper .house-image-wrap {
  display: none;
  position: relative;
}

.house-image-wrapper .house-image-wrap svg {
  width: 100%;
  height: 100%;
}

.house-image-wrapper .house-image-wrap svg path {
  cursor: pointer;
}

.house-image-wrap[data-type="ngoai-that"]>div {
  z-index: 1;
  left: 0;
  width: 100%;
  height: 100%;
  top: 0;
  /* opacity: 0.6; */
}

.house-image-wrap[data-type="noi-that"]>div {
  z-index: 1;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.house-image-wrapper .house-image-wrap.active {
  display: block;
}

.house-image-wrapper {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  padding-bottom: 50px;
}

.house-image {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.5s ease;
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.house-image.active {
  display: block;
}

/* Color Code Badge - Bottom Left */
.color-code-badge {
  bottom: 0;
  left: 0;
  background: #5b7a9d;
  padding: 0.55rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 10;
  flex: 1;
}

.color-code-text {
  color: #fff;
  font-size: 1.25rem;
  letter-spacing: 1px;
}

.color-download-btn {
  background: transparent;
  border: none;
  width: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #fff;
  position: relative;
}

.color-download-btn:hover:not(:disabled) {
  /* background: rgba(255, 255, 255, 0.3); */
}

.color-download-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.color-download-btn.loading i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Downloading overlay */
.house-image-wrapper.downloading::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.house-image-wrapper.downloading::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  margin-left: -25px;
  margin-top: -25px;
  border: 4px solid rgba(91, 122, 157, 0.2);
  border-top-color: #5b7a9d;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  z-index: 101;
}

.footer-house-image-wrap {
  bottom: 0;
  left: 0;
  width: 100%;
  position: absolute;
}

/* House Type Tabs Overlay - Bottom Right */
.house-type-tabs-overlay {
  bottom: 0;
  right: 0;
  display: flex;
  z-index: 10;
  align-items: end;
  width: 45%;
}

.house-type-tabs-overlay .house-type-tab {
  padding: 0.95rem 2.5rem;
  border: none;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #666;
  font-size: 1rem;
  border-radius: 0;
  position: relative;
  flex: 1;
}

.house-type-tabs-overlay .house-type-tab:first-child {
  border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.house-type-tabs-overlay .house-type-tab:hover {
  background: #ff6b47;
  color: #fff;
}

.house-type-tabs-overlay .house-type-tab.active {
  background: #ff5733;
  color: #fff;
  padding: 1.95rem 2.5rem;
  z-index: 5;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

.house-type-tabs-overlay .house-type-tab .tab-text {
  font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .color-section-header .home-title {
    font-size: 1.75rem;
  }

  .color-palette-grid {
    max-width: 100%;
  }

  .house-preview-container {
    margin-top: 2rem;
  }

  .color-code-badge {
    padding: 0.75rem 1.25rem;
  }

  .color-code-text {
    font-size: 1rem;
  }

  .color-download-btn {
    width: 32px;
    height: 32px;
  }

  .house-type-tabs-overlay .house-type-tab {
    padding: 1rem 2rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 767.98px) {
  .color-section-header .home-title {
    font-size: 1.5rem;
    text-align: center;
  }

  .color-section-header .home-description {
    text-align: center;
    font-size: 0.9rem;
  }

  .color-mode-tabs {
    justify-content: center;
  }

  .color-mode-tab {
    padding: 0.4rem 1.2rem;
    font-size: 0.85rem;
  }
.color-row{
    grid-auto-columns: 35px;
    grid-template-rows: repeat(5, 35px);
}
  .color-swatch {
    border-radius: 3px;
    width: 35px;
    height: 35px;
  }

  .color-section-header .home-title {
    padding-right: 30px;
  }

  .colors-wrap {
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 15px;
    padding-top: 15px;
  }

  .house-image-wrapper {
    padding-bottom: 40px;
  }

  .color-code-badge {
    padding: 0.3rem 0.4rem;
    width: 60% !important;
    flex: 0 0 40%;
  }

  .color-code-text {
    font-size: 0.9rem;
  }

  .color-download-btn {
    /* width: 28px; */
    /* height: 28px; */
    /* font-size: 0.8rem; */
  }

  .house-type-tabs-overlay .house-type-tab.active {
    padding: 1rem 0.6rem;
  }

  .house-type-tabs-overlay .house-type-tab {
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
  }

  .house-type-tab .tab-text {
    font-size: 0.85rem !important;
  }
}

@media (max-width: 575.98px) {
  .house-type-tabs {
    gap: 0.5rem;
  }

  .house-type-tab {
    flex-direction: column;
    padding: 0.75rem 0.5rem;
    gap: 0.25rem;
  }

  .house-type-tab .tab-icon {
    font-size: 1.5rem;
  }

  .color-code-badge {
    /* padding: 0.5rem 0.75rem; */
  }

  .color-code-text {
    font-size: 0.75rem;
  }

  .color-download-btn {
    /* width: 24px; */
    /* height: 24px; */
    /* font-size: 0.7rem; */
  }

  .house-type-tabs-overlay {
    width: 100%;
  }

  .house-type-tabs-overlay .house-type-tab {
    flex: 1;
    padding: 0.6rem 1rem;
    font-size: 0.75rem;
  }
}

/* Project Card */
.project-card {
  padding: 10px;
}

/* Gallery Stack Container */
.project-gallery {
  position: relative;
  margin-bottom: 0;
  perspective: 1000px;
  max-width: 290px;
  margin: auto;
  margin-bottom: 35px;
}

.gallery-stack {
  position: relative;
  width: 100%;
  padding-bottom: 110%;
  /* Slightly taller to accommodate spread */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin: auto;
}

/* Individual Gallery Items - Polaroid Style */
.gallery-item {
  position: absolute;
  width: 92%;
  height: 93%;
  left: 60%;
  top: 45%;
  transform: translate(-50%, -50%);
  transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  transform-origin: center bottom;
}

.gallery-item-inner {
  /* width: 270px; */
  height: 100%;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08), 0 6px 20px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: all 0.4s ease;
}

.gallery-item-inner img {
  /* max-width: 270px !important; */
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.4s ease;
}

/* Default stacked positions - 4 cards layout */
/* Card 0 - Far left, behind */
.gallery-item-0 {
  z-index: 12;
  transform: translate(-62%, -46%) rotate(6deg);
}

/* Card 1 - Left center, front layer */
.gallery-item-1 {
  z-index: 3;
  transform: translate(-62%, -46%) rotate(-7deg);
}

/* Card 2 - Right center, front layer */
.gallery-item-2 {
  z-index: 2;
  transform: translate(-62%, -55%) rotate(-3deg);
}

/* Card 3 - Far right, behind */
.gallery-item-3 {
  z-index: 1;
  transform: translate(-69%, -52%) rotate(6deg);
}

/* Hover Effect - 4 cards fan out */
.project-card:hover .gallery-item-0 {
  transform: translate(-64%, -46%) rotate(12deg);
}

.project-card:hover .gallery-item-1 {
  transform: translate(-62%, -46%) rotate(-5deg);
}

.project-card:hover .gallery-item-2 {
  transform: translate(-67%, -54%) rotate(22deg);
}

.project-card:hover .gallery-item-3 {
  transform: translate(-61%, -49%) rotate(-10deg);
}

/* Enhanced shadow on hover */
.project-card:hover .gallery-item-inner {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* Single image fallback */
.gallery-stack:has(.gallery-item-0):not(:has(.gallery-item-1)) .gallery-item-0 {
  transform: translate(-50%, -50%) rotate(0deg);
  z-index: 12;
}

.project-card:hover .gallery-stack:has(.gallery-item-0):not(:has(.gallery-item-1)) .gallery-item-0 {
  transform: translate(-50%, -50%) rotate(0deg) scale(1.03);
}

/* Two images layout */
.gallery-stack:has(.gallery-item-1):not(:has(.gallery-item-2)) .gallery-item-0 {
  transform: translate(-55%, -50%) rotate(-6deg);
  z-index: 10;
}

.gallery-stack:has(.gallery-item-1):not(:has(.gallery-item-2)) .gallery-item-1 {
  transform: translate(-45%, -50%) rotate(6deg);
  z-index: 10;
}

.project-card:hover .gallery-stack:has(.gallery-item-1):not(:has(.gallery-item-2)) .gallery-item-0 {
  transform: translate(-70%, -48%) rotate(-12deg);
}

.project-card:hover .gallery-stack:has(.gallery-item-1):not(:has(.gallery-item-2)) .gallery-item-1 {
  transform: translate(-30%, -48%) rotate(12deg);
}

/* Three images layout */
.gallery-stack:has(.gallery-item-2):not(:has(.gallery-item-3)) .gallery-item-0 {
  transform: translate(-60%, -48%) rotate(-8deg);
  z-index: 10;
}

.gallery-stack:has(.gallery-item-2):not(:has(.gallery-item-3)) .gallery-item-1 {
  transform: translate(-50%, -50%) rotate(0deg);
  z-index: 12;
}

.gallery-stack:has(.gallery-item-2):not(:has(.gallery-item-3)) .gallery-item-2 {
  transform: translate(-40%, -48%) rotate(8deg);
  z-index: 10;
}

.project-card:hover .gallery-stack:has(.gallery-item-2):not(:has(.gallery-item-3)) .gallery-item-0 {
  transform: translate(-78%, -45%) rotate(-15deg);
}

.project-card:hover .gallery-stack:has(.gallery-item-2):not(:has(.gallery-item-3)) .gallery-item-1 {
  transform: translate(-50%, -53%) rotate(0deg) scale(1.02);
}

.project-card:hover .gallery-stack:has(.gallery-item-2):not(:has(.gallery-item-3)) .gallery-item-2 {
  transform: translate(-22%, -45%) rotate(15deg);
}

/* Project Info */
.project-info {
  text-align: center;
  padding: 0 1rem;
}

.project-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.project-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.project-title a:hover {
  color: var(--primary);
}

.project-description {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Responsive Design */
@media (max-width: 1199.98px) {
  .gallery-item {
    width: 88%;
    height: 88%;
  }

  .gallery-item-inner {
    padding: 8px 8px 30px 8px;
  }
}

@media (max-width: 991.98px) {
  .project-header {
    flex-direction: column;
    gap: 1rem;
  }

  .project-navigation {
    justify-content: flex-start;
  }

  .gallery-item {
    width: 85%;
    height: 85%;
  }

  .project-title {
    font-size: 1rem;
  }

  .project-description {
    font-size: 0.85rem;
  }
}

@media (max-width: 767.98px) {
  .project-swiper {
    padding: 15px 0 30px;
  }

  .gallery-item {
    width: 82%;
    height: 82%;
  }

  .gallery-item-inner {
    padding: 8px 8px 25px 8px;
    border-radius: 6px;
  }

  .project-info {
    padding: 0 0.5rem;
  }

  .project-title {
    font-size: 0.95rem;
  }

  .project-description {
    font-size: 0.8rem;
    -webkit-line-clamp: 2;
  }

  /* Reduce rotation on mobile for better UX */
  .project-card:hover .gallery-item-0 {
    transform: translate(-75%, -50%) rotate(-8deg);
  }

  .project-card:hover .gallery-item-2 {
    transform: translate(-25%, -50%) rotate(8deg);
  }
}

@media (max-width: 575.98px) {
  .project-gallery {
    margin-bottom: 1rem;
  }

  .gallery-item {
    width: 80%;
    height: 80%;
  }

  .gallery-item-inner {
    padding: 6px 6px 20px 6px;
  }

  .project-title {
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
  }

  .project-description {
    font-size: 0.75rem;
  }

  .project-nav-btn {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
}

/* Custom Pagination BS5.3 */
.pagination {
  justify-content: center;
  gap: 8px;
  margin-top: 2rem;
}

.pagination .page-item .page-link {
  border: none;
  border-radius: 8px;
  min-width: 45px;
  height: 45px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary, #8b0000);
  background-color: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
  border-radius: 8px;
}

.pagination .page-item .page-link:hover,
.pagination .page-item .page-link:focus {
  background-color: var(--primary, #8b0000);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.pagination .page-item.active .page-link {
  background-color: var(--primary, #8b0000);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.pagination .page-item.disabled .page-link {
  background-color: #f1f1f1;
  color: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* Page Banner Overlay */
.page-banner-overlay {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-banner-overlay .banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.page-banner-overlay .banner-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  /* Dark overlay */
}

.page-banner-overlay .banner-content {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  color: #fff;
}

.page-banner-overlay .banner-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  font-family: "Playfair Display";
}

.page-banner-overlay .banner-breadcrumb {
  display: flex;
  justify-content: center;
}

.page-banner-overlay .banner-breadcrumb .breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
}

.page-banner-overlay .banner-breadcrumb .breadcrumb-item {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
}

.page-banner-overlay .banner-breadcrumb .breadcrumb-item+.breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.6);
}

.page-banner-overlay .banner-breadcrumb .breadcrumb-item a {
  color: #fff;
  text-decoration: none;
}

.page-banner-overlay .banner-breadcrumb .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

/* Daily Info Styles */
.daily-info-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

.daily-info-row i {
  width: 25px;
  color: var(--primary, #8b0000);
  margin-top: 4px;
  flex-shrink: 0;
}

.daily-info-row span {
  flex: 1;
}

.daily-header {
  cursor: pointer;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  font-weight: 600;
  color: #333;
}

.daily-header:hover {
  color: var(--primary, #8b0000);
}

.daily-icon {
  margin-right: 10px;
  /* Add icon styles if needed, e.g., a plus/minus icon */
}

.daily-content {
  padding: 10px 0 10px 35px;
  display: none;
  /* Hidden by default if accordion behavior is desired, or remove if always visible */
}

.daily-item.active .daily-content {
  display: block;
}

/* Full Screen Search Overlay */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: none;
  /* Hidden by default */
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.search-overlay.active {
  display: flex;
  opacity: 1;
}

.search-overlay .close-search {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.search-overlay .close-search:hover {
  transform: rotate(90deg);
  color: var(--primary, #8b0000);
}

.search-form-overlay {
  position: relative;
  width: 80%;
  max-width: 800px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
}

.search-form-overlay input {
  width: 100%;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #fff;
  padding: 15px 50px 15px 0;
  outline: none;
  font-weight: 300;
}

.search-form-overlay input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-form-overlay button {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.search-form-overlay button:hover {
  color: var(--primary, #8b0000);
}

@media (max-width: 768px) {
  .left-color {
    width: 100% !important;
  }

  #block-color {
    margin: 0 !important;
    padding-top: 20px;
  }

  .adjust-color-left-panel {
    margin-bottom: 0 !important;
  }

  .search-form-overlay input {
    font-size: 1.5rem;
  }

  .search-overlay .close-search {
    top: 20px;
    right: 20px;
  }
}

@media (max-width: 768px) {
  .page-banner-overlay {
    height: 250px;
  }

  .page-banner-overlay .banner-title {
    font-size: 1.8rem;
  }
}