/* Reset and base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* Header styling */
.page-header {
    width: 100%;
    text-align: center;
    padding: 1.5rem 1rem;
    background-color: #ffffff;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.page-header h1 {
    font-size: 2.2rem;
    font-weight: 600;
    color: #222;
}

/* Carousel layout */
.carousel {
    position: relative;
    width: 90vw;
    max-width: 1000px;
    height: 70vh;
    margin-top: 2rem;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.carousel-container {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
    padding: 20px;
}

.slide.active {
    display: block;
}

/* Navigation buttons */
.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    padding: 14px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    transition: background 0.3s;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.prev {
    left: 15px;
}

.next {
    right: 15px;
}

/* Dots navigation */
.dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background-color: #333;
}

.dot:hover {
    background-color: #555;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 1.6rem;
    }

    .carousel {
        height: 60vh;
    }

    .slide {
        padding: 10px;
    }

    .prev,
    .next {
        padding: 10px;
        font-size: 16px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }
}