/* Landing Page Improvements - Prevent Image Overlapping and Enhance Visual Appeal */

/* Alert Section Improvements */
.countdown-message {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
}

.countdown-message .btn-close {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23856404'%3e%3cpath d='m.293.293.707.707L8 7.293 15.293 1l.707.707L8.707 8.707l7.293 7.293-.707.707L8 9.414l-7.293 7.293-.707-.707L7.293 8 .293 1.707z'/%3e%3c/svg%3e");
    transition: opacity 0.2s ease;
}

.countdown-message .btn-close:hover {
    opacity: 1 !important;
    transform: translateY(-50%) scale(1.1);
}

.countdown-message.alert-dismissible {
    padding-right: 50px;
}

/* Hero Section Improvements */
.hero-badge {
    display: inline-block;
    background: rgba(0, 17, 50, 0.9); /* Dark blue background with high opacity for better contrast */
    padding: 10px 24px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2); /* Subtle white border for definition */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
}

.hero-badge .badge-text {
    color: #ffffff;
    font-weight: 700; /* Increased font weight for better visibility */
    font-size: 15px; /* Slightly larger font size */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); /* Text shadow for better readability */
    letter-spacing: 0.5px; /* Better letter spacing for readability */
}

/* Hero badge hover effect for better interactivity */
.hero-badge:hover {
    background: rgba(0, 17, 50, 1); /* Fully opaque on hover */
    transform: translateY(-2px); /* Slight lift effect */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); /* Enhanced shadow on hover */
    transition: all 0.3s ease; /* Smooth transition */
}

.hero-badge {
    transition: all 0.3s ease; /* Ensure smooth transitions */
}

.hero-stats .stat-item {
    padding: 20px 15px;
    background: rgba(0, 17, 50, 0.8); /* Improved background for better contrast */
    border-radius: 12px;
    backdrop-filter: blur(10px);
    margin: 0 5px;
    border: 1px solid rgba(255, 255, 255, 0.2); /* Subtle border for definition */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Shadow for depth */
    transition: all 0.3s ease; /* Smooth transitions */
}

.hero-stats .stat-item:hover {
    background: rgba(0, 17, 50, 0.95); /* Darker on hover */
    transform: translateY(-3px); /* Lift effect */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); /* Enhanced shadow */
}

.hero-stats .stat-number {
    color: #ffffff;
    font-size: 26px; /* Slightly larger */
    font-weight: 800; /* Bolder font weight */
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); /* Text shadow for readability */
}

.hero-stats .stat-label {
    color: #ffffff;
    font-size: 13px; /* Slightly larger */
    margin: 0;
    font-weight: 600; /* Increased font weight */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); /* Text shadow for readability */
    letter-spacing: 0.3px; /* Better letter spacing */
}

/* Sponsors Section */
.sponsors-section {
    background: #f8f9fa;
    padding: 40px 0 !important; /* Reduced padding since we removed the header */
}

