/**
 * Responsive CSS for Football League Website
 * This file contains all responsive styles for different screen sizes
 */

/* Header Styles */
.top-bar {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    font-size: 14px;
}

.top-contact-info span {
    display: inline-block;
    margin-right: 15px;
}

.top-social-icons {
    display: flex;
    justify-content: flex-end;
}

.social-icon-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    margin-left: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.social-icon-sm:hover {
    background-color: #28a745;
    color: white;
    transform: translateY(-2px);
}

.main-header {
    background: #ffffff;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-bottom: 1px solid #e0e0e0;
}

.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 5px 0;
    animation: slideDown 0.5s;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.header-logo {
    max-height: 70px;
    width: auto;
    background: transparent;
    mix-blend-mode: multiply;
    filter: drop-shadow(0 0 0 transparent);
}

.navbar-brand {
    margin-left: 20px !important;
    padding-left: 15px !important;
    margin-right: 30px !important;
    min-width: 300px;
}

.navbar-nav {
    margin-left: auto !important;
}

.navbar-collapse {
    justify-content: space-between;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-arabic {
    font-size: 18px;
    font-weight: 700;
    color: #333333;
    font-family: 'Arial', sans-serif;
    direction: rtl;
    text-align: right;
}

.brand-french {
    font-size: 14px;
    font-weight: 600;
    color: #666666;
    font-family: 'Arial', sans-serif;
    margin-top: 2px;
}

/* Responsive Design for Brand Text */
@media (max-width: 768px) {
    .brand-text {
        display: none;
    }
    
    .header-logo {
        max-height: 50px;
    }
    
    .footer-brand-text {
        margin-top: 10px;
    }
    
    .footer-brand {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-brand img {
        margin-bottom: 10px;
    }
}

.navbar-dark .navbar-nav .nav-link {
    color: #333333;
    font-weight: 600;
    padding: 25px 15px;
    text-transform: uppercase;
    font-size: 14px;
    transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-item.active .nav-link {
    color: #28a745;
}

.dropdown-menu {
    border: none;
    border-radius: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 0;
}

.dropdown-item {
    padding: 10px 20px;
    font-size: 14px;
    border-bottom: 1px solid #f1f1f1;
    transition: all 0.3s ease;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #28a745;
    padding-left: 25px;
}

/* Navbar Toggler for White Background */
.navbar-toggler {
    border: 1px solid #333333;
    padding: 4px 8px;
}

/* Make toggler icon visible on dark headers */
.navbar-dark .navbar-toggler { border-color: #ffffff; }
.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.header-search {
    position: relative;
}

.search-toggle {
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.search-form {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    display: none;
    padding: 15px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-radius: 4px;
}

.search-form .form-control {
    border-radius: 30px;
    padding-right: 40px;
}

.search-form button {
    position: absolute;
    right: 25px;
    top: 23px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
}

/* Hero Carousel Styles */
.hero-carousel-section {
    position: relative;
    margin-bottom: 30px;
}

.carousel {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.carousel-inner {
    border-radius: 8px;
}

.carousel-item {
    height: 500px;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel-indicators {
    bottom: 20px;
    z-index: 15;
}

.carousel-indicators li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicators li.active {
    background-color: #ff5722;
    transform: scale(1.2);
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.carousel-control-prev-icon i,
.carousel-control-next-icon i {
    font-size: 24px;
    color: white;
}

/* Hero Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    z-index: 10;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-buttons .btn {
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.hero-buttons .btn-primary {
    background-color: #ff5722;
    border-color: #ff5722;
}

.hero-buttons .btn-primary:hover {
    background-color: #e64a19;
    border-color: #e64a19;
    transform: translateY(-3px);
}

.hero-buttons .btn-outline-light:hover {
    background-color: white;
    color: #333;
    transform: translateY(-3px);
}

/* Footer Styles */
.bottom {
    background-color: #0c2340;
    padding: 60px 0 20px;
    color: #fff;
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-widget h4 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #ff5722;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget ul li {
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.footer-widget ul li a {
    color: #ccc;
    transition: all 0.3s ease;
    display: block;
}

.footer-widget ul li a:hover {
    color: #ff5722;
    padding-left: 5px;
}

.footer-widget ul li i {
    color: #ff5722;
    margin-right: 8px;
}

.footer-widget p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-icons {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    margin: 0 8px 8px 0;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background-color: #ff5722;
    color: white;
}

.copyright {
    padding-top: 15px;
}

.copyright p {
    margin-bottom: 0;
    color: #ccc;
}

/* Global Responsive Styles */
html, body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .navbar-brand img {
        max-height: 40px;
    }
    
    .carousel-item {
        height: 250px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .hero-buttons .btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .post-card {
        margin-bottom: 20px;
    }
    
    .sidebar {
        margin-top: 30px;
    }
    
    .footer-widget {
        text-align: center;
        margin-bottom: 30px;
    }
    
    .footer-widget h4:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer-widget ul li a:hover {
        padding-left: 0;
    }
    
    .copyright {
        text-align: center;
    }
    
    .custom-btn {
        font-size: 0.8rem;
        padding: 5px 10px;
        margin-bottom: 5px;
    }
    
    .category-buttons {
        justify-content: center;
    }
    
    .table-responsive {
        font-size: 0.8rem;
    }
    
    .pagination .page-link {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    /* Match tabs responsive styles */
    .section-title {
        font-size: 24px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .match-tabs-nav {
        flex-wrap: wrap;
    }
    
    .match-tab-btn {
        padding: 10px 15px;
        font-size: 14px;
        flex-grow: 1;
        text-align: center;
    }
    
    .matches-table th, 
    .matches-table td {
        padding: 10px 8px;
        font-size: 13px;
    }
    
    /* Youth section responsive styles */
    .category-row {
        flex-wrap: wrap;
    }
    
    .category-btn {
        margin-bottom: 8px;
        padding: 6px 12px;
        font-size: 12px;
        flex-grow: 1;
        text-align: center;
    }
    
    .match-day-number {
        font-size: 16px;
    }
    
    .youth-matches th, 
    .youth-matches td {
        padding: 8px;
        font-size: 12px;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .navbar-brand img {
        max-height: 45px;
    }
    
    .carousel-item {
        height: 300px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .hero-buttons .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .sidebar {
        margin-top: 30px;
    }
    
    .top-contact-info,
    .top-social-icons {
        text-align: center;
        justify-content: center;
        margin-bottom: 5px;
    }
    
    .top-social-icons {
        margin-top: 5px;
    }
    
    .header-logo {
        max-height: 50px;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .navbar-brand img {
        max-height: 50px;
    }
    
    .carousel-item {
        height: 400px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .sidebar {
        margin-top: 40px;
    }
    
    .recent-post-img {
        width: 50px;
        height: 50px;
    }
    
    .navbar-dark .navbar-nav .nav-link {
        padding: 12px 15px;
    }
    
    .header-search {
        margin: 10px 0;
    }
    
    .search-form {
        position: static;
        width: 100%;
        display: block !important;
        box-shadow: none;
        padding: 10px 0;
    }
    
    /* Matches section adjustments */
    .section-title {
        font-size: 28px;
    }
    
    .match-tabs-nav {
        flex-wrap: nowrap;
    }
    
    .match-tab-btn {
        padding: 10px 20px;
    }
    
    /* Youth section adjustments */
    .category-row {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .category-btn {
        margin: 0 5px 10px;
        padding: 8px 15px;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar-brand img {
        max-height: 55px;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Matches Section Styles */
.matches-section {
    margin-bottom: 40px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    padding: 30px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-title {
    color: #00547E;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-subtitle {
    color: #666;
    font-size: 18px;
    margin-bottom: 15px;
}

.match-day-badge {
    display: inline-block;
    background-color: #00547E;
    color: white;
    padding: 8px 15px;
    font-size: 16px;
    border-radius: 20px;
    margin-top: 10px;
}

/* Match Tabs Styles */
.match-tabs {
    margin-top: 30px;
}

.match-tabs-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.match-tab-btn {
    background: none;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.match-tab-btn:hover {
    color: #00547E;
}

.match-tab-btn.active {
    color: #00547E;
    font-weight: 600;
}

.match-tab-btn.active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #00547E;
}

.match-tabs-content {
    padding: 0 15px;
}

.match-tab-pane {
    display: none;
}

.match-tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* Matches Table Styles */
.matches-table-wrapper {
    overflow-x: auto;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.matches-table {
    width: 100%;
    border-collapse: collapse;
}

.matches-table thead tr {
    background-color: #00547E;
    color: white;
}

.matches-table th {
    padding: 15px;
    text-align: center;
    font-weight: 600;
}

.matches-table tbody tr {
    background-color: #f8f9fa;
    transition: background-color 0.3s ease;
}

.matches-table tbody tr:hover {
    background-color: #f1f1f1;
}

.matches-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.team-name {
    font-weight: 500;
    color: #333;
}

.match-score {
    font-weight: 700;
    color: #00547E;
}

.match-score .score {
    display: inline-block;
    min-width: 25px;
    text-align: center;
}

.match-date, .match-venue {
    color: #666;
}

/* Youth Section Styles */
.youth-section {
    margin-bottom: 40px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    padding: 30px 0;
}

.results-badge {
    display: inline-block;
    background-color: #00547E;
    color: white;
    padding: 8px 15px;
    font-size: 16px;
    border-radius: 20px;
    margin-top: 15px;
}

.youth-categories {
    margin-top: 30px;
}

.category-filter {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.category-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 15px;
}

.category-btn {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 30px;
    padding: 8px 20px;
    margin: 0 5px 10px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover {
    background-color: #e9ecef;
    color: #00547E;
}

.category-btn.active {
    background-color: #00547E;
    color: white;
    border-color: #00547E;
}

.youth-tabs-content {
    padding: 0 15px;
}

.youth-tab-pane {
    display: none;
}

.youth-tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.match-day-info {
    text-align: center;
    margin-bottom: 20px;
}

.match-day-number {
    font-size: 18px;
    color: #00547E;
    font-weight: 600;
    margin-bottom: 15px;
}

.youth-matches th, .youth-matches td {
    font-size: 14px;
}

/* Mobile improvements for navbar and general spacing */
@media (max-width: 768px) {
    .brand-text {
        display: none;
    }
    .header-logo {
        max-height: 50px;
    }
    /* Ensure header and dropdown overlay hero carousel globally */
    header.main-header { position: relative; z-index: 1100; }
    .navbar .dropdown-menu { z-index: 3000; }
    /* Provide solid styling to dropdown for contrast */
    .navbar .dropdown-menu { background-color: #ffffff; border: 1px solid rgba(0,0,0,0.1); box-shadow: 0 6px 18px rgba(0,0,0,0.15); }
    /* Keep carousel below header */
    .hero-carousel-section { position: relative; z-index: 1; }
    .hero-carousel-section .carousel { z-index: 10; }
    .carousel-control-prev {
        left: 20px;
    }
    .carousel-control-next {
        right: 20px;
    }
    .carousel:hover .carousel-control-prev,
    .carousel:hover .carousel-control-next {
        opacity: 1;
    }
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
    }
    .carousel-control-prev-icon i,
    .carousel-control-next-icon i {
        font-size: 24px;
        color: white;
    }
    /* Hero Overlay */
    .hero-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.7));
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        color: white;
        z-index: 10;
    }
    .hero-title {
        font-size: 48px;
        font-weight: 700;
        margin-bottom: 15px;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }
    .hero-subtitle {
        font-size: 20px;
        margin-bottom: 30px;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    }
    .hero-buttons .btn {
        padding: 12px 30px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        border-radius: 30px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
    }
    .hero-buttons .btn-primary {
        background-color: #ff5722;
        border-color: #ff5722;
    }
    .hero-buttons .btn-primary:hover {
        background-color: #e64a19;
        border-color: #e64a19;
        transform: translateY(-3px);
    }
    .hero-buttons .btn-outline-light:hover {
        background-color: white;
        color: #333;
        transform: translateY(-3px);
    }
    /* Footer Styles */
    .bottom {
        background-color: #0c2340;
        padding: 60px 0 20px;
        color: #fff;
    }
    .footer-widget {
        margin-bottom: 30px;
    }
    .footer-widget h4 {
        color: #fff;
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 20px;
        position: relative;
        padding-bottom: 10px;
    }
    .footer-widget h4:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 50px;
        height: 2px;
        background-color: #ff5722;
    }
    .footer-widget ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .footer-widget ul li {
        margin-bottom: 12px;
        transition: all 0.3s ease;
    }
    .footer-widget ul li a {
        color: #ccc;
        transition: all 0.3s ease;
        display: block;
    }
    .footer-widget ul li a:hover {
        color: #ff5722;
        padding-left: 5px;
    }
    .footer-widget ul li i {
        color: #ff5722;
        margin-right: 8px;
    }
    .footer-widget p {
        color: #ccc;
        line-height: 1.6;
        margin-bottom: 20px;
    }
    .social-icons {
        margin-top: 20px;
        display: flex;
        flex-wrap: wrap;
    }
    .social-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.1);
        color: white;
        margin: 0 8px 8px 0;
        font-size: 18px;
        transition: all 0.3s ease;
    }
    .social-icon:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        background-color: #ff5722;
        color: white;
    }
    .copyright {
        padding-top: 15px;
    }
    .copyright p {
        margin-bottom: 0;
        color: #ccc;
    }
    /* Global Responsive Styles */
    html, body {
        overflow-x: hidden;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Extra Small Devices (phones, less than 576px) */
    @media (max-width: 575.98px) {
        .container {
            padding-left: 15px;
            padding-right: 15px;
        }
        
        h1 {
            font-size: 1.8rem;
        }
        
        h2 {
            font-size: 1.5rem;
        }
        
        h3 {
            font-size: 1.3rem;
        }
        
        .navbar-brand img {
            max-height: 40px;
        }
        
        .carousel-item {
            height: 250px;
        }
        
        .hero-title {
            font-size: 24px;
        }
        
        .hero-subtitle {
            font-size: 14px;
            margin-bottom: 15px;
        }
        
        .hero-buttons .btn {
            padding: 8px 16px;
            font-size: 12px;
        }
        
        .carousel-control-prev,
        .carousel-control-next {
            width: 40px;
            height: 40px;
        }
        
        .post-card {
            margin-bottom: 20px;
        }
        
        .sidebar {
            margin-top: 30px;
        }
        
        .footer-widget {
            text-align: center;
            margin-bottom: 30px;
        }
        
        .footer-widget h4:after {
            left: 50%;
            transform: translateX(-50%);
        }
        
        .social-icons {
            justify-content: center;
        }
        
        .footer-widget ul li a:hover {
            padding-left: 0;
        }
        
        .copyright {
            text-align: center;
        }
        
        .custom-btn {
            font-size: 0.8rem;
            padding: 5px 10px;
            margin-bottom: 5px;
        }
        
        .category-buttons {
            justify-content: center;
        }
        
        .table-responsive {
            font-size: 0.8rem;
        }
        
        .pagination .page-link {
            width: 30px;
            height: 30px;
            font-size: 0.8rem;
        }
        
        /* Match tabs responsive styles */
        .section-title {
            font-size: 24px;
        }
        
        .section-subtitle {
            font-size: 16px;
        }
        
        .match-tabs-nav {
            flex-wrap: wrap;
        }
        
        .match-tab-btn {
            padding: 10px 15px;
            font-size: 14px;
            flex-grow: 1;
            text-align: center;
        }
        
        .matches-table th, 
        .matches-table td {
            padding: 10px 8px;
            font-size: 13px;
        }
        
        /* Youth section responsive styles */
        .category-row {
            flex-wrap: wrap;
        }
        
        .category-btn {
            margin-bottom: 8px;
            padding: 6px 12px;
            font-size: 12px;
            flex-grow: 1;
            text-align: center;
        }
        
        .match-day-number {
            font-size: 16px;
        }
        
        .youth-matches th, 
        .youth-matches td {
            padding: 8px;
            font-size: 12px;
        }
    }
    
    /* Small Devices (landscape phones, 576px and up) */
    @media (min-width: 576px) and (max-width: 767.98px) {
        .navbar-brand img {
            max-height: 45px;
        }
        
        .carousel-item {
            height: 300px;
        }
        
        .hero-title {
            font-size: 28px;
        }
        
        .hero-subtitle {
            font-size: 16px;
            margin-bottom: 20px;
        }
        
        .hero-buttons .btn {
            padding: 10px 20px;
            font-size: 14px;
        }
        
        .sidebar {
            margin-top: 30px;
        }
        
        .top-contact-info,
        .top-social-icons {
            text-align: center;
            justify-content: center;
            margin-bottom: 5px;
        }
        
        .top-social-icons {
            margin-top: 5px;
        }
        
        .header-logo {
            max-height: 50px;
        }
    }
    
    /* Medium Devices (tablets, 768px and up) */
    @media (min-width: 768px) and (max-width: 991.98px) {
        .navbar-brand img {
            max-height: 50px;
        }
        
        .carousel-item {
            height: 400px;
        }
        
        .hero-title {
            font-size: 36px;
        }
        
        .hero-subtitle {
            font-size: 18px;
        }
        
        .sidebar {
            margin-top: 40px;
        }
        
        .recent-post-img {
            width: 50px;
            height: 50px;
        }
        
        .navbar-dark .navbar-nav .nav-link {
            padding: 12px 15px;
        }
        
        .header-search {
            margin: 10px 0;
        }
        
        .search-form {
            position: static;
            width: 100%;
            display: block !important;
            box-shadow: none;
            padding: 10px 0;
        }
        
        /* Matches section adjustments */
        .section-title {
            font-size: 28px;
        }
        
        .match-tabs-nav {
            flex-wrap: nowrap;
        }
        
        .match-tab-btn {
            padding: 10px 20px;
        }
        
        /* Youth section adjustments */
        .category-row {
            flex-wrap: wrap;
            justify-content: center;
        }
        
        .category-btn {
            margin: 0 5px 10px;
            padding: 8px 15px;
        }
    }
    
    /* Large Devices (desktops, 992px and up) */
    @media (min-width: 992px) and (max-width: 1199.98px) {
        .navbar-brand img {
            max-height: 55px;
        }
    }
    
    /* Extra Large Devices (large desktops, 1200px and up) */
    @media (min-width: 1200px) {
        .container {
            max-width: 1140px;
        }
    }
    
    /* Matches Section Styles */
    .matches-section {
        margin-bottom: 40px;
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        overflow: hidden;
        padding: 30px 0;
    }
    
    .section-header {
        text-align: center;
        margin-bottom: 30px;
    }
    
    .section-title {
        color: #00547E;
        font-size: 32px;
        font-weight: 700;
        margin-bottom: 10px;
    }
    
    .section-subtitle {
        color: #666;
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .match-day-badge {
        display: inline-block;
        background-color: #00547E;
        color: white;
        padding: 8px 15px;
        font-size: 16px;
        border-radius: 20px;
        margin-top: 10px;
    }
    
    /* Match Tabs Styles */
    .match-tabs {
        margin-top: 30px;
    }
    
    .match-tabs-nav {
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
        border-bottom: 1px solid #eee;
    }
    
    .match-tab-btn {
        background: none;
        border: none;
        padding: 12px 25px;
        font-size: 16px;
        color: #666;
        cursor: pointer;
        position: relative;
        transition: all 0.3s ease;
    }
    
    .match-tab-btn:hover {
        color: #00547E;
    }
    
    .match-tab-btn.active {
        color: #00547E;
        font-weight: 600;
    }
    
    .match-tab-btn.active:after {
        content: '';
        position: absolute;
        bottom: -1px;
        left: 0;
        width: 100%;
        height: 3px;
        background-color: #00547E;
    }
    
    .match-tabs-content {
        padding: 0 15px;
    }
    
    .match-tab-pane {
        display: none;
    }
    
    .match-tab-pane.active {
        display: block;
        animation: fadeIn 0.5s ease;
    }
    
    /* Matches Table Styles */
    .matches-table-wrapper {
        overflow-x: auto;
        margin-bottom: 30px;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }
    
    .matches-table {
        width: 100%;
        border-collapse: collapse;
    }
    
    .matches-table thead tr {
        background-color: #00547E;
        color: white;
    }
    
    .matches-table th {
        padding: 15px;
        text-align: center;
        font-weight: 600;
    }
    
    .matches-table tbody tr {
        background-color: #f8f9fa;
        transition: background-color 0.3s ease;
    }
    
    .matches-table tbody tr:hover {
        background-color: #f1f1f1;
    }
    
    .matches-table td {
        padding: 15px;
        text-align: center;
        border-bottom: 1px solid #eee;
    }
    
    .team-name {
        font-weight: 500;
        color: #333;
    }
    
    .match-score {
        font-weight: 700;
        color: #00547E;
    }
    
    .match-score .score {
        display: inline-block;
        min-width: 25px;
        text-align: center;
    }
    
    .match-date, .match-venue {
        color: #666;
    }
    
    /* Youth Section Styles */
    .youth-section {
        margin-bottom: 40px;
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        overflow: hidden;
        padding: 30px 0;
    }
    
    .results-badge {
        display: inline-block;
        background-color: #00547E;
        color: white;
        padding: 8px 15px;
        font-size: 16px;
        border-radius: 20px;
        margin-top: 15px;
    }
    
    .youth-categories {
        margin-top: 30px;
    }
    
    .category-filter {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 30px;
    }
    
    .category-row {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 15px;
    }
    
    .category-btn {
        background-color: #f8f9fa;
        border: 1px solid #ddd;
        border-radius: 30px;
        padding: 8px 20px;
        margin: 0 5px 10px;
        font-size: 14px;
        color: #555;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .category-btn:hover {
        background-color: #e9ecef;
        color: #00547E;
    }
    
    .category-btn.active {
        background-color: #00547E;
        color: white;
        border-color: #00547E;
    }
    
    .youth-tabs-content {
        padding: 0 15px;
    }
    
    .youth-tab-pane {
        display: none;
    }
    
    .youth-tab-pane.active {
        display: block;
        animation: fadeIn 0.5s ease;
    }
    
    .match-day-info {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .match-day-number {
        font-size: 18px;
        color: #00547E;
        font-weight: 600;
        margin-bottom: 15px;
    }
    
    .youth-matches th, .youth-matches td {
        font-size: 14px;
    }
    
    /* Mobile improvements for navbar and general spacing */
    @media (max-width: 768px) {
        .brand-text {
            display: none;
        }
        .header-logo {
            max-height: 50px;
        }
        /* Ensure navbar is visible and links are readable */
        .navbar-dark .navbar-nav .nav-link { padding: 12px 15px; font-size: 14px; }
    }
    @media (max-width: 576px) {
        /* Make collapsed menu full width and with background */
        .navbar-collapse { background: #ffffff; }
        .navbar-dark .navbar-nav .nav-link { padding: 10px 15px; font-size: 14px; }
    }
    @media (max-width: 576px) {
      .navbar-brand { min-width: auto; margin-right: 0 !important; }
      .navbar-dark .navbar-nav .nav-link { padding: 12px 10px; font-size: 13px; }
      .container { padding-left: 12px; padding-right: 12px; }
      .table { font-size: 14px; }
      .discipline-table .text-center { text-align: left !important; }
    }
    @media (max-width: 991.98px) {
      /* Hide the regular nav list but keep toggler and mobile dropdown visible */
      header .navbar-nav { display: none; }
      /* Ensure dropdown appears above any sidebars/overlays and has good contrast */
      header.main-header { position: relative; z-index: 1100; }
      .navbar .dropdown-menu { z-index: 2000; }
      #mobileMenuDropdown { background-color: #28a745; color: #fff !important; border-radius: 4px; padding: 6px 12px; border: 1px solid rgba(0,0,0,0.1); }
    }
    @media (max-width: 576px) {
        /* Make collapsed menu full width and with background */
        .navbar-collapse { background: #ffffff; }
        .navbar-dark .navbar-nav .nav-link { padding: 10px 15px; font-size: 14px; }
    }
    @media (max-width: 576px) {
      .navbar-brand { min-width: auto; margin-right: 0 !important; }
      .navbar-dark .navbar-nav .nav-link { padding: 12px 10px; font-size: 13px; }
      .container { padding-left: 12px; padding-right: 12px; }
      .table { font-size: 14px; }
      .discipline-table .text-center { text-align: left !important; }
    }
    @media (max-width: 991.98px) {
      /* Hide the regular nav list but keep toggler and mobile dropdown visible */
      header .navbar-nav { display: none; }
      /* Ensure the mobile dropdown is styled properly */
      #mobileMenuDropdown { color: #fff; font-weight: 600; }
      .dropdown-menu { min-width: 220px; }
      .dropdown-menu { background-color: #ffffff; border: 1px solid rgba(0,0,0,0.1); box-shadow: 0 6px 18px rgba(0,0,0,0.15); }
      .dropdown-item { color: #333; }
      .dropdown-item:hover { background-color: #f8f9fa; color: #28a745; }
    }