﻿body {
    font-family: Jost;
}

.image-wrapper {
    border-radius: 16px;
}

.circle-image {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    object-fit: cover;
    overflow: hidden;
}

.card-no-elevation {
    background: linear-gradient(145deg, #e3e3e3, #f9f9f9);
    color: #1a1a1a;
    border-radius: 16px;
    padding: 2rem;
    width: 300px;
    text-align: center;
}

.row {
    display: flex;
    flex-direction: row;
    width: fit-content;
    margin: auto;
}

.row-not-centered {
    display: flex;
    flex-direction: row;
}

.column {
    display: flex;
    flex-direction: column;
    width: fit-content;
    margin: auto;
}

.column-not-centered {
    display: flex;
    flex-direction: column;
}

.center_align {
    width: fit-content;
    display: block;
    margin: auto;
    justify-content: center;
    text-align: center;
}

.center_vertically {
    height: fit-content;
    display: block;
    margin-top: auto;
    margin-bottom: auto;
}

.divider {
    margin: 0 5px;
    color: black;
    opacity: 0.9;
    background-color: black;
}

.vertical-divider {
    width: 1px;
    color: black;
    opacity: 0.9;
    background-color: black;
    margin: 0 15px;
}

.notification-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: red;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.article_line {
    background-color: #6592e6;
    height: 2px;
    margin: 0 auto;
}

a {
    text-decoration: none;
}

.pages-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 60px;
    padding-left:35px;
    padding-right:35px;
    padding-bottom: 30px;
    color: white;
}

.mozaic_bg {
    padding-top: 2rem;
    padding-bottom: 4rem;
    background-image: url("../../../assets/images/background3.webp");
}

.lb_back_sizes {
    width:30px;
    height:30px;
}

.mozaic_bg_dark {
    padding-top: 2rem;
    padding-bottom: 4rem;
    background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url("../../../assets/images/background3.webp");
    background-size: cover;
    background-position: center;
}

.settings-container {
    margin-top: 10px;
    max-width: 800px;
    margin-right: auto;
    margin-left: auto;
    padding: 30px;
    border-radius: 10px;
}

.witdh-match-parent {
    width:100%;
}

.height-match-parent {
    height: 100%;
}

/* CARDS */

