﻿/* Stilizimi bazë i body dhe fontit */
body {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
}
h1 {
    margin: 0 24px;
}
/* Navbar Stilizimi */
.navbar {
    background-color: #fff;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.navbar .logo img {
    height: 30px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

    .nav-links a, .user-actions .log-in {
        color: #4a5568;
        font-size: 16px;
        font-weight: 500;
    }

.user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.get-started {
    background-color: #006aff;
    color: #fff;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

    .get-started:hover {
        background-color: #0056e3;
    }

/* KJO ËSHTË PJESA KRYESORE E RREGULLUAR */
/* Përdorim `display: flex` për të vendosur sidebar-in dhe përmbajtjen në të njëjtin rresht */
.content-container {
    display: flex;
    max-width: 1200px;
    margin: 30px auto;
    /*    padding: 0 20px;
*/ gap: 40px;
    /* Përdorim `align-items: flex-start` për të siguruar që elementet të rreshtohen nga lart */
    align-items: flex-start;
}

/* Stilizimi i Sidebar - i rregulluar */
/* Këtu `position: sticky` do të funksionojë siç duhet sepse `content-container` e mban `main-news-section` si një element të gjatë */
.sidebar {
    width: 220px;
    position: fixed;
    top: 100px;
    left: 40px;
    background-color: white;
    border-right: 1px solid #e2e8f0;
    padding: 10px 0;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}


.sidebar-content {
    display: flex;
    flex-direction: column;
    width: 200px;
}

.sidebar-item {
    display: block;
    padding: 8px 16px;
    color: black;
    transition: color 0.3s;
}

    .sidebar-item:hover {
        color: #007bff; /* Blu në hover */
    }

    .sidebar-item.active {
        color: #007bff;
        font-weight: bold;
    }


s
/* Stilizimi i Seksionit Kryesor të Lajmeve */
.main-news-section {
    flex-grow: 1;
    /* Këtu shtojmë një `min-height` vetëm për të testuar */
    /* Për shkak se përmbajtja juaj është më e gjatë, ky rregull nuk është i domosdoshëm, por ndihmon të kuptosh logjikën */
    /* min-height: 2000px; */
}

.featured-article {
    background-color: #fff;
    padding: 30px;
    /* border-radius: 8px; */
    border-bottom: 1px solid lightgray;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); */
    margin-bottom: 40px;
}

.featured-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-top: 0;
}

.read-more {
    color: #006aff;
    font-weight: 600;
    font-size: 16px;
    margin-top: 15px;
}

    .read-more:hover {
        text-decoration: underline;
    }

/* Stilizimi i seksioneve të listës së lajmeve */
.news-list-section {
    margin-bottom: 40px;
}

    .news-list-section h2 {
        /*        font-size: 1.8rem;
*/ color: #1a202c;
        margin-bottom: 5px;
    }

    .news-list-section hr {
        border: none;
        border-top: 1px solid #e2e8f0;
        margin: 20px 0;
    }

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.news-card {
    background-color: #fff;
    padding: 25px;
    /* border-radius: 8px; */
    border-bottom: 1px solid lightgray;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); */
    transition: transform 0.2s ease;
}

    .news-card:hover {
        transform: translateY(-5px);
    }

.card-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 500;
}

.category {
    padding: 4px 10px;
    border-radius: 50px;
    color: #fff;
    font-weight: 600;
}

.category-partner {
    background-color: #0056e3;
}
.category-partner1 {
    background-color: #155c5faa;
}

.category-hires {
    background-color: #2b6cb0;
}

.category-product {
    background-color: #9f7aea;
}

.category-media {
    background-color: #48bb78;
}

.category-blog {
    background-color: #ed8936;
}

.category-document {
    background-color: #a0aec0;
}

.category-report {
    background-color: #4a5568;
}

.date {
    color: #718096;
}

.news-card h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #1a202c;
    line-height: 1.4;
}

    .news-card h3:hover {
        color: #006aff;
    }



.news-main {
    display: flex;
    gap: 20px;
}

.news-sidebar {
    position: sticky;
    top: 120px;
    width: 220px;
    background-color: white;
    padding: 20px;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 16px;
    flex-shrink: 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

    .news-sidebar ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .news-sidebar li {
        padding: 10px;
        border-radius: 8px;
        cursor: pointer;
        margin-bottom: 6px;
        transition: background-color 0.2s;
    }

        .news-sidebar li.active,
        .news-sidebar li.highlight {
            background-color: #006BFF;
            color: white;
            font-weight: bold;
        }

        .news-sidebar li a {
            text-decoration: none;
            color: inherit;
            display: block;
        }


/* Responsiviteti për pajisjet mobile */
@media (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        display: none;
    }

    .content-container {
        flex-direction: column;
        gap: 20px;
        overflow: visible; /* duhet të jetë kështu ose mos ta ketë fare */
    }

    .sidebar {
        position: static;
        width: 100%;
        margin-bottom: 20px;
    }

    .sidebar-content {
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
    }

    .sidebar-item {
        padding: 8px 12px;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

        .sidebar-item.active {
            border-left: none;
            border-bottom: 3px solid #006aff;
        }

    .news-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .news-sidebar {
        position: sticky;
        top: 60px; /* ose 0 nëse nuk ke navbar lart */
        z-index: 999;
        width: 100%;
        border-radius: 0;
        padding: 10px 0;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        border: none;
        background-color: #fff;
        box-shadow: inset 0 -1px 0 #e2e8f0;
    }

        .news-sidebar ul {
            display: flex;
            flex-direction: row;
            gap: 10px;
            padding: 0 10px;
            margin: 0;
        }

        .news-sidebar li {
            display: inline-block;
            white-space: nowrap;
            border-radius: 50px;
            background-color: #f1f5f9;
            padding: 8px 16px;
            font-weight: 500;
            transition: background-color 0.3s ease;
            cursor: pointer;
            flex-shrink: 0;
        }

            .news-sidebar li.active,
            .news-sidebar li.highlight {
                background-color: #006BFF;
                color: white;
            }

            .news-sidebar li a {
                color: inherit;
                text-decoration: none;
                display: block;
            }
}
