@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;600;800&family=Roboto:wght@300;400;500&display=swap');

:root {
    --primary: #e74c3c; /* Sporty Red */
    --dark: #1a1a1a;    /* Deep Carbon */
    --light: #f4f4f4;
    --blue: #2980b9;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f0f2f5;
    color: #333;
}

h1, h2, h3, h4, h5, .navbar-brand {
    font-family: 'Exo 2', sans-serif; /* Automotive style font */
    text-transform: uppercase;
    font-weight: 800;
}

/* --- Navbar --- */
.top-bar {
    background: var(--dark);
    color: #aaa;
    font-size: 0.85rem;
    padding: 5px 0;
}

.navbar {
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 15px 0;
}

.navbar-brand {
    color: var(--dark) !important;
    font-size: 1.8rem;
    letter-spacing: 1px;
}

.navbar-brand span { color: var(--primary); }

.nav-link {
    color: #555 !important;
    font-weight: 600;
    margin-right: 15px;
    transition: color 0.3s;
}

.nav-link:hover { color: var(--primary) !important; }

/* --- Hero Section --- */
/*.hero-header {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1494976388531-d1058494cdd8?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    color: white;
    margin-bottom: 40px;
}

.hero-header {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1605559424843-9e4c228bf1c2?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    color: white;
    margin-bottom: 40px;
} */

.hero-header {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1553440569-bcc63803a83d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    color: white;
    margin-bottom: 40px;
} 

/* --- Hero Slider Styling --- */
.hero-img {
    height: 600px;         /* Fixed height for all screens */
    object-fit: cover;     /* Ensures image covers area without stretching */
    position: relative;
}

/* Dark Overlay to make text readable */
.overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* 50% Black overlay */
    z-index: 1;
}

/* Fix Caption Position */
.carousel-caption {
    z-index: 2; /* Puts text above the overlay */
    bottom: 0;
    left: 0;
    right: 0;
    top: 0; /* Stretches caption box to full height for centering */
}

/* Typography Enhancements */
.hero-title {
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
    letter-spacing: 1px;
}

.carousel-indicators button {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50%;
    margin: 0 5px !important;
}

/* Optional: Simple text animation */
.animate-up {
    animation: fadeInUp 1s ease-out;
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-img {
        height: 400px;
    }
    .hero-title {
        font-size: 2rem; /* Smaller font on mobile */
    }
}

.hero-title {
    font-size: 3.5rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

/* --- Cards --- */
.news-card {
    border: none;
    border-radius: 8px;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.news-img-wrap {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.news-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-card:hover .news-img-wrap img { transform: scale(1.1); }

.badge-cat {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: white;
    padding: 5px 10px;
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 4px;
}

.btn-read {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: bold;
    border-radius: 30px;
    padding: 8px 25px;
    transition: all 0.3s;
}

.btn-read:hover {
    background: var(--primary);
    color: white;
}

/* --- Footer --- */
footer {
    background: #111;
    color: #ccc;
    padding-top: 60px;
    margin-top: 80px;
}
footer h5 { color: white; margin-bottom: 20px; }
footer a { color: #888; text-decoration: none; display: block; margin-bottom: 10px; }
footer a:hover { color: var(--primary); }
.social-icon { font-size: 1.5rem; margin-right: 15px; color: white; }

/* --- Admin --- */
.admin-bg {
    background: url('https://images.unsplash.com/photo-1503376763036-066120622c74?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 15px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.sidebar {
    height: 100vh;
    background: #2c3e50;
    color: white;
    padding-top: 20px;
    position: fixed;
    width: 250px;
}
.sidebar a {
    color: #ecf0f1;
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    border-left: 4px solid transparent;
}
.sidebar a:hover, .sidebar a.active {
    background: #34495e;
    border-left: 4px solid var(--primary);
}
.main-content { margin-left: 250px; padding: 30px; }