/*
Theme Name: The History Fever
Author: TheHistoryFever Team
Description: Custom theme for UPSC History aspirants.
Version: 1.0
*/

/* --- Start of Your Original CSS --- */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

h1, h2, h3 { font-family: 'Merriweather', serif; color: #1a1a1a; }
a { text-decoration: none; color: inherit; }

/* Navbar */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    background-color: #111; color: #fff; padding: 1rem 5%;
    position: sticky; top: 0; z-index: 100;
    border-bottom: 3px solid #c5a059;
}

.logo {
    font-size: 1.5rem; font-weight: bold; font-family: 'Merriweather', serif;
    color: #c5a059; text-transform: uppercase;
}

.nav-links { display: flex; list-style: none; }
.nav-links li { margin-left: 20px; }
.nav-links a { color: #fff; font-size: 0.9rem; font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: #c5a059; }

.upsc-highlight {
    background: #c5a059; padding: 5px 10px; color: #000 !important;
    border-radius: 4px; font-weight: bold;
}

/* Burger Menu */
.burger { display: none; cursor: pointer; }
.burger div { width: 25px; height: 3px; background-color: white; margin: 5px; transition: all 0.3s ease; }

/* Hero Section */
.hero {
    height: 60vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://source.unsplash.com/1600x900/?history,library');
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: #fff;
}
.hero-content h1 { font-size: 3rem; margin: 10px 0; color: #fff; }
.tag { background-color: #c5a059; color: #000; padding: 5px 10px; font-size: 0.8rem; font-weight: bold; text-transform: uppercase; }
.btn { display: inline-block; margin-top: 20px; padding: 10px 25px; background-color: #c5a059; color: #000; font-weight: bold; border-radius: 2px; }

/* Layout */
.container { display: flex; width: 90%; margin: 40px auto; gap: 30px; }
.articles { flex: 3; }
.sidebar { flex: 1; }

/* Grid System */
.grid-container {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px; margin-top: 20px;
}

.card {
    background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 5px; overflow: hidden; transition: transform 0.3s;
}
.card:hover { transform: translateY(-5px); }

.card-img { height: 180px; background-size: cover; background-position: center; }
.card-content { padding: 20px; }
.category { font-size: 0.75rem; color: #c5a059; font-weight: bold; text-transform: uppercase; }
.card-content h3 { font-size: 1.2rem; margin: 10px 0; }
.card-content a { color: #b91c1c; font-weight: bold; font-size: 0.9rem; }

/* Sidebar Widgets */
.upsc-box {
    background: #fff; padding: 20px; margin-bottom: 20px;
    border-top: 4px solid #b91c1c; box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.upsc-box h3 { font-size: 1.1rem; margin-bottom: 10px; }

/* Footer */
footer { background: #111; color: #777; text-align: center; padding: 20px; margin-top: 40px; }

/* Mobile */
@media (max-width: 768px) {
    .container { flex-direction: column; }
    .nav-links { display: none; width: 100%; position: absolute; top: 8vh; right: 0; background-color: #111; flex-direction: column; align-items: center; }
    .nav-links li { margin: 20px 0; }
    .burger { display: block; }
    .hero h1 { font-size: 2rem; }
}