/* ========================================
   Category Slider Section (Products)
   ======================================== */
.category-slider {
  position: relative;
  width: 100%;
  height: 45vh;
  min-height: 320px;
  max-height: 450px;
  overflow: hidden;
}

/* Compact slider for collections and auth pages */
.category-slider-compact {
  height: 28vh !important;
  min-height: 200px !important;
  max-height: 280px !important;
}

/* No zoom animation for compact sliders */
.category-slider-compact .swiper-slide-active .slide-bg {
  animation: none !important;
  transform: scale(1) !important;
}

.category-slider .category-swiper {
  width: 100%;
  height: 100%;
}

.category-slider .swiper-slide {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-slider .slide-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}

.category-slider .slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 6s ease;
}

.category-slider .swiper-slide-active .slide-bg {
  animation: categoryKenBurns 6s ease-out forwards;
}

@keyframes categoryKenBurns {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.05);
  }
}

/* Category Slider Navigation */
.category-slider .swiper-button-next,
.category-slider .swiper-button-prev {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  z-index: 10;
}

.category-slider .swiper-button-next:hover,
.category-slider .swiper-button-prev:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  transform: scale(1.08);
}

.category-slider .swiper-button-next::after,
.category-slider .swiper-button-prev::after {
  font-size: 18px;
  color: var(--contrast-color);
  font-weight: 600;
}

/* Category Slider Pagination */
.category-slider .swiper-pagination {
  bottom: 20px !important;
  z-index: 10;
}

.category-slider .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.category-slider .swiper-pagination-bullet-active {
  background: var(--accent-color);
  border-color: var(--contrast-color);
  transform: scale(1.15);
}

/* Responsive Category Slider */
@media (max-width: 768px) {
  .category-slider {
    height: 35vh;
    min-height: 250px;
  }
  
  /* Compact slider on mobile */
  .category-slider-compact {
    height: 25vh !important;
    min-height: 180px !important;
    max-height: 240px !important;
  }
  
  .category-slider .swiper-button-next,
  .category-slider .swiper-button-prev {
    width: 36px;
    height: 36px;
  }
  
  .category-slider .swiper-button-next::after,
  .category-slider .swiper-button-prev::after {
    font-size: 14px;
  }
  
  .category-slider .swiper-pagination {
    bottom: 15px !important;
  }
  
  .category-slider .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
  }
}

/* ========================================
   Hero Slider Section
   ======================================== */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-slider .hero-swiper {
  width: 100%;
  height: 100%;
}

.hero-slider .swiper-slide {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slider .slide-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}

.hero-slider .slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 8s ease;
}

.hero-slider .swiper-slide-active .slide-bg {
  animation: kenBurns 8s ease-out forwards;
}

@keyframes kenBurns {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

/* Slider Navigation */
.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  z-index: 10;
}

.hero-slider .swiper-button-next:hover,
.hero-slider .swiper-button-prev:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  transform: scale(1.1);
}

.hero-slider .swiper-button-next::after,
.hero-slider .swiper-button-prev::after {
  font-size: 24px;
  color: var(--contrast-color);
  font-weight: 700;
}

/* Slider Pagination */
.hero-slider .swiper-pagination {
  bottom: 40px !important;
  z-index: 10;
}

.hero-slider .swiper-pagination-bullet {
  width: 14px;
  height: 14px;
  background: rgba(255, 255, 255, 0.4);
  opacity: 1;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.hero-slider .swiper-pagination-bullet-active {
  background: var(--accent-color);
  border-color: var(--contrast-color);
  transform: scale(1.3);
}

/* Responsive Hero Slider */
@media (max-width: 768px) {
  .hero-slider {
    height: 70vh;
    min-height: 500px;
  }
  
  .hero-slider .swiper-button-next,
  .hero-slider .swiper-button-prev {
    width: 45px;
    height: 45px;
  }
  
  .hero-slider .swiper-button-next::after,
  .hero-slider .swiper-button-prev::after {
    font-size: 18px;
  }
}

/* Page Title Section */
.page-title {
    padding: 160px 0 80px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
  }
  
  .page-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
  }
  
  .page-title .container {
    position: relative;
    z-index: 2;
  }
  
  .page-title h1 {
    color: #fff;
    font-size: 48px;
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: capitalize;
  }
  
  .page-title .breadcrumbs {
    margin-top: 10px;
  }
  
  .page-title .breadcrumbs ol {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
    flex-wrap: wrap;
  }
  
  .page-title .breadcrumbs ol li {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    text-transform: capitalize;
  }
  
  .page-title .breadcrumbs ol li a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
  }
  
  .page-title .breadcrumbs ol li a:hover {
    text-decoration: underline;
    color: rgba(255,255,255,1);
  }
  
  .page-title .breadcrumbs ol li + li::before {
    content: '/';
    margin-right: 10px;
    color: rgba(255,255,255,0.5);
  }

/* Content Page Section */
.content-page {
  padding: 50px 0;
}

.content-page-title {
  font-size: 36px;
  font-weight: 500;
  margin-bottom: 30px;
  margin-top: 0;
  color: var(--heading-color);
  line-height: 1.3;
  letter-spacing: -0.5px;
}

/* Content Video */
.content-video {
  margin-bottom: 50px;
}

.content-video .video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.content-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Hero Image */
.content-hero {
  margin-bottom: 40px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-color);
  transition: all 0.3s ease;
  position: relative;
}

.content-hero:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.content-hero a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* Blur Background Layer */
.content-hero a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--hero-bg-image);
  background-size: cover;
  background-position: center;
  filter: blur(20px);
  transform: scale(1.1);
  opacity: 0.6;
  z-index: 1;
}

.content-hero img {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 350px;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 2;
}

.content-hero:hover img {
  transform: scale(1.02);
}

/* Content Body */
.content-body {
  margin-bottom: 60px;
  color: var(--default-color);
}

/* Force dynamic content typography to match site body text */
.content-body,
.content-body div,
.content-body p,
.content-body li,
.content-body td,
.content-body th,
.content-body blockquote,
.content-body figure figcaption {
  font-family: var(--default-font) !important;
  font-size: 16px !important;
  line-height: 1.8 !important;
}

.content-body h1,
.content-body h2,
.content-body h3,
.content-body h4,
.content-body h5,
.content-body h6 {
  color: var(--heading-color);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.content-body h1 {
  font-size: 36px;
}

.content-body h2 {
  font-size: 30px;
}

.content-body h3 {
  font-size: 24px;
}

.content-body p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.content-body ul,
.content-body ol {
  margin-bottom: 20px;
  padding-left: 30px;
}

.content-body li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.content-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
}

.content-body a {
  color: var(--accent-color);
  text-decoration: underline;
}

.content-body a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 20%);
}

/* Content Gallery */
.content-gallery {
  margin-top: 60px;
}

.content-gallery .gallery-title {
  margin-bottom: 30px;
}

.content-gallery .gallery-title h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--heading-color);
  padding-bottom: 15px;
  border-bottom: 3px solid var(--accent-color);
  display: inline-block;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4/3;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.gallery-item a {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.15);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.7) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  font-size: 48px;
  color: var(--contrast-color);
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay i {
  transform: scale(1);
}

/* Light Theme Adjustments */
[data-theme="light"] .content-hero {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .content-hero:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .gallery-item {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .gallery-item:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}
  
  /* About Content */
  .about-content .content-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--default-color);
  }
  
  .about-content .content-text h2,
  .about-content .content-text h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--heading-color);
    font-weight: 600;
  }
  
  .about-content .content-text h2 {
    font-size: 32px;
  }
  
  .about-content .content-text h3 {
    font-size: 24px;
  }
  
  .about-content .content-text p {
    margin-bottom: 15px;
  }
  
  .about-content .content-text ul,
  .about-content .content-text ol {
    margin-bottom: 20px;
    padding-left: 20px;
  }
  
  .about-content .content-text li {
    margin-bottom: 8px;
  }
  
  .about-hero-image {
    overflow: hidden;
    border-radius: 12px;
  }
  
  .about-hero-image img {
    transition: transform 0.3s ease;
  }
  
  .about-hero-image:hover img {
    transform: scale(1.05);
  }
  
  /* Feature Items */
  .feature-item {
    padding: 30px;
    background: var(--surface-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
    border: 2px solid transparent;
  }
  
  .feature-item:hover {
    background: var(--background-color);
    border-color: color-mix(in srgb, var(--accent-color), transparent 70%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
  }
  
  .feature-item i {
    font-size: 48px;
    color: var(--accent-color);
    margin-bottom: 20px;
    display: block;
  }
  
  .feature-item h5 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--heading-color);
  }
  
  .feature-item p {
    font-size: 14px;
    color: var(--default-color);
    line-height: 1.6;
    margin: 0;
  }
  
  /* Light Theme Adjustments for About/Features */
  [data-theme="light"] .feature-item:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  }
  
/* Portfolio List Container */
.portfolio-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 100%;
  margin: 0 auto;
}

