/* General Styles */
header.gradient-header {
        background: linear-gradient(90deg, #0d6efd, #673AB7);
}
    
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

a {
    text-decoration: none;
    /*transition: all 0.3s ease;*/
    color: #000;
}

a:hover {
    color: #0d6efd;
}

/* 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 Container */
    .breadcrumb-arrow-container {
      max-width: 1200px;
      margin: 0 auto;
    }

    /* Breadcrumb Arrow Styles */
    .breadcrumb-arrow {
      display: flex;
      list-style: none;
      padding: 0;
      margin: 0;
      /*box-shadow: 0 2px 5px rgba(0,0,0,0.1);*/
    }

    .breadcrumb-arrow .breadcrumb-arrow-item {
      position: relative;
      display: flex;
    }

    /* Default Breadcrumb Item */
    .breadcrumb-arrow .breadcrumb-arrow-item a,
    .breadcrumb-arrow .breadcrumb-arrow-item.active {
      display: block;
      padding: 5px 30px 10px 30px;
      color: #fff;
      text-decoration: none;
      white-space: nowrap;
      transition: all 0.3s ease;
    }

    /* Home Icon - Transparent, no border */
    .breadcrumb-arrow .breadcrumb-arrow-item:first-child a {
      background-color: transparent;
      color: #0f6dfb;
      padding-left: 25px;
      clip-path: none;
      border: none;
    }

    /* Normal Items (Lighter) */
    .breadcrumb-arrow .breadcrumb-arrow-item:not(:first-child):not(.active) a {
      background-color: #0f6dfb;
      clip-path: polygon(0% 0%, calc(100% - 15px) 0%, 100% 50%, calc(100% - 15px) 100%, 0% 100%, 15px 50%); /* Right Arrow Style */
      margin-left: -14px; /* Overlap for seamless arrows */
    }

    /* Active Item */
    .breadcrumb-arrow .breadcrumb-arrow-item.active {
      background-color: #6078ff;
      border-radius: 0 4px 4px 0;
      clip-path: polygon(0% 0%, calc(100% - 15px) 0%, 100% 50%, calc(100% - 15px) 100%, 0% 100%, 15px 50%); /* Right Arrow Style */
      /*clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%, 15px 50%);*/  /* Left Arrow Style */
      margin-left: -14px;
    }

    /* Hover Effects */
    .breadcrumb-arrow .breadcrumb-arrow-item:first-child a:hover {
      background-color: transparent;
      color: #673bb8;
    }
    
    .breadcrumb-arrow .breadcrumb-arrow-item:not(.active):not(:first-child) a:hover {
      background-color: #673bb8;
    }

    /* Icon Styling */
    .breadcrumb-arrow .breadcrumb-arrow-item a i {
      margin-right: 5px;
    }
/*========== Breadcrumb ===========*/


/* 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: #0d6efd;
    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: #0d6efd;
}

#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: #0d6efd;
    border-color: #0d6efd;
}

.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: #0d6efd; /* red */
    }
    #country-list .list-group-item.active,
    #country-list .list-group-item:hover {
        background-color: #0d6efd !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;
    }
}