html {
    overflow-x: clip;
}

body {
    max-width: 100%;
    font-family: 'Segoe UI', sans-serif;
    overflow-x: clip;
}

@media (max-width: 768px) {
    img, iframe, ins.adsbygoogle, figure {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Top Header */
.top-header {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.logo {
    font-weight: 700;
    font-size: 28px;
    color: #1a1a2e;
}

.logo span {
    color: #6c63ff;
}

/* Search box */
.search-box {
    position: relative;
}

.search-box input {
    padding-left: 35px;
    border-radius: 8px;
}

.search-box i {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    color: #999;
}

/* Nav categories */
.category-nav {
    background: #fafafa;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.category-nav a {
    padding: 12px 16px;
    display: inline-block;
    font-weight: 500;
    text-decoration: none;
}

/* Colors (match screenshot vibe) */
.c-archive {
    color: #333;
}

.c-diy {
    color: #f39c12;
}

.c-life {
    color: #e67e22;
}

.c-health {
    color: #e84393;
}

.c-show {
    color: #8e44ad;
}

.c-clean {
    color: #6c5ce7;
}

.c-news {
    color: #3498db;
}

.c-beauty {
    color: #00a8ff;
}

.c-home {
    color: #27ae60;
}

.category-nav a:hover {
    background: #f1f1f1;
    border-radius: 6px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .logo {
        font-size: 20px;
    }

    .top-links {
        font-size: 14px;
    }

    .category-nav {
        overflow-x: auto;
        white-space: nowrap;
    }

    .category-nav a {
        padding: 10px 12px;
    }
}

/* section -1 HERO */
.hero-card {
    height: 420px;
}

.hero-img {
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2));
}

.hero-title {
    font-size: 2.2rem;
    line-height: 1.2;
}

/* Sidebar */
.sidebar {
    background: #0b0f2a;
}

.sidebar-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

/* Custom Colors */
.bg-purple {
    background: #7b2ff7;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-card {
        height: 320px;
    }

    .hero-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .hero-card {
        height: 260px;
    }

    .hero-title {
        font-size: 1.3rem;
    }

    .sidebar-img {
        width: 60px;
        height: 60px;
    }
}


/* section-2  */
.post-card img {
    height: 220px;
    object-fit: cover;
}

.post-card h5 {
    font-size: 1rem;
    line-height: 1.4;
}

/* Custom colors */
.bg-purple {
    background: #7b2ff7;
}

.bg-indigo {
    background: #5f27cd;
}

/* Hover effect */
.post-card {
    transition: 0.3s;
}

.post-card:hover {
    transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 768px) {
    .post-card img {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .post-card img {
        height: 160px;
    }
}


/** Section - 3 */
/* Card */
.category-card {
    background: #f8f9fb;
    padding: 20px;
    border-radius: 10px;
    height: 100%;
    transition: 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
}

/* Image */
.cat-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
}

/* Text */
.category-card p {
    margin-bottom: 4px;
}

/* Custom colors */
.text-purple {
    color: #7b2ff7;
}

.text-orange {
    color: #ff7a00;
}

.text-indigo {
    color: #5f27cd;
}

/* Link */
.more-link {
    display: inline-block;
    margin-top: 10px;
    font-weight: 500;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .cat-img {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 576px) {
    .category-card {
        padding: 15px;
    }
}

/** Footer */
/* Background */
.footer-section {
    background: #070d2b;
}

/* Title */
.footer-title {
    font-weight: 700;
    margin-bottom: 20px;
}

/* Links */
.footer-links li {
    margin-bottom: 10px;
    color: #ccc;
    cursor: pointer;
}

.footer-links li:hover {
    color: #fff;
}

/* Posts */
.footer-post {
    margin-bottom: 15px;
}

.footer-post p {
    margin: 5px 0;
    font-size: 14px;
}

/* Gradient Card */
.footer-card {
    background: linear-gradient(135deg, #5f2cff, #8a2be2);
}

/* Bottom links */
.footer-bottom-links a {
    color: #ccc;
    margin-left: 15px;
    text-decoration: none;
    font-size: 14px;
}

.footer-bottom-links a:hover {
    color: #fff;
}

/* Custom */
.bg-purple {
    background: #7b2ff7;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-bottom-links a {
        display: inline-block;
        margin: 5px 10px;
    }
}