body {
    margin: 0;
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
   background:#f2f2f2;;
    color: #222;
}
/* ===== BBC LAYOUT ===== */

.bbc-container{
    width:1200px;
    margin:40px auto;
}

/* HERO */
.bbc-hero{
    position:relative;
    display:block;
    height:520px;
    overflow:hidden;
    border-radius:12px;
    margin-bottom:30px;
}

.bbc-hero img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .5s ease;
}

.bbc-hero:hover img{
    transform:scale(1.05);
}

.bbc-hero-overlay{
    position:absolute;
    bottom:0;
    left:0;
    right:0;
    padding:50px;
    background:linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.2), transparent);
    color:#fff;
}

.bbc-hero-overlay h1{
    font-size:44px;
    margin:0 0 10px;
    font-weight:800;
    max-width:800px;
    line-height:1.2;
}

/* GRID */
.bbc-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:25px;
}

.bbc-card{
    display:block;
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 4px 14px rgba(0,0,0,.08);
    transition:transform .25s ease, box-shadow .25s ease;
    text-decoration:none;
    color:#111;
}

.bbc-card:hover{
    transform:translateY(-6px);
    box-shadow:0 10px 25px rgba(0,0,0,.15);
}

.bbc-thumb{
    height:200px;
    overflow:hidden;
}

.bbc-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .4s ease;
}

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

.bbc-card-body{
    padding:18px;
}

.bbc-card-body h3{
    font-size:18px;
    margin:0 0 10px;
    line-height:1.4;
}

/* META TEXT */
.bbc-meta{
    font-size:13px;
    color:#777;
}
.site-header{
    background:#111;
    color:#fff;
    padding:18px 40px;
    font-size:28px;
    font-weight:700;
    letter-spacing:1px;
    box-shadow:0 2px 8px rgba(0,0,0,0.2);
}
.header-inner {
    width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #ffcc00;
    font-size: 26px;
    font-weight: bold;
    text-decoration: none;
}

.main-nav a {
    color: #ddd;
    margin-left: 22px;
    text-decoration: none;
    font-size: 15px;
}

.main-nav a:hover {
    color: #fff;
}
.layout{
    width:1200px;
    margin:40px auto;
    display:flex;
    gap:40px;
    align-items:flex-start;
}

.sidebar{
    width:320px;
}

.post-container{
    flex:1;
}
.page-container {
    width: 1200px;
    margin: 30px auto;
}

.site-footer {
    background: #111;
    color: #aaa;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    font-size: 14px;
}

.post-container{
    max-width:900px;
    margin:50px auto;
    padding:40px;
    background:#ffffff;
    border-radius:12px;
    box-shadow:0 8px 30px rgba(0,0,0,0.08);
}
.post-title{
    font-size:40px;
    line-height:1.2;
    margin-bottom:25px;
    font-weight:800;
}
.post-thumbnail{
    width:100%;
    border-radius:10px;
    margin-bottom:20px;
   margin:25px 0 30px 0;
}

.post-content{
    font-size:18px;
    line-height:1.8;
}
.post-content p{
    margin-bottom:22px;
}
.post-meta{
    color:#777;
    font-size:14px;
    margin-bottom:20px;
    border-bottom:1px solid #eee;
    padding-bottom:15px;
}

.post-meta span{
    margin-right:20px;
}
.category-badge{
    display:inline-block;
    background:#c40000;
    color:#fff;
    padding:6px 12px;
    border-radius:6px;
    font-size:13px;
    font-weight:600;
    margin-bottom:15px;
}
.recommended-section{
    max-width:1100px;
    margin:60px auto;
    padding:0 20px;
}

.recommended-section h3{
    font-size:22px;
    margin-bottom:20px;
}

.rec-scroll{
    display:flex;
    gap:18px;
    overflow-x:auto;
    padding-bottom:10px;
    scroll-behavior:smooth;
}

.rec-scroll::-webkit-scrollbar{
    height:8px;
}
.rec-scroll::-webkit-scrollbar-thumb{
    background:#ccc;
    border-radius:10px;
}

.rec-card{
    min-width:220px;
    max-width:220px;
    text-decoration:none;
    color:#111;
    flex-shrink:0;
}

.rec-card img{
    width:100%;
    height:140px;
    object-fit:cover;
    border-radius:10px;
    margin-bottom:8px;
}

.rec-card span{
    font-size:14px;
    font-weight:600;
    line-height:1.4;
}

/* =========================
   MOBILE RESPONSIVE DESIGN
   ========================= */

@media (max-width: 768px) {

    /* Page width */
    .page-container {
        width: 95%;
        margin: 15px auto;
    }

    /* Header */
    .site-header {
        padding: 14px 18px;
        font-size: 20px;
        text-align: center;
    }

    .header-inner {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .main-nav a {
        margin: 0 10px;
        font-size: 14px;
    }

    /* Post container */
    .post-container {
        max-width: 100%;
        margin: 20px auto;
        padding: 20px;
        border-radius: 10px;
    }

    /* Post title */
    .post-title {
        font-size: 26px;
        line-height: 1.3;
    }

    /* Thumbnail */
    .post-thumbnail {
        width: 100%;
        height: auto;
        border-radius: 8px;
        margin: 15px 0 20px 0;
    }

    /* Post content */
    .post-content {
        font-size: 16px;
        line-height: 1.7;
    }

    /* Meta info */
    .post-meta {
        font-size: 12px;
        line-height: 1.6;
    }

    /* Category badge */
    .category-badge {
        font-size: 11px;
        padding: 5px 10px;
    }

    /* Recommended section */
    .recommended-section {
        margin: 30px 0;
        padding: 0 10px;
    }

    .recommended-section h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    /* Horizontal scroll cards */
    .rec-scroll {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .rec-card {
        min-width: 160px;
        flex: 0 0 auto;
    }

    .rec-card img {
        width: 100%;
        height: 110px;
        object-fit: cover;
        border-radius: 8px;
    }

    .rec-card span {
        font-size: 13px;
        line-height: 1.4;
    }
}

/* ============================= */
/* MOBILE OPTIMIZATION — INDEX */
/* ============================= */

@media (max-width: 768px) {

    .bbc-container{
        width:100%;
        padding:10px;
    }

    /* Hero becomes smaller */
    .bbc-hero{
        height:auto;
    }

    .bbc-hero img{
        height:220px;
        object-fit:cover;
    }

    .bbc-hero-overlay h1{
        font-size:20px;
        line-height:1.3;
        padding:10px;
    }

    /* Grid becomes single column */
    .bbc-grid{
        display:flex;
        flex-direction:column;
        gap:15px;
    }

    .bbc-card{
        display:flex;
        gap:12px;
        align-items:center;
    }

    .bbc-card img{
        width:120px;
        height:80px;
        object-fit:cover;
        border-radius:6px;
    }

    .bbc-card h3{
        font-size:16px;
        margin:0;
    }
}