/* Portfolio Entry (List Style) */
.portfolio-entry {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 25px;
  background: var(--surface-color);
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.portfolio-entry:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 95%);
  border-color: var(--accent-color);
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.portfolio-entry .entry-image {
  display: none;
}

/* Video Badge - YouTube icon with YouTube colors */
.video-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 50px;
  height: 50px;
  background: #FF0000; /* YouTube red */
  color: #FFFFFF; /* White icon */
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
  animation: videoPulse 2s ease-in-out infinite;
}

.video-badge i {
  font-size: 28px;
}

@keyframes videoPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Entry Overlay - Hidden in list view */
.portfolio-entry .entry-overlay {
  display: none;
}

/* Entry Icon (Video/Text Badge) */
.portfolio-entry .entry-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  border-radius: 12px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.portfolio-entry .entry-icon i {
  font-size: 24px;
  color: var(--accent-color);
  transition: all 0.3s ease;
}

.portfolio-entry:hover .entry-icon {
  background: var(--accent-color);
}

.portfolio-entry:hover .entry-icon i {
  color: var(--contrast-color);
}

/* Entry Title */
.portfolio-entry .entry-title {
  color: var(--default-color);
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  line-height: 1.5;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Entry Meta (Date) */
.portfolio-entry .entry-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  font-size: 14px;
  font-weight: 500;
  flex-shrink: 0;
  text-transform: lowercase;
}

.portfolio-entry .entry-meta i {
  font-size: 16px;
}

/* Hidden Elements */
.portfolio-entry .entry-description,
.portfolio-entry .entry-links,
.portfolio-entry .read-more-btn {
  display: none;
}

/* View All Button */
.portfolio-view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 40px;
  background: var(--accent-color);
  color: var(--contrast-color);
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px color-mix(in srgb, var(--accent-color), transparent 50%);
}

.portfolio-view-all-btn:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 15%);
  color: var(--contrast-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px color-mix(in srgb, var(--accent-color), transparent 40%);
}

.portfolio-view-all-btn i:last-child {
  transition: transform 0.3s ease;
}

.portfolio-view-all-btn:hover i:last-child {
  transform: translateX(5px);
}
  
/* Products Carousel Wrapper */
.products-carousel-wrapper {
  margin-top: 50px;
}

.products-carousel-wrapper .swiper {
  padding-bottom: 3.5rem;
}

/* Product Cards */
.product-card {
  position: relative;
  height: 450px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-card-image {
  position: relative;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.product-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%);
  transition: all 0.4s ease;
}

.product-card:hover .product-card-overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
}

.product-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  color: var(--contrast-color);
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  transition: all 0.4s ease;
}

.product-card:hover .product-card-content {
  padding-bottom: 50px;
}

.product-icon {
  width: 70px;
  height: 70px;
  background: color-mix(in srgb, var(--accent-color), transparent 10%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.product-icon i {
  font-size: 32px;
  color: var(--accent-color);
  transition: all 0.3s ease;
}

.product-card:hover .product-icon {
  opacity: 1;
  transform: translateY(0) scale(1.1);
  background: var(--accent-color);
}

.product-card:hover .product-icon i {
  color: var(--contrast-color);
}

.product-card-content h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 0;
  color: var(--contrast-color);
  letter-spacing: 0.5px;
  transition: all 0.4s ease;
  text-transform: capitalize;
}

.product-card:hover .product-card-content h3 {
  margin-bottom: 20px;
  transform: translateY(-10px);
}

.product-card-content p {
  display: none;
}

.product-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--accent-color);
  color: var(--contrast-color);
  border: 2px solid var(--accent-color);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.4s ease;
  margin: 0 auto;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent-color), transparent 60%);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.product-card:hover .product-btn {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.product-btn:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 15%);
  border-color: color-mix(in srgb, var(--accent-color), transparent 15%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent-color), transparent 50%);
  color: var(--contrast-color);
}

.product-btn i {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.product-btn:hover i {
  transform: translateX(3px);
}

/* Swiper Navigation */
.products-carousel .swiper-button-next,
.products-carousel .swiper-button-prev {
  width: 50px;
  height: 50px;
  background: var(--surface-color);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.products-carousel .swiper-button-next:after,
.products-carousel .swiper-button-prev:after {
  font-size: 20px;
  color: var(--accent-color);
  font-weight: bold;
}

.products-carousel .swiper-button-next:hover,
.products-carousel .swiper-button-prev:hover {
  background: var(--accent-color);
}

.products-carousel .swiper-button-next:hover:after,
.products-carousel .swiper-button-prev:hover:after {
  color: var(--contrast-color);
}

.products-carousel .swiper-pagination {
  position: relative !important;
  bottom: 0 !important;
  margin-top: 1rem !important;
  z-index: 1 !important;
}

.products-carousel .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: color-mix(in srgb, var(--accent-color), transparent 60%);
  opacity: 1;
  transition: all 0.3s ease;
}

.products-carousel .swiper-pagination-bullet-active {
  background: var(--accent-color);
  width: 30px;
  border-radius: 6px;
}

/* Light Theme Adjustments */
[data-theme="light"] .product-card-overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.4) 100%);
}

[data-theme="light"] .product-card:hover .product-card-overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%);
}

[data-theme="light"] .product-icon {
  background: color-mix(in srgb, var(--accent-color), transparent 15%);
}

/* Responsive */
@media (max-width: 768px) {
  .page-title {
    padding: 120px 0 60px 0;
  }
  
  .page-title h1 {
    font-size: 32px;
  }
  
  .content-body h1 {
    font-size: 28px;
  }
  
  .content-body h2 {
    font-size: 24px;
  }
  
  .content-body h3 {
    font-size: 20px;
  }
  
  .content-body p {
    font-size: 15px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
  }
  
  .content-gallery .gallery-title h3 {
    font-size: 24px;
  }
  
  .about-content .content-text h2 {
    font-size: 24px;
  }
  
  .about-content .content-text h3 {
    font-size: 20px;
  }
  
  .product-card {
    height: 400px;
  }
  
  .product-card-content {
    padding: 25px 20px;
  }
  
  .product-card:hover .product-card-content {
    padding-bottom: 40px;
  }
  
  .product-card-content h3 {
    font-size: 18px;
  }
  
  .product-card:hover .product-card-content h3 {
    margin-bottom: 15px;
  }
  
  .product-btn {
    padding: 12px 24px;
    font-size: 13px;
  }
  
  .portfolio-list {
    gap: 12px;
  }
  
  .portfolio-entry {
    padding: 15px 18px;
    gap: 15px;
  }
  
  .portfolio-entry .entry-icon {
    width: 45px;
    height: 45px;
  }
  
  .portfolio-entry .entry-icon i {
    font-size: 20px;
  }
  
  .portfolio-entry .entry-title {
    font-size: 14px;
  }
  
  .portfolio-entry .entry-meta {
    font-size: 12px;
  }
  
  .portfolio-entry .entry-meta i {
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-item {
    aspect-ratio: 16/9;
  }
}

/* Contact Section - iletisim.php */
.contact-section {
  padding: 50px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.contact-row {
  margin-bottom: 40px;
}

.contact-card {
  background: var(--surface-color);
  padding: 35px 30px;
  border-radius: 16px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  cursor: default;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.contact-card--click {
  cursor: pointer;
}

.contact-card--click:hover,
.contact-card.is-active {
  border-color: var(--accent-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-subtitle {
  font-size: 20px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid color-mix(in srgb, var(--accent-color), transparent 70%);
}

.contact-text-small {
  font-size: 15px;
  line-height: 1.7;
  color: var(--default-color);
  margin-bottom: 25px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 15px;
  color: var(--default-color);
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-item i {
  font-size: 20px;
  color: var(--accent-color);
  margin-top: 2px;
  flex-shrink: 0;
}

.contact-item a {
  color: var(--accent-color);
  transition: all 0.3s ease;
  text-decoration: none;
}

.contact-item a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 20%);
  text-decoration: underline;
}

.link-plain {
  color: inherit !important;
  text-decoration: none !important;
}

.link-plain:hover {
  color: var(--accent-color) !important;
}

.contact-map {
  width: 100%;
  height: 450px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Contact Form Styles */
.contact-card .form-horizontal {
  width: 100%;
}

.contact-card .form-group {
  margin-bottom: 20px;
}

.contact-card .form-control {
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  border: 2px solid color-mix(in srgb, var(--default-color), transparent 80%);
  border-radius: 10px;
  background: var(--background-color);
  color: var(--default-color);
  transition: all 0.3s ease;
}

.contact-card .form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-color), transparent 90%);
}

.contact-card .form-control::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

.contact-card textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.contact-card .form-check-input {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  cursor: pointer;
  accent-color: var(--accent-color);
}

.contact-card .form-check-label {
  font-size: 14px;
  color: var(--default-color);
  cursor: pointer;
}

.contact-card .form-check-label a {
  color: var(--accent-color);
  font-weight: 600;
}

.contact-card .g-recaptcha {
  margin: 10px 0;
}

.contact-card .mt-10 {
  margin-top: 20px;
}

.contact-card .btn {
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-right: 10px;
}

.contact-card .btn-default {
  background: transparent;
  color: var(--default-color);
  border-color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.contact-card .btn-default:hover {
  background: color-mix(in srgb, var(--default-color), transparent 90%);
  border-color: var(--default-color);
}

.contact-card .btn-success {
  background: var(--accent-color);
  color: var(--contrast-color);
  border-color: var(--accent-color);
  box-shadow: 0 5px 15px color-mix(in srgb, var(--accent-color), transparent 60%);
}

.contact-card .btn-success:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 15%);
  border-color: color-mix(in srgb, var(--accent-color), transparent 15%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent-color), transparent 50%);
}

