/* ========================================
   CLEAN PLAY/PAUSE BUTTON - DESKTOP FIRST
   ======================================== */

/* Remove ALL duplicate styles and keep only this simple version */
.stqc-play-pause {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    color: #1B4332;
    border: 2px solid rgba(255, 255, 255, 0.8);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 1;
    visibility: visible;
}

.stqc-play-pause:hover,
.stqc-play-pause:focus {
    background: #1B4332;
    color: white;
    border-color: #1B4332;
    outline: none;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(27, 67, 50, 0.3);
}

.stqc-play-pause:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

/* Simple icons */
.stqc-pause-icon,
.stqc-play-icon {
    font-size: 18px;
    line-height: 1;
    display: block;
}

/* Mobile - Simple auto-hide */
@media (max-width: 768px) {
    .stqc-play-pause {
        width: 45px;
        height: 45px;
        font-size: 16px;
        bottom: 15px;
        right: 15px;
        opacity: 0; /* Auto-hide on mobile */
    }
    
    .stqc-slider:hover .stqc-play-pause,
    .stqc-slider:active .stqc-play-pause {
        opacity: 1; /* Show on touch */
    }
}

@media (max-width: 480px) {
    .stqc-play-pause {
        width: 40px;
        height: 40px;
        font-size: 14px;
        bottom: 10px;
        right: 10px;
    }
} 
/* STQC-Style Hero Slider - Full Width Clean Government Website Design */
.stqc-hero-section {
    position: relative;
    width: 100%;
    background: #ffffff;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: none;
}

.stqc-slider-container {
    width: 100%;
    margin: 0;
    position: relative;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stqc-slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

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

.stqc-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transform: none;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.stqc-slide.active {
    opacity: 1;
    visibility: visible;
    transform: none;
    z-index: 2;
}

.stqc-slide.prev {
    transform: translateX(-100%);
    opacity: 0;
    z-index: 0;
}

.stqc-slide.next {
    transform: translateX(100%);
    opacity: 0;
    z-index: 0;
}

/* Smooth slide transitions with animation-play-state support */
.stqc-slide.auto-transition {
    animation: slideTransition 6s ease-in-out;
}

.stqc-slide.auto-transition.paused {
    animation-play-state: paused;
}

@keyframes slideTransition {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-100%);
        opacity: 0;
    }
}

.stqc-slide-image {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    object-fit: cover;
    object-position: center center;
    min-width: 100%;
    min-height: 100%;
}

/* Smart image display control */
.stqc-slide-image.wide-banner {
    object-fit: cover;
    object-position: center center;
}

.stqc-slide-image.regular-image {
    object-fit: cover;
    object-position: center center;
}

.stqc-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 2rem;
    text-align: left;
    z-index: 10;
}

.stqc-slide-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.stqc-slide-description {
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.stqc-slide-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.stqc-slide-link:hover,
.stqc-slide-link:focus {
    background: rgba(255,255,255,0.3);
    outline: 2px solid white;
    outline-offset: 2px;
}

/* STQC-Style Navigation Dots */
.stqc-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    background: rgba(0,0,0,0.3);
    padding: 8px 12px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    list-style: none;
    margin: 0;
}

/* Better, simpler slider controls */
.stqc-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.stqc-dot:hover,
.stqc-dot:focus {
    border-color: white;
    background: rgba(255, 255, 255, 0.5);
    outline: none;
    transform: scale(1.2);
}

.stqc-dot.active {
    background: #1B4332;
    border-color: #1B4332;
    transform: scale(1.1);
}

/* Navigation Arrows - Better Design */
.stqc-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #1B4332;
    border: 2px solid rgba(255, 255, 255, 0.8);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stqc-prev {
    left: 20px;
}

.stqc-next {
    right: 20px;
}

.stqc-slider:hover .stqc-nav {
    opacity: 1;
}

.stqc-nav:hover,
.stqc-nav:focus {
    background: #1B4332;
    color: white;
    border-color: #1B4332;
    outline: none;
    transform: translateY(-50%) scale(1.1);
}

