.premium-banner-bordered-box {
    border: 2px solid #40a4aa; /* Border color */
    padding: 20px;
    position: relative;
}

.premium-banner-label {
    position: absolute;
    top: -12px; /* Position above the border */
    left: 10px;
    background-color: white; /* To create the effect of cutting into the border */
    padding: 0 10px;
    font-weight: bold;
    color: #40a4aa; /* Text color */
    display: flex;
    align-items: center;
}

.premium-banner-label .icon {
    margin-left: 5px; /* Space between text and icon */
}

.premium-banner-crown-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    background: url("/static/image/crown.fbe2b1019783.png") no-repeat center center;
    background-size: contain; /* Make sure the icon fits properly */
}

.gram-text, .gram-text-v2 {
    border-radius: 23px !important;
    padding-top: 1px !important;
    padding-right: 5px !important;
    padding-left: 5px !important;
    padding-bottom: 3px !important;
}

/* ============ Course Module Tags ============ */
.course-module-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.course-module-tag-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.course-module-tag:hover {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.course-module-tag--1 {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}
.course-module-tag--1:hover {
    background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 100%);
    color: #1b5e20;
}

.course-module-tag--2 {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565c0;
    border: 1px solid #90caf9;
}
.course-module-tag--2:hover {
    background: linear-gradient(135deg, #bbdefb 0%, #90caf9 100%);
    color: #0d47a1;
}

.course-module-tag--3 {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #e65100;
    border: 1px solid #ffcc80;
}
.course-module-tag--3:hover {
    background: linear-gradient(135deg, #ffe0b2 0%, #ffcc80 100%);
    color: #bf360c;
}

.course-module-tag--4 {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%);
    color: #c2185b;
    border: 1px solid #f48fb1;
}
.course-module-tag--4:hover {
    background: linear-gradient(135deg, #f8bbd9 0%, #f48fb1 100%);
    color: #880e4f;
}

/* === Новый заголовок упражнений === */
.ex-header-new {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    flex-wrap: wrap;
}
.ex-header-new .ex-header-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: 1px solid #ccc;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}
.ex-header-new .ex-header-icon img {
    max-width: 100%;
    max-height: 100%;
}
.ex-header-new .ex-header-title-ru {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.2;
}
.ex-header-new .ex-header-sep {
    color: #ccc;
    font-size: 14px;
}
.ex-header-new .ex-header-title-de {
    font-size: 15px;
    font-weight: 500;
    color: #40a4aa;
    line-height: 1.2;
}
.ex-header-new .ex-header-info {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #138496;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    position: relative;
}
.ex-header-new .ex-header-info:hover .ex-header-tooltip {
    display: block;
}
.ex-header-new .ex-header-tooltip {
    display: none;
    position: absolute;
    top: 100%;
    left: -100px;
    margin-top: 6px;
    width: 240px;
    padding: 8px 10px;
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 400;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.ex-header-new .ex-header-pill {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 12px;
    line-height: 1.4;
    white-space: nowrap;
}
.ex-header-pill--progress {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}
.ex-header-pill--done {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}
.ex-header-pill--fail {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}