﻿/* :root {
    --bg-color: #1a1a1a;
    --bg-color-second: #2b2b2b;
    --text-color: #e0e0e0;
    --text-color-muted: #888;
    --text-color-subtle: #ccc;
    --border-color: #444;
    --accent-color: #0096FF;
    --color5: var(--bg-color-second);
} */

body {
    font-family: "Open Sans", sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    font-weight: 300;
    text-align: center;
}

@media screen and (max-width: 630px) {
    #mid {
        width: 95% !important;
    }
    .img img {
        margin-top: 0% !important;
    }
}

@media screen and (max-width: 992px) {
    main{
        padding-left: 0 !important;
    }
}

aside {
    background-color: var(--color5);
    text-align: left;
    float: left;
    border-radius: 10px;
    padding-bottom: 3%;
    /* Let verticalNavBar.css define the width (e.g., 240px) */
}

.vNavbar {
    margin-left: 0 !important;
}

main {
    word-wrap: break-word;
    padding-left: 260px; /* Adjusted for a 240px navbar + 20px gap */
    text-align: left;
}

#mid {
    width: 90%;
    display: inline-block;
    margin: 0 auto;
    border-radius: 5px;
}

.line {
    border-bottom: 1px solid var(--border-color);
    margin-top: 20px; /* Added margin for better spacing above the line */
}

.news {
    /* Existing padding: 25px 0; */
    /* NEW: Add card-like styling and hover effect to the entire news block */
    position: relative;
    padding: 20px 25px; /* Adjusted padding for a card-like look with horizontal spacing */
    margin-bottom: 15px; /* Space between news items */
    border-radius: 8px; /* Slightly rounded corners for the card */
    background-color: var(--bg-color); /* Explicit default background */
    transition: background-color 0.3s ease, border-color 0.3s ease; /* Smooth transition */
    border: 1px solid transparent; /* Invisible border to prevent layout shift on hover */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

/* Apply clearfix to contain the floated date element */
/* .news::after {
    content: "";
    clear: both;
    display: table;
} */

/* NEW: Hover effect for the entire news container */
.news:hover {
    background-color: var(--bg-color-second); /* Darker background on hover */
    border-color: var(--border-color); /* Subtle border on hover */
}

/* NEW: Adjust text colors inside the news block on hover for better visibility/emphasis */
.news:hover h3 {
    color: var(--accent-color); /* Highlight title on hover */
}

.news:hover p {
    color: var(--text-color); /* Make paragraph text brighter on hover */
}

.news:hover .date {
    color: var(--text-color-subtle); /* Adjust date color for consistency */
}


.news h3 {
    text-transform: uppercase;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 12px;
    /* Add transition for smooth text color change on hover */
    transition: color 0.3s ease;
}

p {
    font-size: 15px;
    margin-top: 1%;
    margin-bottom: 15px;
    color: color-mix(in srgb, var(--text-color) 60%, grey 40%);;
    line-height: 1.6;
}

.text {
    display: inline-block;
    width: 100% !important; /* Ensure it takes full available width within .news padding */
    text-wrap: wrap;
}

a {
    display: block;
    font-size: 14px;
    color: inherit; /* Links should have the same color as surrounding text, driven by .news h3 or default */
    text-decoration: none !important;
    text-align: left;
}

.tabs {
    width: 100%;
    padding: 1%;
    color: var(--text-color);
}

.tabs:hover {
    border-radius: 2px;
}

/* NEW: Style for the date element created by JavaScript */
.date {
    float: right;
    color: var(--text-color-muted);
    font-size: 14px;
    padding-right: 22px; /* Space for the icon */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='grey' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    line-height: 1.25; /* Align text with icon */
    transition: color 0.3s ease; /* Smooth date color change */
}

.img {
    width: 20%;
    display: inline;
}

.img img {
    display: inline;
    max-width: 75px;
    max-height: 75px;
    margin-top: -50px;
}


/* pagination */
.pagination {
    text-align: center;
    font-family: monospace;
    display: inline-block;
    margin-top: 20px;
}

.pagination a {
    color: var(--text-color);
    background-color: var(--bg-color);
    float: left;
    margin: 0 5px;
    padding: 8px 16px;
    text-decoration: none;
    transition: background-color 0.5s;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

.pagination a.active {
    color: #FFF;
    background-color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.pagination a:hover:not(.active) {
    background-color: var(--bg-color-second);
}

.activePage{
    background-color: var(--text-color);
    color: var(--bg-color)
}

/* REMOVED original .news a:hover and .news a:hover::after as they were replaced by .news:hover */
/*
.news a:hover {
    color: red;
}

.news a:hover::after {
    content: ".";
    width: 100%;
    height: 100%;
    background-color: green;
}
*/