/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: white;
    padding: 8px;
    z-index: 10000;
    text-decoration: none;
}

.skip-link:focus {
    top: 6px;
}

/* Lazy loading */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Improved carousel */
.carousel-image {
    height: 75vh;
    object-fit: cover;
    width: 100%;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    border: 2px solid #fff;
    background: transparent;
}

.carousel-indicators button.active {
    background: #fff;
}

/* Scrolling announcements */
.scrolling-announcements {
    overflow: hidden;
    position: relative;
    height: 24px;
}

.scrolling-content {
    display: inline-block;
    white-space: nowrap;
    animation: scrollAnnouncements 30s linear infinite;
}

.announcement-item {
    display: inline-block;
    padding: 0 1rem;
}

@keyframes scrollAnnouncements {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .scrolling-content {
        animation: none;
        white-space: normal;
    }
    .scrolling-announcements {
        height: auto;
    }
    
    .gs_reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Responsive improvements */
@media (max-width: 768px) {
    .carousel-image {
        height: 50vh;
    }
    
    .carousel-caption {
        padding: 1rem !important;
    }
    
    .carousel-caption h3 {
        font-size: 1.2rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
    }
    
    .display-6 { font-size: 2rem; }
    .display-7 { font-size: 1.75rem; }
    .display-8 { font-size: 1.5rem; }
    .display-9 { font-size: 1.25rem; }
}

/* Print styles */
@media print {
    .navbar,
    .carousel,
    .btn,
    .owl-carousel {
        display: none !important;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* Focus styles for accessibility */
.btn:focus,
.nav-link:focus,
.dropdown-toggle:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .text-muted {
        color: #000 !important;
    }
    
    .bg-light {
        background-color: #fff !important;
    }
}