.contact-card .btn i {
  margin-left: 5px;
}

/* Contact Modal */
.contact-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.contact-modal.active {
  opacity: 1;
  visibility: visible;
}

.contact-modal-dialog {
  background: var(--surface-color);
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: all 0.3s ease;
}

.contact-modal.active .contact-modal-dialog {
  transform: scale(1);
}

.contact-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 30px;
  border-bottom: 2px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.contact-modal-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--heading-color);
  margin: 0;
}

.contact-modal-title i {
  font-size: 24px;
  color: var(--accent-color);
}

.contact-modal-close {
  background: transparent;
  border: none;
  font-size: 32px;
  line-height: 1;
  color: var(--default-color);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.contact-modal-close:hover {
  background: color-mix(in srgb, var(--default-color), transparent 90%);
  color: var(--heading-color);
}

.contact-modal-body {
  padding: 30px;
}

.contact-alert {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 25px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
}

.contact-alert.success {
  background: color-mix(in srgb, #27ae60, transparent 90%);
  border: 2px solid color-mix(in srgb, #27ae60, transparent 70%);
  color: #27ae60;
}

.contact-alert.error {
  background: color-mix(in srgb, #e74c3c, transparent 90%);
  border: 2px solid color-mix(in srgb, #e74c3c, transparent 70%);
  color: #e74c3c;
}

.contact-alert i {
  font-size: 28px;
  flex-shrink: 0;
}

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 35px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.contact-action-btn--primary {
  background: var(--accent-color);
  color: var(--contrast-color);
  border: 2px solid var(--accent-color);
}

.contact-action-btn--primary:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 15%);
  border-color: color-mix(in srgb, var(--accent-color), transparent 15%);
  color: var(--contrast-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent-color), transparent 40%);
}

.contact-action-btn--secondary {
  background: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
}

.contact-action-btn--secondary:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent-color), transparent 40%);
}

/* Light Theme Adjustments for Contact */
[data-theme="light"] .contact-card {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .contact-card--click:hover,
[data-theme="light"] .contact-card.is-active {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .contact-map {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Responsive Contact */
@media (max-width: 768px) {
  .contact-section {
    padding: 60px 0;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .contact-card {
    padding: 30px 25px;
  }
  
  .contact-map {
    height: 350px;
  }
  
  .contact-modal-dialog {
    width: 95%;
  }
  
  .contact-modal-header {
    padding: 20px;
  }
  
  .contact-modal-body {
    padding: 20px;
  }
}

@media (max-width: 576px) {
  .contact-card {
    padding: 25px 20px;
  }
  
  .contact-subtitle {
    font-size: 18px;
  }
  
  .contact-map {
    height: 300px;
  }
  
  .contact-card .btn {
    width: 100%;
    margin-right: 0;
    margin-bottom: 10px;
  }
  
  .contact-card .btn:last-child {
    margin-bottom: 0;
  }
  
  .contact-actions {
    flex-direction: column;
  }
  
  .contact-action-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Products Section - Category Page */
.products-section {
  padding: 50px 0 60px;
}

.products-section .breadcrumbs {
  margin-bottom: 30px;
}

.products-section .products-title {
  font-size: 36px;
  font-weight: 500;
  margin-bottom: 30px;
  color: var(--heading-color);
  line-height: 1.3;
  letter-spacing: -0.5px;
}

.products-hero {
  margin-bottom: 50px;
}

.products-description {
  margin-bottom: 30px;
  color: var(--default-color);
  font-size: 16px;
  line-height: 1.8;
}

.products-hero-image {
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-color);
  position: relative;
}

/* Blur Background Layer for Products */
.products-hero-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--hero-bg-image);
  background-size: cover;
  background-position: center;
  filter: blur(20px);
  transform: scale(1.1);
  opacity: 0.6;
  z-index: 1;
}

.products-hero-image img {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 350px;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 2;
}

.products-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}

.products-gallery a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.products-gallery a:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.products-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.products-gallery a:hover img {
  transform: scale(1.1);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.products-grid .product-card {
  background: var(--surface-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: auto;
}

.products-grid .product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.products-grid .product-card a img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.products-grid .product-card:hover a img {
  transform: scale(1.1);
}

.product-card__body {
  padding: 20px;
}

.product-card__title {
  font-size: 18px;
  font-weight: 400;
  color: var(--heading-color);
  display: block;
  transition: color 0.3s ease;
}

.product-card__title:hover {
  color: var(--accent-color);
}

.products-back {
  text-align: center;
  margin-top: 40px;
}

.products-back__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--accent-color);
  color: var(--contrast-color);
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px color-mix(in srgb, var(--accent-color), transparent 50%);
}

.products-back__link:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 15%);
  color: var(--contrast-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent-color), transparent 40%);
}

.products-back__link i {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.products-back__link:hover i {
  transform: translateX(-5px);
}

/* Product Detail Section */
.product-detail-section {
  padding: 50px 0 60px;
}

.product-detail-section .breadcrumbs {
  margin-bottom: 30px;
}

.product-detail-section .product-title {
  font-size: 36px;
  font-weight: 500;
  margin-bottom: 30px;
  color: var(--heading-color);
  line-height: 1.3;
  letter-spacing: -0.5px;
}

/* Responsive Titles */
@media (max-width: 768px) {
  .products-section {
    padding: 40px 0 50px;
  }
  
  .product-detail-section {
    padding: 40px 0 50px;
  }
  
  .products-section .products-title,
  .product-detail-section .product-title {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 25px;
  }
  
  .products-hero-image {
    max-height: 250px;
  }
  
  .products-hero-image {
    height: 250px;
  }
  
  .products-hero-image img {
    max-height: 250px;
    object-fit: contain;
  }
  
  .content-page {
    padding: 40px 0;
  }
  
  .content-page-title {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 25px;
    margin-top: 0;
  }
  
  .content-hero {
    max-height: 250px;
    margin-bottom: 30px;
  }
  
  .content-hero a {
    max-height: 250px;
  }
  
  .content-hero {
    height: 250px;
  }
  
  .content-hero img {
    max-height: 250px;
    object-fit: contain;
  }
}

.product-detail-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}

.product-gallery-main {
  position: sticky;
  top: 100px;
}

.product-main-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.product-main-image a {
  display: block;
  position: relative;
}

.product-main-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.product-main-image:hover img {
  transform: scale(1.05);
}

.product-zoom-icon {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--contrast-color);
  font-size: 20px;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.product-main-image:hover .product-zoom-icon {
  opacity: 1;
  transform: scale(1);
}

.product-stats {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.product-stat {
  flex: 1;
  background: var(--surface-color);
  padding: 15px;
  border-radius: 12px;
  text-align: center;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.product-stat:hover {
  border-color: var(--accent-color);
  transform: translateY(-3px);
}

.product-stat i {
  font-size: 24px;
  color: var(--accent-color);
  display: block;
  margin-bottom: 8px;
}

.product-stat-value {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 4px;
}

.product-stat span:last-child {
  font-size: 13px;
  color: var(--default-color);
}

.product-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
}

.product-thumbnail {
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

.product-thumbnail:hover {
  border-color: var(--accent-color);
  transform: translateY(-3px);
}

.product-thumbnail img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  display: block;
}

.product-info {
  color: var(--default-color);
}

.product-info-header {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 2px solid color-mix(in srgb, var(--accent-color), transparent 70%);
}

.product-code {
  font-size: 16px;
}

.product-code span {
  color: var(--default-color);
}

.product-code strong {
  color: var(--accent-color);
  font-size: 20px;
  margin-left: 10px;
}

.product-content {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 30px;
}

.product-content h1,
.product-content h2,
.product-content h3 {
  color: var(--heading-color);
  margin-top: 25px;
  margin-bottom: 15px;
}

.product-content p {
  margin-bottom: 15px;
}

.product-content ul,
.product-content ol {
  margin-bottom: 20px;
  padding-left: 25px;
}

.product-technical-image {
  margin-top: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.product-technical-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Product Order Form */
.product-order-form {
  background: var(--surface-color);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.order-form-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--heading-color);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.order-form-title i {
  color: var(--accent-color);
  font-size: 32px;
}

.order-form-divider {
  height: 3px;
  width: 80px;
  background: var(--accent-color);
  margin-bottom: 30px;
}

.order-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.order-form-group {
  display: flex;
  flex-direction: column;
}

.order-form-group:nth-last-child(-n+2) {
  grid-column: span 2;
}

.order-form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 8px;
  text-transform: capitalize;
}

.required {
  color: #e74c3c;
  margin-left: 3px;
}

.order-form-group input,
.order-form-group textarea {
  padding: 12px 16px;
  border: 2px solid color-mix(in srgb, var(--default-color), transparent 80%);
  border-radius: 8px;
  font-size: 15px;
  color: var(--default-color);
  background: var(--background-color);
  transition: all 0.3s ease;
}

.order-form-group input:focus,
.order-form-group textarea:focus {
  border-color: var(--accent-color);
  outline: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-color), transparent 90%);
}

