html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Custom primary color */
.btn-primary {
    background-color: #990707 !important;
    border-color: #990707 !important;
    color: #ffffff !important;
}

    .btn-primary:hover,
    .btn-primary:focus,
    .btn-primary:active,
    .btn-primary:not(:disabled):not(.disabled).active {
        background-color: #7a0505 !important;
        border-color: #7a0505 !important;
        color: #ffffff !important;
    }

    .btn-primary:focus {
        box-shadow: 0 0 0 0.25rem rgba(153,7,7,0.25) !important;
    }

.btn-outline-primary {
    color: #990707 !important;
    border-color: #990707 !important;
}

    .btn-outline-primary:hover {
        background-color: #990707 !important;
        color: #ffffff !important;
    }

/* Brand title color */
.brand-title {
    color: #990707;
}

/* Login header logo sizing and responsive behavior */
.login-logo {
    height: 64px;
}

@media (max-width: 767.98px) {
    .login-logo {
        height: 80px;
        display: block;
        margin: 0 auto 8px auto;
    }

    .brand-title {
        text-align: center;
    }
}

/* Navbar logo */
.nav-logo {
    height: 40px;
}

@media (min-width: 1200px) {
    .nav-logo {
        height: 48px;
    }
}

/* Active nav link styling */
.navbar-nav .nav-link.active {
    color: #990707 !important;
    position: relative;
}

    .navbar-nav .nav-link.active::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: -6px;
        height: 3px;
        background-color: #990707;
    }

/* Additional spacing for top navbar items */
.navbar-nav .nav-item {
    margin-right: 1rem; /* space between items */
}

/* Reduce right margin on very small screens to avoid wrapping */
@media (max-width: 576px) {
    .navbar-nav .nav-item {
        margin-right: 0.5rem;
    }
}

/* Ensure dropdown menus don't inherit extra margin */
.navbar-nav .dropdown-menu {
    margin-top: 0.25rem;
}

/* Hover effect for news cards on home page */
.noticia-card-home {
    border: 1px solid #dee2e6 !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease !important;
    cursor: pointer;
}

a:hover .noticia-card-home {
    border-color: #c8102e !important;
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.25) !important;
    transform: translateY(-2px) !important;
}

/* Hover effect for news cards */
.noticia-card {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.noticia-card:hover {
    border-color: #c8102e !important;
    box-shadow: 0 2px 8px rgba(200, 16, 46, 0.2);
}