/* ====================================================
   SearchForecast Elementor Widgets – sf-widgets.css
   ==================================================== */

/* ─────────────── WIDGET CATEGORY ICON ─────────────── */
.elementor-panel .elementor-element-wrapper .sf-elementor-category-icon {
    color: #6ab04c;
}

/* ================================================================
   WIDGET 1 – SF HERO SEARCH
   ================================================================ */

.sf-hero-wrap {
    display: flex;
    width: 100%;
    height: 380px;
    overflow: hidden;
    position: relative;
}

.sf-hero-left {
    flex: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-width: 0;
}

.sf-hero-right {
    background-color: #1a3a5c;
    display: flex;
    align-items: center;
    padding: 30px 28px;
    min-width: 300px;
    flex-shrink: 0;
}

.sf-hero-content {
    width: 100%;
}

.sf-hero-headline {
    color: #ffffff;
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 18px;
    line-height: 1.3;
}

.sf-hero-count {
    font-weight: 800;
    font-size: 26px;
}

/* Search Bar */
.sf-search-bar {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
}

.sf-search-dropdown {
    border: none;
    outline: none;
    padding: 0 10px;
    background: #f0f0f0;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    border-right: 1px solid #ddd;
    flex-shrink: 0;
}

.sf-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 12px;
    font-size: 14px;
    color: #333;
    min-width: 0;
}

.sf-search-btn {
    background-color: #e87722;
    color: #fff;
    border: none;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    white-space: nowrap;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.sf-search-btn:hover {
    background-color: #c9621a;
    color: #fff;
}

.sf-more-options {
    display: block;
    text-align: right;
    color: rgba(255,255,255,0.7);
    font-size: 11px;
    text-decoration: none;
    margin-bottom: 20px;
    transition: color 0.2s;
}
.sf-more-options:hover { color: #fff; }

/* Quick Links */
.sf-quick-links {
    display: flex;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 16px;
    gap: 0;
}

.sf-quick-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    padding: 8px 6px;
    border-right: 1px solid rgba(255,255,255,0.2);
    transition: background 0.2s;
}

.sf-quick-link:last-child {
    border-right: none;
}

.sf-quick-link:hover {
    background: rgba(255,255,255,0.07);
}

.sf-ql-icon {
    font-size: 20px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 5px;
}

.sf-ql-title {
    display: block;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 2px;
}

.sf-ql-sub {
    display: block;
    color: rgba(255,255,255,0.65);
    font-size: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .sf-hero-wrap {
        flex-direction: column;
        height: auto;
    }
    .sf-hero-left {
        height: 180px;
    }
    .sf-hero-right {
        min-width: unset;
    }
}

/* ================================================================
   WIDGET 2 – SF THREE COLUMN (Case Studies / Tools / Services)
   ================================================================ */

.sf-3col-section {
    padding: 40px 20px;
    background: #f9f9f9;
}

.sf-3col-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 100%;
}

.sf-3col-card {
    border: 2px solid #d4e8be;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.sf-3col-header {
    background-color: #6ab04c;
    color: #fff;
    text-align: center;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.sf-3col-body {
    padding: 20px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
}

/* Logo Grid (Column 1) */
.sf-logo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px 8px;
    align-items: center;
    margin-bottom: 18px;
    flex: 1;
}

.sf-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.sf-logo-item img {
    max-height: 32px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter 0.2s;
}

.sf-logo-item img:hover {
    filter: grayscale(0%);
}

.sf-logo-placeholder {
    font-size: 9px;
    color: #888;
    text-align: center;
    border: 1px dashed #ccc;
    border-radius: 3px;
    padding: 4px 2px;
    min-height: 28px;
    word-break: break-word;
}

/* CTA Link */
.sf-3col-cta-wrap {
    text-align: center;
    margin-top: auto;
    padding-top: 12px;
}

.sf-3col-cta {
    color: #6ab04c;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dotted #6ab04c;
    transition: color 0.2s;
}

.sf-3col-cta:hover {
    color: #4a8a2c;
}

