/* General Styles */
header {
    background: #dc3545;
}
    
body {
    font-family: arial;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

a {
    text-decoration: none;
    /*transition: all 0.3s ease;*/
    color: #000;
}

a:hover {
    color: #dc3545;
}

/* Header Styles */
header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: absolute;
    width: 100%;
    z-index: 1000;
}

.mobile-menu.show {
    display: block;
}

/* Breadcrumb */
.breadcrumb-wrap {
    background-color: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
}

.breadcrumb {
    margin-bottom: 0;
    padding: 0;
    background-color: transparent;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    padding: 0 0.5rem;
}

.breadcrumb-item a {
    color: #000;
}
.breadcrumb-item a:hover {
    color: #dc3545;
}


/* Search Box Styles - HOME */
.search-container {
    max-width: 600px;
    margin: 0 auto 2rem;
}

#countrySearch {
    padding: 12px 20px;
    border-radius: 25px;
    border: 2px solid #dee2e6;
}

#countrySearch:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

#searchResults {
    max-height: 400px;
    overflow-y: auto;
    margin-top: 5px;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

#searchResults .dropdown-item {
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid #f1f1f1;
    display: flex;
    align-items: center;
}

#searchResults .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #dc3545;
}

#searchResults .dropdown-item i {
    width: 20px;
    text-align: center;
    margin-right: 10px;
    color: #6c757d;
}


/* Country Cards */
.country-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.country-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Video Cards */
.video-card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.video-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Sidebar */
.sidebar-card {
    background-color: white;
    border-radius: 0.25rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.sidebar-card .card-header {
    background-color: #f8f9fa;
    font-weight: 600;
}

.list-group-item.active {
    background-color: #dc3545;
    border-color: #dc3545;
}

.list-group-item.active a {
    color:  #fff !important;
}

    #country-list .list-group-item {
        color: black;
    }
    #country-list .list-group-item a {
        color: black;
    }
    #country-list .list-group-item i {
        color: #dc3545; /* red */
    }
    #country-list .list-group-item.active,
    #country-list .list-group-item:hover {
        background-color: #dc3545 !important;
        color: #fff !important;
    }
    #country-list .list-group-item.active a,
    #country-list .list-group-item:hover a {
        color: #fff !important;
    }
    #country-list .list-group-item.active i,
    #country-list .list-group-item:hover i {
        color: #fff !important;
    }

/* Search Box */
.search-box {
    position: relative;
}

.search-box .form-control {
    padding-left: 2.5rem;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

/* Category Links */
.category-links {
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .video-card .row > .col-md-4, 
    .video-card .row > .col-md-8 {
        width: 100%;
    }
    
    .video-card .row > .col-md-4 {
        margin-bottom: 1rem;
    }
    
    .country-card {
        margin-bottom: 1rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}



/* Mobile Sidebar Toggle */
#mobileSidebar {
    transition: all 0.3s ease;
}

/* Search Box Adjustments */
.search-box .search-icon {
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Mobile-specific styles */
@media (max-width: 767.98px) {
    #mobileSidebar.collapse:not(.show) {
        display: none;
    }
    
    #mobileSidebar.collapse.show {
        display: block;
        /*position: absolute;*/
        z-index: 1000;
        width: 100%;
        background: white;
        padding: 15px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    #country-list {
        max-height: 60vh;
        overflow-y: auto;
    }
}