.card {
    background: linear-gradient(145deg, #e3e3e3, #f9f9f9);
    color: #1a1a1a;
    border-radius: 16px;
    padding: 2rem;
    width: 300px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
}

.card-orange {
    background: linear-gradient(135deg, #f7971e, #ffd200);
}

.card-blue {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.user_card {
    background-color: white;
    padding-left: 0px;
    border-radius: 20px;
    padding: 10px;
    display: block;
    margin: auto;
    box-shadow: 1px 2px 1px rgba(0,0,0,0.5);
}

.gradient-green {
    background: #8ba842;
    background: linear-gradient(126deg,rgba(139, 168, 66, 1) 0%, rgba(66, 168, 93, 1) 100%);
}

.postcard {
    width: 70%;
    background-color: white;
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    margin: auto auto 30px auto;
}

.chevron {
    cursor: pointer;
    font-size: 18px;
    transition: transform 0.3s ease;
}

    .chevron.open {
        transform: rotate(180deg);
    }

.playlist-card {
    width: 70%;
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    margin: auto auto 30px auto;
    background-image: url("../../../assets/images/background3.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

    .playlist-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: 1;
    }
    /* Le contenu doit passer au-dessus de l’overlay */

    .playlist-card > * {
        position: relative;
        z-index: 2;
    }

/* ARTICLE CARD */

.articles-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding: 0px 20px
}

.article-card {
    flex: 1 1 calc(50% - 20px);
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

    .article-card img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        object-position: center;
    }

    .article-card .article-content {
        padding: 15px;
    }

@media (max-width: 768px) {
    .article-card {
        flex: 1 1 100%;
    }
}

/* CHANNELS CARD */

.square-container {
    position: relative;
    width: 250px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

    .square-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .4s ease;
    }

    .square-container .overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.4);
        opacity: 0;
        transition: opacity .4s ease;
    }

    .square-container .title {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: white;
        font-weight: bold;
        font-size: 1.4rem;
        opacity: 0;
        transition: opacity .4s ease;
        text-align: center;
        padding: 0 10px;
    }

    .square-container:hover img {
        transform: scale(1.1);
    }

    .square-container .overlay {
        opacity: 1;
    }

    .square-container .title {
        opacity: 1;
    }


.bottom-left-element {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 10;
    padding: 6px 12px;
    box-sizing: border-box;
}


/* BUTTONS */

.btn {
    width: fit-content;
    padding-right: 15px;
    padding-left: 15px;
    padding: 12px;
    background-color: #0078d4;
    border: none;
    color: #fff;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    margin-top: 10px;
}

    .btn:hover {
        background-color: #005fa3;
    }

.btn-google {
    background-color: #db4437;
    margin-top: 10px;
}

    .btn-google:hover {
        background-color: #b7372b;
    }

.cta-btn {
    background: #00c3ff;
    color: white;
    padding: 0.9rem 2rem;
    font-size: 1.1rem;
    border-radius: 10px;
    border: none;
    margin-top: 2rem;
    cursor: pointer;
    text-align: center;
    transition: background 0.3s ease;
}

    .cta-btn:hover {
        background: #00a3d6;
        color: white;
    }

.btn-red {
    background-color: #db4437;
    margin-top: 10px;
}

.btn-red:hover {
    background-color: #b7372b;
}

.btn-green {
    background-color: #28a745;
}

.play-btn {
    width: 28px;
    height: 28px;
    background: #0078d7;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

    .play-btn:hover {
        background: #005fa3;
    }

    .play-btn::before {
        content: "";
        width: 0;
        height: 0;
        border-left: 10px solid white;
        border-top: 6px solid transparent;
        border-bottom: 6px solid transparent;
        margin-left: 2px;
    }

/* SUCCESS ERROR */

.success-message {
    background-color: #70c770;
    color: white;
    width:80%;
    display:block;
    padding: 0.8rem 1.2rem;
    font-size: 0.95rem;
    margin: auto;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.error-message {
    background-color: #ff9966;
    color: white;
    padding: 0.8rem 1.2rem;
    width: 80%;
    display: block;
    font-size: 0.95rem;
    margin: auto;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}


/* TEXTBOX */

.modern-textbox {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    font-family: 'Segoe UI', sans-serif;
    background-color: #ffffff;
    color: #2d2d2d;
    border: 1px solid #d0d4d9;
    border-radius: 8px;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

    .modern-textbox:focus {
        border-color: #1877f2;
        box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.2);
    }

.search-box {
    background: url('/assets/images/search.svg') no-repeat 10px center;
    background-size: 16px 16px;
    padding-left: 35px;
    height: 35px;
    border-radius: 6px;
    background-color: white;
}

/* DROP DOWN */

.modern-select {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    font-family: 'Segoe UI', sans-serif;
    background-color: #ffffff;
    color: #2d2d2d;
    border: 1px solid #d0d4d9;
    border-radius: 8px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23666' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    transition: all 0.2s ease;
}

    .modern-select:focus {
        border-color: #1877f2;
        box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.2);
        outline: none;
    }

.flag-dropdown {
    width: 260px;
    padding: 6px;
    font-size: 14px;
}

.flag-option {
    padding-left: 28px;
    background-repeat: no-repeat;
    background-position: 4px center;
    background-size: 20px 14px;
}

    /* CHECK BOX WITH CARD*/

     .checkbox-container {
            display: flex;
            flex-direction: column;
            gap: 12px;
            width: 100%;
            max-width: 350px;
        }

        .checkbox-card {
            padding: 12px 16px;
            border: 1px solid #0A1A2F;
            border-radius: 8px;
            display: flex;
            min-width: 80%;
            align-items: center;
        }

        .checkbox-text input[type="checkbox"] {
            margin-right: 10px;
        }

        .chk:focus-within {
            transform: scale(1.02);
            border: 2px solid #4A90E2;
            border-radius: 6px;
        }

        @media (max-width: 600px) {
            .checkbox-card {
                padding: 16px;
            }
        }

        .checkbox-card.danger-zone {
            border: 1px solid #D9534F;
            background-color: #FFF5F5;
        }

            .checkbox-card.danger-zone:focus-within {
                border: 2px solid #C9302C;
                border-radius: 6px;
                transform: scale(1.02);
            }

            .checkbox-card.danger-zone input[type="checkbox"] {
                accent-color: #D9534F;
            }

        .checkbox-card.blue {
            border: 1px solid #4A90E2;
            background-color: #F0F6FF;
        }

            .checkbox-card.blue:focus-within {
                border: 2px solid #357ABD;
                border-radius: 6px;
                transform: scale(1.02);
            }

            .checkbox-card.blue input[type="checkbox"] {
                accent-color: #4A90E2;
            }


/* DIALOG BOX */

.dialog-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 420px;
    max-width: 90%;
    max-height: 85vh;
    overflow-x: hidden;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.18);
    animation: popup-appear 0.25s ease-out;
    font-family: "Segoe UI", Roboto, sans-serif;
}