/* Play/Pause Button - Better Design */
.stqc-play-pause {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    color: #1B4332;
    border: 2px solid rgba(255, 255, 255, 0.8);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stqc-play-pause:hover,
.stqc-play-pause:focus {
    background: #1B4332;
    color: white;
    border-color: #1B4332;
    outline: none;
    transform: scale(1.1);
}

.stqc-play-pause:active {
    transform: scale(0.95);
}

.stqc-pause-icon,
.stqc-play-icon {
    font-size: 18px;
    line-height: 1;
}

/* Screen reader support */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
    border-radius: 4px;
}

.skip-link:focus {
    top: 6px;
}

/* Enhanced Accessibility Features */

/* High contrast mode support */
@media (prefers-contrast: more) {
    .stqc-slide-content {
        background: linear-gradient(transparent, rgba(0,0,0,0.95));
    }
    
    .stqc-slide-title {
        color: #ffffff;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    }
    
    .stqc-slide-description {
        color: #ffffff;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    }
    
    .stqc-nav,
    .stqc-play-pause {
        background: rgba(0,0,0,0.9);
        border: 3px solid #ffffff;
    }
    
    .stqc-dot {
        border: 3px solid rgba(255,255,255,0.8);
    }
    
    .stqc-dot.active {
        background: #ffffff;
        border-color: #ffffff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .stqc-slide {
        transition: none;
    }
    
    .stqc-slide.auto-transition {
        animation: none;
    }
    
    .stqc-nav,
    .stqc-play-pause,
    .stqc-dot {
        transition: none;
    }
    
    .stqc-play-pause:hover,
    .stqc-play-pause:focus {
        transform: none;
    }
}

/* Focus states - Using footer background color variable */
.stqc-nav:focus-visible,
.stqc-play-pause:focus-visible,
.stqc-dot:focus-visible,
.stqc-slide-link:focus-visible {
    outline: 3px solid var(--footer-bg, #1a1a1a); /* Changed from #007cba to footer-bg variable */
    outline-offset: 2px;
    box-shadow: 0 0 0 2px rgba(26, 26, 26, 0.3); /* Changed to match footer-bg color */
}

/* ARIA live regions for screen readers */
.stqc-slider[aria-live] {
    position: relative;
}

/* Enhanced button accessibility */
.stqc-nav[aria-label]:focus::after,
.stqc-play-pause[aria-label]:focus::after {
    content: attr(aria-label);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
}

/* Tab navigation improvements */
.stqc-nav:focus,
.stqc-play-pause:focus,
.stqc-dot:focus {
    opacity: 1 !important;
}

/* Screen reader announcement styles */
.stqc-slider-announcement {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Enhanced semantic structure */
.stqc-slide[role="option"] {
    outline: none;
}

.stqc-slide[role="option"]:focus {
    outline: 2px solid var(--footer-bg, #1a1a1a); /* Changed from #007cba to footer-bg variable */
    outline-offset: 2px;
}

/* Improved color contrast for better accessibility */
.stqc-slide-link {
    background: rgba(255,255,255,0.25);
    color: #ffffff;
    font-weight: 600;
}

.stqc-slide-link:hover,
.stqc-slide-link:focus {
    background: rgba(255,255,255,0.4);
    color: #ffffff;
}

/* Responsive design */
@media (max-width: 1024px) and (min-width: 769px) {
    .stqc-slider {
        height: 450px;
    }
    
    .stqc-slide-title {
        font-size: 1.6rem;
    }
    
    .stqc-slide-description {
        font-size: 0.95rem;
    }
    
    .stqc-play-pause {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
}

/* Mobile-responsive styles - REPLACE existing mobile section */
@media (max-width: 768px) {
    .stqc-hero-section {
        height: 60vh;
        min-height: 300px;
        max-height: 500px;
    }
    
    .stqc-slider {
        height: 60vh;
        min-height: 300px;
        max-height: 500px;
    }
    
    .stqc-slide {
        height: 60vh;
        min-height: 300px;
        max-height: 500px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .stqc-slide-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .stqc-slide-content {
        position: absolute;
        bottom: 20px;
        left: 20px;
        right: 20px;
        background: rgba(0,0,0,0.7);
        padding: 15px;
        border-radius: 5px;
        color: white;
    }
    
    .stqc-slide-title {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .stqc-slide-description {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    /* Navigation controls */
    .stqc-nav {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .stqc-prev { left: 10px; }
    .stqc-next { right: 10px; }
    
    .stqc-slider-dots {
        bottom: 10px;
        padding: 5px 10px;
    }
    
    .stqc-dot {
        width: 8px;
        height: 8px;
        margin: 0 3px;
    }
    
    .stqc-play-pause {
        width: 35px;
        height: 35px;
        bottom: 10px;
        right: 10px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .stqc-hero-section {
        height: 50vh;
        min-height: 250px;
        max-height: 400px;
    }
    
    .stqc-slider {
        height: 50vh;
        min-height: 250px;
        max-height: 400px;
    }
    
    .stqc-slide {
        height: 50vh;
        min-height: 250px;
        max-height: 400px;
    }
    
    .stqc-slide-content {
        bottom: 10px;
        left: 10px;
        right: 10px;
        padding: 10px;
    }
    
    .stqc-slide-title {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    
    .stqc-slide-description {
        font-size: 0.8rem;
    }
}

/* Language-specific typography adjustments */
.stqc-slide-title[lang="hi"],
.stqc-slide-description[lang="hi"] {
    font-family: 'Noto Sans Devanagari', 'Arial Unicode MS', sans-serif;
    line-height: 1.6;
}

/* Force full width and remove any container constraints */
.stqc-hero-section,
.stqc-slider-container,
.stqc-slider {
    max-width: none !important;
    width: 100% !important;
}

.stqc-slide[style*="background-image"] {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.stqc-slide[style*="background-image"]:not([style*="background-size"]) {
    background-size: contain !important;
    background-color: #f8f9fa !important;
}

.stqc-slide[style*="background-image"] .stqc-slide-image {
    display: none !important;
}

.stqc-fallback-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.stqc-fallback-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

/* ========================================
   MOBILE SLIDER FIX - PROPER SLIDE NAVIGATION
   ======================================== */

/* Mobile slider - Show only one slide at a time */
@media (max-width: 768px) {
    .stqc-slider {
        height: 60vh;
        min-height: 300px;
        max-height: 500px;
        overflow: hidden;
    }
    
    .stqc-slider-wrapper {
        position: relative;
        width: 100%;
        height: 100%;
    }
    
    /* Hide all slides by default */
    .stqc-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        visibility: hidden;
        transform: translateX(100%);
        transition: all 0.5s ease-in-out;
        z-index: 1;
    }
    
    /* Show only the active slide */
    .stqc-slide.active {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
        z-index: 2;
    }
    
    /* Ensure images are properly sized and visible */
    .stqc-slide-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
        display: block !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        z-index: 1 !important;
    }
    
    /* Slide content positioning */
    .stqc-slide-content {
        position: absolute;
        bottom: 20px;
        left: 20px;
        right: 20px;
        background: rgba(0,0,0,0.7);
        padding: 15px;
        border-radius: 5px;
        color: white;
        z-index: 3;
    }
    
    .stqc-slide-title {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
        color: white;
    }
    
    .stqc-slide-description {
        font-size: 0.9rem;
        line-height: 1.4;
        color: rgba(255,255,255,0.9);
    }
    
    /* Navigation controls */
    .stqc-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
        opacity: 1;
        background: rgba(0,0,0,0.7);
        border: 2px solid rgba(255,255,255,0.3);
    }
    
    .stqc-prev { 
        left: 15px; 
    }
    
    .stqc-next { 
        right: 15px; 
    }
    
    .stqc-slider-dots {
        bottom: 12px;
        padding: 4px 8px;
        background: rgba(0,0,0,0.25);
    }
    
    .stqc-dot {
        width: 8px;
        height: 8px;
        margin: 0 3px;
        border: 1px solid rgba(255,255,255,0.6);
        background: transparent;
    }
    
    .stqc-dot.active {
        background: #ffffff;
        border-color: #ffffff;
    }
    
    .stqc-play-pause {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
        font-size: 14px;
        background: rgba(0,0,0,0.7);
        border: 2px solid rgba(255,255,255,0.3);
    }
}

/* Small mobile screens */
@media (max-width: 480px) {
    .stqc-slider {
        height: 50vh;
        min-height: 250px;
        max-height: 400px;
    }
    
    .stqc-slide-content {
        bottom: 15px;
        left: 15px;
        right: 15px;
        padding: 12px;
    }
    
    .stqc-slide-title {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    
    .stqc-slide-description {
        font-size: 0.8rem;
    }
    
    .stqc-nav {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .stqc-prev { left: 10px; }
    .stqc-next { right: 10px; }
    
    .stqc-dot {
        width: 8px;
        height: 8px;
        margin: 0 3px;
    }
    
    .stqc-play-pause {
        width: 35px;
        height: 35px;
        bottom: 10px;
        right: 10px;
        font-size: 12px;
    }
} 

/* ========================================
   FORCE MOBILE SLIDER VISIBILITY - ULTIMATE FIX
   ======================================== */

/* Force mobile slider to work - Override ALL conflicting styles */
@media (max-width: 768px) {
    /* Force slider container to be visible */
    .stqc-hero-section {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: 60vh !important;
        min-height: 300px !important;
        max-height: 500px !important;
    }
    
    .stqc-slider-container {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: 60vh !important;
        min-height: 300px !important;
        max-height: 500px !important;
    }
    
    .stqc-slider {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: 60vh !important;
        min-height: 300px !important;
        max-height: 500px !important;
        overflow: hidden !important;
    }
    
    .stqc-slider-wrapper {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: 100% !important;
        position: relative !important;
    }
    
    /* Force ALL slides to be positioned properly */
    .stqc-slide {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateX(100%) !important;
        transition: all 0.5s ease-in-out !important;
        z-index: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    /* Force active slide to be visible */
    .stqc-slide.active {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateX(0) !important;
        z-index: 2 !important;
        display: flex !important;
    }
    
    /* Force ALL images to be visible and properly sized */
    .stqc-slide-image {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        height: 100% !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        object-fit: cover !important;
        object-position: center center !important;
        z-index: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        outline: none !important;
    }
    
    /* Force slide content to be visible */
    .stqc-slide-content {
        position: absolute !important;
        bottom: 20px !important;
        left: 20px !important;
        right: 20px !important;
        background: rgba(0,0,0,0.7) !important;
        padding: 15px !important;
        border-radius: 5px !important;
        color: white !important;
        z-index: 3 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .stqc-slide-title {
        font-size: 1.2rem !important;
        margin-bottom: 0.5rem !important;
        color: white !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .stqc-slide-description {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        color: rgba(255,255,255,0.9) !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Force navigation to be visible and working */
    .stqc-nav {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 40px !important;
        height: 40px !important;
        font-size: 16px !important;
        background: rgba(0,0,0,0.7) !important;
        color: white !important;
        border: 2px solid rgba(255,255,255,0.3) !important;
        border-radius: 50% !important;
        cursor: pointer !important;
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 10 !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .stqc-prev { 
        left: 15px !important; 
    }
    
    .stqc-next { 
        right: 15px !important; 
    }
    
    /* Force dots to be visible */
    .stqc-slider-dots {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: absolute !important;
        bottom: 15px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        gap: 8px !important;
        z-index: 10 !important;
        background: rgba(0,0,0,0.5) !important;
        padding: 8px 12px !important;
        border-radius: 20px !important;
        list-style: none !important;
        margin: 0 !important;
    }
    
    .stqc-dot {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 10px !important;
        height: 10px !important;
        border-radius: 50% !important;
        border: 2px solid rgba(255,255,255,0.5) !important;
        background: transparent !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        margin: 0 4px !important;
    }
    
    .stqc-dot.active {
        background: white !important;
        border-color: white !important;
    }
    
    /* Force play/pause button to be visible */
    .stqc-play-pause {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 40px !important;
        height: 40px !important;
        bottom: 15px !important;
        right: 15px !important;
        font-size: 14px !important;
        background: rgba(0,0,0,0.7) !important;
        color: white !important;
        border: 2px solid rgba(255,255,255,0.3) !important;
        border-radius: 50% !important;
        cursor: pointer !important;
        position: absolute !important;
        z-index: 10 !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* Small mobile screens */
@media (max-width: 480px) {
    .stqc-slider {
        height: 50vh;
        min-height: 250px;
        max-height: 400px;
    }
    
    .stqc-slide-content {
        bottom: 15px;
        left: 15px;
        right: 15px;
        padding: 12px;
    }
    
    .stqc-slide-title {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    
    .stqc-slide-description {
        font-size: 0.8rem;
    }
    
    .stqc-nav {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .stqc-prev { left: 10px; }
    .stqc-next { right: 10px; }
    
    .stqc-dot {
        width: 8px;
        height: 8px;
        margin: 0 3px;
    }
    
    .stqc-play-pause {
        width: 35px;
        height: 35px;
        bottom: 10px;
        right: 10px;
        font-size: 12px;
    }
} 

/* ========================================
   PLAY/PAUSE BUTTON POSITIONING FIX
   ======================================== */

/* Ensure play/pause button stays visible and doesn't get hidden */
@media (max-width: 768px) {
    .stqc-play-pause {
        position: absolute !important;
        bottom: 20px !important;
        right: 20px !important;
        z-index: 1000 !important;
        width: 40px !important;
        height: 40px !important;
        background: rgba(0,0,0,0.8) !important;
        color: white !important;
        border: 2px solid rgba(255,255,255,0.5) !important;
        border-radius: 50% !important;
        cursor: pointer !important;
        font-size: 14px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        visibility: visible !important;
        opacity: 1 !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
    }
    
    /* Ensure the hero section has proper z-index */
    .stqc-hero-section {
        position: relative !important;
        z-index: 10 !important;
    }
    
    /* Ensure slider container has proper z-index */
    .stqc-slider-container {
        position: relative !important;
        z-index: 10 !important;
    }
    
    /* Ensure slider has proper z-index */
    .stqc-slider {
        position: relative !important;
        z-index: 10 !important;
    }
}

@media (max-width: 480px) {
    .stqc-play-pause {
        width: 35px !important;
        height: 35px !important;
        bottom: 15px !important;
        right: 15px !important;
        font-size: 12px !important;
        z-index: 1000 !important;
    }
}

/* Additional fix to prevent next section from overlapping */
.stqc-hero-section {
    position: relative;
    z-index: 10;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Ensure proper spacing between hero and next section */
.stqc-hero-section + * {
    position: relative;
    z-index: 1;
    margin-top: 0;
    padding-top: 0;
}

/* Fix for any section that might be overlapping */
.critical-news-ticker-container,
.tcl-fullwidth-section,
.about-section {
    position: relative;
    z-index: 1;
    margin-top: 0;
    padding-top: 0;
} 

/* ========================================
   SLIDER HEIGHT AND SPACING FIX
   ======================================== */

/* Ensure slider section has proper height and spacing */
@media (max-width: 768px) {
    .stqc-hero-section {
        height: 60vh !important;
        min-height: 300px !important;
        max-height: 500px !important;
        margin-bottom: 20px !important;
        padding-bottom: 20px !important;
        position: relative !important;
        z-index: 10 !important;
        overflow: visible !important;
    }
    
    .stqc-slider-container {
        height: 60vh !important;
        min-height: 300px !important;
        max-height: 500px !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        position: relative !important;
        z-index: 10 !important;
        overflow: visible !important;
    }
    
    .stqc-slider {
        height: 60vh !important;
        min-height: 300px !important;
        max-height: 500px !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        position: relative !important;
        z-index: 10 !important;
        overflow: visible !important;
    }
    
    /* Ensure proper spacing between hero and next section */
    .stqc-hero-section + * {
        margin-top: 20px !important;
        padding-top: 20px !important;
        position: relative !important;
        z-index: 1 !important;
    }
    
    /* Fix for critical news ticker spacing */
    .critical-news-ticker-container {
        margin-top: 20px !important;
        padding-top: 20px !important;
        position: relative !important;
        z-index: 1 !important;
    }
}

@media (max-width: 480px) {
    .stqc-hero-section {
        height: 50vh !important;
        min-height: 250px !important;
        max-height: 400px !important;
        margin-bottom: 15px !important;
        padding-bottom: 15px !important;
    }
    
    .stqc-slider-container {
        height: 50vh !important;
        min-height: 250px !important;
        max-height: 400px !important;
    }
    
    .stqc-slider {
        height: 50vh !important;
        min-height: 250px !important;
        max-height: 400px !important;
    }
    
    .stqc-hero-section + * {
        margin-top: 15px !important;
        padding-top: 15px !important;
    }
    
    .critical-news-ticker-container {
        margin-top: 15px !important;
        padding-top: 15px !important;
    }
}

/* Ensure hero container has proper spacing */
#hero-container {
    margin-bottom: 20px !important;
    padding-bottom: 20px !important;
    position: relative !important;
    z-index: 10 !important;
}

/* Fix for dynamic hero spacing */
#dynamic-hero {
    margin-bottom: 20px !important;
    padding-bottom: 20px !important;
    position: relative !important;
    z-index: 10 !important;
}

/* Ensure main content has proper spacing */
#main-content {
    position: relative !important;
    z-index: 1 !important;
}

/* Fix for any overlapping sections */
.tcl-fullwidth-section,
.about-section,
.media-press-section {
    position: relative !important;
    z-index: 1 !important;
    margin-top: 20px !important;
    padding-top: 20px !important;
} 

/* ========================================
   FIX CONTAINER HEIGHT TO MATCH IMAGE HEIGHT
   ======================================== */

/* Reduce container height to match image height and eliminate white space */
@media (max-width: 768px) {
    .stqc-hero-section {
        height: 350px !important;
        min-height: 350px !important;
        max-height: 350px !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    .stqc-slider-container {
        height: 350px !important;
        min-height: 350px !important;
        max-height: 350px !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    .stqc-slider {
        height: 350px !important;
        min-height: 350px !important;
        max-height: 350px !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    .stqc-slide {
        height: 350px !important;
        min-height: 350px !important;
        max-height: 350px !important;
    }
    
    .stqc-slide-image {
        height: 350px !important;
        min-height: 350px !important;
        max-height: 350px !important;
    }
}

@media (max-width: 480px) {
    .stqc-hero-section {
        height: 250px !important;
        min-height: 250px !important;
        max-height: 250px !important;
    }
    
    .stqc-slider-container {
        height: 250px !important;
        min-height: 250px !important;
        max-height: 250px !important;
    }
    
    .stqc-slider {
        height: 250px !important;
        min-height: 250px !important;
        max-height: 250px !important;
    }
    
    .stqc-slide {
        height: 250px !important;
        min-height: 250px !important;
        max-height: 250px !important;
    }
    
    .stqc-slide-image {
        height: 250px !important;
        min-height: 250px !important;
        max-height: 250px !important;
    }
} 

/* ========================================
   MINIMAL SLIDER HEIGHT - REMOVE WHITE SPACE
   ======================================== */

/* Make slider much smaller and remove all extra spacing */
@media (max-width: 768px) {
    .stqc-hero-section {
        height: 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .stqc-slider-container {
        height: 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .stqc-slider {
        height: 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .stqc-slide {
        height: 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
    }
    
    .stqc-slide-image {
        height: 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
    }
    
    /* Remove all spacing between hero and next section */
    .stqc-hero-section + * {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* Remove spacing from hero container */
    #hero-container {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    #dynamic-hero {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Remove spacing from critical news ticker */
    .critical-news-ticker-container {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

@media (max-width: 480px) {
    .stqc-hero-section {
        height: 150px !important;
        min-height: 150px !important;
        max-height: 150px !important;
    }
    
    .stqc-slider-container {
        height: 150px !important;
        min-height: 150px !important;
        max-height: 150px !important;
    }
    
    .stqc-slider {
        height: 150px !important;
        min-height: 150px !important;
        max-height: 150px !important;
    }
    
    .stqc-slide {
        height: 150px !important;
        min-height: 150px !important;
        max-height: 150px !important;
    }
    
    .stqc-slide-image {
        height: 150px !important;
        min-height: 150px !important;
        max-height: 150px !important;
    }
}

/* Remove all margins and padding from main content sections */
@media (max-width: 768px) {
    .tcl-fullwidth-section,
    .about-section,
    .media-press-section {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* Ensure news section starts immediately after slider */
    .media-press-section {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
} 

/* ========================================
   HIDE/MINIMIZE SLIDE CONTENT ON MOBILE
   ======================================== */

/* Hide or minimize slide content to avoid overlapping with image */
@media (max-width: 768px) {
    .stqc-slide-content {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    /* Alternative: Make content much smaller if you want to keep it */
    /*
    .stqc-slide-content {
        position: absolute !important;
        bottom: 5px !important;
        left: 5px !important;
        right: 5px !important;
        background: rgba(0, 0, 0, 0.3) !important;
        padding: 5px !important;
        border-radius: 3px !important;
    }
    
    .stqc-slide-title {
        font-size: 12px !important;
        margin: 0 !important;
        color: white !important;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
    }
    */
}

/* Keep slide content visible on desktop */
@media (min-width: 769px) {
    .stqc-slide-content {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
} 

/* Mobile responsive slider controls - Auto-hide with white background */
@media (max-width: 768px) {
    /* Make navigation arrows auto-hide on mobile with white background */
    .stqc-nav {
        width: 50px !important;
        height: 50px !important;
        font-size: 18px !important;
        opacity: 0 !important; /* Auto-hide on mobile */
        background: rgba(255, 255, 255, 0.9) !important; /* White background */
        color: #0f766e !important; /* Green text */
        border: 2px solid rgba(255, 255, 255, 0.8) !important; /* White border */
    }
    
    /* Show on touch/hover for mobile */
    .stqc-slider:hover .stqc-nav,
    .stqc-slider:active .stqc-nav {
        opacity: 1 !important;
    }
    
    .stqc-prev {
        left: 15px !important;
    }
    
    .stqc-next {
        right: 15px !important;
    }
    
    /* Simple dots - always visible but subtle */
    .stqc-dot {
        width: 12px !important;
        height: 12px !important;
        margin: 0 5px !important;
        border: 2px solid rgba(255, 255, 255, 0.7) !important;
        background: transparent !important;
    }
    
    .stqc-dot.active {
        background: #1B4332 !important;
        border-color: #1B4332 !important;
    }
    
    /* Simple play/pause button - auto-hide with white background */
    .stqc-play-pause {
        width: 45px !important;
        height: 45px !important;
        font-size: 16px !important;
        bottom: 15px !important;
        right: 15px !important;
        opacity: 0 !important; /* Auto-hide on mobile */
        background: rgba(255, 255, 255, 0.9) !important; /* White background */
        color: #1B4332 !important; /* Green text */
        border: 2px solid rgba(255, 255, 255, 0.8) !important; /* White border */
    }
    
    /* Show play/pause on touch/hover */
    .stqc-slider:hover .stqc-play-pause,
    .stqc-slider:active .stqc-play-pause {
        opacity: 1 !important;
    }
}

/* Even simpler for small mobile screens */
@media (max-width: 480px) {
    /* Smaller, simpler controls for small mobile */
    .stqc-nav {
        width: 45px !important;
        height: 45px !important;
        font-size: 16px !important;
        opacity: 0 !important; /* Auto-hide */
        background: rgba(255, 255, 255, 0.9) !important; /* White background */
        color: #1B4332 !important; /* Green text */
    }
    
    .stqc-prev {
        left: 10px !important;
    }
    
    .stqc-next {
        right: 10px !important;
    }
    
    /* Smaller dots */
    .stqc-dot {
        width: 10px !important;
        height: 10px !important;
        margin: 0 4px !important;
    }
    
    /* Smaller play/pause button */
    .stqc-play-pause {
        width: 40px !important;
        height: 40px !important;
        font-size: 14px !important;
        bottom: 10px !important;
        right: 10px !important;
        opacity: 0 !important; /* Auto-hide */
        background: rgba(255, 255, 255, 0.9) !important; /* White background */
        color: #0f766e !important; /* Green text */
    }
} 

/* ========================================
   FIXED PLAY/PAUSE BUTTON - NO HOVER CONFUSION
   ======================================== */

/* Simple, working play/pause button */
.stqc-play-pause {
    position: absolute !important;
    bottom: 20px !important;
    right: 20px !important;
    width: 45px !important;
    height: 45px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    color: #1B4332 !important;
    border: 2px solid rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    font-size: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    z-index: 10 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.stqc-play-pause:hover,
.stqc-play-pause:focus {
    background: #1B4332 !important;
    color: white !important;
    border-color: #1B4332 !important;
    outline: none !important;
    transform: scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(27, 67, 50, 0.3) !important;
}

/* Icon styling - simple and clear */
.stqc-pause-icon,
.stqc-play-icon {
    font-size: 18px !important;
    font-weight: bold !important;
    line-height: 1 !important;
    display: block !important;
}

/* Show/hide icons based on data-playing attribute - NO HOVER OVERRIDE */
.stqc-play-pause[data-playing="true"] .stqc-pause-icon {
    display: block !important;
}

.stqc-play-pause[data-playing="true"] .stqc-play-icon {
    display: none !important;
}

.stqc-play-pause[data-playing="false"] .stqc-pause-icon {
    display: none !important;
}

.stqc-play-pause[data-playing="false"] .stqc-play-icon {
    display: block !important;
}

/* Ensure hover doesn't change icon display */
.stqc-play-pause:hover .stqc-pause-icon,
.stqc-play-pause:hover .stqc-play-icon {
    /* No changes on hover - keep original display */
}

/* Mobile responsive */
@media (max-width: 768px) {
    .stqc-play-pause {
        width: 40px !important;
        height: 40px !important;
        font-size: 14px !important;
        bottom: 15px !important;
        right: 15px !important;
    }
    
    .stqc-pause-icon,
    .stqc-play-icon {
        font-size: 16px !important;
    }
}

@media (max-width: 480px) {
    .stqc-play-pause {
        width: 35px !important;
        height: 35px !important;
        font-size: 12px !important;
        bottom: 10px !important;
        right: 10px !important;
    }
    
    .stqc-pause-icon,
    .stqc-play-icon {
        font-size: 14px !important;
    }
} 

/* Compact, consistent dots (desktop and mobile) */
.stqc-slider-dots {
  bottom: 12px !important;
  padding: 2px 6px !important;
  background: rgba(0,0,0,0.15) !important;
}

.stqc-dot {
  width: 6px !important;
  height: 6px !important;
  margin: 0 2px !important;
  border: 1px solid rgba(255,255,255,0.7) !important;
  background: transparent !important;
  opacity: 0.9 !important;
}

.stqc-dot.active {
  background: #ffffff !important;
  border-color: #ffffff !important;
  opacity: 1 !important;
} 