/* ========================================
   BLOGCRAT HOMEPAGE
======================================== */

:root {
    --bc-black: #111111;
    --bc-dark: #181818;
    --bc-text: #333333;
    --bc-muted: #777777;
    --bc-bg: #f7f7f5;
    --bc-white: #ffffff;
    --bc-border: #e8e8e5;
    --bc-accent: #ff4d2e;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bc-white);
    color: var(--bc-text);
}

.bc-home {
    overflow: hidden;
}

.bc-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.bc-section {
    padding: 90px 0;
}

.bc-small-heading {
    display: block;
    margin-bottom: 8px;
    color: var(--bc-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.bc-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 38px;
}

.bc-section-heading h2 {
    margin: 0;
    color: var(--bc-black);
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.05;
}

.bc-view-all {
    color: var(--bc-black);
    font-weight: 700;
    text-decoration: none;
}

/* Hero */

.bc-hero {
    padding: 70px 0;
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(255, 77, 46, 0.12),
            transparent 30%
        ),
        var(--bc-bg);
}

.bc-hero-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 70px;
}

.bc-post-category,
.bc-card-category {
    color: var(--bc-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.bc-hero h1 {
    margin: 15px 0 20px;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.03;
    letter-spacing: -2px;
}

.bc-hero h1 a {
    color: var(--bc-black);
    text-decoration: none;
}

.bc-hero-excerpt {
    max-width: 630px;
    margin-bottom: 18px;
    color: #555;
    font-size: 18px;
    line-height: 1.75;
}

.bc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--bc-muted);
    font-size: 13px;
}

.bc-primary-btn {
    display: inline-flex;
    margin-top: 30px;
    padding: 14px 23px;
    border-radius: 6px;
    background: var(--bc-black);
    color: white;
    font-weight: 700;
    text-decoration: none;
    transition: 0.25s ease;
}

.bc-primary-btn:hover {
    transform: translateY(-2px);
    background: var(--bc-accent);
    color: white;
}

.bc-hero-image img,
.bc-card-image img {
    display: block;
    width: 100%;
    object-fit: cover;
}

.bc-hero-image img {
    height: 500px;
    border-radius: 18px;
}

.bc-image-placeholder {
    display: flex;
    min-height: 250px;
    align-items: center;
    justify-content: center;
    background: #ecece8;
    color: #aaa;
    font-size: 28px;
    font-weight: 700;
}

/* Trending */

.bc-trending {
    background: var(--bc-black);
}

.bc-trending .bc-section-heading h2,
.bc-trending .bc-view-all {
    color: white;
}

.bc-trending-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid #333;
}

.bc-trending-card {
    display: flex;
    gap: 20px;
    padding: 35px 25px;
    border-right: 1px solid #333;
}

.bc-trending-card:first-child {
    padding-left: 0;
}

.bc-trending-number {
    color: #555;
    font-size: 28px;
    font-weight: 800;
}

.bc-trending-card h3 {
    margin: 10px 0;
    font-size: 18px;
    line-height: 1.4;
}

.bc-trending-card h3 a {
    color: white;
    text-decoration: none;
}

.bc-trending-card h3 a:hover {
    color: var(--bc-accent);
}

/* Latest Posts */

.bc-latest {
    background: white;
}

.bc-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 55px;
}

.bc-post-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

.bc-post-card {
    overflow: hidden;
    border: 1px solid var(--bc-border);
    border-radius: 13px;
    background: white;
    transition: 0.25s ease;
}

.bc-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 50px rgba(0,0,0,0.08);
}

.bc-card-image {
    display: block;
    overflow: hidden;
}

.bc-card-image img {
    height: 240px;
    transition: transform 0.4s ease;
}

.bc-post-card:hover .bc-card-image img {
    transform: scale(1.04);
}

.bc-card-body {
    padding: 24px;
}

.bc-card-body h3 {
    margin: 10px 0 12px;
    font-size: 24px;
    line-height: 1.25;
}

.bc-card-body h3 a {
    color: var(--bc-black);
    text-decoration: none;
}

.bc-card-body p {
    margin: 0 0 20px;
    color: #666;
    line-height: 1.7;
}