.dialog-box-scrollable-content {
    overflow-y: auto;
}

.dialog-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, #4c6ef5, #7950f2);
    color: white;
    font-size: 18px;
    font-weight: 600;
}

.dialog-content {
    padding: 20px;
    color: #333;
    font-size: 15px;
    line-height: 1.5;
}

.dialog-footer {
    padding: 12px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #f8f9fa;
}

.dialog-btn {
    padding: 10px 18px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.dialog-btn-primary {
    background: #4c6ef5;
    color: white;
}

    .dialog-btn-primary:hover {
        background: #3b5bdb;
    }

.dialog-btn-secondary {
    background: #e9ecef;
    color: #333;
}

    .dialog-btn-secondary:hover {
        background: #dee2e6;
    }

@keyframes popup-appear {
    from {
        transform: scale(0.85);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .dialog-box {
        width: 95%;
        border-radius: 14px;
    }

    .dialog-header {
        font-size: 16px;
        padding: 14px;
    }

    .dialog-content {
        font-size: 14px;
        padding: 16px;
    }

    .dialog-footer {
        padding: 10px 16px;
    }

    .dialog-btn {
        padding: 8px 14px;
        font-size: 14px;
    }
}

/* BG OVERLAY */

.overlay_black {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.7);
}

.blurred {
    backdrop-filter: blur(4px);
}

/* COOKIES */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    color: #333;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    border-top: 1px solid #ddd;
}

    .cookie-banner a {
        color: #0077cc;
        text-decoration: underline;
        margin-left: 0.3rem;
    }

.cookie-actions {
    display: flex;
    gap: 0.5rem;
}


.cookies-btns {
    background: #f2f2f2;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cookie-btn {
    background: #0077ff;
    color: white;
}

    .cookie-btn:hover {
        opacity: 0.9;
    }

    /* PAGINATION */

.pagination-simple {
    display: inline-block;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #f9f9f9;
    font-family: Arial, sans-serif;
    font-size: 14px;
    max-width: 100%;
}

