/**
 * SC Custom Settings - Sidebar Widget Styles
 * Version 1.8.5
 */

/* ── Reset WordPress/tagDiv widget wrappers inside our sidebar ── */
.sc-widgets-area > .widget,
.sc-widgets-area > .widget_block,
.sc-widgets-area > .td_block_template_1,
.sc-widgets-area > div[id^="block-"] {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    overflow: visible !important;
    float: none !important;
    width: 100% !important;
}
.sc-widgets-area > .widget::before,
.sc-widgets-area > .widget::after {
    display: none !important;
}

/* ── Shared section header ── */
.sc-section-title {
    font-family: BergenSans-SemiBold !important;
    font-size: 22px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #3c00c9;
    background: #99ffe7;
    border-top: 2px solid #0098ed;
    padding: 0 15px;
    margin: 0 0 10px 0;
    height: 60px;
    line-height: 60px;
    border-radius: 5px;
    text-align: center;
}

/* ── Master show/hide toggle ── */
.sc-widgets-master {
    margin: 0;
}
.sc-widgets-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 0 20px;
    height: 60px;
    border: 2px solid #313174;
    border-radius: 5px;
    background: #313174;
    color: #a3f2c5;
    font-family: BergenSans-SemiBold, sans-serif;
    font-size: 22px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    margin: 0 0 10px 0;
    transition: background 0.2s, color 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.sc-widgets-toggle:hover {
    background: #99ffe7;
    color: #3c00c9;
}
.sc-widgets-toggle:hover .sc-toggle-icon {
    color: #3c00c9;
}
.sc-toggle-icon {
    font-style: normal;
    font-size: 28px;
    line-height: 1;
    transition: color 0.2s;
}

/* Widget area collapse */
.sc-widgets-area {
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    max-height: 0;
    opacity: 0;
}
.sc-widgets-area.sc-widgets-open {
    max-height: 15000px;
    opacity: 1;
}

/* ── Hottest Posts / Featured Guides (shared card styles) ── */
.sc-hp-wrap {
    background: transparent;
    margin: 0 0 10px 0;
}
.sc-hp-wrap .sc-hp-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.sc-hp-wrap .sc-hp-item {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}
.sc-hp-wrap .sc-hp-item a {
    display: block;
    position: relative;
    text-decoration: none;
}
.sc-hp-wrap .sc-hp-item img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.sc-hp-wrap .sc-hp-item:hover img {
    transform: scale(1.03);
}
.sc-hp-wrap .sc-hp-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 12px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
}
.sc-hp-wrap .sc-hp-post-title {
    font-family: BergenText-SemiBold-1 !important;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sc-hp-wrap .sc-hp-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}
.sc-hp-wrap .sc-hp-comments {
    font-family: BergenText-Regular-1 !important;
    font-size: 11px;
    font-weight: 700;
    color: #99ffe7;
    display: flex;
    align-items: center;
    gap: 3px;
}
.sc-hp-wrap .sc-hp-comments svg {
    width: 12px;
    height: 12px;
    fill: #99ffe7;
}
.sc-hp-wrap .sc-hp-date {
    font-family: BergenText-Regular-1 !important;
    font-size: 11px;
    color: rgba(255,255,255,0.6);
}

/* ── Carousel ── */
.sc-hp-carousel {
    position: relative;
    overflow: hidden;
    height: 560px;
}
.sc-hp-carousel .sc-hp-track {
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.4s ease;
}
.sc-hp-carousel .sc-hp-item {
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.sc-hp-carousel .sc-hp-item.sc-fading {
    opacity: 0.3;
    transform: scale(0.97);
}
.sc-hp-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
}
.sc-hp-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #313174;
    color: #a3f2c5;
    border: none;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.sc-hp-arrow:hover {
    background: #a3f2c5;
    color: #313174;
    transform: scale(1.1);
}
.sc-hp-dots {
    display: flex;
    gap: 6px;
}
.sc-hp-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #a3f2c5;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}
.sc-hp-dot.active {
    background: #313174;
    transform: scale(1.3);
}

/* ── Latest Comments ── */
.sc-lc-wrap {
    background: transparent;
    margin: 0 0 10px 0;
}
.sc-lc-wrap .sc-lc-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
}
.sc-lc-wrap .sc-lc-item {
    display: flex;
    gap: 10px;
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
    align-items: flex-start;
    transition: background 0.2s ease;
    list-style: none !important;
    margin: 0 !important;
}
.sc-lc-wrap .sc-lc-item:last-child {
    border-bottom: none;
}
.sc-lc-wrap .sc-lc-avatar {
    flex-shrink: 0;
}
.sc-lc-wrap .sc-lc-avatar img {
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    object-fit: cover;
    display: block;
}
.sc-lc-wrap .sc-lc-content {
    flex: 1;
    min-width: 0;
}
.sc-lc-wrap .sc-lc-meta {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 2px;
    flex-wrap: wrap;
}
.sc-lc-wrap .sc-lc-author {
    font-family: BergenText-Regular-1;
    font-size: 14px;
    font-weight: 700;
    color: #00B38F;
    line-height: 1.2;
}
.sc-lc-wrap .sc-lc-date {
    font-family: BergenText-Regular-1;
    font-size: 11px;
    color: #888;
    line-height: 1.2;
}
.sc-lc-wrap .sc-lc-excerpt {
    font-family: BergenText-Regular-1;
    font-size: 14px;
    line-height: 1.5;
    color: #2a2958;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sc-lc-wrap .sc-lc-item:hover {
    background: #fafafa;
}
.sc-lc-wrap .sc-lc-excerpt a {
    color: #2a2958;
    text-decoration: none;
}
.sc-lc-wrap .sc-lc-excerpt a:hover {
    color: #0098ed;
}
.sc-lc-wrap .sc-lc-empty {
    background: #fff;
    border-radius: 5px;
    padding: 20px 15px;
    text-align: center;
}
.sc-lc-wrap .sc-lc-empty p {
    font-family: BergenText-Regular-1;
    font-size: 14px;
    color: #888;
    margin: 0;
}

/* ── Community Poll ── */
.sc-cp-wrap {
    background: transparent;
    margin: 0 0 10px 0;
}
.sc-cp-wrap .sc-cp-content {
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    padding: 15px;
}