.sponsor-logo-wrapper {
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsor-logo-wrapper:hover {
    transform: translateY(-5px);
}

.sponsor-logo {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

.sponsor-placeholder .placeholder-content {
    padding: 40px 20px;
    background: #fff;
    border-radius: 10px;
    border: 2px dashed #ddd;
}

/* About Section Improvements */
.about-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.about-image-wrapper img {
    transition: transform 0.3s ease;
}

.about-image-wrapper:hover img {
    transform: scale(1.05);
}

.about-badge {
    bottom: 20px;
    right: 20px;
    background: linear-gradient(45deg, #007bff, #0056b3);
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    font-size: 12px;
    font-weight: 600;
}

.highlight-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 5px;
}

.highlight-number {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
}

.highlight-text {
    font-size: 12px;
    color: #6c757d;
    margin: 0;
}

/* Feature Section Improvements */
.feature-style2 {
    padding: 30px 20px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.feature-style2:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #007bff, #0056b3);
    border-radius: 50%;
}

.feature-icon img {
    max-width: 40px;
    max-height: 40px;
    filter: brightness(0) invert(1);
}

/* Events Section Improvements */
.event-style2 {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.event-style2:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.event-img {
    height: 250px;
    overflow: hidden;
}

.event-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-style2:hover .event-img img {
    transform: scale(1.1);
}

.event-date {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(45deg, #007bff, #0056b3); /* Gradient background for better visual appeal */
    color: white;
    padding: 12px 18px;
    border-radius: 12px;
    text-align: center;
    font-weight: 700; /* Increased font weight */
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3); /* Blue shadow for depth */
    transition: all 0.3s ease; /* Smooth transitions */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* Text shadow for better readability */
}

.event-date:hover {
    transform: translateY(-2px); /* Lift effect on hover */
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4); /* Enhanced shadow on hover */
}

/* Video Section Improvements */
.video-features .feature-item {
    padding: 10px 0;
    border-left: 3px solid rgba(255,255,255,0.3);
    padding-left: 15px;
    margin-left: 10px;
}

/* Gallery Improvements */
.gallery-item-wrapper {
    height: 100%;
}

.gallery-style1 {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.gallery-style1:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.gallery-image-container {
    height: 250px;
    position: relative;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,123,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-style1:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 24px;
}

.gallery-placeholder,
.blog-placeholder {
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 2px dashed #ddd;
}

/* Blog Section Improvements */
.placeholder-features .feature-item {
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    margin: 10px 0;
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .hero-badge {
        padding: 8px 20px; /* Slightly smaller padding on mobile */
    }

    .hero-badge .badge-text {
        font-size: 14px; /* Slightly smaller font on mobile */
    }

    .hero-stats .stat-item {
        margin: 5px 0;
        padding: 15px 10px; /* Adjusted padding for mobile */
    }

    .hero-stats .stat-number {
        font-size: 22px; /* Slightly smaller on mobile */
    }

    .hero-stats .stat-label {
        font-size: 12px; /* Slightly smaller on mobile */
    }

    .feature-style2 {
        margin-bottom: 20px;
    }

    .event-img {
        height: 200px;
    }

    .event-date {
        padding: 10px 15px; /* Slightly smaller padding on mobile */
        font-size: 14px; /* Smaller font on mobile */
    }

    .gallery-image-container {
        height: 200px;
    }

    .sponsor-logo-wrapper {
        height: 100px;
    }
}

/* Ensure no image overlapping */
.img-fluid {
    max-width: 100%;
    height: auto;
}

.position-relative {
    position: relative;
}

.overflow-hidden {
    overflow: hidden;
}

/* Contact Form and Counter Section Overlap Fix */
.video-contact-section {
    position: relative;
    z-index: 3;
    margin-bottom: 80px !important;
}

.video-wrap2 {
    margin-bottom: 0 !important;
    position: relative;
    z-index: 2;
    padding-bottom: 120px !important;
}

.form-style1 {
    margin-bottom: 40px !important;
    position: relative;
    z-index: 4;
    box-shadow: 0px 8px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Counter section spacing fix */
.counter-section {
    margin-top: 80px !important;
    position: relative;
    z-index: 1;
}

.counter-wrap2 {
    margin-top: 0 !important;
    position: relative;
    z-index: 1;
}

/* Ensure proper spacing between sections */
section + div.position-relative {
    margin-top: 80px;
}

/* Additional spacing for better layout */
.mb-4 {
    margin-bottom: 1.5rem !important;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.g-4 > * {
    padding: 0.75rem;
}

/* Responsive fixes for contact form overlap */
@media (max-width: 991px) {
    .video-contact-section {
        margin-bottom: 60px !important;
    }

    .video-wrap2 {
        padding-bottom: 80px !important;
    }

    .counter-section {
        margin-top: 60px !important;
        padding-top: 60px !important;
    }

    .form-style1 {
        margin-bottom: 30px !important;
    }
}

@media (max-width: 767px) {
    .video-contact-section {
        margin-bottom: 40px !important;
    }

    .video-wrap2 {
        padding-bottom: 60px !important;
    }

    .counter-section {
        margin-top: 40px !important;
        padding-top: 40px !important;
    }

    .form-style1 {
        margin-bottom: 20px !important;
    }
}