.pagination-top,
.pagination-bottom {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.pagination-bottom {
    margin-top: 5px;
}

.arrow-btn {
    padding: 4px 8px;
    font-size: 16px;
    cursor: pointer;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
}

    .arrow-btn:hover {
        background: #eaeaea;
    }

.page-input {
    width: 60px;
    padding: 4px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.search-btn {
    padding: 4px 10px;
    background-color: #007bff;
    color: #fff;
    border: 1px solid #007bff;
    border-radius: 4px;
    cursor: pointer;
}

    .search-btn:hover {
        background-color: #0056b3;
    }

@media (max-width: 480px) {
    .pagination-top,
    .pagination-bottom {
        flex-direction: column;
        align-items: center;
        gap: 4px;
        margin-bottom: 8px;
    }

    .page-input {
        width: 80px;
    }
}

/* INFO */

.infobox {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    border-radius: 12px;
    background: #ead9ff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    max-width: 500px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .infobox:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    }

    .infobox .icon {
        font-size: 28px;
        line-height: 1;
    }

    .infobox .content h3 {
        margin: 0 0 6px;
        font-size: 18px;
        font-weight: 600;
        color: #111827;
    }

    .infobox .content p {
        margin: 0;
        color: #4b5563;
        font-size: 15px;
        line-height: 1.5;
    }


.info-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 720px;
    margin: 1rem auto;
    padding: 12px 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: 1px solid rgba(255,255,255,0.04);
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
    color: #e8f6ff;
    font-family: 'Segoe UI', sans-serif;
}

.info-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.info-icon {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    padding: 3px;
    background: rgba(0,195,255,0.08);
}

.info-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.info-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.info-sub {
    font-size: 0.92rem;
    color: rgba(232,246,255,0.85);
}

.info-actions {
    display: flex;
    gap: 10px;
}

.cta-btn.small {
    background: #00c3ff;
    color: white;
    padding: 0.35rem 1rem;
    font-size: 0.95rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: auto 0;
}

    .cta-btn.small:hover {
        background: #00a3d6;
    }

.close-info {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.8);
    font-size: 1.2rem;
    line-height: 1;
    padding: 4px 6px;
    cursor: pointer;
    border-radius: 6px;
}

    .close-info:hover {
        background: rgba(255,255,255,0.03);
        color: #fff;
    }

@media (max-width: 520px) {
    .info-card {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .info-left {
        flex-direction: row;
    }

    .info-actions {
        justify-content: flex-start;
    }
}

/* PROFILE */

.profile-card {
    position: relative;
    width: 360px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 25px;
    animation: fadeIn 0.3s ease-out;
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #888;
    transition: 0.2s;
}

    .close-btn:hover {
        color: #333;
    }

.profile-header {
    display: flex;
    align-items: center;
    gap: 18px;
}

.avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #e9ecef;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.username {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.edit-icon {
    font-size: 16px;
    cursor: pointer;
    color: #4c6ef5;
    transition: 0.2s;
}

    .edit-icon:hover {
        color: #364fc7;
    }

.country {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 14px;
    color: #555;
}

    .country img {
        width: 22px;
        height: auto;
        border-radius: 4px;
    }

.profile-stats {
    display: flex;
    justify-content: space-between;
    margin: 25px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 14px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #4c6ef5;
}

.stat-label {
    font-size: 13px;
    color: #666;
}

.profile-details {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media (max-width: 480px) {
    .profile-card {
        width: 95%;
        padding: 20px;
    }

    .avatar {
        width: 75px;
        height: 75px;
    }

    .username {
        font-size: 20px;
    }
}

/* NEWSLETTER BLOCK*/

.newsletter {
    max-width: 90%;
    margin: 30px auto;
    padding: 24px 22px;
    border-radius: 5px;
    background: linear-gradient(135deg, #e2c8ff, #f5ecff);
    display: grid;
    grid-template-columns: 1.2fr 1.3fr;
    gap: 18px;
    align-items: center;
}

.newsletter-content h3 {
    margin: 0 0 6px;
    font-size: 20px;
    color: #241336;
}

.newsletter-content p {
    margin: 0;
    font-size: 14px;
    color: #4b3b63;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

    .newsletter-form input[type="email"] {
        flex: 1;
        padding: 10px 12px;
        border-radius: 999px;
        border: 1px solid rgba(0,0,0,0.08);
        font-size: 14px;
        outline: none;
    }

        .newsletter-form input[type="email"]:focus {
            border-color: #8b5cf6;
            box-shadow: 0 0 0 2px rgba(139,92,246,0.25);
        }

    .newsletter-form button {
        padding: 10px 18px;
        border-radius: 999px;
        border: none;
        background: #4c1d95;
        color: #fff;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        white-space: nowrap;
        transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    }

        .newsletter-form button:hover {
            background: #5b21b6;
            transform: translateY(-1px);
            box-shadow: 0 6px 16px rgba(76,29,149,0.35);
        }


@media (max-width: 600px) {
    .newsletter {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

        .newsletter-form button {
            width: 100%;
        }
}

/* CHIP */

.chip {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.6rem;
    border-radius: 999px; 
    background-color: #e5e7eb;
    color: #111827;
    font-size: 0.85rem;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    border: 1px solid #d1d5db;
    gap: 0.35rem;
}

.chip--primary {
    background-color: #2563eb;
    border-color: #1d4ed8;
    color: #f9fafb;
}

.chip__close {
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1;
    opacity: 0.7;
}

    .chip__close:hover {
        opacity: 1;
    }

/* SWITCH */

.switch-input {
    display: none;
}

.switch-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.switch-text-right {
    margin: 0 8px;
    font-size: 14px;
}

.switch-text-left {
    margin-right: 8px;
    font-size: 14px;
}

.switch-slider {
    width: 40px;
    height: 20px;
    background: #2196F3;
    border-radius: 20px;
    position: relative;
    transition: background 0.3s;
}

    .switch-slider::before {
        content: "";
        position: absolute;
        width: 18px;
        height: 18px;
        top: 1px;
        left: 1px;
        background: white;
        border-radius: 50%;
        transition: transform 0.3s;
    }

.switch-input:checked + .switch-label .switch-slider {
    background: #9C27B0;
}

    .switch-input:checked + .switch-label .switch-slider::before {
        transform: translateX(20px);
    }

.switch-icon {
    width: 16px;
    height: 16px;
    margin-left: 5px;
}

.switch-input:not(:checked) + .switch-label .switch-text-left {
    font-weight: bold;
    font-size: 16px;
    color: #2196F3;
}

.switch-input:checked + .switch-label .switch-text-right {
    font-weight: bold;
    font-size: 16px;
    color: #9C27B0;
}


.switch-input:not(:checked) + .switch-label .switch-text-right,
.switch-input:checked + .switch-label .switch-text-left {
    font-weight: normal;
    font-size: 14px;
    color: #555;
}

.switch-text-left,
.switch-text-right {
    transition: all 0.3s ease;
}

/* IMAGES SLIDER*/

/*.slider {
    position: relative;
    width: 95%;
    max-width: 600px; 
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    background: #000;
}

.slides {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    height: 400px;
    position: relative;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: bold;
    aspect-ratio: 16 / 9;
}

    .slide:nth-child(1) {
        background: url("../../../public_images/embed.webp");
    }

    .slide:nth-child(2) {
        background: url("../../../public_images/slide2.png");
    }

    .slide:nth-child(3) {
        background: url("../../../public_images/slide1.png");
    }

    .slide:nth-child(4) {
        background: url("../../../public_images/img6.webp");
    }

    .slide:nth-child(5) {
        background: url("../../../public_images/mozaic_embed.webp");
    }

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.5);
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: background 0.2s;
}

    .arrow:hover {
        background: rgba(0,0,0,0.8);
    }

    .arrow.prev {
        left: 10px;
    }

    .arrow.next {
        right: 10px;
    }

.dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

    .dot.active {
        background: #fff;
        transform: scale(1.2);
    }

@media (max-width: 600px) {
    .slide {
        aspect-ratio: 4 / 3;
    }

    .arrow {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .dot {
        width: 8px;
        height: 8px;
    }
} */


.slider {
    position: relative;
    width: 95%;
    max-width: 600px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    background: #000;
}

.slides {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    position: relative;
    min-width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
}

    .slide img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }

.slider_overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    pointer-events: none;
}

.caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    margin-bottom:30px;
    font-size: 1.6rem;
    font-weight: bold;
    text-shadow: 0 2px 6px rgba(0,0,0,0.8);
    pointer-events: none;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.5);
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: background 0.2s;
}

    .arrow:hover {
        background: rgba(0,0,0,0.8);
    }

    .arrow.prev {
        left: 10px;
    }

    .arrow.next {
        right: 10px;
    }

.dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

    .dot.active {
        background: #fff;
        transform: scale(1.2);
    }

@media (max-width: 600px) {
    .arrow {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .caption {
        font-size: 1.2rem;
    }
}



/* Filters */

.header-filters {
    position: relative;
    padding: 10px 16px;
    font-family: sans-serif;
}

.filter-icon {
    position: absolute;
    top: 10px;
    right: 20px;
    width: 26px;
    height: 26px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

    .filter-icon:hover {
        background: #f0f0f0;
    }

.filter-svg {
    width: 20px;
    height: 20px;
}

.filter-row {
    display: none;
    padding: 12px 16px;
    width:97%;
    gap: 10px; 
    align-items: center;
    border-bottom: 1px solid #eee;
    background: #fafafa;
}

    .filter-row.show {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }

.search-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 600px) {
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .search-group {
        width: 100%;
    }

        .search-group input, .filter-row select {
            width: 100%;
        }
}

/* Comment block*/

.comment-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid #0A1A2F;
    border-radius: 10px;
    background: #fff;
    width: 100%;
    max-width: 500px;
    position: relative;
}

.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comment-username {
    font-weight: bold;
    color: #0A1A2F;
}

.edit-icon {
    cursor: pointer;
    font-size: 18px;
    opacity: 0.7;
    transition: 0.2s;
}

    .edit-icon:hover {
        opacity: 1;
    }

.comment-text {
    margin-top: 6px;
    line-height: 1.4;
    color: #333;
}


/* TEXT */
@media (max-width: 992px) {
    .display-1 {
        font-size: 3.68rem;
    }
}

.display-1 {
    font-family: 'Jost', sans-serif;
    font-size: 4.6rem;
    line-height: 1.1;
}

.display-2 {
    font-family: 'Jost', sans-serif;
    font-size: 3rem;
    line-height: 1.1;
}

.display-4 {
    font-family: 'Jost', sans-serif;
    font-size: 1.1rem;
    line-height: 1.5;
}


.display-5 {
    font-family: 'Jost', sans-serif;
    font-size: 2rem;
    line-height: 1.2;
}


.display-7 {
    font-family: 'Jost', sans-serif;
    font-size: 1.2rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .display-1 {
        font-size: 3.22rem;
        font-size: calc( 2.26rem + (4.6 - 2.26) * ((100vw - 20rem) / (48 - 20)));
        line-height: calc( 1.1 * (2.26rem + (4.6 - 2.26) * ((100vw - 20rem) / (48 - 20))));
    }

    .display-2 {
        font-size: 2.4rem;
        font-size: calc( 1.7rem + (3 - 1.7) * ((100vw - 20rem) / (48 - 20)));
        line-height: calc( 1.3 * (1.7rem + (3 - 1.7) * ((100vw - 20rem) / (48 - 20))));
    }

    .display-4 {
        font-size: 0.88rem;
        font-size: calc( 1.0350000000000001rem + (1.1 - 1.0350000000000001) * ((100vw - 20rem) / (48 - 20)));
        line-height: calc( 1.4 * (1.0350000000000001rem + (1.1 - 1.0350000000000001) * ((100vw - 20rem) / (48 - 20))));
    }

    .display-5 {
        font-size: 1.6rem;
        font-size: calc( 1.35rem + (2 - 1.35) * ((100vw - 20rem) / (48 - 20)));
        line-height: calc( 1.4 * (1.35rem + (2 - 1.35) * ((100vw - 20rem) / (48 - 20))));
    }

    .display-7 {
        font-size: 0.96rem;
        font-size: calc( 1.07rem + (1.2 - 1.07) * ((100vw - 20rem) / (48 - 20)));
        line-height: calc( 1.4 * (1.07rem + (1.2 - 1.07) * ((100vw - 20rem) / (48 - 20))));
    }
}
