/* Redesigned Premium Courses Section with Tabs */
.courses-section {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.courses-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(245, 124, 0, 0.05) 0%, transparent 40%),
        radial-gradient(circle at bottom left, rgba(11, 60, 93, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.courses-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.courses-header i.bg-icon {
    position: absolute;
    font-size: 150px;
    opacity: 0.03;
    z-index: 0;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
}

/* Category Tabs Styling - Professional Segment Control */
.tabs-wrapper {
    background: #f1f5f9;
    padding: 8px;
    border-radius: 0 !important;
    display: inline-block;
    margin: 0 auto;
    border: 1px solid #e2e8f0;
    margin-bottom: 16px;
}

.course-tabs {
    border: none;
    justify-content: center;
    gap: 5px;
    /* margin-bottom: 16px !important; */
}

.course-tabs .nav-link {
    border: none;
    background: transparent;
    color: #64748b;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
}

.course-tabs .nav-link i {
    font-size: 16px;
    transition: transform 0.3s;
}

.course-tabs .nav-link:hover {
    color: var(--primary-color);
}

.course-tabs .nav-link:hover i {
    transform: translateY(-2px);
}

.course-tabs .nav-link.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(11, 60, 93, 0.1);
    border-color: transparent;
}

.course-tabs .nav-link.active i {
    color: var(--accent-color);
}

.category-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    margin: 60px 0 30px 0;
    padding-left: 20px;
    border-left: 5px solid var(--accent-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Course Card Design */
.course-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.course-card-mini {
    background: white;
    border-radius: 16px;
    padding: 25px;
    height: 100%;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.course-card-link:hover .course-card-mini {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(11, 60, 93, 0.1);
    border-color: var(--accent-color);
}

.course-card-mini::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.course-card-mini:hover::before {
    transform: scaleX(1);
}

/* Badge Tags */
.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    color: white;
    z-index: 2;
}

.badge-popular {
    background: #E53935;
}

.badge-demand {
    background: #2E7D32;
}

.badge-growth {
    background: #1565C0;
}

.course-img-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    background: #f8fafc;
}

.course-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.course-short-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Study Abroad Visual Cards */
.country-card-visual {
    position: relative;
    height: 250px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.country-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.country-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.country-card-visual:hover .country-bg img {
    transform: scale(1.1);
}

.country-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
    z-index: 2;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: background 0.3s;
}

.country-card-visual:hover .country-overlay {
    background: linear-gradient(to top, rgba(11, 60, 93, 0.95) 0%, rgba(11, 60, 93, 0.4) 100%);
}

.country-flag-box {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 28px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    z-index: 3;
}

.country-flag-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.country-name-visual {
    color: white;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 5px;
}

.country-tagline {
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.explore-label {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s;
}

.country-card-visual:hover .explore-label {
    transform: translateY(0);
    opacity: 1;
}

/* Small Trust Bar */
.mini-trust-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 60px 0;
    padding: 20px;
    background: #f8fafc;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
}

.trust-item-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
}

.trust-item-mini i {
    color: var(--accent-color);
    font-size: 18px;
}

/* Main CTA Button */
.btn-cta-courses {
    background: linear-gradient(45deg, var(--primary-color), #1a4d71);
    color: white !important;
    padding: 18px 45px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 16px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 15px 30px rgba(11, 60, 93, 0.2);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.btn-cta-courses:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(11, 60, 93, 0.3);
    background: var(--accent-color);
}

@media (max-width: 991px) {
    .mini-trust-bar {
        flex-direction: column;
        gap: 15px;
        border-radius: 20px;
        align-items: center;
    }
}