div.news-list {
    display: block;
}

.news-item {
    /*display:flex;
    flex-direction: column;*/
    width: 30%;
    margin: 22px 13px;
    padding: 20px;
    box-sizing: border-box;
    border: 1px solid rgb(223, 223, 223);
    border-radius: 4px 4px 0px 0px;
    background: rgb(255, 255, 255);
    box-shadow: 0px 50px 30px -30px rgba(0, 0, 0, 0.05), 0px 0px 30px rgba(0, 0, 0, 0.05);
}

.news-item .head-course {
    margin-bottom: 10px;
}

.news-item .link-button {
    text-align: center;
    padding: 6px 12px 6px 12px;
    box-sizing: border-box;
    border: 1px solid rgb(0, 123, 255);
    border-radius: 4px;
    background: rgb(24, 41, 104);
    color: #fff;
}

@media (max-width: 767px) {
    .news-item {
        width: 100%;
    }
}

/* ===== Guest Learning (gl-*) modern styles (no Bootstrap) ===== */
:root {
    --gl-primary: #182968; /* основной синий */
    --gl-accent: #00d1ff; /* бирюза для акцентов */
    --gl-ink: #0b1637; /* тёмный текст */
    --gl-muted: #6b7190; /* вторичный текст */
    --gl-bg: #f3f6ff; /* светлый фон */
    --gl-radius: 1rem; /* скругления */
}

.gl-wrap {
    color: var(--gl-ink);
}

/* Filters */
.gl-filters {
    position: relative;
    margin: 0 0 16px;
}

.gl-filter-card {
    background: #fff;
    border-radius: var(--gl-radius);
    box-shadow: 0 10px 30px rgba(24, 34, 78, .10);
    border: 1px solid rgba(33, 51, 160, .06);
    padding: 16px;
}

@media (min-width: 768px) {
    .gl-filter-card {
        padding: 20px;
    }
}

.gl-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
}

.gl-col {
    flex: 1 1 100%;
    min-width: 240px;
}

@media (min-width: 992px) {
    .gl-col-lg {
        flex: 1 1 40%;
    }

    .gl-col-md {
        flex: 1 1 35%;
    }

    .gl-col-sm {
        flex: 1 1 25%;
    }
}

.gl-label {
    display: block;
    font-size: .9rem;
    color: var(--gl-muted);
    margin-bottom: 6px;
}

.gl-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid rgba(60, 92, 255, .25);
    border-radius: 10px;
    padding: 0 10px;
    height: 40px;
    background: #fff;
}

.gl-input-icon {
    opacity: .6;
    margin-right: 6px;
}

.gl-input {
    border: 0;
    outline: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    color: var(--gl-ink);
    font-size: 1rem;
}

.gl-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gl-tag-btn {
    border: 1px solid rgba(60, 92, 255, .25);
    background: #fff;
    color: var(--gl-ink);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: .9rem;
    cursor: pointer;
}

.gl-tag-btn.active {
    background: var(--gl-primary);
    color: #fff;
    border-color: var(--gl-primary);
}

.gl-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.gl-switch {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gl-switch-input {
    width: 16px;
    height: 16px;
}

.gl-switch-text {
    font-size: .95rem;
}

.gl-sort .gl-btn {
    margin-right: 6px;
}

.gl-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

/* Buttons */
.gl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    background: #eee;
    color: #111;
    text-decoration: none;
    transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
}

.gl-btn-sm {
    padding: 6px 10px;
    font-size: .9rem;
}

.gl-btn-outline {
    background: #fff;
    border-color: rgba(60, 92, 255, .35);
    color: var(--gl-ink);
}

.gl-btn-outline.active {
    background: rgba(60, 92, 255, .1);
    border-color: var(--gl-primary);
    color: var(--gl-ink);
}

.gl-btn-primary {
    background: var(--gl-primary);
    color: #fff;
    border-color: var(--gl-primary);
}

.gl-btn-primary:hover {
    filter: brightness(.95);
}

