body {
    background-image: url('../images/impero_perduto_saga_background.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-color: #1a1a2e; /* Dark background */
    color: #e0e0e0; /* Light text color */
    font-family: 'Arial', sans-serif;
}

.header, .footer {
    background-color: #0f0f1a !important; /* Even darker for header/footer */
    border-bottom: 2px solid #00f0ff; /* Sci-fi accent color */
}

.header-content {
    /*background-image: url('../images/title_background.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;*/
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.card {
    background-color: #2e2e4a !important; /* Slightly lighter dark for cards */
    border: 1px solid #00f0ff !important;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3); /* Glow effect */
}

.card-img-top {
    width: 100%; /* Ensure image fills its container */
    height: auto; /* Maintain aspect ratio */
    object-fit: contain; /* Ensure entire image is visible */
    border-bottom: 1px solid #00f0ff;
}

.card-title {
    color: #00f0ff; /* Accent color for titles */
}

.btn-primary {
    background-color: #00f0ff;
    border-color: #00f0ff;
    color: #1a1a2e;
    font-weight: bold;
}

.btn-primary:hover {
    background-color: #00c0d0;
    border-color: #00c0d0;
}

.btn-success {
    background-color: #00ff88;
    border-color: #00ff88;
    color: #1a1a2e;
    font-weight: bold;
}

.btn-success:hover {
    background-color: #00cc66;
    border-color: #00cc66;
}

.btn-outline-light {
    color: #e0e0e0;
    border-color: #e0e0e0;
}

.btn-outline-light:hover {
    background-color: #e0e0e0;
    color: #1a1a2e;
}

.language-switcher {
    margin-top: 15px;
    text-align: right; /* Align language switcher to the right */
}

.language-switcher .btn {
    margin: 0 5px;
}

.language-switcher .btn.active {
    background-color: #00f0ff;
    color: #1a1a2e;
    border-color: #00f0ff;
}

/* Logo Styling */
.site-logo {
    max-width: 250px; /* Adjust as needed */
    height: auto;
    margin-bottom: 15px;
}

/* Header content alignment */
/* Reverting to previous state, removing explicit left alignment */
/* .header-main-content {
    width: 100%;
    text-align: left !important;
}

.header-left-content {
    text-align: left;
} */

.header-main-content h1, .header-main-content .lead {
    margin-bottom: 0; /* Remove default margins */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-img-top {
        height: 200px;
    }
    .site-logo {
        max-width: 180px;
    }
    /* Reverting to previous state, removing explicit left alignment */
    /* .header-main-content {
        text-align: center;
    }
    .header-left-content {
        text-align: center;
    } */
    .header-main-content .ml-md-3 {
        margin-left: 0 !important; /* Remove left margin on small screens */
    }
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #222; /* Dark background */
    color: #fff;
    padding: 15px;
    z-index: 1050; /* High z-index to be on top */
    display: none; /* Hidden by default, shown by JS */
    border-top: 1px solid #444;
}

.cookie-banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.cookie-banner p {
    margin: 0;
    margin-right: 20px; /* Space between text and buttons */
    font-size: 0.9rem;
}

.cookie-banner a {
    color: #00aaff;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    align-items: center;
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    .cookie-banner .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-banner p {
        margin-bottom: 10px;
        margin-right: 0;
    }
}

/* --- News Content Formatting --- */
.news-card div p {
    margin-bottom: 1rem; /* Add some space between paragraphs */
}

.news-card strong, .news-card b {
    font-weight: bold;
    color: #00f0ff; /* Use accent color for emphasis */
}

.news-card em, .news-card i {
    font-style: italic;
}

.news-card ul, .news-card ol {
    margin-left: 20px;
    padding-left: 15px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.news-card li {
    margin-bottom: 8px;
}

.news-card a {
    color: #4dc3ff;
    text-decoration: underline;
}

.news-card a:hover {
    color: #8be0ff;
}

.bg-semi-transparent {
    background-color: rgba(15, 15, 26, 0.7); 
}

/* Ensure dropdown menu also has some transparency if needed */
.dropdown-menu.bg-dark {
    background-color: rgba(15, 15, 26, 0.9);
}
