*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family: 'Poppins', sans-serif;
}

body{
    background:#f0f4f8;
    color:#1e293b;
}
/* Sidebar Container */
.sidebar {
    width: 250px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    max-height: 80vh;              /* 👈 responsive height */
    overflow-y: auto;              /* 👈 enable scroll */
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Title */
.sidebar h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

/* Sidebar Base */
.sidebar {
    width: 250px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    max-height: 80vh;              /* desktop height */
    overflow-y: auto;              /* scroll enabled */
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    scroll-behavior: smooth;
}

/* Category Links */
.category {
    display: block;
    padding: 10px;
    margin-bottom: 8px;
    text-decoration: none;
    color: #333;
    border-radius: 6px;
    transition: 0.3s;
}

.category:hover,
.category.active {
    background: #14b8a6;
    color: #fff;
}

/* Scrollbar (desktop browsers) */
.sidebar::-webkit-scrollbar {
    width: 6px;
}
.sidebar::-webkit-scrollbar-thumb {
    background: #14b8a6;
    border-radius: 10px;
}

/* =========================
   📱 MOBILE FIX (IMPORTANT)
========================= */
@media (max-width: 768px) {

    .sidebar {
        width: 100%;
        max-height: 250px;     /* 👈 force scroll on mobile */
        overflow-y: auto;
        margin-bottom: 15px;
    }

}

    .social-share-icons {
        display: flex;
        gap: 15px;
        align-items: center;
    }
    .social-share-icons a {
        color: #94a3b8; /* Soft slate gray color */
        font-size: 18px; 
        text-decoration: none;
        transition: all 0.3s ease;
    }
    /* Hover colors for each specific brand */
    .social-share-icons a:hover .fa-facebook-f { color: #1877F2; }
    .social-share-icons a:hover .fa-x-twitter { color: #000000; }
    .social-share-icons a:hover .fa-instagram { color: #E1306C; }
    .social-share-icons a:hover .fa-linkedin-in { color: #0A66C2; }
    .social-share-icons a:hover .fa-whatsapp { color: #25D366; }

    .social-share-icons a:hover {
        transform: translateY(-3px); /* Makes them jump up slightly when hovered */
    }

    .social-share-icons {
        display: flex;
        gap: 15px;
        align-items: center;
    }
    .social-share-icons a {
        color: #64748b; /* Soft gray color */
        font-size: 18px; 
        text-decoration: none;
        transition: all 0.3s ease;
    }
    /* Hover colors for each specific brand */
    .social-share-icons a:hover .fa-facebook-f { color: #1877F2; }
    .social-share-icons a:hover .fa-twitter { color: #1DA1F2; }
    .social-share-icons a:hover .fa-linkedin-in { color: #0A66C2; }
    .social-share-icons a:hover .fa-whatsapp { color: #25D366; }

    .social-share-icons a:hover {
        transform: translateY(-3px); /* Makes them jump up slightly when hovered */
    }

.badge-html {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    color: white;
    font-size: 11px;
    padding: 2px 9px;
    border-radius: 20px;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
}
/* ====== HERO ====== */
.hero{
    background: linear-gradient(135deg, #0f172a 0%, #1a3a5c 50%, #0f766e 100%);
    color:white;
    padding:80px 8% 70px;
    text-align:center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 300px; height: 300px;
    background: rgba(20,184,166,0.12);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -80px;
    width: 350px; height: 350px;
    background: rgba(20,184,166,0.08);
    border-radius: 50%;
}

.hero h1{
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}

.hero p{
    opacity: 0.8;
    max-width: 560px;
    margin: 0 auto 30px;
    font-size: 15px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* ====== SEARCH ====== */
.search-box{
    display: flex;
    justify-content: center;
    gap: 0;
    max-width: 560px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    position: relative;
    z-index: 1;
}

.search-box input{
    flex: 1;
    padding: 15px 20px;
    border: none;
    outline: none;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    color: #1e293b;
}

.search-box button{
    padding: 15px 28px;
    background: #14b8a6;
    border: none;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
}

.search-box button:hover{
    background: #0f766e;
}

/* ====== MAIN LAYOUT ====== */
.container{
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
    padding: 45px 8%;
    max-width: 1400px;
    margin: 0 auto;
}

/* ====== SIDEBAR ====== */
.sidebar{
    background: white;
    border-radius: 14px;
    padding: 22px 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.sidebar h3{
    margin-bottom: 16px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
}

a.category{
    display: flex;
    align-items: center;
    padding: 9px 12px;
    border-radius: 8px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: #475569;
    font-size: 13px;
    font-weight: 500;
}

a.category::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cbd5e1;
    margin-right: 10px;
    flex-shrink: 0;
    transition: 0.2s;
}

a.category:hover, a.category.active{
    background: rgba(20,184,166,0.1);
    color: #0f766e;
    font-weight: 600;
}

a.category:hover::before, a.category.active::before{
    background: #14b8a6;
}

/* ====== ARTICLES SECTION ====== */
.articles-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.articles h2{
    font-size: 20px;
    color: #0f172a;
    font-weight: 700;
}

/* ====== ARTICLE CARD ====== */
.article-card{
    background: white;
    padding: 22px 24px;
    border-radius: 14px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: all 0.25s ease;
    border-left: 4px solid transparent;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article-card:hover{
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(20,184,166,0.12);
    border-left-color: #14b8a6;
}

.article-card h3{
    color: #0f172a;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    word-break: break-word;
}

.meta{
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 10px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.article-card p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 14px;
    /* Limit to 3 lines for a clean card look */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.read-btn{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: linear-gradient(135deg, #14b8a6, #0f766e);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(20,184,166,0.3);
}

.read-btn:hover{
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(20,184,166,0.4);
}

.no-articles {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.no-articles i {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

/* ====== FOOTER ====== */
footer{
    background:#0f172a;
    color:white;
    text-align:center;
    padding:20px;
    margin-top:40px;
    font-size: 14px;
}

/* ====== RESPONSIVE ====== */
@media(max-width:992px){
    .container{
        grid-template-columns: 1fr;
        padding: 30px 5%;
    }
    .sidebar {
        position: static;
        order: -1;
    }
    .sidebar-inner {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    a.category {
        padding: 7px 14px;
        border: 1px solid #e2e8f0;
    }
}

@media(max-width:768px){
    .hero {
        padding: 55px 6% 50px;
    }
    .hero h1{
        font-size: 26px;
    }
    .hero p {
        font-size: 14px;
    }
    .search-box{
        flex-direction: column;
        border-radius: 10px;
        overflow: visible;
    }
    .search-box input, .search-box button {
        border-radius: 8px;
        width: 100%;
    }
    .article-card {
        padding: 18px;
    }
}

@media(max-width:480px){
    .hero h1{
        font-size: 22px;
    }
    .articles h2 {
        font-size: 17px;
    }
}