﻿* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Main Content Wrapper (Creates the 2-Column Layout) */
.main-container {
    display: flex;
    gap: 20px; /* Space between slider and cards */
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px;
}

/* --- LEFT SIDE: SLIDER STYLES --- */
.slider-container {
    flex: 2; /* Takes up 2/3 of the width */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 450px; /* Matching the height of the card column */
}

.slider-wrapper {
    display: flex;
    width: 800%; /* 8 Images */
    height: 100%;
    animation: autoSlide 24s infinite ease-in-out; 
}

.slider-wrapper:hover {
    animation-play-state: paused;
}

.item {
    width: 100%;
    height: 100%;
}

.item img {
    width: 100%;
    height: 100%;
    object-fit:fill;
    display: block;
}

/* --- RIGHT SIDE: VERTICAL FEATURE CARDS STYLES --- */
.sidebar-cards {
    flex: 1; /* Takes up 1/3 of the width */
    display: flex;
    flex-direction: column; /* Stacks boxes vertically */
    justify-content: space-between; /* Evenly spreads the 3 boxes */
    gap: 15px;
}

.feature-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid #0056b3; /* Sleek colored accent border */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex: 1; /* Makes all 3 boxes share equal height */
}

/* Subtle interactive pop effect on hover */
.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.feature-card h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 1.1rem;
}

.feature-card p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* --- RESPONSIVE BREAKPOINT (For Mobile Screens) --- */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column; /* Stack slider on top of cards on mobile */
    }
    .slider-container {
        height: 300px; /* Shorter slider height on smaller mobile screens */
    }
}

/* --- ANIMATION KEYFRAMES --- */
@keyframes autoSlide {
    0%, 9%       { transform: translateX(0); }
    12.5%, 21.5% { transform: translateX(-12.5%); }
    25%, 34%     { transform: translateX(-25%); }
    37.5%, 46.5% { transform: translateX(-37.5%); }
    50%, 59%     { transform: translateX(-50%); }
    62.5%, 71.5% { transform: translateX(-62.5%); }
    75%, 84%     { transform: translateX(-75%); }
    87.5%, 96.5% { transform: translateX(-87.5%); }
    100%         { transform: translateX(0); }
}