﻿/* ========================================= BlueGrammar Brand Colors ========================================= */

:root {
    --bg-h1: #ce434b;
    --bg-h2: #065fd0;
    --bg-h3: #ce434b;
    --bg-header: #ddf1fe;
    --bg-button: #f7d8da;
}
/* ========================================= BlueGrammar - Sidebar Layout ========================================= */

.content-with-sidebar {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 35px;
    align-items: start;
}

.main-content {
    width: 100%;
    min-width: 0;
}

.sidebar-area {
    width: 300px;
    min-width: 0;
}

.site-sidebar {
    width: 100%;
}

.sidebar-widget {
    margin-bottom: 25px;
    padding: 20px;
    border: 1px solid #dbe7ef;
    border-radius: 10px;
    background: #ffffff;
}

.sidebar-title {
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bg-header);
    font-size: 20px;
    font-weight: 700;
    color: var(--bg-h2);
}


/* ---------- Search ---------- */

.sidebar-search {
    display: flex;
    gap: 8px;
}

    .sidebar-search input {
        width: 100%;
        min-width: 0;
        padding: 9px 10px;
        border: 1px solid #cbd5e1;
        border-radius: 6px;
        font-size: 14px;
        outline: none;
    }

        .sidebar-search input:focus {
            border-color: var(--bg-h2);
        }

    .sidebar-search button {
        padding: 9px 13px;
        border: 1px solid #edbcc0;
        border-radius: 6px;
        background: var(--bg-button);
        color: var(--bg-h1);
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
    }

        .sidebar-search button:hover {
            background: #f2c9cc;
        }


/* ---------- Lists ---------- */

.sidebar-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

    .sidebar-list li {
        margin-bottom: 9px;
    }

        .sidebar-list li:last-child {
            margin-bottom: 0;
        }

    .sidebar-list a {
        display: block;
        padding: 7px 8px;
        border-radius: 5px;
        color: #334155;
        text-decoration: none;
    }

        .sidebar-list a:hover {
            background: var(--bg-header);
            color: var(--bg-h2);
        }


/* ---------- Advertisement ---------- */

.sidebar-ad {
    text-align: center;
    background: #f8fbfe;
}

.sidebar-ad-content {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #78909c;
    font-size: 14px;
}

.content-with-sidebar {
    box-sizing: border-box;
}

.main-content {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
}

.sidebar-area {
    box-sizing: border-box;
}


/* ---------- Mobile ---------- */

@media (max-width: 900px) {

    .content-with-sidebar {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sidebar-area {
        width: 100%;
    }
}

@media (max-width: 767px) {

    .sidebar-widget {
        padding: 17px;
    }

    .sidebar-title {
        font-size: 19px;
    }
}

