/* ========================================
   BLOG PAGE STYLES - QuickSpark Electrician
   ======================================== */

/* ========== BLOG HERO ========== */
.blg-hero {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
}

.blg-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 184, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 184, 0, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.blg-hero__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.blg-hero__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

/* Hero Intro */
.blg-hero__intro {
    color: #fff;
}

.blg-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 14px;
}

.blg-hero__breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blg-hero__breadcrumb a:hover {
    color: #ffb800;
}

.blg-hero__breadcrumb span {
    color: rgba(255, 255, 255, 0.4);
}

.blg-hero__breadcrumb span:last-child {
    color: #ffb800;
}

.blg-hero__title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #fff;
}

.blg-hero__title span {
    background: linear-gradient(135deg, #ffb800 0%, #ff8c00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blg-hero__text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 32px;
}

/* Hero Counters */
.blg-hero__counters {
    display: flex;
    gap: 40px;
}

.blg-hero__counter {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.blg-hero__counter-num {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffb800 0%, #ff8c00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blg-hero__counter-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========== FEATURED ARTICLE ========== */
.blg-hero__featured {
    position: relative;
}

.blg-featured {
    display: block;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.blg-featured:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.blg-featured__img {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.blg-featured__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blg-featured:hover .blg-featured__img img {
    transform: scale(1.08);
}

.blg-featured__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blg-featured__placeholder img {
    width: 64px;
    height: 64px;
    opacity: 0.3;
    filter: invert(76%) sepia(60%) saturate(1000%) hue-rotate(358deg) brightness(103%) contrast(104%);
}

.blg-featured__overlay {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.blg-featured__badge {
    background: linear-gradient(135deg, #ffb800 0%, #ff8c00 100%);
    color: #1a1a2e;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blg-featured__body {
    padding: 28px;
}

.blg-featured__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.blg-featured__date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.blg-featured__date img {
    width: 14px;
    height: 14px;
    opacity: 0.5;
    filter: brightness(0) invert(1);
}

.blg-featured__tag {
    background: rgba(255, 184, 0, 0.15);
    color: #ffb800;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.blg-featured__title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.blg-featured:hover .blg-featured__title {
    color: #ffb800;
}

.blg-featured__desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.blg-featured__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffb800;
    font-weight: 600;
    font-size: 14px;
    transition: gap 0.3s ease;
}

.blg-featured__link img {
    width: 18px;
    height: 18px;
    filter: invert(76%) sepia(60%) saturate(1000%) hue-rotate(358deg) brightness(103%) contrast(104%);
    transition: transform 0.3s ease;
}

.blg-featured:hover .blg-featured__link {
    gap: 12px;
}

.blg-featured:hover .blg-featured__link img {
    transform: translateX(4px);
}

/* ========== ARTICLES SECTION ========== */
.blg-articles {
    padding: 80px 0;
    background: #fafafa;
}

.blg-articles__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.blg-articles__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e5e5;
}

.blg-articles__header-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blg-articles__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #ffb800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blg-articles__label img {
    width: 18px;
    height: 18px;
    filter: invert(76%) sepia(60%) saturate(1000%) hue-rotate(358deg) brightness(103%) contrast(104%);
}

.blg-articles__heading {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a2e;
}

.blg-articles__count {
    font-size: 14px;
    color: #666;
}

/* ========== ARTICLES GRID ========== */
.blg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 60px;
}

/* ========== ARTICLE CARD ========== */
.blg-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.blg-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.blg-card__link {
    display: block;
    text-decoration: none;
}

.blg-card__visual {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blg-card__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blg-card:hover .blg-card__visual img {
    transform: scale(1.1);
}

.blg-card__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f0f0 0%, #e5e5e5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blg-card__placeholder img {
    width: 40px;
    height: 40px;
    opacity: 0.3;
    filter: invert(76%) sepia(60%) saturate(1000%) hue-rotate(358deg) brightness(103%) contrast(104%);
}

.blg-card__num {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(26, 26, 46, 0.85);
    color: #ffb800;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.blg-card__info {
    padding: 24px;
}

.blg-card__category {
    display: inline-block;
    background: rgba(255, 184, 0, 0.1);
    color: #d49700;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.blg-card__title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.blg-card:hover .blg-card__title {
    color: #ffb800;
}

.blg-card__excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
}

.blg-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.blg-card__date {
    font-size: 13px;
    color: #999;
}

.blg-card__arrow {
    width: 32px;
    height: 32px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
}

.blg-card__arrow img {
    width: 16px;
    height: 16px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.blg-card:hover .blg-card__arrow {
    background: #ffb800;
    transform: translateX(4px);
}

.blg-card:hover .blg-card__arrow img {
    opacity: 1;
    filter: brightness(0) invert(1);
}

/* ========== PAGINATION ========== */
.blg-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.blg-pagination__arrow {
    width: 48px;
    height: 48px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.blg-pagination__arrow:hover {
    background: #ffb800;
    border-color: #ffb800;
}

.blg-pagination__arrow img {
    width: 20px;
    height: 20px;
    opacity: 0.6;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.blg-pagination__arrow:hover img {
    opacity: 1;
    filter: brightness(0) invert(1);
}

.blg-pagination__pages {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 16px;
}

.blg-pagination__page {
    min-width: 44px;
    height: 44px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blg-pagination__page:hover {
    border-color: #ffb800;
    color: #ffb800;
}

.blg-pagination__page--active {
    background: linear-gradient(135deg, #ffb800 0%, #ff8c00 100%);
    border-color: transparent;
    color: #fff;
}

.blg-pagination__dots {
    color: #999;
    padding: 0 8px;
}

/* ========== CTA SECTION ========== */
.blg-cta {
    padding: 0;
    background: #fafafa;
}

.blg-cta__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.blg-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
    border-radius: 20px;
    padding: 32px 48px;
}

.blg-cta__icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #ffb800 0%, #ff8c00 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.blg-cta__icon img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}

.blg-cta__content {
    flex: 1;
}

.blg-cta__title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.blg-cta__text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
}

.blg-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #ffb800 0%, #ff8c00 100%);
    color: #1a1a2e;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    white-space: nowrap;
}

.blg-cta__btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 184, 0, 0.3);
}

.blg-cta__btn img {
    width: 18px;
    height: 18px;
}

/* ========== TOPICS SECTION ========== */
.blg-topics {
    padding: 80px 0;
    background: #fff;
}

.blg-topics__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.blg-topics__title {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 40px;
}

.blg-topics__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.blg-topic {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px 20px;
    background: #fafafa;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.blg-topic:hover {
    background: #fff;
    border-color: #ffb800;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(255, 184, 0, 0.15);
}

.blg-topic__icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(255, 184, 0, 0.1) 0%, rgba(255, 140, 0, 0.1) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.blg-topic:hover .blg-topic__icon {
    background: linear-gradient(135deg, #ffb800 0%, #ff8c00 100%);
}

.blg-topic__icon img {
    width: 28px;
    height: 28px;
    filter: invert(76%) sepia(60%) saturate(1000%) hue-rotate(358deg) brightness(103%) contrast(104%);
    transition: filter 0.3s ease;
}

.blg-topic:hover .blg-topic__icon img {
    filter: brightness(0) invert(1);
}

.blg-topic__name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
    .blg-hero__grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .blg-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .blg-topics__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .blg-hero {
        padding: 120px 0 50px;
    }

    .blg-hero__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .blg-hero__intro {
        text-align: center;
    }

    .blg-hero__breadcrumb {
        justify-content: center;
    }

    .blg-hero__counters {
        justify-content: center;
    }

    .blg-cta__inner {
        flex-direction: column;
        text-align: center;
        padding: 32px;
    }

    .blg-topics__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .blg-hero {
        padding: 100px 0 40px;
    }

    .blg-hero__title {
        font-size: 2rem;
    }

    .blg-hero__text {
        font-size: 16px;
    }

    .blg-hero__counters {
        gap: 20px;
        justify-content: center;
    }

    .blg-hero__counter {
        background: rgba(255, 255, 255, 0.08);
        padding: 12px 20px;
        border-radius: 12px;
        align-items: center;
    }

    .blg-hero__counter-num {
        font-size: 24px;
    }

    .blg-hero__counter-label {
        font-size: 12px;
    }

    .blg-featured__img {
        height: 220px;
    }

    .blg-featured__body {
        padding: 20px;
    }

    .blg-featured__title {
        font-size: 18px;
    }

    .blg-articles {
        padding: 50px 0;
    }

    .blg-articles__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .blg-articles__heading {
        font-size: 24px;
    }

    .blg-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blg-card__visual {
        height: 180px;
    }

    .blg-pagination__page {
        min-width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .blg-pagination__arrow {
        width: 44px;
        height: 44px;
    }

    .blg-cta__btn {
        width: 100%;
        justify-content: center;
    }

    .blg-topics {
        padding: 50px 0;
    }

    .blg-topics__title {
        font-size: 22px;
        margin-bottom: 28px;
    }

    .blg-topics__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .blg-topic {
        padding: 20px 16px;
    }

    .blg-topic__icon {
        width: 48px;
        height: 48px;
    }

    .blg-topic__icon img {
        width: 24px;
        height: 24px;
    }

    .blg-topic__name {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .blg-hero {
        padding: 90px 0 32px;
    }

    .blg-hero__title {
        font-size: 1.75rem;
    }

    .blg-hero__counters {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
    }

    .blg-hero__counter {
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding: 14px 24px;
        min-width: 100px;
    }

    .blg-hero__counter-num {
        font-size: 22px;
    }

    .blg-featured__meta {
        flex-wrap: wrap;
        gap: 10px;
    }

    .blg-cta__inner {
        padding: 24px 20px;
    }

    .blg-cta__title {
        font-size: 18px;
    }

    .blg-cta__text {
        font-size: 14px;
    }

    .blg-cta__btn {
        padding: 14px 24px;
        font-size: 15px;
    }

    .blg-pagination__pages {
        margin: 0 8px;
    }

    .blg-pagination__page {
        min-width: 36px;
        height: 36px;
        border-radius: 10px;
    }
}

@media (max-width: 375px) {
    .blg-hero__container,
    .blg-articles__container,
    .blg-cta__container,
    .blg-topics__container {
        padding: 0 16px;
    }

    .blg-hero__title {
        font-size: 1.5rem;
    }

    .blg-hero__counters {
        gap: 10px;
    }

    .blg-hero__counter {
        padding: 12px 18px;
        min-width: 90px;
        border-radius: 10px;
    }

    .blg-hero__counter-num {
        font-size: 20px;
    }

    .blg-hero__counter-label {
        font-size: 11px;
    }

    .blg-card__info {
        padding: 20px;
    }

    .blg-card__title {
        font-size: 16px;
    }

    .blg-topics__grid {
        gap: 10px;
    }

    .blg-topic {
        padding: 16px 12px;
        gap: 8px;
    }

    .blg-topic__icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .blg-topic__name {
        font-size: 12px;
    }
}
