/* ── CSS CUSTOM PROPERTIES ── */
:root {
    --ss-blue: #1779b8;
    --ss-orange: #f7911f;
    --ss-blue-dark: #0f5a8a;
    --ss-blue-light: #e8f4fc;
    --ss-orange-light: #fff3e5;
    --ss-text-dark: #111827;
    --ss-text-mid: #374151;
    --ss-text-light: #6b7280;
    --ss-white: #ffffff;
    --ss-off-white: #f9fafb;
    --ss-border: #e5e7eb;
    --ss-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --ss-shadow-md: 0 4px 20px rgba(23, 121, 184, 0.12);
    --ss-shadow-lg: 0 16px 48px rgba(23, 121, 184, 0.18);
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--ss-text-dark);
}

/* ── HERO ── */
.ss-hero {
    position: relative;
    background: linear-gradient(135deg, var(--ss-blue-dark) 0%, var(--ss-blue) 60%, #2196c9 100%);
    padding: 72px 5% 56px;
    overflow: hidden;
}

.ss-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 100% 50%, rgba(247, 145, 31, 0.18) 0%, transparent 60%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 40px);
}

.ss-hero::after {
    content: 'BLOG';
    position: absolute;
    right: 5%;
    bottom: -16px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(80px, 14vw, 160px);
    font-weight: 800;
    letter-spacing: -4px;
    color: rgba(255, 255, 255, 0.06);
    line-height: 1;
    pointer-events: none;
}

.ss-hero-inner {
    position: relative;
    max-width: 720px;
}

.ss-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(247, 145, 31, 0.2);
    border: 1px solid rgba(247, 145, 31, 0.4);
    color: #ffc07a;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.ss-hero-eyebrow .ss-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ss-orange);
    display: block;
}

.ss-hero-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(38px, 6vw, 68px);
    font-weight: 800;
    line-height: 1.05;
    color: var(--ss-white);
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.ss-hero-title em {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--ss-orange);
}

.ss-hero-desc {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    line-height: 1.7;
    max-width: 520px;
}

.ss-hero-lines {
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    height: 4px;
    background: repeating-linear-gradient(90deg,
            var(--ss-orange) 0px, var(--ss-orange) 60px,
            var(--ss-blue-dark) 60px, var(--ss-blue-dark) 80px);
}

/* ── CONTROLS ── */
.ss-controls {
    background: var(--ss-white);
    border-bottom: 1px solid var(--ss-border);
    padding: 20px 5%;
    position: sticky;
    top: 0;
    z-index: 90;
    box-shadow: var(--ss-shadow-sm);
}

.ss-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--ss-off-white);
    border: 1px solid var(--ss-border);
    border-radius: 8px;
    padding: 8px 14px;
    flex: 1;
    min-width: 200px;
    transition: border-color .2s, box-shadow .2s;
}

.ss-search-box:focus-within {
    border-color: var(--ss-blue);
    box-shadow: 0 0 0 3px rgba(23, 121, 184, 0.1);
}

.ss-search-box .ss-search-icon {
    color: var(--ss-text-light);
    flex-shrink: 0;
}

.ss-search-input {
    border: none !important;
    background: transparent !important;
    outline: none !important;
    font-family: 'DM Sans', inherit !important;
    color: var(--ss-text-dark) !important;
    width: 100% !important;
    height: auto !important;
    line-height: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.ss-filter-tag {
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid var(--ss-border);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
    background: var(--ss-white);
    color: var(--ss-text-mid);
    white-space: nowrap;
}

.ss-filter-tag:hover {
    border-color: var(--ss-blue);
    color: var(--ss-blue);
}

.ss-filter-tag.ss-active {
    background: var(--ss-blue);
    border-color: var(--ss-blue);
    color: var(--ss-white);
}

.ss-result-count {
    font-size: 12px;
    color: var(--ss-text-light);
    white-space: nowrap;
}

/* ── SECTION LABEL ── */
.ss-section-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.ss-section-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--ss-text-dark);
}

.ss-section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--ss-border), transparent);
}

.ss-section-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ss-orange);
    flex-shrink: 0;
}

