/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/* Base layout fixes */
body {
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.brxe-section {
    max-width: 100%;
    overflow: hidden;
    margin: 0 auto;
    box-sizing: border-box;
}

.brxe-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Carousel specific styles */
.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
}

.carousel-slides {
    display: flex;
    transition: transform 0.4s ease-in-out;
    width: 100%;
    cursor: grab;
}

.carousel-slides:active {
    cursor: grabbing;
}

.slide {
    flex: 0 0 100%;
    width: 100%;
    padding: 60px;
    box-sizing: border-box;
    user-select: none;
}

/* Різні фони для слайдів */
.slide:nth-child(1) {
    background-color: #E5F0FF;
}

.slide:nth-child(2) {
    background-color: #f6c018;
}

.slide:nth-child(3) {
    background-color: #F5F5F5;
}

.slide:nth-child(4) {
    background-color: #101828;
    color: white;
}

.slide:nth-child(4) .brxe-heading,
.slide:nth-child(4) .brxe-text-link {
    color: #f6c018;
}

.slide:nth-child(5) {
    background-color: #101828;
}

/* Стилі для тексту */
.brxe-heading {
    font-size: 32px;
    line-height: 1.4;
    margin-bottom: 20px;
    font-weight: 700;
    max-width: 800px;
}

.brxe-text-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #101828;
    font-weight: 500;
    margin-top: 20px;
}

.brxe-text-link:hover {
    text-decoration: underline;
}

.brxe-text-link svg {
    width: 22px;
    height: 16px;
}

/* Пагінація */
.carousel-pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(16, 24, 40, 0.2);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    width: 24px;
    border-radius: 12px;
    background-color: #101828;
}

/* Темна тема для слайдів */
.slide.dark-theme {
    background-color: #101828;
    color: white;
}

.slide.dark-theme .carousel-dot {
    background-color: rgba(255, 255, 255, 0.2);
}

.slide.dark-theme .carousel-dot.active {
    background-color: #fff;
}

/* Адаптивність */
@media (max-width: 768px) {
    .slide {
        padding: 30px;
    }

    .brxe-heading {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .slide {
        padding: 20px;
    }

    .brxe-heading {
        font-size: 20px;
    }
}