/* Custom styles pentru sectiunea "Configurare routere"
   Construit peste CSS-ul existent al orange.ro/help (main.css, reshape.css, re_style_home_update.css).
   NU redefini stilurile existente: .subcategory-box, .subcategory-question-title, .subcategory-more,
   .accordion-menu-*, .oro-breadcrumbs (inline in site_layout.php). */

/* ====== Subtitle pe pagina cu lista routere (Ecran 1) ====== */
.page-subtitle {
    color: #666;
    font-size: 15px;
    margin-bottom: 32px;
    margin-top: -24px; /* compensam mb-5 de pe h1 */
}

/* ====== Router cards (Ecran 1 — lista routere) ====== */
.router-grid { margin-top: 20px; }
.router-card {
    display: block;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    padding: 0;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
    margin-bottom: 24px;
    overflow: hidden;
}
.router-card:hover {
    border-color: #ff7900;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    text-decoration: none;
    color: #000;
}
.router-card img {
    width: 100%;
    max-width: 320px;
    height: auto;
    display: block;
    margin: 0 auto;
}
.router-card .router-card-noimg {
    display: block;
    width: 100%;
    max-width: 320px;
    height: 160px;
    margin: 0 auto;
    background: #fafafa;
}
.router-card .router-name {
    display: block;
    padding: 14px;
    font-weight: 600;
    font-size: 15px;
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
}

/* ====== Header router selectat (Ecran 2) ====== */
/* Folosim .subcategory-box ca shell — adaugam doar layout flex + pill colorata */
.subcategory-box.router-selected {
    display: flex;
    align-items: center;
    gap: 18px;
    border-radius: 8px;
}
.subcategory-box.router-selected img {
    width: 110px;
    height: auto;
    flex-shrink: 0;
}
.subcategory-box.router-selected .rcs-label {
    display: inline-block;
    background: #ff7900;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 4px 14px;
    border-radius: 12px;
    margin: 0 0 6px;
    line-height: 1.4;
}
.subcategory-box.router-selected .rcs-name {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: #000;
}

.router-back-link,
.col-12.col-lg-9 a.router-back-link {
    display: inline-block;
    margin-bottom: 16px;
    color: #ff7900 !important;
    font-weight: 700;
    text-decoration: none;
    font-size: 15px;
}
.router-back-link:hover,
.col-12.col-lg-9 a.router-back-link:hover {
    color: #cc6000 !important;
    text-decoration: underline;
}
.router-back-link::before {
    content: "‹ ";
    font-size: 18px;
    vertical-align: -1px;
}

.section-label {
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    font-size: 11px;
    font-weight: 700;
    margin: 8px 0 18px;
}

/* ====== Galerie articole (Ecran 3 — detaliu intrebare) ====== */
.article-gallery { margin: 30px 0; }

.slick_carousel_article_for {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
}
.slick_carousel_article_for li {
    list-style: none;
    text-align: center;
}
.slick_carousel_article_for img.img_for_article_style {
    display: inline-block;
    max-width: 100%;
    height: auto;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    background: #fff;
}

.slick_carousel_article_nav {
    list-style: none;
    padding: 0;
    margin: 0;
}
.slick_carousel_article_nav li {
    list-style: none;
    padding: 0 6px;
    cursor: pointer;
    outline: none;
}
.slick_carousel_article_nav img.img_nav_article_style {
    display: block;
    max-width: 100%;
    height: auto;
    border: 2px solid transparent;
    border-radius: 3px;
    opacity: .6;
    transition: border-color .15s, opacity .15s;
}
.slick_carousel_article_nav .slick-current img.img_nav_article_style {
    border-color: #ff7900;
    opacity: 1;
}

.slick_carousel_article_for .slick-arrow {
    width: 40px;
    height: 40px;
    z-index: 5;
}
.slick_carousel_article_for .slick-prev { left: -8px; }
.slick_carousel_article_for .slick-next { right: -8px; }
.slick_carousel_article_for .slick-prev:before,
.slick_carousel_article_for .slick-next:before {
    font-size: 36px;
    color: #ff7900;
    opacity: 1;
}

/* ====== Pasi (Ecran 3) ====== */
.content_answer ol.steps-list { padding-left: 22px; }
.content_answer ol.steps-list > li {
    margin-bottom: 18px;
    padding-left: 8px;
    font-size: 15px;
    line-height: 1.6;
}
.content_answer ol.steps-list > li::marker {
    color: #ff7900;
    font-weight: 700;
}

/* ====== Tweak sidebar (link activ) ====== */
.accordion-menu-link.active strong {
    color: #ff7900;
}

/* ====== Mobile ====== */
@media (max-width: 767px) {
    .subcategory-box.router-selected {
        flex-direction: column;
        text-align: center;
    }
}