/* ── FEATURED ── */
.ss-featured {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--ss-shadow-lg);
    margin-bottom: 72px;
    min-height: 460px;
}

.ss-featured-image {
    position: relative;
    overflow: hidden;
    background: #cde8f5;
    min-height: 300px;
}

.ss-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.ss-featured:hover .ss-featured-image img {
    transform: scale(1.04);
}

.ss-featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--ss-orange);
    color: var(--ss-white);
    padding: 4px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ss-featured-body {
    background: var(--ss-blue-dark);
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.ss-featured-body::before {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    border: 40px solid rgba(247, 145, 31, 0.12);
    border-radius: 50%;
}

.ss-featured-body::after {
    content: '';
    position: absolute;
    top: -30px;
    left: 40%;
    width: 100px;
    height: 100px;
    border: 25px solid rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}

.ss-featured-cat {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ss-orange);
    margin-bottom: 16px;
}

.ss-featured-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--ss-white);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.ss-featured-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.75;
    margin-bottom: 32px;
}

.ss-featured-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.ss-meta-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ss-orange), #e07d0f);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.ss-meta-author {
    font-size: 14px;
    font-weight: 600;
    color: var(--ss-white);
}

.ss-meta-date {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.ss-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ss-orange);
    color: var(--ss-white);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all .2s;
    width: fit-content;
    position: relative;
    z-index: 1;
}

.ss-read-more:hover {
    background: #e07d0f;
    transform: translateX(3px);
    color: var(--ss-white);
}

.ss-read-more i {
    transition: transform .2s;
}

.ss-read-more:hover i {
    transform: translateX(3px);
}

/* ── ARTICLE CARDS ── */
.ss-card {
    background: var(--ss-white);
    border: 1px solid var(--ss-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform .25s, box-shadow .25s, border-color .25s;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    height: 100%;
}

.ss-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--ss-shadow-lg);
    border-color: rgba(23, 121, 184, 0.2);
}

.ss-card-thumb {
    position: relative;
    overflow: hidden;
    height: 210px;
    background: var(--ss-blue-light);
    flex-shrink: 0;
}

.ss-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.ss-card:hover .ss-card-thumb img {
    transform: scale(1.06);
}

.ss-card-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.ss-card-cat {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 3px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ss-white);
}

.ss-cat-blue {
    background: var(--ss-blue);
}

.ss-cat-orange {
    background: var(--ss-orange);
}

.ss-cat-dark {
    background: var(--ss-blue-dark);
}

.ss-read-time {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    color: rgba(255, 255, 255, 0.9);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.ss-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ss-card-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ss-text-dark);
    margin-bottom: 10px;
    letter-spacing: -0.2px;
    transition: color .2s;
}

.ss-card:hover .ss-card-title {
    color: var(--ss-blue);
}

.ss-card-desc {
    font-size: 12px;
    color: var(--ss-text-light);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 20px;
}

.ss-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--ss-border);
}

.ss-card-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.ss-av-blue {
    background: linear-gradient(135deg, var(--ss-blue), #2196c9);
}

.ss-av-orange {
    background: linear-gradient(135deg, var(--ss-orange), #e07d0f);
}

.ss-av-dark {
    background: linear-gradient(135deg, var(--ss-blue-dark), var(--ss-blue));
}

.ss-card-author {
    font-size: 12px;
    font-weight: 600;
    color: var(--ss-text-mid);
}

.ss-card-date {
    font-size: 12px;
    color: var(--ss-text-light);
}

.ss-arrow-link {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--ss-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ss-text-light);
    transition: all .2s;
    text-decoration: none;
    flex-shrink: 0;
}

.ss-arrow-link:hover {
    background: var(--ss-blue);
    border-color: var(--ss-blue);
    color: var(--ss-white);
    transform: translateX(2px);
}

/* ── TIPS ── */
.ss-tip-card {
    background: var(--ss-off-white);
    border: 1px solid var(--ss-border);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    gap: 16px;
    transition: all .25s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.ss-tip-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--ss-orange);
    transition: width .3s;
}

