/* Custom Theme Styles for Modern News Website */

/* Google Fonts - Uncomment and replace with desired fonts */
/* @import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&family=Source+Sans+Pro:wght@400;600;700&display=swap'); */

/* Custom Variables - can be adjusted to change theme colors */
:root {
    --primary-color: #3273dc;
    --secondary-color: #209cee;
    --accent-color: #ff3860;
    --text-color: #363636;
    --light-text: #f5f5f5;
    --background-light: #f5f5f5;
    --background-dark: #363636;
}

/* Base Styles - Enhancing Bulma */
body {
    font-family: 'Source Sans Pro', 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

#body {
    flex: 1;
    padding-top: 3.25rem; /* Space for fixed navbar */
}

/* Header Enhancements */
#header {
    transition: all 0.3s ease;
}

#header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Article and Content Styling */
.content h1, .content h2, .content h3, .content h4 {
    font-family: 'Merriweather', Georgia, 'Times New Roman', Times, serif;
    margin-bottom: 1.5rem;
}

.content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.content img {
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Article Card Styling */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-image img {
    object-fit: cover;
    height: 200px;
}

/* Featured Article Styling */
.featured-article {
    position: relative;
}

.featured-article .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
}

/* Custom Button Styling */
.button.is-primary {
    background-color: var(--primary-color);
}

.button.is-primary:hover {
    background-color: var(--secondary-color);
}

/* Footer Enhancements */
.footer {
    padding: 3rem 1.5rem;
}

.footer a:hover {
    color: var(--primary-color);
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .section {
        padding: 2rem 1rem;
    }

    .title.is-2 {
        font-size: 1.75rem;
    }

    .subtitle.is-4 {
        font-size: 1.25rem;
    }
}
