/* Version 4.4 Fixes - December 2024 */

/* =================================================================
   1. SHIFT HERO SECTION DOWN IN DESKTOP (prevent touching header)
   ================================================================= */
@media (min-width: 1024px) {
    .hero {
        padding-top: 140px; /* Increased from default to add space below header */
    }
}

/* =================================================================
   2. SHIFT CHAT BOX UP 1.3 INCHES IN MOBILE VERSION ONLY
   ================================================================= */
@media (max-width: 768px) {
    .hero .video-overlay {
        transform: translateY(-124.8px); /* 1.3 inches = 124.8px (96dpi * 1.3) */
    }
    
    /* Ensure the chat box stays within view */
    .demo-chat.whatsapp-demo {
        position: relative;
        top: -124.8px;
    }
}

/* =================================================================
   3. DECREASE TEXT SIZE OF "CALL NOW" CTA IN MOBILE FOOTER
   ================================================================= */
@media (max-width: 768px) {
    .cta-section .btn-primary.btn-large {
        font-size: 14px !important; /* Reduced from default size */
        padding: 14px 20px !important;
        white-space: nowrap;
    }
    
    .cta-section .btn-primary.btn-large i {
        font-size: 16px;
        margin-right: 6px;
    }
    
    /* Make the text fit better */
    .cta-buttons {
        gap: 12px;
    }
}

/* For very small screens */
@media (max-width: 480px) {
    .cta-section .btn-primary.btn-large {
        font-size: 12px !important;
        padding: 12px 16px !important;
    }
    
    .cta-section .btn-primary.btn-large i {
        font-size: 14px;
        margin-right: 4px;
    }
}

/* =================================================================
   4. FIX VIDEO DEMO HEADERS AND SUBTEXTS - ALL DEVICES
   ================================================================= */

/* Desktop Version - Clean and spacious */
@media (min-width: 1024px) {
    .video-card .video-info {
        padding: 28px 24px;
    }
    
    .video-card .video-title {
        font-size: 22px;
        font-weight: 700;
        line-height: 1.3;
        margin-bottom: 14px;
        color: #1a1a1a;
    }
    
    .video-card .video-description {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 18px;
        color: #4a5568;
        font-weight: 400;
    }
    
    .video-card .video-stats {
        display: flex;
        gap: 16px;
        flex-wrap: wrap;
        margin-top: 16px;
    }
    
    .video-card .video-stats .stat {
        font-size: 13px;
        font-weight: 600;
        padding: 8px 14px;
        background: #f7fafc;
        border-radius: 6px;
        color: #2d3748;
    }
}

/* Tablet Version - Optimized layout */
@media (min-width: 769px) and (max-width: 1023px) {
    .video-card .video-info {
        padding: 24px 20px;
    }
    
    .video-card .video-title {
        font-size: 20px;
        font-weight: 700;
        line-height: 1.3;
        margin-bottom: 12px;
        color: #1a1a1a;
    }
    
    .video-card .video-description {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 16px;
        color: #4a5568;
        font-weight: 400;
    }
    
    .video-card .video-stats {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
        margin-top: 14px;
    }
    
    .video-card .video-stats .stat {
        font-size: 12px;
        font-weight: 600;
        padding: 7px 12px;
        background: #f7fafc;
        border-radius: 6px;
        color: #2d3748;
    }
}

/* Mobile Version - Compact and readable */
@media (max-width: 768px) {
    .video-card .video-info {
        padding: 20px 16px;
    }
    
    .video-card .video-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .video-card .video-title {
        font-size: 18px;
        font-weight: 700;
        line-height: 1.3;
        margin-bottom: 10px;
        color: #1a1a1a;
        word-wrap: break-word;
    }
    
    .video-card .video-description {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 14px;
        color: #4a5568;
        font-weight: 400;
        word-wrap: break-word;
    }
    
    .video-card .video-stats {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        margin-top: 12px;
    }
    
    .video-card .video-stats .stat {
        font-size: 11px;
        font-weight: 600;
        padding: 6px 10px;
        background: #f7fafc;
        border-radius: 5px;
        color: #2d3748;
        flex: 1 1 auto;
        text-align: center;
        min-width: 100px;
    }
    
    .video-card .video-stats .stat i {
        font-size: 10px;
        margin-right: 4px;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .video-card .video-info {
        padding: 18px 14px;
    }
    
    .video-card .video-icon {
        width: 44px;
        height: 44px;
        font-size: 22px;
        margin-bottom: 10px;
    }
    
    .video-card .video-title {
        font-size: 16px;
        line-height: 1.3;
        margin-bottom: 8px;
    }
    
    .video-card .video-description {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 12px;
    }
    
    .video-card .video-stats {
        gap: 8px;
        margin-top: 10px;
    }
    
    .video-card .video-stats .stat {
        font-size: 10px;
        padding: 5px 8px;
        min-width: 90px;
    }
}

/* =================================================================
   5. ADDITIONAL IMPROVEMENTS FOR VIDEO SECTION
   ================================================================= */

/* Ensure video containers maintain aspect ratio */
.video-card .video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}

.video-card .video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Better spacing for video cards */
@media (max-width: 768px) {
    .videos-grid {
        gap: 24px;
    }
    
    .video-card {
        margin-bottom: 0;
    }
}

/* =================================================================
   6. ENSURE NAVIGATION ROI LINK STYLING
   ================================================================= */
.nav-menu .nav-link[href="#roi-calculator"] {
    color: inherit;
    transition: all 0.3s ease;
}

.nav-menu .nav-link[href="#roi-calculator"]:hover {
    color: #10b981;
}

/* Mobile menu ROI link */
@media (max-width: 968px) {
    .nav-menu .nav-link[href="#roi-calculator"] {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* =================================================================
   7. FIX ANY TEXT OVERFLOW ISSUES
   ================================================================= */
.video-card .video-title,
.video-card .video-description {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

/* =================================================================
   8. ENSURE PROPER CONTRAST AND READABILITY
   ================================================================= */
.video-card .video-info {
    background: #ffffff;
    border-radius: 0 0 12px 12px;
}

.video-card .video-title {
    color: #1a1a1a;
}

.video-card .video-description {
    color: #4a5568;
}

.video-card .video-stats .stat {
    background: #f7fafc;
    color: #2d3748;
    border: 1px solid #e2e8f0;
}
