/* ============================================
   RMS Category Layouts
   ============================================ */

/* Banner - uses theme's .page-banner-area styles */

/* Container */
.rms-category-container { padding-bottom: 3rem; margin-top: 50px; }

/* Custom content above posts */
.rms-category-custom-content {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    font-size: 0.95rem;
    line-height: 1.7;
}
.rms-category-custom-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 0.5rem 0; }
.rms-category-custom-content a { color: #2b6cb0; }
.rms-category-custom-content a:hover { text-decoration: underline; }

/* Buttons */
.rms-btn {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.2s;
}
.rms-btn-download { background: #2b6cb0; color: #fff !important; }
.rms-btn-download:hover { background: #1a4a7a; color: #fff !important; }
.rms-btn-view { background: #edf2f7; color: #2d3748 !important; border: 1px solid #e2e8f0; }
.rms-btn-view:hover { background: #2b6cb0; color: #fff !important; border-color: #2b6cb0; }

/* Pagination */
.rms-pagination { margin-top: 2rem; text-align: center; }
.rms-pagination .page-numbers { display: inline-block; padding: 0.4rem 0.8rem; margin: 0 0.2rem; border-radius: 4px; text-decoration: none; color: #2d3748; border: 1px solid #e2e8f0; }
.rms-pagination .page-numbers.current { background: #2b6cb0; color: #fff; border-color: #2b6cb0; }
.rms-pagination .page-numbers:hover { background: #edf2f7; }

.rms-no-results { color: #718096; font-style: italic; padding: 2rem 0; text-align: center; }

/* ============================================
   LAYOUT: DOCUMENTE
   ============================================ */
.rms-doc-list { list-style: none; padding: 0; margin: 0; }
.rms-doc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid #e2e8f0;
    gap: 1.5rem;
    transition: background 0.2s;
}
.rms-doc-item:first-child { border-top: 1px solid #e2e8f0; }
.rms-doc-item:hover { background: #f7fafc; }
.rms-doc-info { flex: 1; }
.rms-doc-title { font-size: 0.95rem; margin: 0 0 0.2rem; color: #1a3a5c; font-weight: 600; }
.rms-doc-excerpt { font-size: 0.82rem; color: #718096; margin: 0; }
.rms-doc-full { font-size: 0.85rem; color: #4a5568; margin-top: 0.5rem; line-height: 1.6; }
.rms-doc-full a { color: #2b6cb0; }
.rms-doc-expand { background: none; border: none; color: #2b6cb0; font-size: 0.78rem; cursor: pointer; padding: 0.2rem 0; font-weight: 500; margin-top: 0.3rem; }
.rms-doc-expand:hover { text-decoration: underline; }
.rms-doc-actions { flex-shrink: 0; }

/* ============================================
   LAYOUT: CARDURI
   ============================================ */
.rms-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
.rms-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e2e8f0;
}
.rms-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); }
.rms-card-img img { width: 100%; height: 180px; object-fit: cover; display: block; }
.rms-card-img-placeholder {
    height: 180px;
    background: #edf2f7;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rms-card-img-placeholder .dashicons { font-size: 48px; width: 48px; height: 48px; color: #a0aec0; }
.rms-card-body { padding: 1.2rem; }
.rms-card-title { font-size: 1rem; margin: 0 0 0.5rem; line-height: 1.4; }
.rms-card-title a { color: #1a3a5c; text-decoration: none; }
.rms-card-title a:hover { color: #2b6cb0; }
.rms-card-excerpt { font-size: 0.85rem; color: #718096; margin: 0 0 1rem; }

/* ============================================
   LAYOUT: BLOG CU IMAGINE
   ============================================ */
.rms-blog-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e2e8f0;
    align-items: flex-start;
}
.rms-blog-item:first-child { padding-top: 0; }
.rms-blog-thumb { flex-shrink: 0; width: 200px; }
.rms-blog-thumb img { width: 100%; height: 140px; object-fit: cover; border-radius: 8px; }
.rms-blog-content { flex: 1; }
.rms-blog-title { font-size: 1.1rem; margin: 0 0 0.4rem; }
.rms-blog-title a { color: #1a3a5c; text-decoration: none; }
.rms-blog-title a:hover { color: #2b6cb0; }
.rms-blog-meta { font-size: 0.8rem; color: #a0aec0; margin-bottom: 0.5rem; }
.rms-blog-excerpt { font-size: 0.9rem; color: #4a5568; margin: 0 0 0.8rem; }

/* ============================================
   LAYOUT: UNITĂȚI DE ÎNVĂȚĂMÂNT
   ============================================ */
.rms-unitati-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}
.rms-unitate-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.rms-unitate-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); }
.rms-unitate-header {
    background: linear-gradient(135deg, #1a3a5c 0%, #2c5282 100%);
    padding: 1rem 1.2rem;
}
.rms-unitate-title { font-size: 0.95rem; color: #fff; margin: 0; font-weight: 600; line-height: 1.4; }
.rms-unitate-body { padding: 1.2rem; }
.rms-unitate-body .unitate-info p { margin: 0.4rem 0; font-size: 0.88rem; color: #4a5568; line-height: 1.5; }
.rms-unitate-body .unitate-info a { color: #2b6cb0; text-decoration: none; }
.rms-unitate-body .unitate-info a:hover { text-decoration: underline; }
.rms-unitate-body .badge-categorie {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    background: #ebf8ff;
    color: #2b6cb0;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   LAYOUT: TABEL DOCUMENTE
   ============================================ */
.rms-table-wrapper { overflow-x: auto; }
.rms-data-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.rms-data-table thead th {
    background: #1a3a5c;
    color: #fff;
    padding: 0.7rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.82rem;
    white-space: nowrap;
}
.rms-data-table tbody td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}
.rms-data-table tbody tr:hover td { background: #f7fafc; }
.rms-data-table tbody tr:nth-child(even) td { background: #fafbfc; }
.rms-td-nr { width: 40px; text-align: center; color: #a0aec0; font-weight: 600; }
.rms-td-title { font-weight: 500; color: #2d3748; }
.rms-td-date { white-space: nowrap; color: #718096; font-size: 0.82rem; }
.rms-td-docs { white-space: nowrap; }
.rms-td-docs .rms-btn-sm {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    background: #2b6cb0;
    color: #fff !important;
    border-radius: 4px;
    text-decoration: none !important;
    font-size: 0.72rem;
    font-weight: 500;
    margin: 0.15rem 0.2rem;
}
.rms-td-docs .rms-btn-sm:hover { background: #1a4a7a; }

/* ============================================
   LAYOUT: DOCUMENTE PE SUBCATEGORII
   ============================================ */
.rms-docsubcat-group {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 0.8rem;
    overflow: hidden;
}
.rms-docsubcat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem;
    cursor: pointer;
    background: #f7fafc;
    transition: background 0.2s;
}
.rms-docsubcat-header:hover { background: #edf2f7; }
.rms-docsubcat-header h3 { margin: 0; font-size: 1rem; color: #1a3a5c; font-weight: 600; }
.rms-docsubcat-count { font-weight: 400; color: #a0aec0; font-size: 0.85rem; }
.rms-docsubcat-toggle { color: #a0aec0; transition: transform 0.3s; }
.rms-docsubcat-group:not(.open) .rms-docsubcat-toggle { transform: rotate(-90deg); }
.rms-docsubcat-body { display: none; padding: 0 1.2rem 1rem; }
.rms-docsubcat-group.open .rms-docsubcat-body { display: block; }
.rms-docsubcat-list { list-style: none; padding: 0; margin: 0; }
.rms-docsubcat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 1rem;
}
.rms-docsubcat-item:last-child { border-bottom: none; }
.rms-docsubcat-title { font-size: 0.88rem; color: #2d3748; flex: 1; }
.rms-docsubcat-links { display: flex; flex-wrap: wrap; gap: 0.3rem; flex-shrink: 0; }
.rms-docsubcat-links .rms-btn-sm {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: #2b6cb0;
    color: #fff !important;
    border-radius: 3px;
    text-decoration: none !important;
    font-size: 0.7rem;
    font-weight: 500;
}
.rms-docsubcat-links .rms-btn-sm:hover { background: #1a4a7a; }

/* ============================================
   FILTER BAR (shared across layouts)
   ============================================ */
.rms-filter-bar {
    background: #fff;
    border-radius: 10px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.rms-filter-form { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; }
.rms-filter-group { display: flex; flex-direction: column; gap: 0.3rem; }
.rms-filter-group label { font-size: 0.78rem; color: #718096; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.rms-filter-group input,
.rms-filter-group select { padding: 0.5rem 0.8rem; border: 1px solid #e2e8f0; border-radius: 6px; font-size: 0.88rem; min-width: 160px; }

/* ============================================
   LAYOUT: PROIECTE CONSILIUL LOCAL
   ============================================ */
.rms-proiect-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 0.8rem;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.rms-proiect-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.rms-proiect-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
}
.rms-proiect-header:hover { background: #f7fafc; }
.rms-proiect-date {
    background: #1a3a5c;
    color: #fff;
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}
.rms-proiect-title { flex: 1; font-size: 0.9rem; margin: 0; color: #2d3748; font-weight: 500; }
.rms-proiect-toggle { font-size: 0.8rem; color: #a0aec0; transition: transform 0.3s; flex-shrink: 0; }
.rms-proiect-card.open .rms-proiect-toggle { transform: rotate(180deg); }
.rms-proiect-body {
    display: none;
    padding: 0 1.2rem 1.2rem;
    font-size: 0.88rem;
    line-height: 1.7;
    border-top: 1px solid #e2e8f0;
}
.rms-proiect-card.open .rms-proiect-body { display: block; padding-top: 1rem; }
.rms-proiect-body a { color: #2b6cb0; text-decoration: none; }
.rms-proiect-body a:hover { text-decoration: underline; }
.rms-proiect-body h4, .rms-proiect-body h5 { font-size: 0.88rem; margin: 0.5rem 0; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .rms-doc-item { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
    .rms-cards-grid { grid-template-columns: 1fr; }
    .rms-unitati-grid { grid-template-columns: 1fr; }
    .rms-blog-item { flex-direction: column; }
    .rms-blog-thumb { width: 100%; }
    .rms-blog-thumb img { height: 200px; }
    .rms-category-banner h1 { font-size: 1.4rem; }
    .rms-filter-form { flex-direction: column; }
    .rms-filter-group input, .rms-filter-group select { min-width: 100%; }
    .rms-proiect-header { flex-wrap: wrap; }
    .rms-docsubcat-item { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}


/* ============================================
   LAYOUT: PARCURI ȘI GRĂDINI
   ============================================ */
.rms-parcuri-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
}
.rms-parc-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.5rem;
    transition: box-shadow 0.2s, transform 0.2s;
}
.rms-parc-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.rms-parc-categorie {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #2b6cb0;
    margin-bottom: 0.4rem;
}
.rms-parc-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a3a5c;
    margin: 0 0 0.6rem;
    line-height: 1.4;
}
.rms-parc-adresa,
.rms-parc-program {
    font-size: 0.85rem;
    color: #718096;
    margin: 0.3rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
}
.rms-parc-adresa i,
.rms-parc-program i {
    color: #2b6cb0;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

@media (max-width: 768px) {
    .rms-parcuri-grid {
        grid-template-columns: 1fr;
    }
}
