/* General Body */

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: #f9f9f9;
    color: #222;
}


/* --- Top Bar --- */

.top-bar {
    display: flex;
    justify-content: flex-end;
    /* keeps date/time and theme toggle on the right */
    align-items: center;
    padding: 8px 20px;
    background: #1f1f1f;
    /* darker gray */
    color: #fff;
    font-size: 14px;
    gap: 15px;
}


/* Optional: small styling for date/time */

#date-time {
    font-weight: 500;
}


/* --- Logo --- */


/* --- Logo Container Above Nav --- */

.logo {
    text-align: center;
    /* center logo above nav */
    padding: 15px 0;
    background: #fff;
    /* optional: same as nav background */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    z-index: 10;
}


/* Logo Image */

.logo a img {
    max-height: 60px;
    width: auto;
    display: inline-block;
    transition: transform 0.3s ease;
}

.logo a img:hover {
    transform: scale(1.05);
    /* slight zoom on hover */
}


/* Navigation */

nav {
    background: #fff;
    /* matches logo background */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

nav ul {
    display: flex;
    justify-content: center;
    /* center nav links */
    list-style: none;
    margin: 0;
    padding: 10px 0;
    gap: 25px;
}

nav ul li a {
    text-decoration: none;
    color: #222;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    background: #e63946;
    color: #fff;
    transform: translateY(-2px);
}


/* Responsive */

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
}


/* Main Category Section */

.category-section {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.category-section h1 {
    font-size: 32px;
    margin-bottom: 20px;
    text-align: center;
}


/* News Cards Grid */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.card img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.card-content {
    padding: 15px;
}

.card-content span {
    font-size: 12px;
    font-weight: bold;
    color: #e63946;
    text-transform: uppercase;
}

.card-content h3 {
    margin: 10px 0;
    font-size: 20px;
}

.card-content p {
    font-size: 14px;
    color: #555;
}

.card-content a {
    display: inline-block;
    margin-top: 10px;
    color: #e63946;
    text-decoration: none;
    font-weight: bold;
}

.card-content a:hover {
    text-decoration: underline;
}


/* Full Article Section */

.article-full {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 50px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.article-full h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.article-full .article-date {
    font-size: 12px;
    color: #888;
    margin-bottom: 20px;
}

.article-full img {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    margin-bottom: 20px;
}

.article-full p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 15px;
}


/* Floating Share Buttons */

.share-buttons {
    position: fixed;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.share-buttons.show {
    opacity: 1;
    visibility: visible;
}

.share-buttons a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 18px;
    color: #fff;
    transition: transform 0.3s ease;
}

.share-buttons a:hover {
    transform: scale(1.1);
}


/* Brand Colors */

#share-fb {
    background: #1877f2;
}

#share-tw {
    background: #000000;
}


/* X/Twitter */

#share-wa {
    background: #25d366;
}

#share-li {
    background: #0a66c2;
}

#share-rd {
    background: #ff4500;
}

#share-tg {
    background: #0088cc;
}