/* --- AD CAROUSEL STYLES --- */
.ad-section {
    max-width: 1280px;
    margin: 2rem auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

.ad-container-box {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 2px solid #ffc107; /* Golden border to highlight sponsored content */
    overflow: hidden;
}

.ad-header {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ad-header h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.ad-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.ad-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.ad-slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 0 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Video/Image Container */
.ad-media-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px; /* Limits width on large screens */
    height: 400px;    /* Fixed height for consistency */
    background: #000;
    border-radius: 0.5rem;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.ad-media {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures whole ad is visible without cropping */
}

/* Controls */
.ad-sound-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.ad-sound-btn:hover {
    background: rgba(37, 99, 235, 0.9);
}

/* Info Area */
.ad-info {
    text-align: center;
    margin-top: 1rem;
    max-width: 600px;
}

.ad-info h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.ad-info p {
    color: #4b5563;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.ad-cta-btn {
    display: inline-block;
    background: #28a745; /* Green for action */
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.ad-cta-btn:hover {
    background: #15803d;
    text-decoration: none;
    color: white;
}

/* Dots Navigation */
.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 0.5rem;
}

.dot {
    height: 0.625rem;
    width: 0.625rem;
    background-color: #d1d5db;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background-color: #1e40af; /* Primary Brand Color */
    transform: scale(1.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .ad-media-wrapper {
        height: 250px; /* Smaller height for mobile */
    }
    .ad-container-box {
        padding: 1rem;
    }
}