/*
Theme Name: QuickStrap
Theme URI: https://www.quickonlinetips.com/archives/quickstrap-wordpress-theme/
Author: QuickOnlineTips
Author URI: https://www.quickonlinetips.com/
Description: A lightweight 3-columns responsive Bootstrap starter theme, Font Awesome preloaded, full width page options, footer widgets, SEO optimized, fast loading, minimal styling, easy to customize WordPress theme.
Version: 1.2.2
Requires at least: 5.0
Tested up to: 5.8.1
Requires PHP: 7.0
Tags: three-columns, right-sidebar, left-sidebar, threaded-comments, sticky-post, custom-background,  translation-ready, editor-style, custom-menu, featured-images
Text Domain: quickstrap
License: GNU General Public License v2.0
License URI: https://www.gnu.org/licenses/gpl-2.0.html
QuickStrap WordPress Theme, Copyright 2019 QuickOnlineTips.com
QuickStrap is distributed under the terms of the GNU GPL
*/


/* Theme Validity --------------------- */


.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Bootstrap 5 Carousel Styles for Manset News */
.main-slider {
    margin-bottom: 2rem;
}

#mansetCarousel {
    border-radius: 8px;
    overflow: visible; /* Changed from hidden to allow indicators to show */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#mansetCarousel .carousel-item {
    max-height: 500px;
    height: 500px; /* Fixed height to prevent jumping */
    overflow: hidden;
    transition: none !important; /* No transition effects */
}

/* Ensure carousel inner doesn't clip indicators */
#mansetCarousel .carousel-inner {
    overflow: visible;
}

#mansetCarousel .carousel-item img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center;
    display: block; /* Prevent inline spacing issues */
    flex-shrink: 0; /* Prevent shrinking */
}

/* Container for images to maintain consistent height */
#mansetCarousel .main_news_img {
    height: 500px;
    overflow: hidden;
    position: relative;
}

#mansetCarousel .carousel-caption {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1rem 1rem;
    text-align: left;
    display: block !important; /* Force display on all devices */
}

/* Мобильная версия - заголовки на всю ширину */
@media (max-width: 768px) {
    #mansetCarousel .carousel-caption {
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
        padding: 1.5rem 0.5rem 0.5rem;
        left: 0;
        right: 0;
        width: 100%;
    }
    
    #mansetCarousel .carousel-indicators {
        position: absolute;
        bottom: -23px !important; /* Перемещаем индикаторы под слайдер */
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
    }
}

#mansetCarousel .carousel-caption h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    width: 100%;
}

#mansetCarousel .carousel-caption a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

#mansetCarousel .carousel-caption a:hover {
    color: #ff3c3c;
    text-decoration: none;
}

#mansetCarousel .carousel-indicators {
    bottom: 20px;
    margin-bottom: 0;
    display: none !important;
}

#mansetCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 4px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid #555555;
    transition: none;
}

/* Progress bar for carousel */
#mansetCarousel .carousel-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff3c3c 0%, #ff3c3c 0%);
    transition: width 0.1s linear;
    z-index: 10;
    border-radius: 0 0 8px 8px;
    display: none !important;
}

/* Swipe feedback for mobile */
#mansetCarousel.swiping {
    transition: none !important; /* No transition effects */
}

#mansetCarousel.swipe-left {
    transform: translateX(-5px) !important; /* Reduced movement for faster response */
}

#mansetCarousel.swipe-right {
    transform: translateX(5px) !important; /* Reduced movement for faster response */
}

/* Touch feedback for mobile */
#mansetCarousel .carousel-item {
    touch-action: pan-y pinch-zoom;
    will-change: transform;
    transform: translateZ(0); /* Force hardware acceleration */
}

/* Optimize performance for mobile */
#mansetCarousel {
    -webkit-overflow-scrolling: touch;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Force hardware acceleration for all carousel elements */
#mansetCarousel * {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Prevent height jumping in carousel */
#mansetCarousel .carousel-inner {
    height: 500px;
}

#mansetCarousel .carousel-item.active,
#mansetCarousel .carousel-item-next,
#mansetCarousel .carousel-item-prev {
    height: 500px !important;
}

#mansetCarousel .carousel-indicators button.active {
    background-color: #ff3c3c;
    border-color: #ff3c3c;
    transform: none;
}

