/**
 * Marketing Angles Frontend Styles
 */

/* Container */
.marketing-angles-container {
    margin: 30px 0;
    clear: both;
}

/* Grid Layout */
.marketing-angles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-gap: 30px;
}

/* Single Marketing Angle Item */
.marketing-angle-item {
    overflow: hidden;
    background-color: #fff;
}


/* Media */
.marketing-angle-media {
    position: relative;
    overflow: hidden;
}

.marketing-angle-image img {
    width: 100%;
    height: auto;
    display: block;
}

.marketing-angle-video {
    width: 100%;
}

.marketing-angle-video video {
    width: 100%;
    height: auto;
    display: block;
}

/* Content */
.marketing-angle-content {
    padding: 20px;
}

.marketing-angle-headline {
    font-size: 1.5em;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #333;
}

.marketing-angle-lead {
    margin-bottom: 20px;
    color: #666;
    font-size: 1em;
    line-height: 1.6;
}

.marketing-angle-cta {
    text-align: center;
    margin-top: 20px;
}

.marketing-angle-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3498db; /* Default color, will be overridden by settings */
    color: #ffffff; /* Default color, will be overridden by settings */
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.marketing-angle-button:hover {
    background-color: #2980b9;
    color: #ffffff;
    text-decoration: none;
}

/* Carousel Layout */
.marketing-angles-carousel .slick-track {
    display: flex;
}

.marketing-angles-carousel .marketing-angle-item {
    margin: 0 15px;
    height: auto;
}

.marketing-angles-carousel .slick-arrow {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    z-index: 10;
}

.marketing-angles-carousel .slick-prev {
    left: -20px;
}

.marketing-angles-carousel .slick-next {
    right: -20px;
}

.marketing-angles-carousel .slick-dots {
    bottom: -30px;
}

.marketing-angles-carousel .slick-dots li button:before {
    font-size: 12px;
}

/* Clicked buttons */
.marketing-angle-button.clicked {
    opacity: 0.7;
    cursor: default;
}

.marketing-angle-button.previously-clicked {
    /* Optional: Add a visual indicator for buttons that were clicked in previous page views */
    position: relative;
}

.marketing-angle-button.previously-clicked:after {
    content: "✓";
    display: inline-block;
    margin-left: 5px;
    font-size: 0.8em;
}

/* Responsive */
@media (max-width: 768px) {
    .marketing-angles-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        grid-gap: 20px;
    }
}

@media (max-width: 480px) {
    .marketing-angles-grid {
        grid-template-columns: 1fr;
    }
    
    .marketing-angle-headline {
        font-size: 1.3em;
    }
}