/* Home Page Specific Styles */

/* Hero Carousel */
#heroCarousel {
  width: 100%;
  overflow: hidden;
}

.carousel-item {
  overflow: hidden;
  position: relative;
}

/* Desktop: fixed viewport height */
@media (min-width: 992px) {
  .carousel-item {
    height: 80vh;
    min-height: 400px;
    max-height: 700px;
  }

  #heroCarousel .carousel-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }
}

/* Tablet: fixed aspect ratio — no height jumping */
@media (min-width: 576px) and (max-width: 991.98px) {
  .carousel-item {
    aspect-ratio: 16 / 7;
    height: auto;
    min-height: unset;
    max-height: none;
  }

  #heroCarousel .carousel-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }
}

/* Mobile: fixed aspect ratio — no height jumping */
@media (max-width: 575.98px) {
  .carousel-item {
    aspect-ratio: 16 / 7;
    height: auto;
    min-height: unset;
    max-height: none;
  }

  #heroCarousel .carousel-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }
}

/* Cards (Used in Categories) */
.card {
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Team Preview */
.team-carousel .owl-stage {
  display: flex;
}

.team-carousel .owl-item {
  display: flex;
}

.team-carousel .item {
  display: flex;
  flex: 1;
  width: 100%;
}

.team-carousel .card {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  border-bottom: 3px solid var(--color-primary) !important;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.team-carousel .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.team-carousel figure {
  position: relative;
  overflow: hidden;
  margin: 0;
}

.team-carousel figure img {
  transition: transform 0.5s ease;
  width: 100%;
  aspect-ratio: 1/1.1;
  object-fit: cover;
}

.team-carousel .card:hover figure img {
  transform: scale(1.05);
}

.team-carousel figcaption {
  background-color: #fff;
  padding: 10px !important;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.team-carousel figcaption h4 {
  font-size: 16px !important;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--color-primary);
}

.team-carousel figcaption p {
  font-size: 0.8rem;
  font-weight: 700 !important;
  margin-bottom: 0;
  color: var(--color-accent) !important;
}


/* Clients */
.client-logo {
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
  max-height: 80px;
  margin: 0 auto;
}

.client-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* Classic Category Cards */
.category-classic-row {
  margin-top: 6px;
}

.category-card-classic {
  display: block;
  height: 100%;
  background: #fff;
  border: 1px solid rgba(37, 79, 34, 0.15);
  border-radius: 10px;
  text-decoration: none;
  text-align: center;
  padding: 22px 14px 18px;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
}

.category-card-classic:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
  box-shadow: 0 10px 20px rgba(37, 79, 34, 0.15);
}

.category-classic-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(37, 79, 34, 0.1);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 14px;
}

.category-card-classic h5 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
  min-height: 38px;
}

.category-card-classic p {
  font-size: 0.83rem;
  line-height: 1.55;
  color: #61707b;
  margin-bottom: 0;
  min-height: 52px;
}