.order-form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.order-form-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}

.order-form-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.order-form-btn-reset {
  background: color-mix(in srgb, var(--default-color), transparent 90%);
  color: var(--default-color);
}

.order-form-btn-reset:hover {
  background: color-mix(in srgb, var(--default-color), transparent 80%);
  transform: translateY(-2px);
}

.order-form-btn-submit {
  background: var(--accent-color);
  color: var(--contrast-color);
  box-shadow: 0 5px 15px color-mix(in srgb, var(--accent-color), transparent 60%);
}

.order-form-btn-submit:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 15%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent-color), transparent 50%);
}

.order-form-note {
  font-size: 13px;
  color: var(--default-color);
  margin-top: 20px;
  text-align: center;
}

.product-alert {
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
}

.product-alert.success {
  background: color-mix(in srgb, #27ae60, transparent 90%);
  color: #27ae60;
  border: 1px solid color-mix(in srgb, #27ae60, transparent 70%);
}

.product-alert.error {
  background: color-mix(in srgb, #e74c3c, transparent 90%);
  color: #e74c3c;
  border: 1px solid color-mix(in srgb, #e74c3c, transparent 70%);
}

.product-alert i {
  font-size: 22px;
}

/* Product Modal */
.product-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.product-modal.active {
  opacity: 1;
  visibility: visible;
}

.product-modal-dialog {
  background: var(--surface-color);
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.product-modal.active .product-modal-dialog {
  transform: scale(1);
}

.product-modal-header {
  padding: 25px 30px;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--heading-color);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.product-modal-title i {
  color: var(--accent-color);
  font-size: 24px;
}

.product-modal-close {
  background: none;
  border: none;
  font-size: 32px;
  color: var(--default-color);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.product-modal-close:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--accent-color);
}

.product-modal-body {
  padding: 30px;
  max-height: calc(90vh - 100px);
  overflow-y: auto;
}

/* Responsive Product Pages */
@media (max-width: 992px) {
  .product-detail-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .product-gallery-main {
    position: relative;
    top: 0;
  }
  
  .order-form-grid {
    grid-template-columns: 1fr;
  }
  
  .order-form-group:nth-last-child(-n+2) {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
  }
  
  .products-gallery {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }
  
  .product-order-form {
    padding: 30px 20px;
  }
  
  .order-form-title {
    font-size: 24px;
  }
  
  .order-form-actions {
    flex-direction: column;
  }
  
  .order-form-btn {
    width: 100%;
    justify-content: center;
  }
  
  .product-thumbnails {
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  }
  
  .product-thumbnail img {
    height: 60px;
  }
}

@media (max-width: 576px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .products-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .product-stats {
    flex-direction: column;
  }
}

/* Auth Section (Login Page) */
.auth-section {
  padding: 50px 0;
  min-height: calc(100vh - 500px);
  display: flex;
  align-items: center;
}

.auth-container {
  max-width: 500px;
  margin: 0 auto;
}

.auth-card {
  background: var(--surface-color);
  border-radius: 20px;
  padding: 50px 40px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.auth-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

.auth-header {
  text-align: center;
  margin-bottom: 40px;
}

.auth-header h2 {
  font-size: 4.25rem; /* match hero main heading */
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 15px;
}

.auth-header p {
  font-size: 16px;
  color: var(--default-color);
  margin: 0;
}

.auth-alert {
  background: color-mix(in srgb, #e74c3c, transparent 90%);
  border: 1px solid color-mix(in srgb, #e74c3c, transparent 70%);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-alert i {
  font-size: 24px;
  color: #e74c3c;
  flex-shrink: 0;
}

.auth-alert-text {
  font-size: 15px;
  color: #e74c3c;
  font-weight: 500;
  margin: 0;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-form .form-group {
  position: relative;
}

.auth-form .form-control {
  width: 100%;
  padding: 16px 20px;
  font-size: 15px;
  border: 2px solid color-mix(in srgb, var(--default-color), transparent 80%);
  border-radius: 12px;
  background: var(--background-color);
  color: var(--default-color);
  transition: all 0.3s ease;
}

.auth-form .form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-color), transparent 90%);
}

.auth-form .form-control::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

.btn-login {
  width: 100%;
  padding: 16px 32px;
  background: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  box-shadow: none;
}

.btn-login:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
  border-color: var(--accent-color);
  transform: none;
  box-shadow: none;
}

.btn-login:active {
  transform: none;
}

.auth-footer {
  text-align: center;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.auth-footer p {
  font-size: 14px;
  color: var(--default-color);
  margin: 0;
}

.auth-footer a {
  color: var(--accent-color);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.auth-footer a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 20%);
  text-decoration: underline;
}

/* Ensure auth pages (collections login) strictly use site font */
.auth-section,
.auth-section *:not(.bi):not([class^="bi-"]):not([class*=" bi-"]) {
  font-family: var(--default-font) !important;
}

/* Light Theme Adjustments for Auth */
[data-theme="light"] .auth-card {
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .auth-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

/* Responsive Auth */
@media (max-width: 768px) {
  .auth-section {
    padding: 60px 0;
  }
  
  .auth-card {
    padding: 40px 30px;
    border-radius: 16px;
  }
  
  .auth-header h2 { font-size: 3.6rem; } /* align with hero breakpoint */
  
  .auth-form .form-control {
    padding: 14px 18px;
  }
  
  .btn-login {
    padding: 14px 28px;
  }
}

@media (max-width: 576px) {
  .auth-card {
    padding: 30px 20px;
  }
  
  .auth-header h2 { font-size: 2.6rem; } /* align with hero breakpoint */
}

/* Certificates Section - sertifikalarimiz.php */
.certificates-section {
  padding: 50px 0;
}

.certificates-intro {
  margin-bottom: 60px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.certificates-intro p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--default-color);
  margin-bottom: 20px;
}

.certificates-intro h2,
.certificates-intro h3 {
  color: var(--heading-color);
  margin-top: 30px;
  margin-bottom: 20px;
}

.certificates-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.certificate-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-color);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
}

.certificate-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.certificate-link {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.certificate-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
}

.certificate-item:hover .certificate-image {
  transform: scale(1.1);
}

.certificate-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 30px 20px;
  opacity: 0;
  transition: all 0.4s ease;
}

.certificate-item:hover .certificate-overlay {
  opacity: 1;
}

.certificate-title {
  color: var(--contrast-color);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 15px;
  transform: translateY(20px);
  transition: all 0.4s ease 0.1s;
}

.certificate-item:hover .certificate-title {
  transform: translateY(0);
}

.certificate-icon {
  width: 50px;
  height: 50px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(20px) scale(0.8);
  transition: all 0.4s ease 0.2s;
}

.certificate-item:hover .certificate-icon {
  transform: translateY(0) scale(1);
}

.certificate-icon i {
  font-size: 24px;
  color: var(--contrast-color);
}

/* Certificates Categories */
.certificates-categories {
  padding: 80px 0;
  background: var(--surface-color);
}

.certificates-categories .section-header {
  margin-bottom: 50px;
}

.certificates-categories .section-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--heading-color);
  margin: 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.category-card {
  background: var(--background-color);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
}

.category-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.category-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface-color);
}

.category-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
}

.category-card:hover .category-image-wrapper img {
  transform: scale(1.1);
}

.category-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s ease;
}

.category-card:hover .category-image-overlay {
  opacity: 1;
}

.category-image-overlay i {
  font-size: 48px;
  color: var(--contrast-color);
  transform: scale(0.8);
  transition: all 0.4s ease;
}

.category-card:hover .category-image-overlay i {
  transform: scale(1);
}

.category-content {
  padding: 30px 25px;
}

