/* ------------------ Showcase Section ------------------ */

.showcase-section {
  border-top: 2px solid #550000;
  padding-top: 2rem;
  position: relative;
}

.showcase-heading {
  font-family: 'Oswald', sans-serif;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  color: #111;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* GRID */
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* CARD BASE */
.showcase-item {
  background: #f2ede46b;
  border-radius: 10px;
  border-left: 4px solid #550000;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  min-height: 380px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.showcase-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

/* CONTENT STRUCTURE */
.showcase-content {
  position: relative;
  height: 100%;
}

/* TITLE + COMPANY */
.showcase-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  color: #111;
  margin-bottom: 0.2rem;
}

.showcase-company {
  font-family: 'Raleway', sans-serif;
  color: #550000;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

/* SHORT + LONG DESCRIPTION */
.showcase-short,
.showcase-long {
  font-family: 'Raleway', sans-serif;
  font-size: 0.9rem;
  color: #333;
  line-height: 1.4;
  position: absolute;
  left: 0;
  right: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  will-change: opacity, transform;
}

/* SHORT (visible by default) */
.showcase-short {
  top: 3.5rem;
  opacity: 1;
  transform: translateY(0);
  z-index: 2;
}

/* LONG (hidden initially) */
.showcase-long {
  top: 3.5rem;
  opacity: 0;
  transform: translateY(20px);
  z-index: 1;
}

/* IMAGE */
.showcase-image {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 55%;
  object-fit: cover;
  border-radius: 6px;
  transition: opacity 0.6s ease;
  z-index: 1;
}

/* Hover behavior */
.showcase-item:hover .showcase-image {
  opacity: 0.15;
}

.showcase-item:hover .showcase-short {
  opacity: 0;
  transform: translateY(-20px);
  z-index: 1;
}

.showcase-item:hover .showcase-long {
  opacity: 1;
  transform: translateY(0);
  z-index: 2;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .showcase-item {
    min-height: 320px;
  }

  /* On mobile, show both texts stacked (no hover needed) */
  .showcase-short,
  .showcase-long {
    position: static;
    opacity: 1;
    transform: none;
  }

  .showcase-image {
    position: static;
    margin-top: 1rem;
    height: 200px;
    opacity: 1 !important;
  }
}

/* ------------Blog--------------------------- */

/* ---------- GENERAL ---------- */
.blog-section {
  border-top: 2px solid #550000;
  padding: 2rem 0 4rem;
  position: relative;
  font-family: 'Raleway', sans-serif;
}

.blog-heading {
  font-family: 'Oswald', sans-serif;
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #111;
  margin-bottom: 2rem;
}

/* ---------- GRID ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* ---------- BLOG CARD ---------- */
.blog-card {
  background: #f2ede4a2;
  border-left: 4px solid #550000;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.blog-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

.blog-card:hover .blog-thumb {
  opacity: 0.9;
}

.blog-card-content {
  padding: 1rem;
}

.blog-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  color: #111;
  margin-bottom: 0.4rem;
}

.blog-excerpt {
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 1rem;
}

.readmore-btn {
  background: #550000;
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: background 0.3s ease, transform 0.3s ease;
}

.readmore-btn:hover {
  background: #772222;
  transform: scale(1.05);
}

/* ---------- EXPANDED BLOG ---------- */
.blog-full {
  display: none;
  background: #fdfcfb;
  border-left: 4px solid #550000;
  border-radius: 10px;
  margin-top: 2rem;
  padding: 2rem;
  animation: fadeIn 0.5s ease forwards;
}

.blog-full.active {
  display: block;
}

.blog-full-inner {
  max-width: 800px;
  margin: 0 auto;
}

.blog-full-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  color: #111;
  margin-bottom: 0.5rem;
}

.blog-meta {
  font-size: 0.85rem;
  color: #550000;
  margin-bottom: 1rem;
}

.blog-intro {
  font-weight: 500;
  color: #333;
  margin-bottom: 1rem;
}

.blog-image {
  width: 100%;
  border-radius: 8px;
  margin: 1.5rem 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  cursor: pointer;
}

.blog-image:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.lightbox.active {
  display: flex;
}

.lightbox-image {
  max-width: 90%;
  max-height: 85%;
  border-radius: 10px;
  box-shadow: 0 0 25px rgba(0,0,0,0.3);
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .blog-thumb { height: 160px; }
  .readmore-btn { font-size: 0.85rem; padding: 0.5rem 1rem; }
  .blog-full { padding: 1.2rem; }
}
/* ================= LIGHTBOX ================= */

.design-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.design-lightbox.active {
  display: block;
}

/* Backdrop */
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
}

/* Wrapper */
.lightbox-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Close */
.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 2rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  z-index: 10;
}

/* Icon */
.lightbox-icon {
  position: absolute;
  top: 30px;
  left: 40px;
  opacity: 0.7;
}

.lightbox-icon img {
  width: 36px;
}

/* Progress */
.process-progress {
  position: absolute;
  top: 80px;
  width: 60%;
  height: 3px;
  background: rgba(255,255,255,0.2);
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: #550000;
  transition: width 0.4s ease;
}

/* Slider */
.lightbox-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Slides */
.lightbox-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70%;
  max-width: 720px;
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0;
  transition: all 0.6s ease;
  pointer-events: none;
}


.lightbox-slide.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
  z-index: 3;
}

.lightbox-slide.prev {
  opacity: 0.25;
  transform: translate(-140%, -50%) scale(0.85);
  z-index: 2;
}

.lightbox-slide.next {
  opacity: 0.25;
  transform: translate(40%, -50%) scale(0.85);
  z-index: 2;
}

/* Card styling (same as showcase) */
.lightbox-card {
  background: #f2ede4;
  border-left: 4px solid #550000;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  text-align: center;
}

.lightbox-card img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 1rem;
}

/* Arrows */
.nav-arrow {
  position: absolute;
  top: 50%;
  font-size: 3rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transform: translateY(-50%);
  z-index: 5;
}

.nav-arrow.left { left: 40px; }
.nav-arrow.right { right: 40px; }

.nav-arrow:hover {
  color: #fff;
}

/* Mobile */
@media (max-width: 768px) {
  .lightbox-slide {
    width: 90%;
  }
}
