/*
Theme Name: Sports Boxs
Theme URI: https://sportsboxs.com
Author: Manus AI
Author URI: https://manus.im
Description: A modern, fast-loading, SEO-friendly WordPress theme for Sports Technology & Wellness, integrated with YouTube, and easily customizable with Elementor Free.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sportsboxs-theme
*/

/* General Body Styles */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
    margin: 0;
    padding: 0;
}

/* Header Styles */
.site-header {
    background-color: #ffffff;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 90px; /* Ensure header has enough space for AdSense (e.g., 728x90 leaderboard) */
}

.site-branding {
    padding: 5px 20px;
}

.site-branding img {
    max-height: 70px !important; /* Adjusted logo size for AdSense compatibility */
    width: auto !important;
    display: block;
}

/* Navigation Styles */
.main-navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
}

.main-navigation li {
    position: relative;
    margin-left: 20px;
}

.main-navigation a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: #ff6600; /* Orange hover effect */
}

/* Dropdown Menu Styles */
.main-navigation ul ul {
    display: none;
    position: absolute;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 9999;
    top: 100%; /* Position dropdown below parent */
    left: 0;
    min-width: 200px;
    flex-direction: column;
    align-items: flex-start;
}

.main-navigation ul li:hover > ul {
    display: flex; /* Tampilkan submenu saat hover */
}

.main-navigation ul ul li {
    margin: 0;
    width: 100%;
}

.main-navigation ul ul li a {
    padding: 10px 20px;
    white-space: nowrap;
}

.main-navigation ul ul ul {
    left: 100%;
    top: 0;
}

/* Content Area */
.site-content {
    padding: 20px;
}

/* Footer Styles */
.site-footer {
    background-color: #222;
    color: #eee;
    padding: 40px 20px;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.site-footer .widget {
    flex: 1;
    min-width: 200px;
    margin: 10px;
}

.site-footer h2 {
    color: #ff6600;
    font-size: 1.2em;
    margin-bottom: 15px;
}

.site-footer ul {
    list-style: none;
    padding: 0;
}

.site-footer ul li {
    margin-bottom: 0.5rem;
}

.site-footer ul li a {
    color: #eee;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer ul li a:hover {
    color: #ff6600;
}

/* Hide 'JACK' block in footer */
.site-footer .widget_text:has(h2:contains("JACK")) {
    display: none !important;
}

/* Testimonial Fix */
.testimonial-section .testimonial-content {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
}
.testimonial-section .testimonial-author {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .main-navigation ul {
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
    }
    .main-navigation li {
        margin-left: 0;
        width: 100%;
    }
    .main-navigation ul ul {
        position: static;
        box-shadow: none;
        background-color: transparent;
        padding-left: 20px;
    }
    .main-navigation ul ul li a {
        padding: 5px 10px;
    }
    .site-footer {
        flex-direction: column;
        align-items: center;
    }
    .site-footer .widget {
        min-width: 100%;
    }
}




/* Global Image Responsiveness */
img {
    max-width: 100%;
    height: auto;
    display: block;
}



/* Image sizing within specific containers */
.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures images fill the container without distortion */
}

.kb-is-ratio-image img {
    width: 100%;
    height: auto;
}



/* Aggressive Image Responsiveness */
.site-content img, .entry-content img, .elementor-widget-image img, .wp-block-image img {
    max-width: 100% !important;
    height: auto !important;
    width: auto !important; /* Ensure width is not fixed */
    box-sizing: border-box !important; /* Include padding and border in the element's total width and height */
}

/* Ensure images within card-icon are properly sized */
.card-icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Ensure images within kb-is-ratio-image are properly sized */
.kb-is-ratio-image img {
    width: 100% !important;
    height: auto !important;
}

