/* Reset and basic styles */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f4;
}

/* Navbar Styling */
.navbar {
    background-color: #2c3e50;
    color: #ecf0f1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo Section */
.navbar .logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar .logo img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar .logo img:hover {
    transform: scale(1.1);
}

.navbar .logo a.home {
    text-decoration: none;
    color: #ecf0f1;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.navbar .logo a.home i {
    font-style: normal;
}

/* Search Bar Styling */
.nav-search {
    flex: 1;
    max-width: 400px;
    margin: 0 40px;
}

.nav-search form {
    display: flex;
    width: 100%;
}

.nav-search input {
    flex: 1;
    padding: 8px 15px;
    border: none;
    border-radius: 20px 0 0 20px;
    outline: none;
    font-size: 0.9rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.nav-search input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.nav-search input:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #e74c3c;
}

.nav-search button {
    padding: 8px 20px;
    border: none;
    background-color: #e74c3c;
    color: white;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.nav-search button:hover {
    background-color: #c0392b;
}

/* Navigation Links */
.navbar .nav-links .nav-group {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.navbar .nav-links .nav-item {
    position: relative;
}

.navbar .nav-links .nav-item > a {
    display: block; /* Ensure the link fills the item for better hover target */
    text-decoration: none;
    color: #ecf0f1;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 10px 0; /* Add some vertical padding */
    transition: color 0.3s ease;
}

.navbar .nav-links .nav-item > a i {
    font-style: normal;
}

/* Hover Effect for Links */
.navbar .nav-links .nav-item > a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #e74c3c; /* Karate Red accent */
    transition: width 0.3s ease;
}

.navbar .nav-links .nav-item:hover > a {
    color: #e74c3c;
}

.navbar .nav-links .nav-item:hover > a::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #34495e; /* Slightly lighter than navbar */
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1001;
    border-radius: 4px;
    overflow: hidden;
    padding: 5px 0;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

.dropdown-content a {
    color: #ecf0f1;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-size: 0.95rem;
    transition: background-color 0.2s;
}

.dropdown-content a:hover {
    background-color: #2c3e50; /* Darker on hover */
    color: #e74c3c;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* Mobile Responsiveness (Basic) */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-search {
        margin: 0;
        width: 100%;
        max-width: none;
        order: 2; /* Keep it between logo and links */
    }

    .navbar .nav-links .nav-group {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Home Page Styles */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('/static/images/noticia20210727102110.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.5rem;
    max-width: 800px;
    margin-bottom: 2rem;
    font-weight: 300;
}

.btn-primary {
    background-color: #e74c3c;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #c0392b;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: -50px auto 50px;
    padding: 0 20px;
}

.feature-card {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.feature-card .btn-outline {
    display: inline-block;
    border: 2px solid #2c3e50;
    color: #2c3e50;
    padding: 8px 20px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.feature-card .btn-outline:hover {
    background-color: #2c3e50;
    color: white;
}

.about-section {
    background-color: white;
    padding: 80px 20px;
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.about-content p {
    font-size: 1.1rem;
    color: #7f8c8d;
    line-height: 1.8;
}