.category-icon {
  width: 60px;
  height: 60px;
  background: color-mix(in srgb, var(--accent-color), transparent 10%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.category-card:hover .category-icon {
  background: var(--accent-color);
  transform: scale(1.1);
}

.category-icon i {
  font-size: 28px;
  color: var(--accent-color);
  transition: all 0.3s ease;
}

.category-card:hover .category-icon i {
  color: var(--contrast-color);
}

.category-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.category-card:hover .category-title {
  color: var(--accent-color);
}

.category-description {
  font-size: 15px;
  line-height: 1.7;
  color: var(--default-color);
  margin: 0;
}

/* Light Theme Adjustments for Certificates */
[data-theme="light"] .certificate-item {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .certificate-item:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .category-card {
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .category-card:hover {
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
}

/* Responsive Certificates */
@media (max-width: 992px) {
  .certificates-section {
    padding: 50px 0;
  }
  
  .certificates-gallery {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
  }
  
  .category-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
  }
  
  .certificates-categories {
    padding: 50px 0;
  }
  
  .certificates-categories .section-header h2 {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .certificates-gallery {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
  }
  
  .certificate-overlay {
    padding: 20px 15px;
  }
  
  .certificate-title {
    font-size: 14px;
  }
  
  .certificate-icon {
    width: 40px;
    height: 40px;
  }
  
  .certificate-icon i {
    font-size: 20px;
  }
  
  .category-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .category-content {
    padding: 25px 20px;
  }
  
  .category-title {
    font-size: 20px;
  }
  
  .certificates-categories .section-header h2 {
    font-size: 28px;
  }
}

@media (max-width: 576px) {
  .certificates-section {
    padding: 40px 0;
  }
  
  .certificates-intro {
    margin-bottom: 40px;
  }
  
  .certificates-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .certificate-link {
    aspect-ratio: 1/1;
  }
  
  .certificate-overlay {
    padding: 15px 10px;
  }
  
  .certificate-title {
    font-size: 12px;
    margin-bottom: 10px;
  }
  
  .certificate-icon {
    width: 35px;
    height: 35px;
  }
  
  .certificate-icon i {
    font-size: 18px;
  }
  
  .certificates-categories {
    padding: 40px 0;
  }
  
  .certificates-categories .section-header {
    margin-bottom: 30px;
  }
  
  .certificates-categories .section-header h2 {
    font-size: 24px;
  }
  
  .category-grid {
    grid-template-columns: 1fr;
  }
  
  .category-content {
    padding: 20px;
  }
  
  .category-icon {
    width: 50px;
    height: 50px;
  }
  
  .category-icon i {
    font-size: 24px;
  }
  
  .category-title {
    font-size: 18px;
  }
}

/* Collections Section - koleksiyonlar.php */
.collections-section {
  padding: 50px 0;
}

.collections-intro {
  margin-bottom: 60px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.collections-intro p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--default-color);
  margin-bottom: 20px;
}

.collections-intro h2,
.collections-intro h3 {
  color: var(--heading-color);
  margin-top: 30px;
  margin-bottom: 20px;
}

/* Collections Categories (Parent View) */
.collections-categories {
  margin-bottom: 60px;
}

/* Collections Gallery Wrapper (Subcategory View) */
.collections-gallery-wrapper {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

/* Filter Sidebar */
.collections-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.filter-card {
  background: var(--surface-color);
  border-radius: 16px;
  padding: 30px 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.filter-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-title i {
  color: var(--accent-color);
  font-size: 22px;
}

.filter-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 5px;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--background-color);
}

.filter-option:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 95%);
}

.filter-option input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-color);
  cursor: pointer;
}

.filter-option span {
  font-size: 14px;
  color: var(--default-color);
  flex: 1;
}

.filter-input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid color-mix(in srgb, var(--default-color), transparent 80%);
  border-radius: 8px;
  background: var(--background-color);
  color: var(--default-color);
  font-size: 14px;
  transition: all 0.3s ease;
}

.filter-input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-color), transparent 90%);
}

.filter-input::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

.filter-btn {
  width: 100%;
  padding: 12px 20px;
  background: var(--accent-color);
  color: var(--contrast-color);
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 5px 15px color-mix(in srgb, var(--accent-color), transparent 60%);
}

.filter-btn:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 15%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent-color), transparent 50%);
}

/* Collections Gallery */
.collections-gallery {
  flex: 1;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 25px;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-color);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  aspect-ratio: 1/1;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.gallery-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
}

.gallery-image.highlight-border {
  border: 3px solid var(--accent-color);
}

.gallery-item:hover .gallery-image {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  font-size: 40px;
  color: var(--contrast-color);
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay i {
  transform: scale(1);
}

.no-results {
  text-align: center;
  padding: 80px 40px;
  color: var(--default-color);
}

.no-results i {
  font-size: 64px;
  color: color-mix(in srgb, var(--default-color), transparent 60%);
  margin-bottom: 20px;
  display: block;
}

.no-results p {
  font-size: 18px;
  margin: 0;
}

/* Collections Order Form */
.collections-order-form {
  margin-top: 60px;
  margin-bottom: 60px;
}

.order-form-card {
  background: var(--surface-color);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.order-form-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.order-form-title i {
  color: var(--accent-color);
  font-size: 32px;
}

.order-form-divider {
  height: 2px;
  background: linear-gradient(to right, var(--accent-color), transparent);
  margin-bottom: 30px;
}

.order-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 25px;
  font-size: 15px;
  font-weight: 500;
}

.order-alert.success {
  background: color-mix(in srgb, #27ae60, transparent 90%);
  border: 2px solid color-mix(in srgb, #27ae60, transparent 70%);
  color: #27ae60;
}

.order-alert.error {
  background: color-mix(in srgb, #e74c3c, transparent 90%);
  border: 2px solid color-mix(in srgb, #e74c3c, transparent 70%);
  color: #e74c3c;
}

.order-alert i {
  font-size: 24px;
  flex-shrink: 0;
}

.order-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.order-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-form-group:nth-last-child(-n+2) {
  grid-column: span 2;
}

.order-form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--heading-color);
  text-transform: capitalize;
}

.order-form-group .required {
  color: #e74c3c;
}

.order-form-group input,
.order-form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid color-mix(in srgb, var(--default-color), transparent 80%);
  border-radius: 8px;
  background: var(--background-color);
  color: var(--default-color);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.3s ease;
}

.order-form-group input:focus,
.order-form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-color), transparent 90%);
}

.order-form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.order-form-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.order-form-btn {
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.order-form-btn-reset {
  background: transparent;
  color: var(--default-color);
  border: 2px solid color-mix(in srgb, var(--default-color), transparent 70%);
}

.order-form-btn-reset:hover {
  background: color-mix(in srgb, var(--default-color), transparent 90%);
  border-color: var(--default-color);
}

.order-form-btn-submit {
  background: var(--accent-color);
  color: var(--contrast-color);
  border: 2px solid var(--accent-color);
  box-shadow: 0 5px 15px color-mix(in srgb, var(--accent-color), transparent 60%);
}

.order-form-btn-submit:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 15%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent-color), transparent 50%);
}

.order-form-note {
  font-size: 13px;
  color: var(--default-color);
  margin: 0;
  text-align: right;
}

/* Collections Modal */
.collections-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.collections-modal.active {
  opacity: 1;
  visibility: visible;
}

.collections-modal-dialog {
  background: var(--surface-color);
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: all 0.3s ease;
}

.collections-modal.active .collections-modal-dialog {
  transform: scale(1);
}

.collections-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 30px;
  border-bottom: 2px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.collections-modal-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--heading-color);
  margin: 0;
}

.collections-modal-title i {
  font-size: 24px;
  color: var(--accent-color);
}

