/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Banner Slider Styles */
.banner-container {
    position: relative;
    width: 95%;
    height: 300px;
    overflow: hidden;
    margin: 0 auto 0px auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-radius: 15px;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    pointer-events: none;
}

.banner-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.banner-slide:not(.active) {
    pointer-events: none;
}

.banner-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    display: block;
    pointer-events: auto;
    z-index: 5;
    background: transparent;
}

.banner-slide:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.banner-slide:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* Banner Click Overlay */
.banner-click-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.banner-slide:hover .banner-click-overlay {
    opacity: 1;
}

.click-indicator {
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

/* No banners fallback */
.no-banners {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
}

/* Banner Overlay */
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 40px 60px;
}

.banner-content {
    max-width: 600px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: slideInLeft 0.8s ease-out;
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.banner-content h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.banner-content p {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 400;
    line-height: 1.4;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.banner-cta {
    margin-top: 2rem;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.cta-button {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.cta-button:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Navigation Arrows */
.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
    color: #333;
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
}

.banner-container:hover .banner-nav {
    opacity: 1;
    visibility: visible;
}

.banner-nav:hover {
    background: rgba(255,255,255,1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.banner-nav.prev {
    left: 30px;
}

.banner-nav.next {
    right: 30px;
}

/* Controls (Play/Pause and Dots) */
.banner-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(0,0,0,0.3);
    padding: 0px 10px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    z-index: 20;
}

.control-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: rgba(255,255,255,0.2);
}

.play-pause .pause-icon {
    display: none;
}

.play-pause.playing .play-icon {
    display: none;
}

.play-pause.playing .pause-icon {
    display: block;
}

.banner-dots {
    display: flex;
    gap: 12px;
    align-items: center;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background: white;
    transform: scale(1.3);
}

/* Content Sections */
.content-sections {
    padding: 60px 0;
}

.sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.content-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.content-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.content-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.content-card p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.card-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.card-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-card {
    animation: fadeIn 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .banner-container {
        height: 300px;
    }
    
    .banner-overlay {
        padding: 20px 30px;
        justify-content: center;
        text-align: center;
    }
    
    .banner-content {
        max-width: 100%;
    }
    
    .banner-content h2 {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }
    
    .banner-content p {
        font-size: clamp(0.9rem, 3vw, 1.2rem);
    }
    
    .banner-nav {
        width: 50px;
        height: 50px;
    }
    
    .banner-nav.prev {
        left: 15px;
    }
    
    .banner-nav.next {
        right: 15px;
    }
    
    .banner-controls {
        bottom: 20px;
           padding: 0px 10px;
    }
    
    .sections-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .content-card {
        padding: 30px 25px;
    }
}

@media (max-width: 480px) {
    .banner-container {
        height: 40vh;
        min-height: 250px;
    }
    
    .banner-overlay {
        padding: 0px 10px;
    }
    
    .banner-content h2 {
        margin-bottom: 0.5rem;
    }
    
    .banner-content p {
        margin-bottom: 1rem;
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .banner-nav {
        width: 40px;
        height: 40px;
    }
    
    .banner-controls {
           padding: 0px 10px;
        gap: 0px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .banner-slide {
        background-size: cover;
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .banner-slide,
    .banner-nav,
    .content-card,
    .cta-button,
    .card-button {
        transition: none;
    }
    
    .banner-content {
        animation: none;
    }
}

/* Focus styles for accessibility */
.banner-nav:focus,
.control-btn:focus,
.dot:focus,
.card-button:focus,
.cta-button:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}