
/* Custom style */

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 600px;
    max-height: 380px;
    overflow: hidden;
    background-color: #f5f5f5;
    margin-top:-75px;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%; /* 3 × 1300px to show prev, active, next */
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 auto;
    will-change: transform;
}

.slider-container.no-transition {
    transition: none;
}

.slide {
    position: absolute;
    width: 100%;
    max-width: 1300px;
    height: 100%;
    top: 0;
    right: 0;
    transition: opacity 0.6s ease, transform 0.6s ease, filter 0.6s ease, left 0.6s ease;
    /*opacity: 0.4;*/
    z-index: 1;
    background: rgba(0, 0, 0, 0.87);
}

.slide.active {
    left: 1300px; /* Center position */
    opacity: 1;
    z-index: 3;
    filter: blur(0);
}

.slide.prev {
    left: 0; /* Left position */
    /*opacity: 0.5;*/
    z-index: 1;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.87);
}

.slide.next {
    left: 2600px; /* Right position */
    /*opacity: 0.5;*/
    z-index: 1;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.87);
}

/* Temporary clone slides use same positioning */
.slide-temp-clone {
    position: absolute;
    width: 1300px;
    height: 100%;
    top: 0;
    transition: opacity 0.6s ease, transform 0.6s ease, filter 0.6s ease, left 0.6s ease;
}

