/* ========================================================= */
/* COMPONENT: MAP WIDGET (линкове на homepage)               */
/* ========================================================= */

.map-widget a {
    display: block;
    background-color: #0066cc;
    color: #fff;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
}

.map-widget a:hover {
    background-color: #004080;
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* ========================================================= */
/* COMPONENT: HOME PAGE BUTTON (3D бутон)                    */
/* ========================================================= */

.cpc-home-sector {
    max-width: 900px;
    margin: 40px auto;
}

.cpc-home-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 22px 26px;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    background: linear-gradient(to bottom, #eaf3ff, #c9dbf2);
    border: 1px solid #9fb4cc;
    box-shadow: 0 4px 0 #8ea4c0, 0 6px 12px rgba(0,0,0,0.15);
    transition: all .15s ease;
}

.cpc-home-btn:hover {
    background: linear-gradient(to bottom, #f4f8ff, #d7e6f7);
    border-color: #8ea4c0;
    box-shadow: 0 4px 0 #7c92ad, 0 8px 16px rgba(0,0,0,0.18);
}

.cpc-home-btn:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #7c92ad, 0 4px 10px rgba(0,0,0,0.12);
}

.cpc-home-title {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #003366;
}

.cpc-home-sub {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    color: #445;
}

/* ========================================================= */
/* COMPONENT: CPC FOLDER (папки с документи)                 */
/* ========================================================= */

.cpc-folder-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: linear-gradient(to bottom, #f0f6ff, #d4e4f7);
    border: 1px solid #9fb4cc;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #003366;
    cursor: pointer;
    box-shadow: 0 4px 0 #8ea4c0, 0 6px 12px rgba(0,0,0,0.12);
    transition: all .15s ease;
}

.cpc-folder-btn:hover {
    background: linear-gradient(to bottom, #f8fbff, #e3eef9);
    box-shadow: 0 4px 0 #7c92ad, 0 8px 16px rgba(0,0,0,0.15);
}

.cpc-folder-btn:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #7c92ad, 0 4px 10px rgba(0,0,0,0.10);
}

.cpc-folder-icon svg {
    vertical-align: middle;
}

.cpc-folder-arrow {
    margin-left: 8px;
    font-size: 16px;
    transition: transform .25s ease;
}

.cpc-folder-hint {
    margin-top: 6px;
    margin-left: 4px;
    font-size: 13px;
    color: #555;
    text-align: left;
    font-style: italic;
}

.cpc-folder {
    margin-top: 12px;
    padding: 0 14px;
    border: 1px solid #d0d7e2;
    border-radius: 6px;
    background: #ffffff;
    transition: max-height .35s ease;
}

.cpc-folder a {
    display: block;
    padding: 10px 0;
    color: #003366;
    font-size: 15px;
    text-decoration: none;
    border-bottom: 1px solid #e5e5e5;
}

.cpc-folder a:last-child {
    border-bottom: none;
}

.cpc-folder a:hover {
    text-decoration: underline;
}

/* ========================================================= */
/* MODEL 1: VARIABLE WIDTH (динамична ширина + минимум)      */
/* ЗА ДРУГАТА СТРАНИЦА                                       */
/* ========================================================= */
.cpc-folder-row-static {
    width: 100%;
}

.cpc-folder-row-static .cpc-folder-wrapper {
    width: 100%;
    margin-bottom: 30px;
    display: block;
}

/* ========================================================= */
/* MODEL 2: STATIC FULL WIDTH (една под друга, 100%)         */
/* ЗА ГЛАВНАТА СТРАНИЦА                                      */
/* ========================================================= */

.cpc-folder-row-dynamic-single {
    width: 100%;
}

.cpc-folder-row-dynamic-single .cpc-folder-wrapper {
    width: fit-content;      /* ширината следва текста */
    max-width: 600px;        /* или колкото искаш */
    min-width: 350px;        /* минимална ширина */
    margin-bottom: 30px;
    display: block;
}


.cpc-folder-btn-static {
    display: flex;
    width: 100%;
}

.cpc-folder-btn-dynamic {
    display: flex;
    width: auto;
    min-width: 350px;
    max-width: 600px;
}
