======================================== */

/* ========================================
   TASK 1: MOBILE MENU FIXES
   ======================================== */

/* Mobile menu button - ensure it shows on mobile */
.mobile-toggle-wrapper {
    display: none !important;
}

@media (max-width: 1024px) {
    .mobile-toggle-wrapper {
        display: block !important;
        position: relative;
        z-index: 999999;
    }
    
    .mobile-toggle {
        display: block !important;
        background: #fff !important;
        color: #000 !important;
        padding: 10px 15px;
        border-radius: 4px;
        cursor: pointer;
    }
    
    .mobile-toggle span {
        background: #000 !important;
    }
}

/* Mobile menu panel - white background */
#mobile-menu {
    background: #fff !important;
    color: #000 !important;
}

#mobile-menu .mobile-menu-content {
    background: #fff !important;
}

#mobile-menu ul li a {
    color: #000 !important;
    background: #fff !important;
}

#mobile-menu ul li a:hover {
    background: #f0f0f0 !important;
    color: #00ffff !important;
}

/* Mobile menu sub-items */
#mobile-menu .sub-menu {
    background: #fff !important;
}

#mobile-menu .sub-menu li a {
    color: #333 !important;
    padding-left: 30px !important;
}

/* ========================================
   TASK 2: RESPONSIVE IMAGES & PDFs FOR MOBILE
   ======================================== */

/* Make all images responsive */
img {
    max-width: 100% !important;
    height: auto !important;
}

/* Specific fixes for content images */
.post-content img,
.entry-content img,
.article-content img {
    max-width: 100% !important;
    height: auto !important;
    width: auto !important;
}

/* PDF embed containers */
.pdf-container,
.pdf-embed,
embed[type="application/pdf"],
object[type="application/pdf"],
iframe[src*=".pdf"] {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 500px;
}

@media (max-width: 768px) {
    .pdf-container,
    .pdf-embed,
    embed[type="application/pdf"],
    object[type="application/pdf"],
    iframe[src*=".pdf"] {
        min-height: 400px;
    }
}

/* FlipBook responsive on mobile */
.real3dflipbook,
.real3dflipbook-container {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
}

@media (max-width: 768px) {
    .real3dflipbook,
    .real3dflipbook-container {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
}

/* ========================================
   TASK 3: REMOVE WHITE BACKGROUNDS
   ======================================== */

/* Newsletter signup section - remove white background */
.newsletter-section,
.newsletter-signup,
.subscribe-section,
div[style*="background: white"],
div[style*="background-color: white"],
div[style*="background:#fff"],
div[style*="background-color:#fff"] {
    background: transparent !important;
    background-color: transparent !important;
}

/* Force specific newsletter containers to be transparent */
.elementor-element .newsletter-section,
.vc_row .newsletter-section {
    background: transparent !important;
}

/* Ballet section - remove white background from cards */
.ballet-section,
.ballet-section .post-grid,
.ballet-section .article-card {
    background: transparent !important;
    background-color: transparent !important;
}

/* Article cards with dark styling */
.article-card,
.post-card,
.magazine-card {
    background: rgba(0, 0, 0, 0.7) !important;
    border: 1px solid #00ffff !important;
}

/* Footer - remove white background */
footer,
.footer,
.site-footer,
#footer {
    background: transparent !important;
    background-color: transparent !important;
}

.footer-widgets,
.footer-content {
    background: transparent !important;
}

/* ========================================
   TASK 6: VISITOR COUNTER FIX
   ======================================== */

/* Ensure counter is visible and increments */
#dm-visitor-counter,
.visitor-counter,
.visitor-counter-wrapper {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Style the counter */
#dm-visitor-counter {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    color: #00ffff;
    padding: 10px;
    text-align: center;
}

/* ========================================
   TASK 7: CAROUSEL AUTO-ROTATION FIX
   ======================================== */

/* Ensure carousel wrapper allows transitions */
.carousel-wrapper,
.magazine-carousel,
.slick-slider {
    overflow: visible !important;
    position: relative !important;
}

/* Carousel navigation arrows */
.carousel-arrow,
.slick-arrow,
.carousel-prev,
.carousel-next {
    display: block !important;
    opacity: 1 !important;
    cursor: pointer !important;
    z-index: 100 !important;
    background: rgba(0, 255, 255, 0.3) !important;
    border: 2px solid #00ffff !important;
    color: #fff !important;
    padding: 10px 15px !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
}

.carousel-arrow:hover,
.slick-arrow:hover {
    background: rgba(0, 255, 255, 0.7) !important;
    transform: scale(1.1) !important;
}

/* ========================================
   TASK 8: FACEBOOK OPEN GRAPH IMAGE FIX
   ======================================== */

/* Ensure featured images are properly sized for social sharing */
.featured-image,
.post-thumbnail,
.article-featured-image img {
    min-width: 1200px !important;
    min-height: 630px !important;
    object-fit: cover;
}

/* ========================================
   ADDITIONAL MOBILE OPTIMIZATIONS
   ======================================== */

@media (max-width: 768px) {
    /* Hide desktop menu on mobile */
    .main-navigation,
    .desktop-menu {
        display: none !important;
    }
    
    /* Ensure mobile menu toggle is visible */
    .mobile-toggle-wrapper {
        display: block !important;
    }
    
    /* Full width containers on mobile */
    .container,
    .row,
    .small-12 {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    /* Responsive typography */
    h1 {
        font-size: 28px !important;
        line-height: 36px !important;
    }
    
    h2 {
        font-size: 24px !important;
        line-height: 32px !important;
    }
    
    h3 {
        font-size: 20px !important;
        line-height: 28px !important;
    }
    
    /* Magazine carousel on mobile */
    .magazine-carousel .carousel-item {
        width: 100% !important;
        max-width: 300px !important;
        margin: 0 auto !important;
    }
}

/* ========================================
   CYBERPUNK THEME CONSISTENCY
   ======================================== */

/* Maintain neon cyan/magenta theme */
body {
    background: #000 !important;
    color: #fff !important;
}

/* Links with neon effect */
a {
    color: #00ffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff;
}

/* Buttons with cyberpunk styling */
button,
.button,
input[type="submit"] {
    background: linear-gradient(135deg, #00ffff, #ff00ff) !important;
    border: none !important;
    color: #fff !important;
    padding: 12px 30px !important;
    border-radius: 25px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

button:hover,
.button:hover,
input[type="submit"]:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5) !important;
}