#mansetCarousel .carousel-control-prev,
#mansetCarousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 20px;
    opacity: 0.8;
    transition: none;
}

#mansetCarousel .carousel-control-prev:hover,
#mansetCarousel .carousel-control-next:hover {
    background-color: rgba(255, 60, 60, 0.8);
    opacity: 1;
}

#mansetCarousel .carousel-control-prev-icon,
#mansetCarousel .carousel-control-next-icon {
    width: 24px;
    height: 24px;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    #mansetCarousel .carousel-item {
        max-height: 300px;
        height: 300px; /* Fixed height for mobile */
        transition: none !important; /* No transition effects */
    }
    
    #mansetCarousel .carousel-item img {
        height: 300px; /* Fixed height for mobile images */
    }
    
    #mansetCarousel .main_news_img {
        height: 300px; /* Fixed height for mobile container */
    }
    
    #mansetCarousel .carousel-inner {
        transition: none !important; /* No transition effects */
        height: 300px;
    }
    
    #mansetCarousel .carousel-item.active,
    #mansetCarousel .carousel-item-next,
    #mansetCarousel .carousel-item-prev {
        height: 300px !important;
    }
    
    #mansetCarousel .carousel-item img {
        height: 300px;
    }
    
    #mansetCarousel .carousel-caption {
        padding: 1rem 0.5rem 0.5rem;
        display: block !important;
    }
    
    #mansetCarousel .carousel-caption h3 {
        font-size: 1.3rem;
        line-height: 1.2;
        margin-bottom: 0.5rem;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
        width: 100%;
    }
    
    #mansetCarousel .carousel-caption a {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    }
    
    #mansetCarousel .carousel-control-prev,
    #mansetCarousel .carousel-control-next {
        width: 40px;
        height: 40px;
        margin: 0 10px;
    }
    
    #mansetCarousel .carousel-control-prev-icon,
    #mansetCarousel .carousel-control-next-icon {
        width: 20px;
        height: 20px;
    }
    
    #mansetCarousel .carousel-progress {
        height: 2px;
    }
}

/* Extra small devices */
@media (max-width: 576px) {
    #mansetCarousel .carousel-item {
        max-height: 250px;
        height: 250px; /* Fixed height for small devices */
        transition: none !important; /* No transition effects */
    }
    
    #mansetCarousel .carousel-item img {
        height: 250px; /* Fixed height for small device images */
    }
    
    #mansetCarousel .main_news_img {
        height: 250px; /* Fixed height for small device container */
    }
    
    #mansetCarousel .carousel-inner {
        transition: none !important; /* No transition effects */
        height: 250px;
    }
    
    #mansetCarousel .carousel-item.active,
    #mansetCarousel .carousel-item-next,
    #mansetCarousel .carousel-item-prev {
        height: 250px !important;
    }
    
    #mansetCarousel .carousel-item img {
        height: 250px;
    }
    
    #mansetCarousel .carousel-caption h3 {
        font-size: 0.9rem;
        width: 100%;
    }
    
    #mansetCarousel .carousel-control-prev,
    #mansetCarousel .carousel-control-next {
        width: 35px;
        height: 35px;
        margin: 0 5px;
    }
    
    #mansetCarousel .carousel-caption h3 {
        font-size: 1.1rem;
        line-height: 1.1;
        margin-bottom: 0.3rem;
        width: 100%;
    }
    
    #mansetCarousel .carousel-caption {
        padding: 0.8rem 0.4rem 0.4rem;
        display: block !important;
    }
}

@media (max-width: 576px) {
    #mansetCarousel .carousel-item {
        max-height: 250px;
        height: 250px;
    }
    
    #mansetCarousel .carousel-item img {
        height: 250px;
    }
    
    #mansetCarousel .carousel-caption {
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
        padding: 1rem 0.3rem 0.3rem;
        display: block !important;
        left: 0;
        right: 0;
        width: 100%;
        bottom: 0;
    }
    
    #mansetCarousel .carousel-caption h3 {
        font-size: 1.1rem;
        line-height: 1.1;
        margin-bottom: 0.3rem;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    }
    
    #mansetCarousel .carousel-indicators {
        position: absolute;
        bottom: -23px !important; /* Индикаторы под слайдером */
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
    }
    
    #mansetCarousel .carousel-indicators button {
        width: 10px;
        height: 10px;
        margin: 0 3px;
    }
}