.collections-modal-close {
  background: transparent;
  border: none;
  font-size: 32px;
  line-height: 1;
  color: var(--default-color);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.collections-modal-close:hover {
  background: color-mix(in srgb, var(--default-color), transparent 90%);
  color: var(--heading-color);
}

.collections-modal-body {
  padding: 30px;
}

/* Collections Related Categories */
.collections-related {
  margin-top: 60px;
  padding-top: 60px;
  border-top: 2px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.related-header {
  margin-bottom: 40px;
}

.related-header h2 {
  font-size: 32px;
  font-weight: 700;
  margin: 0;
}

.related-header h2 a {
  color: var(--heading-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.related-header h2 a:hover {
  color: var(--accent-color);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
}

.related-card {
  background: var(--surface-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.related-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.related-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.related-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--background-color);
}

.related-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
}

.related-card:hover .related-image {
  transform: scale(1.1);
}

.related-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.related-card:hover .related-image-overlay {
  opacity: 1;
}

.related-image-overlay i {
  font-size: 40px;
  color: var(--contrast-color);
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.related-card:hover .related-image-overlay i {
  transform: scale(1);
}

.related-content {
  padding: 20px;
}

.related-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.related-title i {
  color: var(--accent-color);
  margin-right: 5px;
}

.related-card:hover .related-title {
  color: var(--accent-color);
}

.related-description {
  font-size: 14px;
  line-height: 1.6;
  color: var(--default-color);
  margin: 0;
}

/* Light Theme Adjustments for Collections */
[data-theme="light"] .filter-card {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .gallery-item {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .gallery-item:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .order-form-card {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .related-card {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .related-card:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* Responsive Collections */
@media (max-width: 1024px) {
  .collections-gallery-wrapper {
    grid-template-columns: 240px 1fr;
    gap: 30px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

@media (max-width: 768px) {
  .collections-section {
    padding: 60px 0;
  }
  
  .collections-gallery-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .collections-sidebar {
    position: static;
  }
  
  .filter-card {
    padding: 25px 20px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
  }
  
  .order-form-card {
    padding: 30px 25px;
  }
  
  .order-form-title {
    font-size: 24px;
  }
  
  .order-form-grid {
    grid-template-columns: 1fr;
  }
  
  .order-form-group:nth-last-child(-n+2) {
    grid-column: span 1;
  }
  
  .order-form-actions {
    flex-direction: column;
  }
  
  .order-form-btn {
    width: 100%;
    justify-content: center;
  }
  
  .related-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  
  .related-header h2 {
    font-size: 28px;
  }
}

@media (max-width: 576px) {
  .collections-section {
    padding: 40px 0;
  }
  
  .collections-intro {
    margin-bottom: 40px;
  }
  
  .filter-card {
    padding: 20px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .order-form-card {
    padding: 25px 20px;
    border-radius: 16px;
  }
  
  .order-form-title {
    font-size: 20px;
  }
  
  .collections-related {
    margin-top: 40px;
    padding-top: 40px;
  }
  
  .related-header {
    margin-bottom: 30px;
  }
  
  .related-header h2 {
    font-size: 24px;
  }
  
  .related-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* News Section - haberler.php */
.section-description {
  max-width: 900px;
  margin: 0 auto 60px;
  text-align: center;
}

/* --- News Carousel (Homepage) - Compact variant --- */
#news-carousel .news-card {
  border-radius: 12px !important;
  overflow: hidden !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

#news-carousel .news-card-image {
  position: relative !important;
  overflow: hidden !important;
  aspect-ratio: 16/9 !important;
  min-height: 170px !important;
  height: 170px !important;
  background: var(--surface-color) !important;
}

#news-carousel .news-card-image img {
  width: 100% !important;
  height: 100% !important;
  object-position: center !important;
  display: block !important;
  transform: none !important;
}

#news-carousel .news-card-image::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent-color), transparent 20%) 0%,
    color-mix(in srgb, var(--accent-color), transparent 55%) 60%,
    color-mix(in srgb, var(--background-color), transparent 10%) 100%) !important;
  opacity: 0.85 !important;
  z-index: 1 !important;
}

#news-carousel .news-card-content {
  background: var(--surface-color) !important;
  padding: 0.85rem 1rem !important;
  font-family: var(--default-font) !important;
}

/* Meta row - smaller and tighter */
#news-carousel .news-card-meta {
  font-size: 0.78rem !important;
  margin: 0 0 0.35rem 0 !important;
}

/* Title - 2 lines clamp, clearer spacing */
#news-carousel .news-card-content h3 {
  font-family: var(--default-font) !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  margin: 2px 0 6px 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Excerpt - 2 lines clamp, smaller for compact look */
#news-carousel .news-card-content p {
  font-family: var(--default-font) !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  margin: 0 0 8px 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Read more button remains hover-only; keep spacing consistent */
#news-carousel .news-card-btn {
  margin-top: 6px !important;
}

/* Hover effects toned down to avoid big jumps */
#news-carousel .news-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 20px rgba(0,0,0,0.10) !important;
}

/* Responsive compact tuning */
@media (max-width: 768px) {
  #news-carousel .news-card-image {
    min-height: 150px !important;
    height: 150px !important;
  }
  #news-carousel .news-card-content {
    padding: 0.75rem 0.9rem !important;
  }
  #news-carousel .news-card-content h3 {
    font-size: 16px !important;
    margin: 2px 0 6px 0 !important;
  }
  #news-carousel .news-card-content p {
    font-size: 13px !important;
    -webkit-line-clamp: 2 !important;
  }
}

/* --- News Carousel (Homepage) - Alternative B: Letterbox with blurred background --- */
/* Background layer fed by CSS var --news-bg set via JS */
#news-carousel .news-card-image::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background-image: var(--news-bg) !important;
  background-size: cover !important;
  background-position: center !important;
  filter: blur(20px) saturate(1.1) !important;
  transform: scale(1.1) !important;
  opacity: 0.6 !important;
  z-index: 0 !important;
}

/* Foreground image sits above the blurred bg and uses contain (letterbox) */
/* Hide raw dynamic image; texture comes from blurred ::before layer */
#news-carousel .news-card-image img {
  display: none !important;
}

/* Use a single default cover for all news cards (toggle by adding .use-default-cover on #news-carousel) */
#news-carousel.use-default-cover .news-card-image::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background-image: url('../img/abstract/abstract-1.webp') !important;
  background-size: cover !important;
  background-position: center !important;
  filter: none !important;
  transform: none !important;
  opacity: 1 !important;
  z-index: 0 !important;
}

#news-carousel.use-default-cover .news-card-image img {
  display: none !important; /* hide dynamic images */
}

.section-description p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--default-color);
  margin: 0;
}

.news-list-view {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 60px;
}

.news-list-item {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 35px;
  background: var(--surface-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform, box-shadow;
  /* allow card to grow with content while keeping a base height */
  min-height: var(--news-card-height, 260px);
  align-items: stretch;
}

.news-list-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.news-list-image {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--background-color);
  height: 100%;
  align-self: stretch;
  display: grid;
  place-items: center;
  transition: box-shadow 0.3s ease;
  padding: 0 12px;
  border-radius: 12px;
}

.news-list-image a {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}
.news-list-image .image-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  border: 2px solid color-mix(in srgb, var(--accent-color), transparent 60%);
  border-radius: 12px;
  box-sizing: border-box;
}

.news-list-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  z-index: 2;
  transition: transform 0.4s ease;
  border-radius: 8px;
}

.news-list-item:hover .news-list-image img {
  transform: none;
}

/* Blurred background fill using CSS var --news-bg (set via JS) */
.news-list-image::before {
  content: "";
  position: absolute;
  inset: 0 12px;
  transform: scale(1.2);
  background-image: var(--news-bg);
  background-size: cover;
  background-position: center;
  filter: blur(18px);
  opacity: 0.8;
  z-index: 0;
  border-radius: 8px;
}

/* subtle gradient overlay for nicer focus on hover */
.news-list-image::after {
  content: "";
  position: absolute;
  inset: 12px;
  background: linear-gradient(180deg, transparent 65%, color-mix(in srgb, var(--accent-color), transparent 85%) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  border-radius: 8px;
}
.news-list-item:hover .news-list-image::after {
  opacity: 0.4;
}

.news-list-content {
  padding: 24px 24px 16px 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.news-date {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--default-color);
  font-weight: 500;
  text-transform: lowercase;
}

.news-date i {
  font-size: 16px;
  color: var(--accent-color);
}

.news-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.3;
  text-transform: capitalize;
  position: relative;
  padding-bottom: 10px;
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  isolation: isolate;
  /* Prevent title from consuming excerpt space */
  flex: 0 0 auto;
}

.news-title a,
.news-title .title-link,
.news-list-item .news-title .title-link {
  color: var(--accent-color);
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-title a:hover,
.news-title .title-link:hover,
.news-list-item .news-title .title-link:hover {
  color: var(--accent-color);
}

/* Explicit control for short/full title swapping with 50-char truncation */
.news-list-item .news-title .title-link {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Disable any title swapping/animation on hover */
.news-list-item:hover .news-title .title-link {
  animation: none !important;
  text-overflow: ellipsis !important;
}
/* If older rules exist with .has-short, neutralize them */
.news-list-item:hover .news-title.has-short .title-short { display: block !important; }
.news-list-item:hover .news-title.has-short .title-full { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  .news-list-item:hover .news-title .title-full {
    animation: none;
  }
}

.news-excerpt {
  font-size: 15px;
  line-height: 1.7;
  color: var(--default-color);
  margin-bottom: 20px;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  /* Force multi-line clamping behavior regardless of parent white-space */
  white-space: normal !important;
  /* Reserve consistent two-line height to avoid collapsing on hover */
  height: calc(2 * 1.7em);
  min-height: calc(2 * 1.7em);
  /* Prevent flexbox from shrinking excerpt on hover */
  flex: 0 0 calc(2 * 1.7em);
}
/* Keep excerpt fixed at two lines even on hover */
.news-list-item:hover .news-excerpt {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  white-space: normal !important;
  height: calc(2 * 1.7em) !important;
  min-height: calc(2 * 1.7em) !important;
  flex: 0 0 calc(2 * 1.7em) !important;
}

.news-footer {
  margin-top: 8px;
  flex: 0 0 auto;
}

.btn-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--accent-color);
  border-radius: 0;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  transition: all 0.25s ease;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
}

.btn-read-more:hover {
  text-decoration: underline;
  color: var(--accent-color);
}

.btn-read-more i {
  font-size: 16px;
  transition: transform 0.2s ease;
}

.btn-read-more:hover i {
  transform: translateX(3px);
}

/* Show link only on card hover (like index cards) */
.news-list-item:hover .btn-read-more {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Divider under news title */
.news-title::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, var(--accent-color), transparent 0%) 12%,
    color-mix(in srgb, var(--accent-color), transparent 0%) 88%,
    transparent 100%
  );
  pointer-events: none;
}

/* Remove marquee behavior for list titles entirely */