.bc-card-footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding-top: 18px;
    border-top: 1px solid var(--bc-border);
    font-size: 13px;
}

.bc-card-footer span {
    color: var(--bc-muted);
}

.bc-card-footer a {
    color: var(--bc-black);
    font-weight: 700;
    text-decoration: none;
}

/* Sidebar */

.bc-sidebar {
    position: relative;
}

.bc-sidebar-box {
    margin-bottom: 25px;
    padding: 28px;
    border: 1px solid var(--bc-border);
    border-radius: 13px;
    background: var(--bc-bg);
}

.bc-sidebar-box h3 {
    margin: 8px 0 20px;
    color: var(--bc-black);
    font-size: 25px;
}

.bc-category-list {
    display: flex;
    flex-direction: column;
}

.bc-category-list a {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--bc-border);
    color: var(--bc-text);
    font-weight: 600;
    text-decoration: none;
}

.bc-category-list a:last-child {
    border-bottom: 0;
}

.bc-category-list a:hover {
    color: var(--bc-accent);
}

.bc-about-box {
    background: var(--bc-black);
}

.bc-about-box h3,
.bc-about-box p {
    color: white;
}

.bc-about-box p {
    margin-bottom: 0;
    line-height: 1.7;
    opacity: 0.8;
}

/* CTA */

.bc-cta {
    padding: 85px 0;
    background: var(--bc-accent);
}

.bc-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.bc-cta .bc-small-heading {
    color: white;
    opacity: 0.75;
}

.bc-cta h2 {
    max-width: 700px;
    margin: 5px 0 10px;
    color: white;
    font-size: clamp(34px, 4vw, 50px);
    line-height: 1.1;
}

.bc-cta p {
    margin: 0;
    color: white;
    font-size: 17px;
    opacity: 0.88;
}

.bc-light-btn {
    flex-shrink: 0;
    padding: 15px 25px;
    border-radius: 6px;
    background: white;
    color: var(--bc-black);
    font-weight: 800;
    text-decoration: none;
}

/* Responsive */

@media (max-width: 1000px) {

    .bc-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .bc-hero-image img {
        height: 440px;
    }

    .bc-trending-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bc-layout {
        grid-template-columns: 1fr;
    }

    .bc-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 700px) {

    .bc-container {
        width: min(100% - 30px, 1180px);
    }

    .bc-section {
        padding: 65px 0;
    }

    .bc-hero {
        padding: 50px 0;
    }

    .bc-hero h1 {
        letter-spacing: -1px;
    }

    .bc-hero-image img {
        height: 300px;
    }

    .bc-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .bc-trending-grid,
    .bc-post-grid,
    .bc-sidebar {
        grid-template-columns: 1fr;
    }

    .bc-trending-card {
        padding: 25px 0;
        border-right: 0;
        border-bottom: 1px solid #333;
    }

    .bc-card-image img {
        height: 220px;
    }

    .bc-cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Hero Contact Form */

.bc-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 70px;
}

.bc-hero-form {
    width: 100%;
}

.bc-form-card {
    background: #ffffff;
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid #eeeeee;
}

.bc-form-card h2 {
    margin: 5px 0 10px;
    font-size: 30px;
    line-height: 1.2;
    color: #111111;
}

.bc-form-card p {
    margin-bottom: 25px;
    color: #666666;
}

.bc-contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.bc-form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.bc-form-group label {
    font-size: 14px;
    font-weight: 700;
    color: #222222;
}

.bc-form-group input,
.bc-form-group textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    background: #ffffff;
    outline: none;
    transition: 0.2s ease;
}

.bc-form-group input:focus,
.bc-form-group textarea:focus {
    border-color: #ff4d2e;
    box-shadow: 0 0 0 3px rgba(255, 77, 46, 0.08);
}

.bc-form-group textarea {
    resize: vertical;
    min-height: 110px;
}

.bc-form-btn {
    border: 0;
    border-radius: 8px;
    background: #ff4d2e;
    color: #ffffff;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.bc-form-btn:hover {
    background: #111111;
    transform: translateY(-2px);
}

@media (max-width: 900px) {

    .bc-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .bc-form-card {
        max-width: 650px;
    }
}