body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
}

.navbar-brand-custom {
    font-weight: 700;
    font-size: 1.75rem;
    letter-spacing: -1px;
}

.top-nav-extras .btn {
    font-size: 0.85rem;
    padding: 0.3rem 0.75rem;
}

.social-icons a {
    color: #6c757d;
    margin-left: 0.75rem;
    font-size: 1.1rem;
    transition: color 0.2s ease-in-out;
}

    .social-icons a:hover {
        color: #000;
    }

.page-title-bar {
    text-align: center;
    padding: 1.5rem 0;
    background-color: #e9ecef;
    margin-bottom: 2rem;
}

    .page-title-bar h1 {
        font-size: 2.5rem;
        font-weight: 700;
        color: #343a40;
        margin-bottom: 0.5rem;
    }

.brand-filter-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

    .brand-filter-nav .btn {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
        border-radius: 0.25rem;
        text-transform: uppercase;
        font-weight: 500;
    }

    .brand-filter-nav .btn-outline-dark:hover,
    .brand-filter-nav .btn-outline-dark.active {
        background-color: #343a40;
        color: #fff;
    }

.card {
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    transition: box-shadow 0.2s ease-in-out;
    height: 100%;
}

    .card:hover {
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    }

.card-img-top-custom {
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
}

.card .category-tag {
    display: inline-block;
    background-color: #6c757d;
    color: #fff;
    padding: 0.2em 0.5em;
    font-size: 0.7em;
    font-weight: 700;
    border-radius: 0.25rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.card-title-custom {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-text-custom {
    font-size: 0.9rem;
    color: #495057;
    flex-grow: 1;
}

.article-meta-sm {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: auto;
}

.card-body {
    display: flex;
    flex-direction: column;
}

.card-footer {
    background-color: transparent;
    border-top: 1px solid #e9ecef;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.footer-custom {
    background-color: #343a40;
    color: #adb5bd;
    padding: 2rem 0;
    margin-top: 3rem;
}

    .footer-custom a {
        color: #ced4da;
    }

        .footer-custom a:hover {
            color: #fff;
        }

/* === XROLL Modal Styling === */
.modal.fade .modal-dialog {
    transform: translateY(30px);
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.modal.fade.show .modal-dialog {
    transform: translateY(0);
    opacity: 1;
}

.modal-content {
    border: none;
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.5s ease-in-out;
}

.modal-header {
    border-bottom: none;
}

.modal-title {
    font-weight: 700;
    color: #222;
}

.modal-body p {
    line-height: 1.6;
}

.btn-rounded {
    border-radius: 50px;
    transition: all 0.2s ease-in-out;
}

    .btn-rounded:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}
@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    10% {
        transform: scale(1.03);
    }

    20% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.05);
    }

    40% {
        transform: scale(1);
    }

    100% {
        transform: scale(1);
    }
}

.modal.show .modal-content.heartbeat {
    animation: heartbeat 1.2s ease-in-out;
    animation-iteration-count: 2;
}



/* 1. Icon Glow Effect */
.glow-icon {
    /* Base color is set by text-warning (yellow/orange) */
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.6), 0 0 20px rgba(255, 193, 7, 0.4);
    animation: pulseGlow 2s infinite alternate ease-in-out;
}





@keyframes pulseRing {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 193, 7, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}

/* Custom background color slightly darker than standard Bootstrap dark for the navbar */
.bg-dark-custom {
    background-color: #111118 !important; /* Slightly off-black */
}

/* Subtle hover effect for social icons in the navbar */
.hover-primary:hover {
    color: var(--bs-primary) !important;
}

/* Optional: Better look for the smallest footer text */
.xsmall {
    font-size: 0.75rem;
}

.modal-content.heartbeat {
    animation: heartbeat 2s ease-in-out;
}
.tracking-tight {
    letter-spacing: -0.5px;
}

.letter-spacing-1 {
    letter-spacing: 1px;
}

@keyframes glowPulse {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(255, 200, 0, 0.4));
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 0 20px rgba(255, 200, 0, 0.8));
        transform: scale(1.05);
    }
}

/* --- Pulse Button --- */
.pulse-button {
    transition: all 0.3s ease;
}

    .pulse-button:hover {
        background-color: #ffcc00;
        box-shadow: 0 0 25px rgba(255, 221, 0, 0.4);
        transform: translateY(-2px);
    }

    .pulse-button:active {
        transform: translateY(0);
        box-shadow: 0 0 10px rgba(255, 200, 0, 0.3);
    }

/* --- Subtle Hero Fade for polish --- */
section.py-5::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, #0b0c10);
    z-index: 1;
}


section.py-5 {
    position: relative;
    z-index: 0; /* so child fade stays contained */
}

/* --- Animated pulse for the Monitoring badge --- */
.badge.bg-primary {
    animation: pulseGlow 2.5s ease-in-out infinite;
    position: relative;
    display: inline-block;
    box-shadow: 0 0 6px rgba(0,123,255,0.4);
    transition: box-shadow 0.3s ease;
}

/*@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 6px rgba(0,123,255,0.5), 0 0 12px rgba(0,123,255,0.25);
    }

    50% {
        box-shadow: 0 0 14px rgba(0,123,255,0.8), 0 0 22px rgba(0,123,255,0.4);
    }
}*/