.ctb-slider-container {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #1a1a1a;
}

.ctb-slides-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.ctb-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0; /* Removed side padding entirely */
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center; /* Centers content container horizontally */
}

.ctb-slide.active {
    opacity: 1;
    visibility: visible;
}

/* Background Image and Video Support */
.ctb-slide-bg, .ctb-slide-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.ctb-slide-bg {
    background-size: cover;
    background-position: center;
}

.ctb-slide-bg-video {
    object-fit: cover; /* Ensures HTML5 video fills the whole container perfectly */
}

.ctb-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.ctb-slide-content {
    position: relative;
    z-index: 3;
    color: white;
    width: 90%; /* Defines width here instead of using padding on the slide wrapper */
    max-width: 1200px;
    display: flex;
    flex-direction: column;
}

/* Typography */
.ctb-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
    font-family: serif;
}

/* Hide the underline if SplitText is doing character animation to avoid overlap issues */
.ctb-title[data-split="no"]::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #d4af37;
    margin-top: 15px;
    border-radius: 2px;
}

.ctb-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Buttons */
.ctb-buttons {
    display: flex;
    gap: 15px;
    width: 100%;
}

.ctb-btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: sans-serif;
    font-size: 0.95rem;
}

.ctb-btn-primary {
    background-color: #d4af37;
    color: #111;
    border: 2px solid #d4af37;
}

.ctb-btn-primary:hover {
    background-color: #fff;
    border-color: #fff;
}

.ctb-btn-outline {
    background-color: transparent;
    color: #d4af37;
    border: 2px solid #d4af37;
}

.ctb-btn-outline:hover {
    background-color: #d4af37;
    color: #111;
}

/* Navigation & Bullets */
.ctb-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ctb-nav-arrow:hover { background: #d4af37; color: #111; border-color: #d4af37;}
.ctb-prev { left: 30px; }
.ctb-next { right: 30px; }

.ctb-pagination {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.ctb-bullet {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.ctb-bullet.active { background: #d4af37; }