/* Who We Are */
.who-we-are-section {
  background: linear-gradient(180deg, #f8faf8 0%, #ffffff 100%);
}

.who-we-are-wrap {
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(37, 79, 34, 0.12);
  box-shadow: 0 15px 40px rgba(37, 79, 34, 0.08);
  padding: 40px;
}

.who-we-are-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--color-secondary);
  background: rgba(160, 58, 19, 0.1);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.who-we-are-title {
  color: var(--color-primary);
  font-size: clamp(1.8rem, 2.3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.who-we-are-lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #2a2a2a;
  margin-bottom: 14px;
}

.who-we-are-text {
  font-size: 0.98rem;
  line-height: 1.75;
  color: #5c6770;
  max-width: 620px;
}

.who-we-are-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.who-we-are-highlights {
  background: #f7faf7;
  border-radius: 14px;
  border: 1px solid rgba(37, 79, 34, 0.08);
  padding: 24px;
}

.highlight-item {
  display: flex;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px dashed rgba(37, 79, 34, 0.2);
}

.highlight-item:last-child {
  margin-bottom: 0;
}

.highlight-icon {
  width: 42px;
  min-width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.highlight-item h5 {
  color: var(--color-primary);
  font-size: 1rem;
  margin: 2px 0 6px;
}

.highlight-item p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #5c6770;
}

.who-we-are-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.stat-box {
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(37, 79, 34, 0.12);
  text-align: center;
  padding: 14px 10px;
}

.stat-box h4 {
  color: var(--color-secondary);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.stat-box span {
  font-size: 0.82rem;
  font-weight: 600;
  color: #4a5560;
}

/* New Gallery Section Styles (Home Page Only) */
.section-header-custom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.section-header-custom h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.section-header-custom h2 span {
  color: var(--color-secondary);
}

.section-header-custom .header-line {
  flex-grow: 1;
  height: 1px;
  background-color: #eee;
  margin: 0 20px;
}

.btn-view-all {
  background-color: var(--color-primary);
  color: #fff;
  padding: 5px 10px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-view-all:hover {
  background-color: var(--color-secondary);
  color: #fff;
  transform: translateX(2px);
}

/* Gallery Grid Layout (Shared for Photo & Video) */
.gallery-grid-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(2, 160px);
  gap: 10px;
}

.gallery-item-main {
  grid-column: span 2;
  grid-row: span 2;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.gallery-item-small {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item-main:hover .gallery-thumb,
.gallery-item-small:hover .gallery-thumb {
  transform: scale(1.1);
}

/* Play Overlay (Videos only) */
.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.gallery-item-main:hover .play-overlay,
.gallery-item-small:hover .play-overlay {
  background: rgba(0, 0, 0, 0.4);
}

.play-icon {
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
  font-size: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.gallery-item-main .play-icon {
  width: 60px;
  height: 60px;
  font-size: 28px;
}

.gallery-item-main:hover .play-icon,
.gallery-item-small:hover .play-icon {
  transform: scale(1.1);
  background: var(--color-accent);
  color: #fff;
}

/* Video Text Overlay */
.video-text-overlay {
  position: absolute;
  top: 20%;
  left: 20px;
  max-width: 250px;
  z-index: 2;
  color: #fff;
  pointer-events: none;
}

.video-text-overlay .text-badge {
  background: rgba(160, 58, 19, 0.9);
  color: #fff;
  padding: 5px 15px;
  font-size: 1.5rem;
  font-weight: 800;
  border-radius: 4px;
  margin-bottom: 8px;
  display: inline-block;
}

.video-text-overlay .text-main {
  font-size: 1.8rem;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

/* Responsive Grid */
@media (max-width: 992px) {
  .category-card-classic h5 {
    min-height: auto;
  }

  .category-card-classic p {
    min-height: auto;
  }

  .who-we-are-wrap {
    padding: 26px;
  }

  .gallery-grid-container {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .gallery-item-main {
    grid-column: span 2;
    height: 300px;
  }

  .gallery-item-small {
    height: 160px;
  }
}

@media (max-width: 576px) {
  .who-we-are-wrap {
    padding: 20px;
  }

  .who-we-are-kicker {
    letter-spacing: 1.2px;
  }

  .who-we-are-lead {
    font-size: 1rem;
  }

  .who-we-are-actions .btn {
    width: 100%;
  }

  .who-we-are-stats {
    grid-template-columns: 1fr;
  }

  .section-header-custom {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .section-header-custom .header-line {
    display: none;
  }

  .gallery-grid-container {
    grid-template-columns: 1fr;
  }

  .gallery-item-main,
  .gallery-item-small {
    grid-column: span 1;
  }
}

/* Photo Gallery Preview Specific */
.photo-item {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.photo-item:hover img {
  transform: scale(1.1);
}

.photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(37, 79, 34, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.photo-item:hover .photo-overlay {
  opacity: 1;
}

.photo-overlay i {
  color: #fff;
  font-size: 30px;
}

/* Client Logos Marquee */
.marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 20px 0;
}

.marquee-content {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}

.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

.marquee-item {
  flex: 0 0 auto;
  width: 160px;
  margin: 0 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.marquee-item img {
  height: 50px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.marquee-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Product Carousel (Home Page) */
.product-carousel .owl-stage {
  display: flex;
}

.product-carousel .owl-item {
  display: flex;
}

.product-carousel .item {
  display: flex;
  flex: 1;
  width: 100%;
}

.product-carousel .product-card {
  width: 100%;
}

/* Featured Products Price Styling */
.featured-products-price {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: nowrap;
  justify-content: center;
  min-height: 24px;
}

.featured-products-price__original {
  display: inline-block;
  color: #6c757d;
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: line-through;
  text-decoration-color: #dc3545;
  text-decoration-thickness: 1.5px;
  opacity: 0.75;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.featured-products-price__discount {
  display: inline-block;
  color: #dc3545;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.featured-products-price__regular {
  display: inline-block;
  color: var(--color-primary);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.product-carousel .item:hover .featured-products-price__original {
  opacity: 1;
  transform: scale(1.02);
}


.product-carousel .owl-nav {
  position: absolute;
  top: 38%;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  margin: 0 !important;
  z-index: 10;
}

.product-carousel .owl-nav button.owl-prev,
.product-carousel .owl-nav button.owl-next {
  width: 40px;
  height: 40px;
  background-color: var(--color-primary) !important;
  color: #fff !important;
  border-radius: 50% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px !important;
  pointer-events: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: absolute;
  border: 2px solid #fff !important;
}

.product-carousel .owl-nav button.owl-prev {
  left: -20px;
}

.product-carousel .owl-nav button.owl-next {
  right: -20px;
}

.product-carousel .owl-nav button:hover {
  background-color: var(--color-secondary) !important;
  transform: scale(1.1);
}

.product-carousel .owl-dots {
  margin-top: 20px !important;
}

.product-carousel .owl-dot span {
  width: 12px !important;
  height: 12px !important;
  background: rgba(37, 79, 34, 0.3) !important;
}

.product-carousel .owl-dot.active span,
.product-carousel .owl-dot:hover span {
  background: var(--color-primary) !important;
}

/* Simple Category Carousel Cards */
.category-carousel .owl-stage {
  display: flex;
}

.category-carousel .owl-item {
  display: flex;
}

.category-carousel .item {
  display: flex;
  flex: 1;
  width: 100%;
}

.category-simple-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(37, 79, 34, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
}

.category-simple-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(37, 79, 34, 0.15);
}

.category-simple-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}

.category-simple-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-simple-card:hover .category-simple-img img {
  transform: scale(1.07);
}

.category-simple-body {
  padding: 4px 6px;
  text-align: center;
}

.category-simple-body h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0;
}

/* Category Carousel Nav */
.category-carousel .owl-nav {
  position: absolute;
  top: 35%;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  margin: 0 !important;
  z-index: 10;
}

.category-carousel .owl-nav button.owl-prev,
.category-carousel .owl-nav button.owl-next {
  width: 40px;
  height: 40px;
  background-color: var(--color-primary) !important;
  color: #fff !important;
  border-radius: 50% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px !important;
  pointer-events: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: absolute;
  border: 2px solid #fff !important;
}

.category-carousel .owl-nav button.owl-prev {
  left: -20px;
}

.category-carousel .owl-nav button.owl-next {
  right: -20px;
}

.category-carousel .owl-nav button:hover {
  background-color: var(--color-secondary) !important;
  transform: scale(1.1);
}

.category-carousel .owl-dots {
  margin-top: 20px !important;
}

.category-carousel .owl-dot span {
  width: 12px !important;
  height: 12px !important;
  background: rgba(37, 79, 34, 0.3) !important;
}

.category-carousel .owl-dot.active span,
.category-carousel .owl-dot:hover span {
  background: var(--color-primary) !important;
}

/* Premium Category Cards */
.category-card-premium {
  display: block;
  position: relative;
  height: 380px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none !important;
}

.category-card-premium:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.category-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.category-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.category-card-premium:hover .category-image {
  transform: scale(1.1);
}

.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: linear-gradient(to bottom, rgba(0,0,0,0) 20%, rgba(37, 79, 34, 0.8) 90%, rgba(37, 79, 34, 0.95) 100%); */
  transition: all 0.4s ease;
}

.category-card-premium:hover .category-overlay {
  /* background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(37, 79, 34, 0.9) 70%, rgba(37, 79, 34, 1) 100%); */
}

.category-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  color: #fff;
  z-index: 2;
  transition: all 0.4s ease;
}

.category-icon {
  width: 50px;
  height: 50px;
  background: var(--color-accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease 0.1s;
}

.category-card-premium:hover .category-icon {
  transform: translateY(0);
  opacity: 1;
}

.category-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}

.category-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 0;
  opacity: 0;
  transition: all 0.4s ease 0.2s;
}

.category-card-premium:hover .category-desc {
  height: 45px;
  opacity: 1;
}

.category-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-link i {
  transition: transform 0.3s ease;
}

.category-card-premium:hover .category-link i {
  transform: translateX(5px);
}

/* Team Carousel Custom Styles */
.team-carousel .owl-nav {
  position: absolute;
  top: 35%;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  margin: 0 !important;
  z-index: 10;
}

.team-carousel .owl-nav button.owl-prev,
.team-carousel .owl-nav button.owl-next {
  width: 40px;
  height: 40px;
  background-color: var(--color-primary) !important;
  color: #fff !important;
  border-radius: 50% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px !important;
  pointer-events: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
  border: 2px solid #fff !important;
}

.team-carousel .owl-nav button.owl-prev {
  left: -20px;
}

.team-carousel .owl-nav button.owl-next {
  right: -20px;
}


.team-carousel .owl-nav button:hover {
  background-color: var(--color-secondary) !important;
  transform: scale(1.1);
}

.team-carousel .owl-dots {
  margin-top: 20px !important;
}

.team-carousel .owl-dot span {
  width: 12px !important;
  height: 12px !important;
  background: rgba(37, 79, 34, 0.3) !important;
}

.team-carousel .owl-dot.active span,
.team-carousel .owl-dot:hover span {
  background: var(--color-primary) !important;
}

/* Authority / Message from the Authorities */
.authority-section {
  background: linear-gradient(180deg, #f8faf8 0%, #ffffff 100%);
}

/* Authority section header override — centered layout */
.authority-section .section-header-custom,
.authority-section-header {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.authority-section .section-header-custom .header-line,
.authority-section-header .header-line {
  width: 80px;
  flex-grow: 0;
  height: 3px;
  background: var(--color-secondary);
  border-radius: 2px;
  margin: 0;
}

.authority-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(37, 79, 34, 0.12);
  box-shadow: 3px 3px 5px 3px #254f226b;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: row;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.authority-card:hover {
  transform: translateY(-4px);
  box-shadow: 3px 3px 10px 2px #254f22;
}

.authority-card {
  position: relative;
  overflow: hidden;
}

/* Quote Icon */
.authority-card::after {
  content: "❞";
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 120px;
  font-weight: bold;
  color: rgba(0, 0, 0, 0.05);
  line-height: 1;
  z-index: 0;
}

/* Keep content above quote */
.authority-card * {
  position: relative;
  z-index: 1;
}

.authority-img-wrap {
  width: 200px;
  min-width: 200px;
  overflow: hidden;
  position: relative;
}

.authority-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.authority-card:hover .authority-img {
  transform: scale(1.05);
}

.authority-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.authority-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-secondary);
  background: rgba(160, 58, 19, 0.1);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.authority-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.authority-quote {
  font-size: 0.85rem;
  font-style: italic;
  color: #2a2a2a;
  border-left: 3px solid var(--color-secondary);
  padding-left: 10px;
  margin-bottom: 8px;
  line-height: 1.55;
}

.authority-text {
  font-size: 0.82rem;
  line-height: 1.65;
  color: #5c6770;
  flex: 1;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.authority-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px dashed rgba(37, 79, 34, 0.2);
}

.authority-name {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
}

.authority-role {
  display: block;
  font-size: 14px;
  color: var(--color-secondary);
  font-weight: 600;
}

/* ============================================
   RESPONSIVE — TABLET & MOBILE ONLY
   Desktop (≥992px) is untouched
   ============================================ */

/* ---- Tablet: 768px – 991px ---- */
@media (max-width: 991.98px) {

  /* Section header: stack on tablet */
  .section-header-custom {
    flex-wrap: wrap;
    gap: 10px;
  }

  .section-header-custom h2 {
    font-size: 1.2rem;
    white-space: normal;
  }

  /* Carousel nav buttons: pull inside so they don't overflow */
  .team-carousel .owl-nav button.owl-prev,
  .category-carousel .owl-nav button.owl-prev,
  .product-carousel .owl-nav button.owl-prev {
    left: 0;
  }

  .team-carousel .owl-nav button.owl-next,
  .category-carousel .owl-nav button.owl-next,
  .product-carousel .owl-nav button.owl-next {
    right: 0;
  }

  /* Who We Are */
  .who-we-are-wrap {
    padding: 26px 20px;
  }

  .who-we-are-title {
    font-size: 1.6rem;
  }

  /* Gallery grid: 3-col on tablet */
  .gallery-grid-container {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
  }

  .gallery-item-main {
    grid-column: span 3;
    height: 260px;
  }

  .gallery-item-small {
    height: 140px;
  }

  /* Authority: keep side-by-side on tablet, just reduce image width */
  .authority-img-wrap {
    width: 160px;
    min-width: 160px;
  }
}

/* ---- Mobile: ≤767px ---- */
@media (max-width: 767.98px) {

  /* Section header */
  .section-header-custom {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }

  .section-header-custom h2 {
    font-size: 1.1rem;
    white-space: normal;
  }

  .section-header-custom .header-line {
    display: none;
  }

  /* Authority card: keep horizontal like tablet, smaller image */
  .authority-card {
    flex-direction: row;
  }

  .authority-img-wrap {
    width: 120px;
    min-width: 120px;
    height: auto;
  }

  .authority-img {
    object-position: top center;
  }

  .authority-body {
    padding: 12px 14px;
  }

  .authority-name {
    font-size: 15px;
  }

  .authority-role {
    font-size: 12px;
  }

  .authority-text {
    -webkit-line-clamp: 4;
    line-clamp: 4;
    font-size: 0.8rem;
  }

  .authority-footer {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
  }

  /* Category image height */
  .category-simple-img {
    height: 160px;
  }

  /* Product image height */
  .product-image {
    height: 100% !important;
  }

  .product-name {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;

  }

  /* Who We Are */
  .who-we-are-wrap {
    padding: 20px 16px;
  }

  .who-we-are-title {
    font-size: 1.4rem;
  }

  .who-we-are-lead {
    font-size: 1rem;
  }

  .who-we-are-actions {
    flex-direction: column;
  }

  .who-we-are-actions .btn {
    width: 100%;
  }

  .who-we-are-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Gallery: 2-col on mobile */
  .gallery-grid-container {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .gallery-item-main {
    grid-column: span 2;
    height: 200px;
  }

  .gallery-item-small {
    height: 120px;
  }

  /* Carousel nav: inside container */
  .team-carousel .owl-nav button.owl-prev,
  .category-carousel .owl-nav button.owl-prev,
  .product-carousel .owl-nav button.owl-prev {
    left: 0;
    width: 32px;
    height: 32px;
    font-size: 16px !important;
  }

  .team-carousel .owl-nav button.owl-next,
  .category-carousel .owl-nav button.owl-next,
  .product-carousel .owl-nav button.owl-next {
    right: 0;
    width: 32px;
    height: 32px;
    font-size: 16px !important;
  }

  /* Marquee items smaller on mobile */
  .marquee-item {
    width: 120px;
    margin: 0 10px;
  }

  .marquee-item img {
    height: 36px;
  }
}

/* ---- Small mobile: ≤575px ---- */
@media (max-width: 575.98px) {

  /* Section header: full column */
  .section-header-custom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  /* Authority card: tighter on small screens, still horizontal */
  .authority-img-wrap {
    width: 100px;
    min-width: 100px;
    height: auto;
  }

  .authority-body {
    padding: 10px 12px;
  }

  .authority-footer {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  /* Gallery: single column */
  .gallery-grid-container {
    grid-template-columns: 1fr;
  }

  .gallery-item-main,
  .gallery-item-small {
    grid-column: span 1;
    height: 180px;
  }

  /* Who We Are stats */
  .who-we-are-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* Category grid styles to mimic the screenshot tiles */
.category-simple-card {
  border: 1px solid #e9ecef;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: .65rem;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.category-simple-card .category-simple-img {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .5rem;
}

.category-simple-card .category-simple-img img {
  max-height: 64px;
  max-width: 100%;
  object-fit: contain;
}

.category-simple-card p {
  font-size: 13px !important;
  margin: 0;
  color: #222;
}

.category-simple-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transform: translateY(-4px);
  transition: all .18s ease;
}

/* Keep grid compact on small screens */
@media (max-width: 576px) {
  .category-simple-card .category-simple-img {
    height: 56px;
  }

  .category-simple-card .category-simple-img img {
    max-height: 48px;
  }
}