/************** EXPERTISE **************/
.inner-expertise-gallery {
    position: relative;
    width: 90vw;
    margin: 0 auto;
    height: 100vh;
    align-items: center;
    overflow: hidden;
    /* border: 1px solid red; */
}
.expertise-cards {
    position: absolute;
    width: 100%;
    height: 90vh;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
@media (max-width: 3200px) {
    .expertise-cards {
      max-width: 2800px;
    }
}
@media (max-width: 2200px) {
    .expertise-cards {
      max-width: 1600px;
    }
}
@media (max-width: 2000px) {
    .expertise-cards {
      max-width: 1600px;
    }
}
@media (max-width: 1880px) {
    .expertise-cards {
      max-width: 1400px;
    }
}
@media (max-width: 1660px) {
    .expertise-cards {
      max-width: 1200px;
    }
}
@media (max-width: 1440px) {
    .expertise-cards {
      max-width: 900px;
    }
}
@media (max-width: 960px) {
    .expertise-cards {
      max-width: 800px;
    }
}
.expertise-card {
    padding: 0;
    margin: 0;
    width: 70vw;
    max-width: 3000px;
    height: 100%;
    text-align: center;
    line-height: 18rem;
    font-size: 2rem;
    font-family: sans-serif;
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    /* backface-visibility: hidden; */
    will-change: transform, width, left;
    transition: all 0.3s ease;
	border-radius: 12px;
}
.expertise-card.active {
    width: 80%;
}


@media (max-width: 960px) {
    .expertise-card {
      max-width: 780px;
    }
}

/* INNER CARD STYLES */
.expertise_gallery .expertise-card .inner-expertise {
	position: absolute;
    height: 100%;
    text-align: left;
}
.expertise_gallery .expertise-card div ul {
    display: none;
    opacity: 0;
    transition: all 0.5s ease;
}

.expertise_gallery .expertise-card.active div ul {
    display: block;
    opacity: 1;
    transition: all 0.5s ease;
}
/* SVG button styles */
.expertise-card:not(.active) .rotating-btn {
  display: none;
}

.expertise-card.active rotating-button {
  display: inline-block;
}

.inner-expertise {
	position: relative;
}
.expertise-file-img {
	position: absolute;
	top: 0px; 
	right: 0px;
	height: 100%;
	width: 100%;
	z-index: 0;
}
.expertise-card h2 {
	position: relative;
    color: #fff;
    font-family: 'owners-xnarrow', sans-serif;
    font-weight: 300;
    font-size: 4.5rem;
    line-height: 1.4;
    letter-spacing: 5px;
    margin: 0 0 0 -1.5rem;
    padding: 0;
    text-transform: uppercase;
	writing-mode: vertical-rl;
    transition: all 0.5s ease;
}
.right-of-active.expertise-card h2 {
	right: -20px;
	text-align: right;
	margin: 0 0 0 auto;
}
.active.expertise-card h2 {
  color: #fff;
  font-weight: 700;
	transform: none;
	margin: 0 0 1.0rem;
	writing-mode: horizontal-tb;
}
.expertise-card ul {
	list-style-type: none;
    color: #f4f4f4;
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 400;
    margin: 0;
    padding: 0;
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
	column-count: 1;
	row-gap: 2.5em;
	column-gap: 2.5rem;
}
.expertise-card li {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 15px;
}
.expertise-card li a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
  display: inline-block;
  padding: 5px 0;
}
.expertise-card li a:hover,
.expertise-card li a.active {
  color: #00e099; /* The green color as seen in the "Packaging Design" item */
}
.inner-expertise-media {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	right: 0;
	z-index: -1;
	border-radius: 12px;
    overflow: hidden;
}
.inner-expertise-media img {
    position: absolute;
    height: 100%;
    object-fit: cover;
    right: 0;
    border-radius: 0px 12px 12px 0px;
}
.inner-expertise-media video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