/* Ensure single-line ellipsis for news list titles and enable smooth marquee on hover */
.news-list-item .news-title a,
.news-list-item .news-title .title-link {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  will-change: text-indent;
}
/* (Removed generic hover animation to avoid affecting short titles) */
/* Pagination */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 60px;
}

.pagination {
  display: flex;
  gap: 8px;
  align-items: center;
}

.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: var(--surface-color);
  color: var(--default-color);
  border: 2px solid color-mix(in srgb, var(--default-color), transparent 80%);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.page-link:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.page-link.active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--contrast-color);
  pointer-events: none;
}

.page-link.prev,
.page-link.next {
  padding: 0;
  width: 40px;
}

.page-link.prev i,
.page-link.next i {
  font-size: 18px;
}

/* Light Theme Adjustments for News */
[data-theme="light"] .news-list-item {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .news-list-item:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* Responsive News */
@media (max-width: 992px) {
  .news-list-item {
    grid-template-columns: 320px 1fr;
    gap: 25px;
  }
  
  .news-list-content {
    padding: 25px 25px 25px 0;
  }
  
  .news-title {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .news-list-view {
    gap: 30px;
  }
  
  .news-list-item {
    grid-template-columns: 1fr;
    gap: 0;
    height: auto;
  }
  
  .news-list-image {
    aspect-ratio: 16/9;
    height: auto;
  }
  
  .news-list-content {
    padding: 25px;
  }
  
  .news-title {
    font-size: 20px;
  }
  
  .pagination {
    gap: 6px;
  }
  
  .page-link {
    min-width: 36px;
    height: 36px;
    font-size: 13px;
  }
}

@media (max-width: 576px) {
  .section-description {
    margin-bottom: 40px;
  }
  
  .news-list-view {
    gap: 25px;
    margin-bottom: 40px;
  }
  
  .news-list-content {
    padding: 20px;
  }
  
  .news-title {
    font-size: 18px;
    margin-bottom: 12px;
  }
  
  .news-excerpt {
    font-size: 14px;
    margin-bottom: 15px;
  }
  
  .btn-read-more {
    font-size: 13px;
    padding: 8px 20px;
  }
  
  .pagination-wrapper {
    margin-top: 40px;
  }
  
  .pagination {
    gap: 4px;
    flex-wrap: wrap;
  }
  
  .page-link {
    min-width: 32px;
    height: 32px;
    font-size: 12px;
  }
}

/* News Detail Section - haberlerdetay.php */
.news-detail {
  padding: 10px 0;
}

.news-detail-meta {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 12px;
  padding: 12px 16px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  border-radius: 12px;
  background: var(--surface-color);
}

/* Compact header section (title area above detail) */
.news-detail-header {
  padding: 6px 0 4px 0;
}
.news-detail-header .section-title {
  margin-bottom: 4px;
}
/* Ensure header doesn't overlap the first title on detail page */
.news-detail-page .news-detail-header {
  /* Adjust 80px if your fixed header height differs */
  padding-top: calc(var(--header-offset, 180px) + 0px);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--default-color);
  font-weight: 500;
  text-transform: lowercase;
}

.meta-item i {
  font-size: 18px;
  color: var(--accent-color);
}

.news-detail-hero {
  position: relative;
  margin-bottom: 50px;
  height: var(--news-hero-h, 560px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}
.news-detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--news-bg);
  background-size: cover;
  background-position: center;
  filter: blur(22px);
  transform: scale(1.1);
  opacity: 0.7;
}

.news-detail-hero img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: transparent;
  z-index: 1;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.news-detail-content {
  max-width: 900px;
  margin: 0 auto 60px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--default-color);
}

.news-detail-content h2,
.news-detail-content h3,
.news-detail-content h4 {
  color: var(--heading-color);
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 700;
}

.news-detail-content h2 {
  font-size: 32px;
}

.news-detail-content h3 {
  font-size: 26px;
}

.news-detail-content h4 {
  font-size: 22px;
}

.news-detail-content p {
  margin-bottom: 20px;
}

.news-detail-content ul,
.news-detail-content ol {
  margin-bottom: 20px;
  padding-left: 30px;
}

.news-detail-content li {
  margin-bottom: 10px;
}

.news-detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 30px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.news-detail-content a {
  color: var(--accent-color);
  text-decoration: underline;
  transition: all 0.3s ease;
}

.news-detail-content a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 20%);
}

.news-detail-content blockquote {
  border-left: 4px solid var(--accent-color);
  padding: 20px 30px;
  margin: 30px 0;
  background: color-mix(in srgb, var(--accent-color), transparent 95%);
  border-radius: 0 8px 8px 0;
  font-style: italic;
}

.news-detail-back {
  text-align: center;
  padding-top: 40px;
  padding-bottom: 30px;
  border-top: 2px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  background: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.btn-back:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
  transform: translateX(-5px);
}

.btn-back i {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.btn-back:hover i {
  transform: translateX(-3px);
}

/* Related News Section */
.related-news {
  padding: 80px 0;
  background: var(--surface-color);
}

.related-news-header {
  margin-bottom: 40px;
}

.related-news-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--heading-color);
  margin: 0;
}

.related-news-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.related-news-list-item {
  background: var(--background-color);
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.related-news-list-item:hover {
  border-color: var(--accent-color);
  transform: translateX(5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.related-news-link {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 15px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
}

.related-news-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-color);
  border-radius: 50%;
  flex-shrink: 0;
}

.related-news-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--heading-color);
  transition: all 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-news-list-item:hover .related-news-text {
  color: var(--accent-color);
}

.related-news-date-inline {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--default-color);
  white-space: nowrap;
  text-transform: lowercase;
}

.related-news-date-inline i {
  font-size: 14px;
  color: var(--accent-color);
}