.slide-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.slide-image-0 {
    background: linear-gradient(135deg, #8a8a8a 0%, #5a5a5a 100%);
    background-image: 
        linear-gradient(135deg, rgba(138, 138, 138, 0.9) 0%, rgba(90, 90, 90, 0.9) 100%),
        url('data:image/svg+xml,%3Csvg width="400" height="400" xmlns="http://www.w3.org/2000/svg"%3E%3Cdefs%3E%3Cpattern id="concrete" x="0" y="0" width="40" height="40" patternUnits="userSpaceOnUse"%3E%3Crect width="40" height="40" fill="%23ccc"/%3E%3Cpath d="M0 20h40M20 0v40" stroke="%23aaa" stroke-width="0.5" opacity="0.3"/%3E%3C/pattern%3E%3C/defs%3E%3Crect width="100%25" height="100%25" fill="url(%23concrete)"/%3E%3C/svg%3E');
}

.slide-image-1 {
    background: linear-gradient(135deg, #e0e0e0 0%, #c0c0c0 100%);
    background-image: 
        linear-gradient(135deg, rgba(224, 224, 224, 0.9) 0%, rgba(192, 192, 192, 0.9) 100%),
        url('data:image/svg+xml,%3Csvg width="400" height="400" xmlns="http://www.w3.org/2000/svg"%3E%3Cdefs%3E%3Cpattern id="light" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"%3E%3Crect width="20" height="20" fill="%23f0f0f0"/%3E%3Ccircle cx="10" cy="10" r="1" fill="%23ddd" opacity="0.5"/%3E%3C/pattern%3E%3C/defs%3E%3Crect width="100%25" height="100%25" fill="url(%23light)"/%3E%3C/svg%3E');
}

.slide-overlay {
     position: relative; 
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #00000052;
}
.slide:not(.active) .slide-overlay::before {
    content: '';
    background-color: #0000008f;
    width: 100%;
    height: 100vh;
    z-index: 99999;
    top: 0;
    left: 0;
    position: absolute;
}
.slide-overlay a{
    height: 100%;
}
.slide-overlay img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-text {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.slide-title {
    font-size: 48px;
    font-weight: 300;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.kuu-logo {
    font-size: 72px;
    font-weight: 300;
    color: #fff;
    letter-spacing: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.panasonic-logo-small {
    font-size: 36px;
    font-weight: 400;
    color: #fff;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 0;
    transition: background 0.3s;
}

.slider-btn:hover {
    background: transparent;
}
.slider-btn svg{
    stroke-width: 1px;
    width: 50px;
    height: 50px;
}

.prev-btn {
    left: 12%;
}

.next-btn {
    right: 12%;
}

.slider-indicators {
    position: absolute;
    bottom: 30px;
    right: 15%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.progress-bar-container {
    width: 70px;
    height: 4px;
    background: #fff;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: background 0.2s ease;
}

.progress-bar-container:hover {
    background: rgba(255, 255, 255, 0.5);
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: #000;
    transition: none;
}

.progress-bar-container.active .progress-bar {
    animation: progressAnimation 5s linear forwards;
}

@keyframes progressAnimation {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

.slider-cta {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 10;
}

.cta-btn {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    letter-spacing: 1px;
    border-radius: 40px;
    text-decoration: none;
}

.cta-btn:hover {
    background-color: #333;
}


/* News Ticker */
.news-ticker {
    padding: 15px 10px;
    width:100%;
    position:relative;
}
.news-ticker::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100vw;
  height: 1px;              /* border thickness */
  background-color: #e0e0e0;  /* border color */
}

.ticker-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ticker-text-wrapper {
    position: relative;
    overflow: hidden;
    height: 24px; /* Height of one ticker item */
    flex: 1;
}

.ticker-text-container {
    position: relative;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.ticker-text-item {
    display: flex;
    gap: 15px;
    align-items: center;
    min-height: 24px;
    height: 24px;
    white-space: nowrap;
    flex-shrink: 0;
}

.ticker-text {
    display: flex;
    gap: 15px;
    align-items: center;
}

.ticker-date {
    color: #000;
    font-size: 16px;
    font-weight: 600;
}

.ticker-update {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

.ticker-message {
    color: #000;
    font-size: 16px;
}

.ticker-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.ticker-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #ccc;
    border-radius: 50%;
    transition: 0.4s ease;
}

.ticker-btn:hover {
    color: #000;
    background: transparent;
    border: 1px solid #000;
}

.ticker-learn-more {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 11px 40px;
    text-align: center;
    font-size: .875rem;
    font-weight: 700;
    line-height: 1.2;
    border: 1px solid #ccc;
    color: #000;
    text-decoration: none;
    border-radius: 999px;
    transition: border-color ease-out .3s, background-color ease-out .3s;
}
.ticker-learn-more:hover{
    background: transparent;
    color: #000;
    border-color: #000;
}


/* Case Study Section */
.casestudy-section .grid {
  display: flex;
  gap: 40px;
}

/* ========== IMAGE OVERLAY ========== */
.image-box {
  position: relative;
  overflow: hidden;
}

.image-box img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.image-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  transform: translateX(-100%);
  z-index: 2;
}

.image-box.slides::after {
  animation: wipeLTR 1.4s ease forwards;
}

/* ========== TEXT OVERLAY ========== */
.text-box {
  position: relative;
  overflow: hidden;
}

.text-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: translateX(-100%);
  z-index: 2;
}

.text-box.slides::after {
  animation: wipeLTR 1.4s ease forwards;
}

/* SHARED ANIMATION (LEFT -> RIGHT) */
@keyframes wipeLTR {
  0%   { transform: translateX(-100%); }
  50%  { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* ========== FEATURED ========== */
.featured {
  flex: 2;
}

.featured img {
  height: 420px;
}

.meta {
  margin-top: 14px;
  font-size: 16px;
  color: #777;
}

.title {
  font-size: 22px;
  font-weight: 600;
  margin-top: 8px;
}

/* ========== LIST ========== */
.list {
  flex: 1;
}

.item {
  display: flex;
  gap: 16px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid #e5e5e5;
}

.item img {
  width: 160px;
  height: 100px;
}

/* ========== NAV ========== */
.nav {
  margin-top: 40px;
  display: flex;
  gap: 20px;
}

.nav span {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 70px;
  font-weight: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  padding-bottom: 10px;
}
.nav span#next{
    border: 1px solid #ccc;
}
.item .image-box {
  width: 160px;
  height: 110px;   /* adjust if you want taller/shorter */
  flex-shrink: 0;
}

.item .image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-form-input input{
    width: 100%;
}
@media (max-width: 768px) {
  .item .image-box {
    width: 100%;
    height: 180px;
  }
  .slider-indicators {
    right: 15%;
    transform: translateX(0%);
}
.slide.active {
    left: 1567px;
}
.slide-overlay {
    position: absolute;
}
}

@media (max-width: 767px) {
  .casestudy-section .grid {
    flex-direction: column;
}
.slide.active {
    left: 1735px;
}
.slider-indicators {
    right: 5%;
    transform: translateX(0%);
}
.progress-bar-container {
    width: 45px;
}
.ticker-text-wrapper {
    height: 40px;
    flex: none;
}

.ticker-content {
    flex-direction: column;
}
.ticker-text-item {
    display: flex;
    min-height: 10px;
    height: 35px;
    justify-content: center;
}
.ticker-message {
    text-overflow: ellipsis;
    overflow: hidden;
    width: 190px;
    height: 1.2em;
    white-space: nowrap;
}

.discover-sec .elementor-image-box-title {
    margin-top:12px;
}

}
@media (max-width: 420px) {
    .slide.active {
        left: 1743px;
    }
}
@media (max-width: 380px) {
    .slide.active {
        left: 1763px;
    }
}