/* Loading Animation - Disabled */
#mansetCarousel .carousel-item {
    transition: none;
}

#mansetCarousel .carousel-item.active {
    animation: none;
}

/* Accessibility Improvements */
#mansetCarousel .carousel-control-prev:focus,
#mansetCarousel .carousel-control-next:focus {
    outline: 2px solid #ff3c3c;
    outline-offset: 2px;
}

#mansetCarousel .carousel-indicators button:focus {
    outline: 2px solid #ff3c3c;
    outline-offset: 2px;
}

/* Performance Optimization */
#mansetCarousel .carousel-item img {
    will-change: auto;
}

#mansetCarousel .carousel-item:not(.active) img {
    transform: none;
}

/* Progress Bar Styles */
.carousel-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff3c3c 0%, #ff3c3c 0%);
    transition: width 0.1s linear;
    z-index: 10;
    border-radius: 0 0 8px 8px;
}

/* Main News Title */
.main_news_title {
    margin-bottom: 0;
}

/* Carousel container spacing for indicators */
#mansetCarousel {
    margin-bottom: 15px; /* Отступ для индикаторов под слайдером */
}

/* Carousel Navigation Controls */
#mansetCarousel .carousel-control-next,
#mansetCarousel .carousel-control-prev {
    opacity: 0.3;
}

/* Hover Effects */
#mansetCarousel:hover .carousel-control-prev,
#mansetCarousel:hover .carousel-control-next {
    opacity: 1;
}

#mansetCarousel:hover .carousel-indicators {
    opacity: 1;
}

/* Loading State */
#mansetCarousel.loading {
    position: relative;
}

#mansetCarousel.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff3c3c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1000;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Focus States for Accessibility */
#mansetCarousel .carousel-control-prev:focus-visible,
#mansetCarousel .carousel-control-next:focus-visible {
    outline: 3px solid #ff3c3c;
    outline-offset: 2px;
    border-radius: 50%;
}

#mansetCarousel .carousel-indicators button:focus-visible {
    outline: 3px solid #ff3c3c;
    outline-offset: 2px;
    border-radius: 50%;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    #mansetCarousel .carousel-item {
        transition: none;
    }
    
    #mansetCarousel .carousel-item.active {
        animation: none;
    }
    
    .carousel-progress {
        transition: none;
    }
    
    #mansetCarousel .carousel-control-prev,
    #mansetCarousel .carousel-control-next {
        transition: none;
    }
    
    #mansetCarousel .carousel-indicators button {
        transition: none;
    }
}

/* Social Media Icons for Mobile Navbar */
.navbar-social-mobile {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.social-icons-mobile {
    display: flex;
    gap: 8px;
    align-items: center;
}

.social-icon-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.social-icon-mobile:hover {
    color: #fff;
    transform: scale(1.1);
    text-decoration: none;
}

/* Facebook */
.social-icon-mobile:nth-child(1) {
    background-color: #3b5998;
}

.social-icon-mobile:nth-child(1):hover {
    background-color: #2d4373;
}

/* Twitter */
.social-icon-mobile:nth-child(2) {
    background-color: #000000;
}

.social-icon-mobile:nth-child(2):hover {
    background-color: #333333;
}

/* Instagram */
.social-icon-mobile:nth-child(3) {
    background: linear-gradient(115deg, rgb(249, 206, 52), rgb(238, 42, 123), rgb(98, 40, 215));
}

.social-icon-mobile:nth-child(3):hover {
    background: linear-gradient(115deg, rgb(255, 216, 62), rgb(248, 52, 133), rgb(108, 50, 225));
}

/* YouTube */
.social-icon-mobile:nth-child(4) {
    background-color: #ed302f;
}

.social-icon-mobile:nth-child(4):hover {
    background-color: #d32f2f;
}

/* Telegram */
.social-icon-mobile:nth-child(5) {
    background-color: #0088c3;
}

.social-icon-mobile:nth-child(5):hover {
    background-color: #006699;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .navbar-social-mobile {
        margin-left: 10px;
    }
    
    .social-icons-mobile {
        gap: 6px;
    }
    
    .social-icon-mobile {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}
