/* Events Page Specific Styles */

/* Hero Section */
.events-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 40vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 80vh;
}

/* Advanced Hero Effects */
.events-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
    animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.3) 100%);
    }
    50% {
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 123, 255, 0.3) 50%, rgba(0, 0, 0, 0.4) 100%);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 123, 255, 0.1) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 2;
    animation: overlayPulse 6s ease-in-out infinite;
}

@keyframes overlayPulse {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

/* Floating Particles Effect */
.events-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    z-index: 1;
    animation: particleFloat 20s linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
    }
}

.hero-content {
    position: relative;
    z-index: 3;
    animation: fadeInUp 1s ease-out;
    text-align: center;
}

.hero-title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(45deg, #ffffff, #f0f8ff, #ffffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShimmer 3s ease-in-out infinite;
    position: relative;
}

.hero-title::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, rgba(0, 123, 255, 0.1), rgba(255, 255, 255, 0.1), rgba(0, 123, 255, 0.1));
    border-radius: 20px;
    z-index: -1;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes textShimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

.hero-subtitle {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

.hero-buttons {
    margin-top: 2rem;
}

.hero-buttons .btn {
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #007bff, #0056b3, #007bff);
    background-size: 200% 200%;
    border: none;
    animation: buttonGradient 4s ease-in-out infinite;
}

.hero-buttons .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.hero-buttons .btn:hover::before {
    left: 100%;
}

.hero-buttons .btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
    animation: buttonPulse 0.6s ease-in-out;
}

@keyframes buttonGradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes buttonPulse {
    0% {
        transform: translateY(-2px) scale(1.05);
    }
    50% {
        transform: translateY(-2px) scale(1.1);
    }
    100% {
        transform: translateY(-2px) scale(1.05);
    }
}

/* Page Background Animation */
body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%);
    background-size: 400% 400%;
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Enhanced Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-indicator:hover {
    transform: translateX(-50%) scale(1.2);
    filter: brightness(1.5);
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid white;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    opacity: 0.8;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* LinkedIn Badge */
.linkedin-badge {
    margin-top: 1.5rem;
}

.linkedin-follow-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 30px;
    background: linear-gradient(135deg, #0077B5 0%, #005885 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 119, 181, 0.3);
}

.linkedin-follow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 119, 181, 0.4);
    color: white;
}

/* Section Titles with Advanced Effects */
/* Scope to main content only, not footer */
#latest-news .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    animation: titleFloat 6s ease-in-out infinite;
}

#latest-news .section-title::before,
#upcoming-events .section-title::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, rgba(0, 123, 255, 0.1), rgba(255, 255, 255, 0.1), rgba(0, 123, 255, 0.1));
    border-radius: 15px;
    z-index: -1;
    animation: titleGlow 4s ease-in-out infinite;
}

@keyframes titleFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes titleGlow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.02);
    }
}

#latest-news .section-title::after,
#upcoming-events .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 2px;
}

/* Ensure footer section titles keep their original styling from styles.css */
.footer-modern .section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    text-align: left;
    animation: none;
}

.footer-modern .section-title::before {
    display: none;
}

.footer-modern .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #00d4ff 0%, var(--primary-color) 100%);
    border-radius: 1px;
    transform: none;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* News Cards with Advanced Effects */
.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.news-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 15px;
}

.news-card:hover {
    transform: translateY(-5px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0, 123, 255, 0.2);
}

.news-card:hover::after {
    opacity: 1;
}

.news-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 123, 255, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    min-width: 60px;
}

.news-date .day {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
}

.news-date .month {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 1;
}

.news-content {
    padding: 25px;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
}

.news-excerpt {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #0056b3;
    transform: translateX(5px);
}

.read-more .iconify {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover .iconify {
    transform: translateX(3px);
}

/* Event Cards with Advanced Effects */
.event-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
    perspective: 1000px;
    position: relative;
}

.event-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 15px;
}

