/* Features Page Styles */
.features-main {
    position: relative;
    width: 100%;
    height: calc(100% - 80px);
    overflow: hidden;
}

.features-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.features-bg.active {
    opacity: 1;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start; /* Changed from center to flex-start for fixed positioning */
    justify-content: space-between;
    padding: 0 10%; /* Adjust padding as needed */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slide-content-left {
    flex: 0 0 50%; /* Fixed width to prevent compression */
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    justify-content: flex-start;
    padding-left: 50px; /* Space for axis */
    padding-top: 20vh; /* Reduced from 30vh to fix "too sunken" issue */
}

@media (orientation: portrait) {
    .slide-content-left {
        padding-top: 270px; /* Fixed px for mobile portrait */
    }
}

.slide-title {
    width: 600px; /* Increased size */
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.slide-txt {
    width: 600px; /* Increased size to match title */
    max-width: 100%;
    height: auto;
}

.slide-content-right {
    flex: 0 0 50%; /* Fixed width */
    height: 100%;
    display: flex;
    justify-content: flex-end; /* Align to right */
    align-items: center;
    padding-top: 100px; /* Move phone down */
    padding-right: 0; /* Remove padding to go further right */
}

.slide-phone {
    max-height: 90vh; /* Restore vh for PC */
    width: auto;
    object-fit: contain;
    transform: translateX(150px); /* Move further right */
}

@media (orientation: portrait) {
    .slide-phone {
        max-height: 750px; /* Fixed px for mobile portrait */
    }
}

/* Axis Navigation */
.axis-nav {
    position: absolute;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 100px; /* Distance between dots */
    z-index: 10;
}

.axis-nav.axis-right {
    left: auto;
    right: 5%;
}

.axis-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: rgba(255, 255, 255, 0.5);
    z-index: -1;
}

.axis-dot {
    width: 15px;
    height: 15px;
    background-color: white;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s, background-color 0.3s;
}

.axis-dot.active {
    background-color: #a00000; /* Red active dot */
    transform: scale(1.5);
    border: 2px solid white;
}

/* Slide 5 Specific Styles */
.slide-5 {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0; /* Reset padding */
}

.slide-5-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}5vh; /* Restore vh for PC */
}

@media (orientation: portrait) {
    .slide-5-toptitle {
        margin-top: 45px; /* Fixed px for mobile portrait */
    }

.slide-5-toptitle {
    max-width: 80%;
    height: auto;
    object-fit: contain;
    margin-top: 45px; /* Move down (was 5vh) */
}

.cards-wrapper {
    position: relative;
    width: 80%; /* Adjust width as needed */
    max-width: 800px; /* Smaller cards */
    height: 320px; /* Smaller height */
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-card.active {
    opacity: 1;
    pointer-events: auto;
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Or cover depending on design */
    z-index: 0;
}

.card-content {
    position: relative;
    z-index: 1;
    width: 90%;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px;
}

.card-txt {
    flex: 1;
    max-width: 55%; /* Smaller text */
    height: auto;
    object-fit: contain;
    margin-left: 180px; /* Move further right */
}

.card-icon {
    width: 60px; /* Adjust size */
    height: auto;
    cursor: pointer;
    transition: transform 0.3s;
}

.card-icon:hover {
    transform: scale(1.1);
}

.card-indicators {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.card-dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.card-dot.active {
    background-color: #fff;
    transform: scale(1.2);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}