.related-news-arrow {
  font-size: 18px;
  color: var(--accent-color);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.related-news-list-item:hover .related-news-arrow {
  transform: translateX(5px);
}

/* Light Theme Adjustments for News Detail */
[data-theme="light"] .news-detail-hero {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .news-detail-content img {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .related-news-list-item:hover {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

/* Responsive News Detail */
@media (max-width: 768px) {
  .news-detail {
    padding: 60px 0;
  }
  
  .news-detail-meta {
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
  }
  
  .news-detail-hero {
    margin-bottom: 40px;
  }
  
  .news-detail-content {
    margin-bottom: 40px;
  }
  
  .news-detail-content h2 {
    font-size: 28px;
  }
  
  .news-detail-content h3 {
    font-size: 24px;
  }
  
  .news-detail-content h4 {
    font-size: 20px;
  }
  
  .related-news {
    padding: 60px 0;
  }
  
  .related-news-header h2 {
    font-size: 28px;
  }
  
  .related-news-list {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .related-news-link {
    padding: 15px;
  }
}

/* Hide category slider on news detail page for compact layout */
.news-detail-page .category-slider {
  display: none !important;
}

@media (max-width: 576px) {
  .news-detail {
    padding: 40px 0;
  }
  
  .news-detail-meta {
    gap: 12px;
  }
  
  .meta-item {
    font-size: 13px;
  }
  
  .news-detail-content {
    font-size: 15px;
  }
  
  .news-detail-content h2 {
    font-size: 24px;
    margin-top: 30px;
  }
  
  .news-detail-content h3 {
    font-size: 20px;
  }
  
  .news-detail-content h4 {
    font-size: 18px;
  }
  
  .btn-back {
    font-size: 14px;
    padding: 10px 24px;
  }
  
  .related-news {
    padding: 40px 0;
  }
  
  .related-news-header h2 {
    font-size: 24px;
    margin-bottom: 30px;
  }
  
  .related-news-link {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
  }
  
  .related-news-date-inline {
    display: none;
  }
  
  .related-news-text {
    font-size: 14px;
  }
}

/* Content CTA - Call to Action (kariyer.php, etc.) */
.content-cta {
  margin-top: 60px;
}

.cta-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
  padding: 40px;
  background: var(--surface-color);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.cta-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.cta-icon {
  width: 80px;
  height: 80px;
  background: color-mix(in srgb, var(--accent-color), transparent 10%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.cta-card:hover .cta-icon {
  background: var(--accent-color);
  transform: scale(1.1);
}

.cta-icon i {
  font-size: 36px;
  color: var(--accent-color);
  transition: all 0.3s ease;
}

.cta-card:hover .cta-icon i {
  color: var(--contrast-color);
}

.cta-content {
  flex: 1;
}

.cta-content h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 10px;
}

.cta-content p {
  font-size: 15px;
  color: var(--default-color);
  margin: 0;
  line-height: 1.6;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--accent-color);
  color: var(--contrast-color);
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px color-mix(in srgb, var(--accent-color), transparent 60%);
  white-space: nowrap;
}

.cta-button:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 15%);
  transform: translateX(5px);
  box-shadow: 0 8px 25px color-mix(in srgb, var(--accent-color), transparent 50%);
}

.cta-button i {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.cta-button:hover i {
  transform: translateX(3px);
}

/* Light Theme Adjustments for CTA */
[data-theme="light"] .cta-card {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .cta-card:hover {
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

/* Responsive CTA */
@media (max-width: 992px) {
  .cta-card {
    grid-template-columns: auto 1fr;
    gap: 25px;
  }
  
  .cta-button {
    grid-column: 1 / -1;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .content-cta {
    margin-top: 40px;
  }
  
  .cta-card {
    padding: 30px;
    gap: 20px;
  }
  
  .cta-icon {
    width: 60px;
    height: 60px;
  }
  
  .cta-icon i {
    font-size: 28px;
  }
  
  .cta-content h3 {
    font-size: 20px;
  }
  
  .cta-content p {
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .cta-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 25px 20px;
  }
  
  .cta-icon {
    margin: 0 auto;
  }
  
  .cta-button {
    width: 100%;
  }
}

/* Error Page - error.php */
.error-section {
  padding: 80px 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.error-container {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.error-image {
  margin-bottom: 30px;
}

.error-image img {
  max-width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
}

.error-code {
  font-size: 120px;
  font-weight: 900;
  line-height: 1;
  color: var(--accent-color);
  margin-bottom: 20px;
  font-family: var(--heading-font);
  letter-spacing: -5px;
  text-shadow: 0 5px 20px color-mix(in srgb, var(--accent-color), transparent 70%);
}

.error-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.error-message {
  font-size: 18px;
  line-height: 1.7;
  color: var(--default-color);
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.error-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-error-primary,
.btn-error-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.btn-error-primary {
  background: var(--accent-color);
  color: var(--contrast-color);
  border: 2px solid var(--accent-color);
  box-shadow: 0 5px 20px color-mix(in srgb, var(--accent-color), transparent 60%);
}

.btn-error-primary:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 15%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px color-mix(in srgb, var(--accent-color), transparent 50%);
}

.btn-error-secondary {
  background: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
}

.btn-error-secondary:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px color-mix(in srgb, var(--accent-color), transparent 50%);
}

.btn-error-primary i,
.btn-error-secondary i {
  font-size: 18px;
}

/* Responsive Error Page */
@media (max-width: 768px) {
  .error-section {
    padding: 60px 0;
  }
  
  .error-code {
    font-size: 80px;
  }
  
  .error-title {
    font-size: 28px;
  }
  
  .error-message {
    font-size: 16px;
  }
  
  .error-image img {
    max-height: 250px;
  }
}

@media (max-width: 576px) {
  .error-section {
    padding: 40px 0;
  }
  
  .error-code {
    font-size: 64px;
    letter-spacing: -3px;
  }
  
  .error-title {
    font-size: 24px;
  }
  
  .error-message {
    font-size: 15px;
    margin-bottom: 30px;
  }
  
  .error-image {
    margin-bottom: 20px;
  }
  
  .error-image img {
    max-height: 200px;
  }
  
  .error-actions {
    flex-direction: column;
    gap: 12px;
  }
  
  .btn-error-primary,
  .btn-error-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* --- News Carousel (Homepage) - Polaroid override (C) --- */
#news-carousel .news-card {
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 88%) !important;
  border-radius: 16px !important;
  background: var(--surface-color) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08) !important;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease, border-color 0.35s ease !important;
}

#news-carousel .news-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18) !important;
  border-color: color-mix(in srgb, var(--accent-color), transparent 75%) !important;
}

#news-carousel .news-card-image {
  aspect-ratio: 4/3 !important;
  min-height: 200px !important;
  height: 200px !important;
  background: #ffffff !important;
  padding: 10px 10px 18px !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12) !important;
  overflow: hidden !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  display: grid !important;
  place-items: center !important;
}

/* Kill previous blurred bg and gradient overlays */
#news-carousel .news-card-image::before,
#news-carousel .news-card-image::after {
  content: none !important;
}

/* Ensure image is visible and contained */
#news-carousel .news-card .news-card-image > img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: transparent !important;
  margin: 0 auto !important;
  transition: transform 0.45s cubic-bezier(.2,.8,.2,1) !important;
}

/* If default-cover class is present, still force polaroid image */
#news-carousel.use-default-cover .news-card-image::before { content: none !important; }
#news-carousel.use-default-cover .news-card-image img { display: block !important; }

#news-carousel .news-card:hover .news-card-image {
  transform: translateY(-2px) scale(1.03) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2) !important;
}

#news-carousel .news-card-content {
  background: var(--surface-color) !important;
  padding: 0.9rem 1rem !important;
  font-family: var(--default-font) !important;
}

#news-carousel .news-card-content h3 {
  font-family: var(--default-font) !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  margin: 4px 0 6px 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#news-carousel .news-card-content p {
  font-family: var(--default-font) !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  margin: 0 0 8px 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

@media (max-width: 768px) {
  #news-carousel .news-card-image {
    min-height: 160px !important;
    height: 160px !important;
    padding: 8px 8px 14px !important;
  }
  #news-carousel .news-card-content h3 { font-size: 16px !important; }
  #news-carousel .news-card-content p { font-size: 13px !important; }
}

#news-carousel .news-card .news-card-image {
  text-align: center !important;
}
#news-carousel .news-card .news-card-image > img {
  justify-self: center !important;
  align-self: center !important;
}

/* News Carousel - unify title and view-all button colors */
#news-carousel {
  --news-title-color: var(--accent-color) !important;
}
#news-carousel .news-card-content h3 {
  color: var(--news-title-color) !important;
  position: relative !important;
  /* single-line with ellipsis by default */
  display: block !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.news-view-all-btn { color: var(--news-title-color) !important; text-decoration: none !important; }
.news-view-all-btn:hover { color: var(--news-title-color) !important; text-decoration: none !important; }
/* Thin divider after the title inside news card */
#news-carousel .news-card-content h3::after {
  content: "" !important;
  display: block !important;
  height: 1px !important;
  background: color-mix(in srgb, var(--default-color), transparent 85%) !important;
  margin: 8px 0 10px 0 !important;
}

/* Marquee animation to reveal long titles on hover */
@keyframes news-marquee {
  0% { text-indent: 0; }
  10% { text-indent: 0; }
  90% { text-indent: -100%; }
  100% { text-indent: 0; }
}
#news-carousel .news-card:hover .news-card-content h3 {
  text-overflow: clip !important;
  animation: news-marquee 8s linear infinite !important;
}
@media (prefers-reduced-motion: reduce) {
  #news-carousel .news-card:hover .news-card-content h3 {
    animation: none !important;
  }
}

/* News card "Read More" button styled like product button (no shadow) */
#news-carousel .news-card-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 10px 24px !important;
  background: var(--accent-color) !important;
  color: var(--contrast-color) !important;
  border: 2px solid var(--accent-color) !important;
  border-radius: 50px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  transition: all 0.4s ease !important;
  margin-top: 10px !important;
  box-shadow: none !important; /* no shadow */
}
#news-carousel .news-card-btn i {
  font-size: 16px !important;
  transition: transform 0.3s ease !important;
}
#news-carousel .news-card-btn:hover {
  background: var(--accent-color) !important;
  border-color: var(--accent-color) !important;
  transform: none !important;
  box-shadow: none !important; /* keep shadow off */
  color: var(--contrast-color) !important;
}
#news-carousel .news-card-btn:hover i {
  transform: translateX(3px) !important;
}
/* Absolutely remove any residual shadows from the button and its children */
#news-carousel .news-card-btn,
#news-carousel .news-card-btn *,
#news-carousel .news-card-btn::before,
#news-carousel .news-card-btn::after {
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;
}
@media (prefers-reduced-motion: reduce) {
  #news-carousel .news-card,
  #news-carousel .news-card .news-card-image,
  #news-carousel .news-card .news-card-image > img {
    transition: none !important;
    transform: none !important;
  }
}

/* Make the calendar icon in news meta match the title color */
#news-carousel .news-card-meta i {
  color: var(--news-title-color) !important;
}

/* Make "Tüm Haberleri Görüntüle" identical to product button */
.news-view-all-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 10px 24px !important;
  background: transparent !important;
  color: var(--accent-color) !important;
  border: 2px solid var(--accent-color) !important;
  border-radius: 50px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  transition: all 0.3s ease !important;
  box-shadow: none !important;
}
.news-view-all-btn:hover {
  background: var(--accent-color) !important;
  border-color: var(--accent-color) !important;
  transform: translateX(3px) !important;
  box-shadow: none !important;
  color: var(--contrast-color) !important;
  text-decoration: none !important;
}
.news-view-all-btn i {
  font-size: 16px !important;
  transition: transform 0.3s ease !important;
}
.news-view-all-btn:hover i {
  transform: translateX(3px) !important;
}
/* News carousel navigation buttons: thin border matching title color */
#news-carousel .swiper-button-next,
#news-carousel .swiper-button-prev {
  border: 1px solid var(--news-title-color) !important;
  background: transparent !important;
}
#news-carousel .swiper-button-next:hover,
#news-carousel .swiper-button-prev:hover {
  border-color: var(--news-title-color) !important;
}