/*
Theme Name: Bujanginam
Theme URI: https://kentut.com/soccer-theme
Author: Kentut
Author URI: https://example.com
Description: Bujanginam.
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: soccer-theme
*/

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    padding: 0;
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', Arial, sans-serif;
    color: #222;
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: #0073aa;
    transition: color 0.3s ease;
}

a:hover {
    color: #005177;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.content-wrapper {
    display: flex;
    gap: 20px; 
    margin-top: 20px;
}

#primary {
    flex: 2; /* Takes up 2/3 of the available space */
    min-width: 0; /* Prevents overflow issues */
}

.site-main {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.livestream-embed {
    text-align: center;
    margin: 20px 0;
}
.livestream-embed iframe {
    width: 100%; /* Ensure the iframe takes up the full width */
    height: 500px; /* Default height for larger screens */
    border: none;
    border-radius: 8px;
}
/* Header Styles */
.site-header {
    background-color: #0073aa;
    color: #fff;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding:5px;
}

.site-branding img {
    max-height: 150px;
}

.main-navigation .menu {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation .menu li a {
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-navigation .menu li a:hover {
    color: #f9f9f9;
}

.cta-button {
    background-color: #ff4d4d;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #e60000;
}

/* Responsive Header */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 15px;
    }
    .match-dropdown {
        text-align: left;
    }

    .match-dropdown label {
        display: block;
        margin-bottom: 5px;
    }

    .match-dropdown select {
        width: 100%;
        font-size: 14px;
    }

    .main-navigation .menu {
        flex-direction: column;
        gap: 10px;
    }
}

/* Main Content */
main {
    margin-top: 20px;
}

.match-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.match-item .entry-header h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #0073aa;
}

/* Teams */
.teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.team {
    text-align: center;
}

.team-flag {
    max-width: 60px;
    height: auto;
    border-radius: 50%;
    margin-bottom: 5px;
}

.vs {
    font-size: 1.2rem;
    font-weight: bold;
    color: #222;
}

/* Match Date */
.match-item p {
    margin-bottom: 10px;
    font-size: 1rem;
}

/* Livestream Button */
.livestream-button {
    display: inline-block;
    background-color: #ff4d4d;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.livestream-button:hover {
    background-color: #e60000;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 15px;
    background-color: #0073aa;
    color: #fff;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.pagination a:hover {
    background-color: #005177;
}

.pagination .current {
    background-color: #005177;
    pointer-events: none;
}

/* Sidebar Styles */
.site-sidebar {
    flex: 1; /* Takes up 1/3 of the available space */
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.site-sidebar .container {
    max-width: 300px;
    margin: 0 auto;
}

.widget {
    margin-bottom: 20px;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 10px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 5px;
}

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget ul li {
    margin-bottom: 10px;
}

.widget ul li a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget ul li a:hover {
    color: #005177;
}

/* Responsive Sidebar */
@media (max-width: 768px) {
    .site-sidebar {
        border-left: none;
        padding: 10px;
    }

    .site-sidebar .container {
        max-width: 100%;
    }
}

/* Footer Styles */
.site-footer {
    background-color: #005177;
    color: #fff;
    text-align: center;
    padding: 40px 0;
    margin-top: 40px;
}

.site-footer .container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo img {
    max-height: 50px;
}

.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
}

.footer-menu li a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-menu li a:hover {
    color: #f9f9f9;
}

.social-media {
    display: flex;
    gap: 15px;
}

.social-media a {
    color: #fff;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-media a:hover {
    color: #f9f9f9;
}

.copyright {
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 15px;
    }

    .footer-menu {
        flex-direction: column;
        gap: 10px;
    }
    .content-wrapper {
        flex-direction: column; /* Stack main content and sidebar vertically */
    }

    #primary,
    .site-sidebar {
        flex: 1; /* Full width on smaller screens */
        min-width: 100%;
    }
    .livestream-embed iframe {
        height: 300px; /* Reduce height for smaller screens */
    }

    .livestream-embed {
        margin: 15px 0; /* Adjust margin for better spacing on mobile */
    }
}

@media (max-width: 480px) {
    .livestream-embed iframe {
        height: 200px; /* Further reduce height for very small screens */
    }

    .livestream-embed {
        margin: 10px 0; /* Tighten spacing for extra small screens */
    }
}

.match-dropdown {
    margin-bottom: 20px;
    text-align: center;
}

.match-dropdown label {
    font-size: 16px;
    font-weight: bold;
    margin-right: 10px;
}

.match-dropdown select {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    transition: border-color 0.3s ease;
}

.match-dropdown select:focus {
    border-color: #0073aa;
    outline: none;
}

/* Match List */
.match-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.match-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.match-item.hidden {
    display: none;
}

#match_time {
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
}