
body {
    font-family: 'Inter', sans-serif;
    background-color: #1a1a2e; 
    color: #e0e0e0; 
    line-height: 1.6;
    margin: 0;
    padding-top: 56px; 
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    
    padding-bottom: 100px; 
}


.bg-dark-custom {
    background-color: #16213e !important; 
}

.bg-dark-card {
    background-color: #0f3460;
}

.text-primary {
    color: #e94560 !important; 
}

.btn-primary {
    background-color: #e94560;
    border-color: #e94560;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #f75d74;
    border-color: #f75d74;
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: #e94560;
    border-color: #e94560;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: #e94560;
    color: #ffffff;
}

.text-light-gray {
    color: #c0c0c0; 
}


.navbar-brand .fa-newspaper {
    font-size: 1.8rem;
}

.navbar-brand .animate-icon {
    animation: bounceIn 1s ease-out;
}

.navbar-brand .animate-text {
    animation: fadeInRight 1s ease-out;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease, transform 0.2s ease;
}

.nav-link:hover {
    color: #e94560 !important;
    transform: translateY(-2px);
}

.nav-link.active {
    color: #e94560 !important;
    border-bottom: 2px solid #e94560;
}

.dropdown-menu-dark {
    background-color: #16213e;
    border: none;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.dropdown-item {
    color: #e0e0e0;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-item:hover {
    background-color: #0f3460;
    color: #e94560;
}

.search-input {
    background-color: #0f3460;
    border: 1px solid #e94560;
    color: #e0e0e0;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: #a0a0a0;
}

.search-input:focus {
    background-color: #16213e;
    border-color: #f75d74;
    box-shadow: 0 0 0 0.25rem rgba(233, 69, 96, 0.25);
    color: #ffffff;
}


main {
    flex: 1; 
}


.card {
    border-radius: 1rem;
    overflow: hidden; 
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.news-card-img {
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.card-text {
    font-size: 0.95rem;
    flex-grow: 1; 
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 0.5rem;
}


.footer {
    background-color: #16213e !important;
    border-top: 1px solid #0f3460;
    
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1030; 
}

.social-icons a {
    font-size: 1.2rem;
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-icons a:hover {
    color: #e94560;
    transform: translateY(-2px);
}




@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}


@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}


@keyframes bounceIn {
    0% { transform: scale(0.1); opacity: 0; }
    60% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); }
}


@keyframes cardPop {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-card-pop {
    animation: cardPop 0.6s ease-out forwards;
    opacity: 0; 
}


.row.g-4 .col:nth-child(1) .animate-card-pop { animation-delay: 0.1s; }
.row.g-4 .col:nth-child(2) .animate-card-pop { animation-delay: 0.2s; }
.row.g-4 .col:nth-child(3) .animate-card-pop { animation-delay: 0.3s; }
.row.g-4 .col:nth-child(4) .animate-card-pop { animation-delay: 0.4s; }
.row.g-4 .col:nth-child(5) .animate-card-pop { animation-delay: 0.5s; }
.row.g-4 .col:nth-child(6) .animate-card-pop { animation-delay: 0.6s; }




.animate-button:hover, .animate-button-small:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.4);
}


.animate-input:focus {
    transform: scale(1.02);
    box-shadow: 0 0 0 0.2rem rgba(233, 69, 96, 0.25);
}

.animate-dropdown {
    animation: fadeIn 0.3s ease-out;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #16213e;
        border-top: 1px solid #0f3460;
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: 0.5rem;
    }
    .navbar-nav .nav-item {
        margin-bottom: 0.5rem;
    }
    .navbar-nav .nav-item:last-child {
        margin-bottom: 0;
    }
    .search-input {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    .d-flex.ms-lg-3 {
        flex-direction: column;
        align-items: stretch;
    }
    .d-flex.ms-lg-3 .btn {
        width: 100%;
    }
}