.event-card:hover {
    transform: translateY(-5px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0, 123, 255, 0.2);
}

.event-card:hover::after {
    opacity: 1;
}

.event-image {
    height: 200px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-date {
    color: #007bff;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.event-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.3;
}

.event-location {
    color: #6c757d;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.event-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.event-content .btn {
    align-self: flex-start;
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.event-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* Newsletter Section */
#newsletter {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

#newsletter .border {
    border: none !important;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

#newsletter h2 {
    color: #2c3e50;
    font-weight: 700;
}

#newsletter .form-control {
    border-radius: 25px;
    border: 2px solid #e9ecef;
    padding: 15px 20px;
    transition: all 0.3s ease;
}

#newsletter .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

#newsletter .btn {
    border-radius: 25px;
    padding: 15px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#newsletter .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .news-card,
    .event-card {
        margin-bottom: 30px;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 15px;
    }
    
    .hero-buttons .btn:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .news-content,
    .event-content {
        padding: 20px;
    }
    
    .news-title,
    .event-title {
        font-size: 1.2rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Animation for Cards */
.news-card,
.event-card {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger Animation for Multiple Cards */
.news-card:nth-child(1) { animation-delay: 0.1s; }
.news-card:nth-child(2) { animation-delay: 0.2s; }
.news-card:nth-child(3) { animation-delay: 0.3s; }

.event-card:nth-child(1) { animation-delay: 0.1s; }
.event-card:nth-child(2) { animation-delay: 0.2s; }

/* Hover Effects Enhancement */
.news-card::before,
.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 15px;
}

.news-card:hover::before,
.event-card:hover::before {
    opacity: 1;
}

/* Accessibility Improvements */
.news-card:focus-within,
.event-card:focus-within {
    outline: 3px solid #007bff;
    outline-offset: 2px;
}

.read-more:focus,
.event-content .btn:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print Styles */
@media print {
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .news-card,
    .event-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .scroll-indicator,
    .hero-buttons {
        display: none;
    }
}

/* ===== PROFESSIONAL NEWS DESIGN ===== */

/* News Section Container */
#latest-news {
    background: 
        linear-gradient(180deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%),
        radial-gradient(circle at 20% 30%, rgba(0, 123, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 212, 255, 0.03) 0%, transparent 50%);
    position: relative;
}

#latest-news::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 123, 255, 0.2) 50%, 
        transparent 100%);
}

#latest-news::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(0, 123, 255, 0.015) 50px, rgba(0, 123, 255, 0.015) 51px),
        repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(0, 123, 255, 0.015) 50px, rgba(0, 123, 255, 0.015) 51px);
    pointer-events: none;
}

#latest-news .container {
    position: relative;
    z-index: 1;
}

/* Featured News Card */
.featured-news-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 123, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.featured-news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff 0%, #00d4ff 50%, #007bff 100%);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
    z-index: 1;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.featured-news-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 
        0 30px 80px rgba(0, 123, 255, 0.3),
        0 0 0 1px rgba(0, 123, 255, 0.2),
        0 0 40px rgba(0, 123, 255, 0.1);
}

.featured-news-gallery {
    height: 100%;
    min-height: 500px;
    background: #000;
}

.featured-news-gallery .carousel {
    height: 100%;
}

.featured-news-gallery .carousel-inner,
.featured-news-gallery .carousel-item {
    height: 100%;
}

.featured-news-gallery .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #000;
}

/* Featured Carousel Controls */
.featured-news-gallery .carousel-control-prev,
.featured-news-gallery .carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.featured-news-gallery .carousel-control-prev:hover,
.featured-news-gallery .carousel-control-next:hover {
    background: rgba(0, 123, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.8);
}

.featured-news-gallery .carousel-control-prev {
    left: 20px;
}

.featured-news-gallery .carousel-control-next {
    right: 20px;
}

.featured-news-gallery .carousel-control-prev-icon,
.featured-news-gallery .carousel-control-next-icon {
    width: 30px;
    height: 30px;
}