.ss-tip-card:hover {
    border-color: rgba(247, 145, 31, 0.3);
    box-shadow: var(--ss-shadow-md);
}

.ss-tip-card:hover::before {
    width: 5px;
}

.ss-tip-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--ss-orange-light), #ffe5c8);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
}

.ss-tip-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ss-text-dark);
    margin-bottom: 6px;
}

.ss-tip-desc {
    font-size: 14px;
    color: var(--ss-text-light);
    line-height: 1.6;
    margin: 0;
}

/* ── NEWSLETTER ── */
.ss-newsletter {
    background: linear-gradient(135deg, var(--ss-blue-dark) 0%, var(--ss-blue) 100%);
    border-radius: 16px;
    padding: 56px 5%;
    margin-bottom: 72px;
    position: relative;
    overflow: hidden;
}

.ss-newsletter::before {
    content: '';
    position: absolute;
    right: -80px;
    top: -80px;
    width: 320px;
    height: 320px;
    border: 60px solid rgba(247, 145, 31, 0.12);
    border-radius: 50%;
}

.ss-newsletter-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    color: var(--ss-white);
    margin-bottom: 8px;
}

.ss-newsletter-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
}

.ss-newsletter-input {
    padding: 12px 18px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    outline: none !important;
    font-family: 'DM Sans', inherit !important;
    background: rgba(255, 255, 255, 0.12) !important;
    color: white !important;
    backdrop-filter: blur(4px) !important;
    transition: border-color .2s !important;
    min-width: 200px !important;
    width: auto !important;
    line-height: 0 !important;
    height: auto !important;
}

.ss-newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.ss-newsletter-input:focus {
    border-color: var(--ss-orange);
    outline: none;
    box-shadow: none;
}

.ss-newsletter-btn {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background: var(--ss-orange);
    color: var(--ss-white);
    font-family: 'DM Sans', inherit;
    font-weight: 700;
    /* font-size: 0.9rem; */
    transition: background .2s, transform .2s;
    white-space: nowrap;
}

.ss-newsletter-btn:hover {
    background: #e07d0f;
    transform: scale(1.02);
}

/* ── CATEGORIES ── */
.ss-cat-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 8px;
    background: var(--ss-off-white);
    border: 1px solid var(--ss-border);
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
}

.ss-cat-pill:hover {
    border-color: var(--ss-blue);
    box-shadow: var(--ss-shadow-sm);
}

.ss-cat-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.ss-cat-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--ss-text-dark);
    margin: 0;
}

.ss-cat-count {
    font-size: 12px;
    color: var(--ss-text-light);
}

/* ── LOAD MORE ── */
.ss-load-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    border-radius: 8px;
    background: transparent;
    border: 2px solid var(--ss-blue);
    color: var(--ss-blue);
    font-family: 'DM Sans', inherit;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all .2s;
}

.ss-load-more:hover {
    background: var(--ss-blue);
    color: var(--ss-white);
}

/* ── ANIMATIONS ── */
@keyframes ss-fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ss-anim {
    animation: ss-fadeUp 0.5s ease both;
}

.ss-anim-1 {
    animation-delay: 0.1s;
}

.ss-anim-2 {
    animation-delay: 0.2s;
}

.ss-anim-3 {
    animation-delay: 0.3s;
}

.ss-anim-4 {
    animation-delay: 0.4s;
}

.ss-anim-5 {
    animation-delay: 0.5s;
}

.ss-anim-6 {
    animation-delay: 0.6s;
}

/* ── HIDDEN (filter) ── */
.ss-card[data-hidden="true"],
.ss-tip-card[data-hidden="true"] {
    display: none !important;
}

/* ── RESPONSIVE ── */
@media (max-width: 767.98px) {
    .ss-featured-image {
        min-height: 260px;
    }

    .ss-featured-body {
        padding: 32px 28px;
    }

    .ss-newsletter-input {
        width: 100%;
    }

    .ss-newsletter {
        padding: 40px 5%;
    }
}

@media (max-width: 575.98px) {
    .ss-controls {
        flex-direction: column;
        align-items: flex-start;
    }
}