/* Complete responsive fixes for all content */

/* Force all content to be responsive */
* {
    box-sizing: border-box;
    max-width: 100%;
}

/* Improve universal responsiveness */
html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Force all images to be responsive */
img {
    max-width: 100%;
    height: auto !important;
    display: block;
}

/* Fix header on mobile */
.header {
    width: 100%;
    max-width: 100%;
    overflow: visible;
    flex-wrap: wrap;
}

.logo-area img {
    max-height: 50px;
    width: auto;
    margin: 0 auto;
}

/* Make all sections fluid */
.section, .page-section {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* Container for consistent centering */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* Responsive font sizes */
@media (max-width: 1200px) {
    .main-title {
        font-size: 2.2rem !important;
    }
}

@media (max-width: 992px) {
    .main-title {
        font-size: 1.8rem !important;
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 1.5rem !important;
    }
    h2 {
        font-size: 1.4rem !important;
    }
    h3 {
        font-size: 1.3rem !important;
    }
}

@media (max-width: 576px) {
    .main-title {
        font-size: 1.3rem !important;
    }
    h2 {
        font-size: 1.2rem !important;
    }
    h3 {
        font-size: 1.1rem !important;
    }
    p, li {
        font-size: 0.9rem !important;
    }
}

/* Better spacing */
.content-wrapper {
    gap: 20px;
}

@media (max-width: 768px) {
    .content-wrapper {
        gap: 15px;
    }
}

/* Fix image display across the site */
.world-map img, .image-content img, .attendee-images img {
    margin: 0 auto;
    max-width: 100%;
    height: auto !important;
}

/* Swiper slide improvements */
.swiper-slide {
    height: auto;
}

.swiper-slide img {
    max-width: 100%;
    object-fit: contain;
}

/* Fix background colors and borders */
.page-section {
    background-size: cover;
    background-position: center;
}

/* Fix navigation dropdown on all devices */
.nav-item.dropdown {
    position: relative;
}

.dropdown-content {
    width: 200px;
    max-width: 100%;
}

@media (max-width: 992px) {
    .dropdown-content {
        width: 100%;
    }
}

/* Fix schedule section */
.schedule-content {
    overflow-x: hidden;
    width: 100%;
}

.schedule-day {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

/* Fix pricing cards */
.pricing-cards, .virtual-pricing {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.pricing-card {
    width: calc(25% - 20px);
    max-width: 280px;
    min-width: 220px;
}

@media (max-width: 1200px) {
    .pricing-card {
        width: calc(33.333% - 20px);
    }
}

@media (max-width: 992px) {
    .pricing-card {
        width: calc(50% - 20px);
    }
}

@media (max-width: 576px) {
    .pricing-card {
        width: 100%;
        max-width: 280px;
    }
}

/* Fix banner content */
.banner-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Improve back to top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
}

/* Fix for too-wide containers */
.page-section > * {
    max-width: 100%;
}

/* Additional responsive fixes */
@media (max-width: 480px) {
    /* Ensure all buttons are large enough for touch */
    button, .btn, a[class*="btn"], .register-btn, .download-btn, .contact-btn {
        min-height: 44px;
        padding: 10px 15px !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Improve text readability */
    .text-content {
        line-height: 1.5 !important;
    }
    
    /* Prevent overflow on mobile */
    table, pre, code {
        max-width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    /* Better schedule display */
    .schedule-item {
        margin-bottom: 15px;
        padding-bottom: 15px;
        border-bottom: 1px solid #eee;
    }
}

/* Ensure images in text content have proper spacing */
.text-content img {
    margin: 15px auto;
}

/* Fix form elements if any */
input, textarea, select, button {
    max-width: 100%;
}

/* Make overflow visible for dropdown menus */
.nav-item.dropdown {
    overflow: visible !important;
}

/* Ensure all text is readable */
p, li, a, span, div {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Fix for mobile devices in landscape */
@media (max-height: 500px) and (orientation: landscape) {
    .banner {
        padding: 30px 15px !important;
    }
    
    .countdown {
        margin-top: 15px !important;
    }
    
    .countdown-item {
        min-width: 70px !important;
        padding: 5px !important;
    }
    
    .section {
        padding: 20px 15px !important;
    }
}

/* Additional improvements for section spacing */
section {
    margin-bottom: 20px;
}

/* Fix for elements with overflow */
.swiper-container, .schedule-content, .pricing-cards, .special-discount {
    max-width: 100%;
    overflow-x: hidden;
}

/* Ensure all interactive elements are accessible */
a, button, input, select, textarea, [role="button"] {
    min-height: 44px;
} 

.page-section:nth-child(odd) {
    background-color: #f8f9fa; /* Light gray */
}

.page-section:nth-child(even) {
    background-color: #ffffff; /* White */
}

.section-heading {
    color: #2c3e50; /* Dark corporate blue */
}

.page-section {
    padding: 60px 0;
    transition: background-color 0.3s ease;
}

.page-section:hover {
    background-color: #f1f3f5; /* Slightly darker on hover */
}