/* Featured Carousel Indicators */
.featured-news-gallery .carousel-indicators {
    bottom: 20px;
    margin-bottom: 0;
}

.featured-news-gallery .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.featured-news-gallery .carousel-indicators .active {
    background-color: #007bff;
    border-color: #007bff;
}

.featured-news-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
}

.featured-news-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, #007bff 0%, #00d4ff 100%);
}

.news-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.news-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.news-badge:hover::before {
    left: 100%;
}

.news-badge.featured {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.news-badge.installation {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.news-badge.partnership {
    background: linear-gradient(135deg, #2196F3 0%, #0D47A1 100%);
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.news-badge.event {
    background: linear-gradient(135deg, #9C27B0 0%, #6A1B9A 100%);
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.news-date-large {
    color: #007bff;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.featured-news-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    background: linear-gradient(135deg, #1a1a2e 0%, #2c3e50 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.featured-news-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #007bff 0%, #00d4ff 100%);
    border-radius: 2px;
}

.featured-news-excerpt {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #4a5568;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.featured-news-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    color: #6c757d;
    font-size: 0.95rem;
}

/* Enhanced News Cards */
.news-card-enhanced {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 10px 35px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(0, 123, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.news-card-enhanced::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 123, 255, 0.5) 50%, 
        transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.news-card-enhanced:hover::after {
    opacity: 1;
}

.news-card-enhanced:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 
        0 20px 50px rgba(0, 123, 255, 0.25),
        0 0 0 1px rgba(0, 123, 255, 0.15),
        0 0 30px rgba(0, 123, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.news-gallery-small {
    position: relative;
    height: 350px;
    overflow: hidden;
    background: #f8f9fa;
}

.news-gallery-small .carousel {
    height: 100%;
}

.news-gallery-small .carousel-inner,
.news-gallery-small .carousel-item {
    height: 100%;
}

.news-gallery-small .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s ease;
    background: #fff;
}

.news-card-enhanced:hover .news-gallery-small .carousel-item img {
    transform: scale(1.02);
}

.news-gallery-small .news-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 3;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Enhanced Carousel Controls */
.news-gallery-small .carousel-control-prev,
.news-gallery-small .carousel-control-next {
    width: 45px;
    height: 45px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    opacity: 1;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.news-gallery-small .carousel-control-prev:hover,
.news-gallery-small .carousel-control-next:hover {
    background: rgba(0, 123, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.news-gallery-small .carousel-control-prev {
    left: 10px;
}

.news-gallery-small .carousel-control-next {
    right: 10px;
}

.news-gallery-small .carousel-control-prev-icon,
.news-gallery-small .carousel-control-next-icon {
    width: 25px;
    height: 25px;
}

/* Carousel Indicators for Small Gallery */
.news-gallery-small .carousel-indicators {
    bottom: 15px;
    margin-bottom: 0;
}

.news-gallery-small .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 4px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.news-gallery-small .carousel-indicators .active {
    background-color: #007bff;
    border-color: #007bff;
}

.news-image-single {
    position: relative;
    height: 350px;
    overflow: hidden;
    background: #f8f9fa;
}

.news-image-single img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s ease;
    background: #fff;
}

.news-card-enhanced:hover .news-image-single img {
    transform: scale(1.02);
}

.news-image-single .news-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.news-content-enhanced {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
}

.news-content-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 2rem;
    right: 2rem;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 123, 255, 0.2) 50%, 
        transparent 100%);
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.news-date-small {
    color: #007bff;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 4px 12px;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(0, 123, 255, 0.2);
}

.news-location {
    color: #6c757d;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    font-weight: 600;
    padding: 4px 12px;
    background: rgba(108, 117, 125, 0.08);
    border-radius: 15px;
}

.news-title-enhanced {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 1rem;
    line-height: 1.3;
    background: linear-gradient(135deg, #1a1a2e 0%, #2c3e50 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.news-card-enhanced:hover .news-title-enhanced {
    transform: translateX(5px);
}

.news-excerpt-enhanced {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 1.5rem;
    flex: 1;
    font-weight: 400;
}

.read-more-enhanced {
    color: #007bff;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border-radius: 25px;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
    border: 2px solid rgba(0, 123, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.read-more-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.2) 0%, rgba(0, 212, 255, 0.2) 100%);
    transition: left 0.4s ease;
}

.read-more-enhanced:hover::before {
    left: 0;
}

.read-more-enhanced:hover {
    color: #0056b3;
    transform: translateX(5px);
    border-color: rgba(0, 123, 255, 0.4);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}

.read-more-enhanced .iconify {
    position: relative;
    z-index: 1;
}

.read-more-enhanced span {
    position: relative;
    z-index: 1;
}

/* LinkedIn Button */
.btn-linkedin {
    background: linear-gradient(135deg, #0077B5 0%, #005885 100%);
    border: none;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.4s ease;
    box-shadow: 
        0 8px 25px rgba(0, 119, 181, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-linkedin::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.btn-linkedin:hover::before {
    left: 100%;
}

.btn-linkedin:hover {
    background: linear-gradient(135deg, #005885 0%, #004060 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 35px rgba(0, 119, 181, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-linkedin .iconify {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Responsive Design for New Layout */
@media (max-width: 991px) {
    .featured-news-gallery {
        min-height: 450px;
    }
    
    .featured-news-content {
        padding: 2rem;
    }
    
    .featured-news-title {
        font-size: 1.75rem;
    }
    
    .featured-news-excerpt {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .featured-news-gallery {
        min-height: 350px;
    }
    
    .featured-news-content {
        padding: 1.5rem;
    }
    
    .featured-news-title {
        font-size: 1.5rem;
    }
    
    .featured-news-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .news-gallery-small,
    .news-image-single {
        height: 300px;
    }
    
    .news-content-enhanced {
        padding: 1.5rem;
    }
    
    .news-title-enhanced {
        font-size: 1.25rem;
    }
    
    /* Smaller carousel controls on mobile */
    .news-gallery-small .carousel-control-prev,
    .news-gallery-small .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .news-gallery-small .carousel-control-prev-icon,
    .news-gallery-small .carousel-control-next-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 576px) {
    .featured-news-gallery {
        min-height: 280px;
    }
    
    .featured-news-content {
        padding: 1.25rem;
    }
    
    .featured-news-title {
        font-size: 1.35rem;
    }
    
    .news-gallery-small,
    .news-image-single {
        height: 250px;
    }
    
    /* Even smaller controls for very small screens */
    .featured-news-gallery .carousel-control-prev,
    .featured-news-gallery .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .featured-news-gallery .carousel-control-prev-icon,
    .featured-news-gallery .carousel-control-next-icon {
        width: 24px;
        height: 24px;
    }
}

/* Animation for Enhanced Cards */
.news-card-enhanced {
    animation: fadeInUp 0.8s ease-out backwards;
}

.news-card-enhanced:nth-child(1) { animation-delay: 0.1s; }
.news-card-enhanced:nth-child(2) { animation-delay: 0.2s; }
.news-card-enhanced:nth-child(3) { animation-delay: 0.3s; }
.news-card-enhanced:nth-child(4) { animation-delay: 0.4s; }
.news-card-enhanced:nth-child(5) { animation-delay: 0.5s; }
.news-card-enhanced:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Featured Card Animation */
.featured-news-card {
    animation: featuredFadeIn 1s ease-out backwards;
    animation-delay: 0.2s;
}

@keyframes featuredFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Grid Gap Enhancement */
.row.g-4 {
    row-gap: 2rem !important;
}

/* Card Interaction Enhancement */
.news-card-enhanced:hover .news-gallery-small img {
    filter: brightness(1.05) contrast(1.05);
}

.featured-news-card:hover .featured-news-gallery img {
    filter: brightness(1.05) contrast(1.05);
}