.exp-card-1 {
    background: #030303;
    background: linear-gradient(45deg,rgba(3, 3, 3, 1) 0%, rgba(75, 78, 77, 1) 100%);
}
.exp-card-1:not(.active) {
    background: linear-gradient(0deg, rgba(23,23,23,.65) 0%, rgba(2,2,2,.65) 49%, rgba(3,3,3,.65) 100%),
	linear-gradient(180deg, #010101, #010101, #010101, #010101, #020202, #020202, #020202, #020202);
}

.exp-card-2 {
    background: linear-gradient(180deg, #698063, #698063, #698063, #698063, #698063, #698063, #698063, #698063);
}
.exp-card-2:not(.active) {
    background: linear-gradient(0deg, rgba(105,128,99,.65) 0%, rgba(105,128,99,.65) 49%, rgba(105,128,99,.65) 100%),
	linear-gradient(180deg, #698063, #698063, #698063, #698063, #698063, #698063, #698063, #698063);
}

.exp-card-3 {
    background: #082833;
}
.exp-card-3:not(.active) {
    background: #082833;
}

.exp-card-4 {
  background: linear-gradient(to top, #6AAF6E, #6AAF6E, #6AAF6E);
}
.exp-card-4:not(.active) {
  background: linear-gradient(to top, #6AAF6E, #6AAF6E, #6AAF6E);
}

.exp-card-5 {
  background: linear-gradient(180deg, #002e1e, #002e1e, #002e1e, #002e1e, #002e1e, #002e1e, #002e1e, #002e1e);
}
.exp-card-5:not(.active) {
  background: linear-gradient(0deg, rgba(0,46,30,.65) 0%, rgba(0,46,30,.65) 49%, rgba(21,28,21,.65) 100%),
	linear-gradient(180deg, #002e1e, #002e1e, #002e1e, #002e1e, #002e1e, #002e1e, #002e1e, #002e1e);
}

@media (max-width: 960px) {
    .inner-expertise-gallery.swiper {
        overflow: visible; /* Allow adjacent slides to be visible */
        height: 88vh;
    }
    .inner-expertise-gallery {
        width: 100%;
    }
    .expertise-cards.swiper-wrapper {
        display: flex; /* Swiper handles layout */
        top: unset;
        left: unset;
    }
    .expertise-card.swiper-slide {
        position: relative;
        width: 90vw;
        height: 78vh;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        margin-top: 5vh;
        padding: 20px;
        box-sizing: border-box;
        opacity: 0.6; /* Dim non-active slides */
        transition: opacity 0.3s ease;
    }

    .expertise-card.swiper-slide-active {
        opacity: 1; /* Highlight active slide */
        height: 88vh;
        margin-top: 0vh;
    }

    /*TEXT STYLES FOR MOBILE */
    .expertise-card h2,
    .expertise-card ul {
        display: none;
    }
    .expertise-card.swiper-slide-active h2 {
        display: block;
        opacity: 1;
        color: #fff;
        font-weight: 700;
        transform: none;
        margin: 0 0 1.0rem;
        writing-mode: horizontal-tb;
        font-size: 3.0rem;
        margin: 0 0 0rem;
    }
    .expertise-card.swiper-slide-active div ul {
        display: block;
        opacity: 1;
        transition: all 0.5s ease;
    }
    .expertise-card li {
        font-size: 15px;
        line-height: 1.1;
    }
    .expertise-card.swiper-slide-active div .case-study-btn {
        transform: scale(.8);
    }
    .expertise-card:not(.swiper-slide-active) .rotating-btn {
        display: none;
    }
    .expertise-card.swiper-slide-active .rotating-btn {
        display: inline-block;
    }

    .inner-expertise-media img {
        object-fit: contain;
        object-position: bottom;
    }

    .exp-card-1 {
        background: #030303;
        background: linear-gradient(45deg,rgba(3, 3, 3, 1) 0%, rgba(75, 78, 77, 1) 100%);
    }
    .exp-card-1:not(.swiper-slide-active) {
        background: linear-gradient(0deg, rgba(23,23,23,.65) 0%, rgba(2,2,2,.65) 49%, rgba(3,3,3,.65) 100%),
        linear-gradient(180deg, #010101, #010101, #010101, #010101, #020202, #020202, #020202, #020202);
    }

    .exp-card-2 {
        background: linear-gradient(180deg, #698063, #698063, #698063, #698063, #698063, #698063, #698063, #698063);
    }
    .exp-card-2:not(.swiper-slide-active) {
        background: linear-gradient(0deg, rgba(105,128,99,.65) 0%, rgba(105,128,99,.65) 49%, rgba(105,128,99,.65) 100%),
        linear-gradient(180deg, #698063, #698063, #698063, #698063, #698063, #698063, #698063, #698063);
    }

    .exp-card-3 {
        background: #082833;
    }
    .exp-card-3:not(.swiper-slide-active) {
        background: #082833;
    }

    .exp-card-4 {
    background: linear-gradient(to top, #6AAF6E, #6AAF6E, #6AAF6E);
    }
    .exp-card-4:not(.swiper-slide-active) {
    background: linear-gradient(to top, #6AAF6E, #6AAF6E, #6AAF6E);
    }

    .exp-card-5 {
    background: linear-gradient(180deg, #002e1e, #002e1e, #002e1e, #002e1e, #002e1e, #002e1e, #002e1e, #002e1e);
    }
    .exp-card-5:not(.swiper-slide-active) {
    background: linear-gradient(0deg, rgba(0,46,30,.65) 0%, rgba(0,46,30,.65) 49%, rgba(21,28,21,.65) 100%),
        linear-gradient(180deg, #002e1e, #002e1e, #002e1e, #002e1e, #002e1e, #002e1e, #002e1e, #002e1e);
    }
    
}