/* Basic Reset */
/* Version 3.4 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    padding: 10px;
    line-height: 1.6;
}

/* Navbar Styling */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10px;
    background-color: #007BFF;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Logo and Title */
.navbar-left {
    display: flex;
    align-items: center;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    background-color: #FFC107;
    border-radius: 50%;
    margin-right: 20px;
}

.site-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.title-container {
    padding: 10px;
    border-radius: 8px;
    background-color: #28A745;
    font-size: 1.8rem;
    color: white;
}

@media (max-width: 768px) {
    .title-container {
        display: none;
    }
}

/* Menu Styling */
.menu-container {
    display: flex;
    align-items: center;
    background-color: #DC3545;
    padding: 10px;
    border-radius: 8px;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.nav-menu li a:hover {
    text-decoration: underline;
}

/* Dropdown Menu Styling */
.nav-menu li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #DC3545;
    padding: 10px;
    border-radius: 8px;
    z-index: 1000;
}

.nav-menu li:hover ul {
    display: block;
}

.nav-menu li ul li {
    margin: 0;
}

.nav-menu li ul li a {
    white-space: nowrap;
}

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.burger-menu div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .burger-menu {
        display: flex;
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
        gap: 10px;
        background-color: #DC3545;
        position:absolute;
        top: 60px;
        right: 20px;
        padding: 10px;
        border-radius: 8px;
        z-index: 100;
    }
}

/* Content Container */
.content-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.article {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex: 1 1 calc(33.333% - 20px);
    min-width: 300px;
    max-width: 100%;
    position: relative;
    transition: all 0.3s ease;
    height: 400px; /* Set the initial height */
    overflow: hidden; /* Hide the overflow */
}

.article.placeholder {
    visibility: hidden;
    background-color: transparent;
    border: none;
    box-shadow: none;
    pointer-events: none;
}

.article.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    margin: 0;
    padding: 40px;
    border-radius: 0;
    background-color: white;
    overflow: auto;
}

.article.expanded {
    height: auto; /* Remove the height restriction */
}

.article-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.article-header h2 {
    font-size: 1.5rem;
    margin: 0;
    color: #333;
    flex-grow: 1;
}

.article-fullscreen-toggle {
    cursor: pointer;
    font-size: 1.2rem;
    color: #333;
}

.article img, .article video, .article iframe {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.article iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 10px 0;
}

.pdf-download {
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: #333;
}

.article-footer .copyright {
    font-size: 1rem;
    color: #333;
    text-align: right;
}

.pdf-download i {
    margin-right: 5px;
    color: #d9534f;
}

.pdf-download a {
    text-decoration: none;
    color: #d9534f;
    font-weight: bold;
    margin-right: 10px;
}

@media (max-width: 1024px) {
    .article {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .article {
        flex: 1 1 100%;
    }
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    padding: 10px;
}

.pagination a {
    margin: 0 5px;
    padding: 10px 15px;
    text-decoration: none;
    color: #007BFF;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.pagination a:hover {
    background-color: #007BFF;
    color: white;
}

.pagination a.active {
    background-color: #007BFF;
    color: white;
    border-color: #007BFF;
}

.like-container i {
    cursor: pointer;
    font-size: 1.2rem;
    color: #007BFF;
}

.like-container i.liked {
    color: #0056b3;
}