/* Results */
.gl-results {
    margin-top: 16px;
}

.gl-grid {
    display: grid;
    grid-template-columns:1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .gl-grid {
        grid-template-columns:repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .gl-grid {
        grid-template-columns:repeat(3, 1fr);
    }
}

.gl-card {
    border: 1px solid rgba(33, 51, 160, .08);
    border-radius: var(--gl-radius);
    background: #fff;
    box-shadow: 0 10px 30px rgba(24, 34, 78, .06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.gl-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    flex: 1 1 auto;
}

.gl-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.gl-card-head {
    display: flex;
    flex-direction: column;
}

.gl-card-title {
    margin: 0 0 2px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gl-ink);
}

.gl-card-date {
    font-size: .9rem;
    color: var(--gl-muted);
}

.gl-top-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(60, 92, 255, .25);
    border-radius: 50%;
    background: #fff;
    color: var(--gl-ink);
    text-decoration: none;
}

.gl-card-desc {
    margin: 10px 0 12px;
    color: var(--gl-muted);
}

.gl-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.gl-badge {
    background: rgba(60, 92, 255, .10);
    color: #2b3fb8;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: .85rem;
}

.gl-file-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}

.gl-file-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px dashed rgba(33, 51, 160, .25);
    padding: 8px 10px;
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    color: var(--gl-ink);
}

.gl-file-chip:hover {
    background: #f9fbff;
}

.gl-file-icon {
    opacity: .8;
    font-size: .8rem;
    flex: 0 0 auto;
    min-width: 2.2em;
    text-align: center;
    border: 1px solid rgba(60, 92, 255, .25);
    border-radius: 999px;
    padding: 2px 6px;
}

.gl-file-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gl-actions {
    margin-top: auto;
    display: flex;
    gap: 8px;
}

.gl-btn-action {
    height: 40px;
}

.gl-empty {
    border: 1px dashed rgba(33, 51, 160, .25);
    border-radius: var(--gl-radius);
    background: #fff;
    text-align: center;
    padding: 24px;
    color: var(--gl-muted);
}

.gl-empty-icon {
    font-size: 40px;
    margin-bottom: 8px;
}

.d-none {
    display: none !important;
}

/* === Hero section for guest learning === */
.gl-hero {
    position: relative;
    background: linear-gradient(180deg, #1b2565 0%, #2b3fb8 60%, #3b5cff 100%);
    color: #fff;
    border-radius: 35px;
    padding: 56px 24px 48px;
    overflow: hidden;
}

.gl-hero:before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(1200px 600px at -10% -10%, rgba(0, 209, 255, .25), transparent 60%);
}

@media (min-width: 768px) {
    .gl-hero {
        padding: 70px 48px 56px;
        border-radius: 35px;
    }
}

.gl-hero-inner {
    position: relative;
    max-width: 1040px;
}

.gl-hero-title {
    margin: 0 0 16px;
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 600;
    color: #fefefe;
}

@media (min-width: 768px) {
    .gl-hero-title {
        font-size: 1.4rem;
        color: #fefefe;
    }
}

.gl-hero-sub {
    margin: 0;
    font-size: 1.05rem;
    max-width: 760px;
    line-height: 1.45;
    opacity: .92;
}

.gl-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: .35;
}

.gl-hero * {
    position: relative;
    z-index: 1;
}

/* Overlap filters onto hero (reduced, like temp.html) */
.gl-filters {
    margin: 0 0 16px;
    z-index: 2;
    position: relative;
    top: -70px;
}

@media (min-width: 992px) {
    .gl-filters {
        top: -70px;
    }
}

@media (max-width: 767px) {
    .gl-filters {
        top: -24px;
    }
}

/* Elevate filter card more for overlap look */
.gl-filter-card {
    box-shadow: 0 12px 40px rgba(10, 22, 55, .25);
}

/* Smooth entrance (optional) */
.gl-hero, .gl-filter-card {
    animation: glFadeIn .6s ease;
}

@keyframes glFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
