/* Global Styles */
:root {
    --primary-color: #1a1a2e;
    --secondary-color: #e94560;
    --accent-color: #16c784;
    --text-dark: #333;
    --text-light: #666;
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Top Header Styles */
.top-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2a2a4e 100%);
    color: #fff;
    border-bottom: 3px solid var(--secondary-color);
}

.top-header small {
    font-size: 12px;
    font-weight: 500;
}

.top-header a {
    color: var(--accent-color);
    margin: 0 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.top-header a:hover {
    color: var(--secondary-color);
    transform: scale(1.2);
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, var(--primary-color) 0%, #2a2a4e 100%) !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 22px;
    color: #fff !important;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: var(--secondary-color) !important;
}

.nav-link {
    color: #fff !important;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color) !important;
}

.dropdown-menu {
    background: var(--primary-color);
    border: 1px solid var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.dropdown-item {
    color: #fff;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: var(--secondary-color);
    color: #fff;
    transform: translateX(5px);
}

/* Hero Carousel */
#heroCarousel {
    max-height: 600px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

#heroCarousel .carousel-item {
    height: 600px;
    overflow: hidden;
}

#heroCarousel .carousel-item img {
    object-fit: cover;
    height: 100%;
}

#heroCarousel .carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: var(--border-radius);
}

#heroCarousel .carousel-caption h5 {
    font-size: 32px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

#heroCarousel .carousel-caption p {
    font-size: 16px;
    color: #fff;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(233, 69, 96, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(233, 69, 96, 0.6);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-in-out;
}

.animate-slide-left {
    animation: slideInLeft 0.8s ease-in-out;
}

.animate-slide-right {
    animation: slideInRight 0.8s ease-in-out;
}

.animate-slide-up {
    animation: slideInUp 0.6s ease-in-out;
}

/* Section Titles */
.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 20px;
    animation: slideInUp 0.8s ease-in-out;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 2px;
}

/* News Cards */
.news-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    animation: slideInUp 0.6s ease-in-out;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(233, 69, 96, 0.2);
}

.news-card img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: all 0.4s ease;
}

.news-card:hover img {
    transform: scale(1.05);
    filter: brightness(0.9);
}

.news-card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-card-category {
    display: inline-block;
    background: var(--secondary-color);
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
    width: fit-content;
}

.news-card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.4;
    flex-grow: 1;
    transition: color 0.3s ease;
}

.news-card:hover .news-card-title {
    color: var(--secondary-color);
}

.news-card-caption {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.7;
    min-height: auto;
}

.news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: var(--text-light);
}

.read-more-btn {
    background: linear-gradient(135deg, var(--secondary-color), #ff6b7f);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 12px;
}

.read-more-btn:hover {
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.4);
}

/* News Grid Section */
.news-grid {
    position: relative;
}

.news-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.02), rgba(233, 69, 96, 0.02));
    pointer-events: none;
}

/* Featured News */
#featured-news {
    position: relative;
    z-index: 1;
}

#featured-news .news-card {
    animation: slideInUp 0.6s ease-in-out;
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2a2a4e 100%);
    border-top: 3px solid var(--secondary-color);
    animation: slideInUp 0.8s ease-in-out;
}

footer h6 {
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-link {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    margin-bottom: 8px;
}

.footer-link:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

footer p {
    font-size: 14px;
    color: #aaa;
}

/* Page Transitions */
@keyframes pageEnter {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

main {
    animation: pageEnter 0.5s ease-in-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 24px;
    }

    #heroCarousel .carousel-item {
        height: 300px;
    }

    #heroCarousel .carousel-caption h5 {
        font-size: 20px;
    }

    .news-card img {
        height: 200px;
    }

    .top-header .col-md-4 {
        text-align: center !important;
    }

    .top-header .col-md-4:last-child {
        text-align: center !important;
    }
}

/* Loading Animation */
.spinner {
    border: 4px solid rgba(233, 69, 96, 0.3);
    border-top: 4px solid var(--secondary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hover Effects */
.card-hover {
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), #ff6b7f);
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--accent-color), #10a860);
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 199, 132, 0.4);
}

/* Badge */
.badge {
    animation: pulse 2s infinite;
}

/* Scroll Animation */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-animate.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}