/* Quotes (Columns 2 & 3) */
.sf-3col-quote-block {
    margin-bottom: 16px;
}

.sf-3col-quote-block:last-of-type {
    margin-bottom: 0;
}

.sf-3col-quote {
    font-size: 13px;
    line-height: 1.65;
    color: #444;
    margin: 0 0 6px;
}

.sf-3col-author {
    font-size: 12px;
    color: #333;
    font-weight: 600;
    margin: 0;
}

/* Bottom Logo */
.sf-3col-bottom-logo {
    margin-top: auto;
    padding-top: 16px;
    display: flex;
    align-items: center;
}

.sf-3col-bottom-logo img {
    max-height: 48px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.sf-logo-text {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    letter-spacing: -0.5px;
}

/* Responsive */
@media (max-width: 900px) {
    .sf-3col-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================================================
   WIDGET 3 – SF WEBINAR / VIDEO SECTION
   ================================================================ */

.sf-webinar-section {
    background: #fff;
    padding: 30px 20px;
}

/* Layout variants */
.sf-webinar-layout-video-left .sf-webinar-inner,
.sf-webinar-layout-video-right .sf-webinar-inner {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.sf-webinar-layout-video-right .sf-webinar-inner {
    flex-direction: row-reverse;
}

.sf-webinar-layout-video-top .sf-webinar-inner {
    display: block;
}

.sf-webinar-layout-video-left .sf-webinar-video-col,
.sf-webinar-layout-video-right .sf-webinar-video-col {
    width: 50%;
    flex-shrink: 0;
}

.sf-webinar-layout-video-left .sf-webinar-text-col,
.sf-webinar-layout-video-right .sf-webinar-text-col {
    flex: 1;
}

/* Text top (for video-top layout) */
.sf-webinar-text-top {
    margin-bottom: 16px;
}

/* Title & Description */
.sf-webinar-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px;
    line-height: 1.4;
}

.sf-webinar-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.sf-webinar-desc a {
    color: #e87722;
    text-decoration: none;
}

.sf-webinar-desc a:hover {
    text-decoration: underline;
}

/* Video Wrapper */
.sf-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    background: #000;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}

.sf-video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.sf-video-thumb {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Play Overlay */
.sf-play-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(0,0,0,0.1);
    transition: background 0.2s;
    z-index: 5;
}

.sf-play-overlay:hover {
    background: rgba(0,0,0,0.2);
}

.sf-play-btn {
    font-size: 60px;
    color: #ff0000;
    line-height: 1;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
    transition: transform 0.15s, color 0.15s;
    display: block;
}

.sf-play-btn:hover {
    transform: scale(1.1);
}

/* Video Text Overlays */
.sf-video-overlays {
    position: absolute;
    top: 0; left: 0; right: 0;
    padding: 10px 12px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, transparent 100%);
    pointer-events: none;
    z-index: 4;
}

.sf-video-presenter {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.sf-presenter-photo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.7);
}

.sf-presenter-name {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}

.sf-video-overlay-title {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    line-height: 1.3;
}

/* Bottom overlay bar */
.sf-video-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 48px;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
    pointer-events: none;
    z-index: 3;
}

.sf-video-overlay-sub {
    position: absolute;
    bottom: 10px;
    left: 12px;
    right: 12px;
    color: #f0c040;
    font-size: 11px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    z-index: 6;
}

/* Responsive */
@media (max-width: 768px) {
    .sf-webinar-layout-video-left .sf-webinar-inner,
    .sf-webinar-layout-video-right .sf-webinar-inner {
        flex-direction: column;
    }
    .sf-webinar-layout-video-left .sf-webinar-video-col,
    .sf-webinar-layout-video-right .sf-webinar-video-col,
    .sf-webinar-layout-video-left .sf-webinar-text-col,
    .sf-webinar-layout-video-right .sf-webinar-text-col {
        width: 100%;
    }
    .sf-webinar-text-col {
        margin-top: 16px;
    }
}
