/*
 * PREMIUM THEME UPGRADE - Şcoala Gimnazială Nr. 39 Nicolae Tonitza
 * Modern design overrides
 */

/* ============ TYPOGRAPHY ============ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif !important;
    background-color: #f5f6fa !important;
    color: #2d3436;
}

/* ============ NAVBAR PREMIUM ============ */
#header .navbar.navbar-inverse {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 55%, #0f3460 100%) !important;
    border: none !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    min-height: 62px;
}

#header .navbar-brand {
    padding: 6px 8px !important;
    line-height: normal !important;
    height: auto !important;
    display: flex !important;
    align-items: center;
}

#header .navbar-brand img {
    max-height: 115px !important;
    height: 82px;
    width: auto !important;
    max-width: 249px;
    display: block !important;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.3));
}

#header .navbar-brand-text {
    color: #fff !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    line-height: 1.2 !important;
    font-family: 'Poppins', sans-serif !important;
    white-space: normal !important;
    max-width: 220px;
}

#header .navbar-nav > li > a {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.4px;
    padding: 22px 14px;
    position: relative;
    transition: color 0.3s ease;
    color: #e8eaf0 !important;
}

#header .navbar-nav > li > a::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    right: 50%;
    height: 3px;
    background: linear-gradient(90deg, #e26f25, #f39c12);
    transition: all 0.3s ease;
    border-radius: 3px 3px 0 0;
}

#header .navbar-nav > li > a:hover::after,
#header .navbar-nav > li.active > a::after {
    left: 8%;
    right: 8%;
}

#header .navbar-nav > li.active > a {
    background: transparent !important;
    color: #f39c12 !important;
}

#header .navbar-nav > li > a:hover {
    background: rgba(255,255,255,0.06) !important;
    color: #f39c12 !important;
}

#header .dropdown-menu {
    background: #16213e;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    padding: 8px 0;
    margin-top: 0;
}

#header .dropdown-menu > li > a {
    color: #b2bec3 !important;
    font-size: 13px;
    padding: 9px 18px;
    transition: all 0.2s ease;
}

#header .dropdown-menu > li > a:hover {
    background: rgba(226,111,37,0.15) !important;
    color: #f39c12 !important;
    padding-left: 24px;
}

/* Search modal premium */
.modal-search {
    background: rgba(15, 33, 62, 0.97) !important;
    backdrop-filter: blur(10px);
    /* Fix: position fixed needs explicit top/left + min-height so it's visible */
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    min-height: 100px !important;
    display: none;
    padding: 16px 0 !important;
    z-index: 999999 !important;
}

.search-open .modal-search {
    display: block !important;
}

.modal-search .container {
    position: relative;
    display: flex;
    align-items: center;
    height: 68px;
}

.modal-search .form-control {
    /* Override absolute positioning from style.css — use flex instead */
    position: relative !important;
    right: auto !important;
    margin-top: 0 !important;
    width: 100% !important;
    height: 52px !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid rgba(255,255,255,0.3) !important;
    border-radius: 0 !important;
    font-size: 20px !important;
    color: #fff !important;
    padding: 8px 40px 8px 0 !important;
    font-family: 'Poppins', sans-serif !important;
    box-shadow: none !important;
    flex: 1;
}

.modal-search .form-control:focus {
    border-bottom-color: #f39c12 !important;
    box-shadow: none !important;
    outline: none !important;
}

.modal-search .form-control::placeholder {
    color: rgba(255,255,255,0.4) !important;
}

.modal-search .close,
.modal-search .fa-times {
    position: absolute !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: rgba(255,255,255,0.6) !important;
    font-size: 22px !important;
    cursor: pointer !important;
    box-shadow: none !important;
    opacity: 1 !important;
    transition: color 0.2s ease !important;
}

.modal-search .close:hover,
.modal-search .fa-times:hover {
    color: #f39c12 !important;
}

/* ============ PREMIUM CATEGORY GRID ============ */
.premium-category-section {
    background: #fff;
    padding: 20px 0 6px;
    border-bottom: 1px solid #e8ecef;
    box-shadow: 0 4px 18px rgba(0,0,0,0.05);
}

/* Image cards (first row) */
.cat-image-card {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    margin-bottom: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cat-image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

.cat-image-card a {
    display: block;
    text-decoration: none !important;
}

.cat-image-card img {
    width: 100%;
    display: block;
    transition: transform 0.45s ease;
}

.cat-image-card:hover img {
    transform: scale(1.06);
}

.cat-image-card .caption {
    background: linear-gradient(to top, rgba(226,111,37,0.92), rgba(243,156,18,0.82)) !important;
    backdrop-filter: blur(4px);
    padding: 10px 14px !important;
    margin: 0 !important;
}

.cat-image-card .caption p {
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 11.5px !important;
    letter-spacing: 0.6px !important;
    text-transform: uppercase !important;
    margin: 0 !important;
    line-height: 1.35 !important;
    font-family: 'Poppins', sans-serif !important;
}

/* Icon cards */
.premium-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(0,0,0,0.06);
    overflow: visible;
    margin-bottom: 14px;
    position: relative;
}

.premium-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(226,111,37,0.16);
    border-color: rgba(226,111,37,0.22);
}

.premium-card > a {
    display: flex !important;
    align-items: center !important;
    padding: 14px 15px !important;
    text-decoration: none !important;
    color: #2d3436 !important;
    min-height: 68px;
}

.premium-card .card-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: linear-gradient(135deg, #e26f25 0%, #f39c12 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 13px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(226,111,37,0.32);
    transition: all 0.3s ease;
}

.premium-card:hover .card-icon {
    box-shadow: 0 6px 18px rgba(226,111,37,0.5);
    transform: scale(1.1) rotate(-5deg);
}

.premium-card .card-icon i {
    font-size: 17px;
    color: #fff;
}

.premium-card .card-title {
    font-size: 11.5px;
    font-weight: 600;
    color: #2d3436;
    line-height: 1.4;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.premium-card:hover .card-title {
    color: #e26f25;
}

/* Blue variant */
.premium-card.card-blue .card-icon {
    background: linear-gradient(135deg, #0099ff 0%, #0066cc 100%);
    box-shadow: 0 4px 12px rgba(0,153,255,0.32);
}

.premium-card.card-blue:hover {
    box-shadow: 0 12px 32px rgba(0,153,255,0.16);
    border-color: rgba(0,153,255,0.22);
}

.premium-card.card-blue:hover .card-icon {
    box-shadow: 0 6px 18px rgba(0,153,255,0.5);
}

.premium-card.card-blue:hover .card-title {
    color: #0099ff;
}

/* "NOU" badge */
.premium-nou-badge {
    position: absolute;
    top: -8px;
    right: 10px;
    background: linear-gradient(135deg, #0099ff, #0066cc);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.2px;
    padding: 3px 9px;
    border-radius: 20px;
    text-transform: uppercase;
    box-shadow: 0 3px 10px rgba(0,153,255,0.45);
    font-family: 'Poppins', sans-serif;
    z-index: 1;
}

/* ============ SIDEBAR POPULAR POSTS — MODERN REDESIGN ============ */

/* Widget container */
.sp-widget {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 14px rgba(0,0,0,0.07);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 20px;
}

/* Widget header */
.sp-widget-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    border-bottom: 3px solid #e26f25;
}

.sp-widget-icon {
    width: 30px;
    height: 30px;
    background: rgba(226,111,37,0.18);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sp-widget-icon i {
    color: #f39c12;
    font-size: 13px;
}

.sp-widget-title {
    font-family: 'Poppins', sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    color: #fff !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}

/* Post list */
.sp-post-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Post item */
.sp-post-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f3f4;
    transition: background 0.2s ease;
    position: relative;
}

.sp-post-item:last-child {
    border-bottom: none;
}

.sp-post-item:hover {
    background: #fafbfc;
}

/* Favorite highlight */
.sp-post-item--fav {
    background: linear-gradient(90deg, rgba(243,156,18,0.06), transparent) !important;
    border-left: 3px solid #f39c12;
    padding-left: 13px;
}

.sp-post-item--fav:hover {
    background: linear-gradient(90deg, rgba(243,156,18,0.1), transparent) !important;
}

/* Thumbnail */
.sp-post-thumb {
    flex-shrink: 0;
    width: 62px;
    height: 62px;
    border-radius: 10px;
    overflow: hidden;
    display: block;
    background: #f0f2f5;
}

.sp-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
    color: transparent;
    font-size: 0;
}

.sp-post-item:hover .sp-post-thumb img {
    transform: scale(1.08);
}

/* Post info */
.sp-post-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Title */
.sp-post-title {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    color: #1a1a2e !important;
    line-height: 1.45;
    text-decoration: none !important;
    margin-bottom: 5px;
    transition: color 0.2s ease;
}

.sp-post-title:hover {
    color: #e26f25 !important;
}

/* Meta */
.sp-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 10px;
}

.sp-post-meta span {
    font-size: 10.5px;
    color: #aab0b8;
    font-family: 'Poppins', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.sp-post-meta span i {
    font-size: 10px;
    color: #c8cdd3;
}

/* ============ SIDEBAR GENERIC WIDGETS (categories, tags, slider) ============ */

.sw-widget {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 14px rgba(0,0,0,0.07);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 20px;
}

/* Shared header (same style as sp-widget) */
.sw-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    border-bottom: 3px solid #e26f25;
}

.sw-icon {
    width: 30px;
    height: 30px;
    background: rgba(226,111,37,0.18);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sw-icon i {
    color: #f39c12;
    font-size: 13px;
}

.sw-title {
    font-family: 'Poppins', sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    color: #fff !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}

/* ---- Categories ---- */
.sw-cat-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.sw-cat-list li {
    border-bottom: 1px solid #f1f3f4;
}

.sw-cat-list li:last-child {
    border-bottom: none;
}

.sw-cat-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    text-decoration: none !important;
    transition: background 0.2s ease, padding-left 0.2s ease;
}

.sw-cat-list li a:hover {
    background: #fafbfc;
    padding-left: 24px;
}

.sw-cat-name {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #2d3436;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: color 0.2s ease;
}

.sw-cat-list li a:hover .sw-cat-name {
    color: #e26f25;
}

.sw-cat-count {
    font-family: 'Poppins', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #e26f25, #f39c12);
    min-width: 22px;
    height: 22px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
}

/* ---- Tags ---- */
.sw-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 16px 18px;
}

.sw-tag {
    display: inline-block;
    background: #f0f2f5;
    color: #2d3436 !important;
    font-family: 'Poppins', sans-serif;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    padding: 4px 11px;
    border-radius: 20px;
    border: 1px solid #e4e7ea;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.sw-tag:hover {
    background: linear-gradient(135deg, #e26f25, #f39c12);
    color: #fff !important;
    border-color: transparent;
    transform: translateY(-1px);
}

/* ---- Random Slider ---- */
.sw-slider-wrap {
    padding: 0;
    overflow: hidden;
}

.sw-widget--slider .random-slider-item {
    border-radius: 0;
}

/* ============ SIDEBAR PREMIUM ============ */
.sidebar .widget {
    background: #fff !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07) !important;
    padding: 22px !important;
    margin-bottom: 22px !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
}

.sidebar .widget h4.title,
.sidebar h4.title {
    font-weight: 700 !important;
    font-size: 13px !important;
    letter-spacing: 0.7px !important;
    text-transform: uppercase !important;
    color: #1a1a2e !important;
    font-family: 'Poppins', sans-serif !important;
}

.title-line {
    height: 3px !important;
    border-radius: 3px !important;
    margin-bottom: 16px !important;
    background: linear-gradient(90deg, #e26f25, #f39c12) !important;
}

/* ============ FOOTER PREMIUM ============ */
#footer {
    background: linear-gradient(160deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%) !important;
    margin-top: 20px;
}

#footer .footer-widgets {
    padding-top: 10px;
}

#footer .footer-widget h4.title {
    font-weight: 600 !important;
    font-size: 13px !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    color: #fff !important;
    font-family: 'Poppins', sans-serif !important;
}

#footer .title-line {
    background: linear-gradient(90deg, #e26f25, #f39c12) !important;
}

#footer .footer-widget p,
#footer p {
    color: #a8b2c1 !important;
    font-size: 13px !important;
    line-height: 1.7 !important;
}

#footer .footer-widget a,
#footer a {
    color: #a8b2c1 !important;
    transition: color 0.3s ease !important;
    font-size: 13px !important;
}

#footer .footer-widget a:hover,
#footer a:hover {
    color: #f39c12 !important;
}

#footer .f-widget-follow ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 !important;
    list-style: none !important;
    margin: 0 0 15px;
}

#footer .f-widget-follow ul li {
    margin: 0 !important;
}

#footer .f-widget-follow ul li a {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255,255,255,0.07) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
    margin: 0 !important;
}

#footer .f-widget-follow ul li a:hover {
    background: linear-gradient(135deg, #e26f25, #f39c12) !important;
    border-color: transparent !important;
    color: #fff !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 5px 15px rgba(226,111,37,0.4) !important;
}

/* Newsletter */
#footer .newsletter p {
    font-size: 13px !important;
    color: #a8b2c1 !important;
    margin-bottom: 10px !important;
}

#footer .newsletter input[type="email"] {
    background: rgba(255,255,255,0.07) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 9px 14px !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 13px !important;
    width: 100% !important;
    margin-bottom: 8px !important;
}

#footer .newsletter input[type="email"]::placeholder {
    color: rgba(255,255,255,0.3) !important;
}

#footer .newsletter-button {
    background: linear-gradient(135deg, #e26f25, #f39c12) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 9px 22px !important;
    font-weight: 600 !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 13px !important;
    letter-spacing: 0.4px !important;
    color: #fff !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 14px rgba(226,111,37,0.35) !important;
}

#footer .newsletter-button:hover {
    box-shadow: 0 6px 20px rgba(226,111,37,0.52) !important;
    transform: translateY(-2px) !important;
}

/* Footer bottom */
#footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.07) !important;
    background: rgba(0,0,0,0.25) !important;
    margin-top: 20px !important;
    padding: 0 !important;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 0;
    border-top: 2px solid transparent;
    border-image: linear-gradient(90deg, #e26f25, #f39c12, transparent) 1;
}

.footer-bottom-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #dfe6e9;
}

.footer-bottom-brand i {
    color: #f39c12;
    font-size: 16px;
}

.footer-bottom-brand strong {
    color: #f39c12;
    font-weight: 700;
}

.footer-bottom-copy {
    font-family: 'Poppins', sans-serif;
    font-size: 11.5px;
    color: #636e72;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-bottom-copy i {
    color: #4a5568;
    font-size: 11px;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.footer-bottom-links a {
    font-family: 'Poppins', sans-serif;
    font-size: 11.5px;
    color: #636e72 !important;
    padding: 4px 10px;
    border-radius: 4px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border: 1px solid rgba(255,255,255,0.06);
}

.footer-bottom-links a:hover {
    color: #f39c12 !important;
    border-color: rgba(243,156,18,0.3);
    background: rgba(243,156,18,0.06);
}

@media (max-width: 768px) {
    .footer-bottom-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ============ PAGINATION PREMIUM ============ */
.pagination > li > a,
.pagination > li > span {
    border-radius: 8px !important;
    margin: 0 3px !important;
    font-weight: 500 !important;
    border: 1px solid #e9ecef !important;
    color: #2d3436 !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 13px !important;
    transition: all 0.3s ease !important;
    background: #fff !important;
}

.pagination > li > a:hover {
    background: rgba(226,111,37,0.08) !important;
    border-color: rgba(226,111,37,0.3) !important;
    color: #e26f25 !important;
}

.pagination > .active > a,
.pagination > .active > a:hover {
    background: linear-gradient(135deg, #e26f25, #f39c12) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 3px 12px rgba(226,111,37,0.38) !important;
}

/* ============ SCROLL UP ============ */
.scrollup {
    background: linear-gradient(135deg, #e26f25, #f39c12) !important;
    width: 44px !important;
    height: 44px !important;
    box-shadow: 0 4px 16px rgba(226,111,37,0.42) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
}

.scrollup:hover {
    box-shadow: 0 6px 22px rgba(226,111,37,0.58) !important;
    transform: translateY(-3px) !important;
}

.scrollup i {
    color: #fff !important;
}

/* ============ BUTTONS ============ */
.btn-action {
    border-radius: 30px !important;
    font-weight: 600 !important;
    font-family: 'Poppins', sans-serif !important;
    letter-spacing: 0.4px !important;
    padding: 9px 28px !important;
    transition: all 0.3s ease !important;
}

/* ============ MAIN SECTION SPACING ============ */
#main {
    padding-bottom: 45px;
}

/* ============ ACCESSIBILITY BUTTON ============ */
.floating-button.accesibilitate-float img {
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(0,0,0,0.22);
    transition: all 0.3s ease;
}

.floating-button.accesibilitate-float:hover img {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.32);
}

/* ============ SECTION/CONTAINER FIX ============ */
.posts {
    padding-top: 5px;
}

/* ============ POST DETAIL PAGE — MODERN REDESIGN ============ */

/* Meta bar */
.pd-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 16px;
    background: #f8f9fb;
    border-radius: 10px;
    border: 1px solid #eef0f3;
    margin-bottom: 22px;
}

.pd-meta-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 14px;
}

.pd-cat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #e26f25, #f39c12);
    color: #fff !important;
    font-family: 'Poppins', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 4px 13px;
    border-radius: 20px;
    text-decoration: none !important;
    transition: opacity 0.2s;
}
.pd-cat:hover { opacity: 0.85; }

.pd-meta-item {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    color: #7f8c8d;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.pd-meta-item i { color: #b2bec3; font-size: 11px; }

/* Reading list button */
.pd-reading-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1.5px solid #27ae60;
    color: #27ae60 !important;
    font-family: 'Poppins', sans-serif;
    font-size: 11.5px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.pd-reading-btn:hover {
    background: #27ae60;
    color: #fff !important;
}
.pd-reading-btn--active {
    background: #27ae60;
    color: #fff !important;
}
.pd-reading-btn--active:hover {
    background: #e74c3c;
    border-color: #e74c3c;
}

/* Tags */
.pd-tags {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 0;
    border-top: 1px solid #f1f3f4;
    margin-top: 20px;
    width: 100%;
    clear: both;
    float: left;
}
.pd-tags-label {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #636e72;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 3px;
    white-space: nowrap;
}
.pd-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.pd-tag {
    display: inline-block;
    background: #f0f2f5;
    color: #2d3436 !important;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid #e4e7ea;
    text-decoration: none !important;
    transition: all 0.2s ease;
}
.pd-tag:hover {
    background: linear-gradient(135deg, #e26f25, #f39c12);
    color: #fff !important;
    border-color: transparent;
}

/* Share */
.pd-share {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 0;
    border-top: 1px solid #f1f3f4;
    margin-top: 4px;
    width: 100%;
    clear: both;
    float: left;
}
.pd-share-label {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #636e72;
}
.pd-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: 'Poppins', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    padding: 7px 18px;
    border-radius: 8px;
    text-decoration: none !important;
    color: #fff !important;
    transition: all 0.25s ease;
}
.pd-share-fb {
    background: #3b5998;
    box-shadow: 0 3px 10px rgba(59,89,152,0.3);
}
.pd-share-fb:hover {
    background: #2d4373;
    box-shadow: 0 5px 16px rgba(59,89,152,0.45);
    transform: translateY(-2px);
}

/* Related posts */
.pd-related {
    width: 100%;
    float: left;
    clear: both;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 2px solid #f1f3f4;
}

.pd-related-header {
    width: 100%;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #1a1a2e;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 3px solid #e26f25;
}
.pd-related-header i { color: #e26f25; }

.pd-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.pd-related-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    overflow: hidden;
    text-decoration: none !important;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.pd-related-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

.pd-related-thumb {
    width: 100%;
    height: 120px;
    overflow: hidden;
    background: #eef0f3;
}
.pd-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    color: transparent;
    font-size: 0;
}
.pd-related-card:hover .pd-related-thumb img {
    transform: scale(1.06);
}
.pd-related-thumb-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 28px;
}

.pd-related-info {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}
.pd-related-title {
    font-family: 'Poppins', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.45;
    transition: color 0.2s;
}
.pd-related-card:hover .pd-related-title { color: #e26f25; }

.pd-related-date {
    font-family: 'Poppins', sans-serif;
    font-size: 10.5px;
    color: #aab0b8;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

@media (max-width: 640px) {
    .pd-related-grid { grid-template-columns: 1fr; }
    .pd-meta { flex-direction: column; align-items: flex-start; }
}

/* ============ LATEST POSTS STRIP ============ */

.latest-strip {
    background: #fff;
    border-bottom: 1px solid #eef0f3;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 4px 0;
}

.latest-strip-inner {
    display: flex;
    align-items: center;
    gap: 0;
    height: 60px;
}

/* "Ultimele postări" label */
.latest-strip-label {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #e26f25, #f39c12);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0 16px;
    border-radius: 8px;
    white-space: nowrap;
    margin-right: 12px;
    height: 34px;
}

.latest-strip-label i { font-size: 11px; }

/* Cards track */
.latest-strip-track {
    display: flex;
    gap: 6px;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    align-items: center;
    height: 100%;
}

.latest-strip-track::-webkit-scrollbar { display: none; }

/* Individual card */
.lsp-card {
    display: block;
    position: relative;
    flex: 1 0 0;
    min-width: 0;
    background: #f8f9fb;
    border: 1px solid #eef0f3;
    border-radius: 8px;
    padding: 0 16px;
    text-decoration: none !important;
    transition: all 0.25s ease;
    height: 40px;
    overflow: hidden;
}

.lsp-card:hover {
    background: #fff;
    border-color: rgba(226,111,37,0.3);
    box-shadow: 0 3px 10px rgba(226,111,37,0.12);
}

/* Thumbnail */
.lsp-thumb {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    overflow: hidden;
    background: #e9ecef;
}

.lsp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    color: transparent;
    font-size: 0;
    transition: transform 0.3s ease;
}

.lsp-card:hover .lsp-thumb img { transform: scale(1.08); }

/* Info */
.lsp-info {
    display: block;
    width: 100%;
}

.lsp-title {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1;
    display: block;
    transition: color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: absolute;
    top: 7px;
    left: 16px;
    right: 16px;
}

.lsp-card:hover .lsp-title { color: #e26f25; }

.lsp-date {
    font-family: 'Poppins', sans-serif;
    font-size: 9.5px;
    color: #aab0b8;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    position: absolute;
    bottom: -3px;
    left: 16px;
}

@media (max-width: 768px) {
    .latest-strip-label { display: none; }
    .lsp-card { min-width: 160px; }
}

/* ============ HOME SLIDER — MODERN REDESIGN ============ */

#home-slider .home-slider-item {
    position: relative;
    overflow: hidden;
}

#home-slider .home-slider-item img {
    width: 100% !important;
    height: 320px !important;
    object-fit: cover !important;
    display: block !important;
    color: transparent;
    font-size: 0;
}

/* Gradient overlay — stronger, more cinematic */
#home-slider .home-slider-item .item-overlay {
    background: linear-gradient(
        to top,
        rgba(10, 10, 30, 0.92) 0%,
        rgba(10, 10, 30, 0.55) 45%,
        rgba(10, 10, 30, 0.10) 100%
    ) !important;
    bottom: 0;
    left: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Info box */
#home-slider .home-slider-item .item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 28px 36px !important;
    text-align: left !important;
    z-index: 2;
}

/* Category badge */
#home-slider .item-info .label-slider-category {
    display: inline-block;
    background: linear-gradient(135deg, #e26f25, #f39c12) !important;
    color: #fff !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    padding: 4px 14px !important;
    border-radius: 20px !important;
    margin-bottom: 10px !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(226,111,37,0.4) !important;
}

/* Title */
#home-slider .item-info .title {
    margin: 8px 0 10px !important;
    line-height: 1.3 !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5) !important;
}

#home-slider .item-info .title a {
    font-family: 'Poppins', sans-serif !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #fff !important;
    text-decoration: none !important;
    letter-spacing: 0.3px;
}

/* Meta */
#home-slider .item-info .item-meta {
    display: flex !important;
    flex-wrap: wrap;
    gap: 4px 16px;
}

#home-slider .item-info .item-meta span {
    font-family: 'Poppins', sans-serif;
    font-size: 12px !important;
    color: rgba(255,255,255,0.65) !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

#home-slider .item-info .item-meta span i {
    font-size: 11px;
    color: rgba(255,255,255,0.45);
}

/* Nav arrows */
#home-slider .owl-nav {
    display: block !important;
}

#home-slider .owl-prev,
#home-slider .owl-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 44px !important;
    height: 44px !important;
    background: rgba(255,255,255,0.12) !important;
    backdrop-filter: blur(6px);
    border-radius: 50% !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    font-size: 16px !important;
    transition: all 0.25s ease !important;
    opacity: 1 !important;
    z-index: 3;
}

#home-slider .owl-prev { left: 16px !important; }
#home-slider .owl-next { right: 16px !important; }

#home-slider .owl-prev:hover,
#home-slider .owl-next:hover {
    background: linear-gradient(135deg, #e26f25, #f39c12) !important;
    border-color: transparent !important;
    transform: translateY(-50%) scale(1.08) !important;
}

/* Dots */
#home-slider .owl-dots {
    position: absolute;
    bottom: 14px;
    right: 20px;
    z-index: 3;
}

#home-slider .owl-dot span {
    background: rgba(255,255,255,0.35) !important;
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    transition: all 0.25s ease !important;
}

#home-slider .owl-dot.active span {
    background: #f39c12 !important;
    width: 22px !important;
    border-radius: 4px !important;
}

@media (max-width: 768px) {
    #home-slider .home-slider-item img { height: 260px !important; }
    #home-slider .item-info .title a { font-size: 18px !important; }
    #home-slider .item-info { padding: 16px 18px !important; }
}

/* ============ POST ITEMS — MODERN REDESIGN ============ */

.pi-card {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 20px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.pi-card:hover {
    box-shadow: 0 10px 36px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

/* Thumbnail */
.pi-thumb {
    flex: 0 0 210px;
    width: 210px;
    display: block;
    overflow: hidden;
    background: #eef0f3;
}

.pi-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    color: transparent;
    font-size: 0;
}

.pi-card:hover .pi-thumb img {
    transform: scale(1.06);
}

/* Body */
.pi-body {
    flex: 1;
    padding: 18px 22px 16px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Category badge */
.pi-cat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #e26f25, #f39c12);
    color: #fff !important;
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 3px 12px;
    border-radius: 20px;
    text-decoration: none !important;
    margin-bottom: 10px;
    align-self: flex-start;
    transition: opacity 0.2s;
}

.pi-cat:hover { opacity: 0.85; }
.pi-cat i { font-size: 9px; }

/* Title */
.pi-title {
    margin: 0 0 8px !important;
    line-height: 1 !important;
}

.pi-title a {
    font-family: 'Poppins', sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    line-height: 1.45 !important;
    text-decoration: none !important;
    transition: color 0.25s ease !important;
    display: block;
}

.pi-title a:hover { color: #e26f25 !important; }

/* Summary */
.pi-summary {
    font-size: 13px !important;
    color: #636e72 !important;
    line-height: 1.65 !important;
    margin: 0 0 12px !important;
    flex: 1;
}

/* Footer */
.pi-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #f1f3f4;
    margin-top: auto;
}

/* Meta */
.pi-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
}

.pi-meta span {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    color: #aab0b8;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pi-meta span i { font-size: 10px; color: #c8cdd3; }

/* Actions */
.pi-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Read more button */
.pi-readmore {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #e26f25, #f39c12);
    color: #fff !important;
    font-family: 'Poppins', sans-serif;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.4px;
    padding: 6px 18px;
    border-radius: 30px;
    text-decoration: none !important;
    box-shadow: 0 3px 10px rgba(226,111,37,0.32);
    transition: all 0.25s ease;
    white-space: nowrap;
}

.pi-readmore i { transition: transform 0.25s ease; }

.pi-readmore:hover {
    box-shadow: 0 5px 18px rgba(226,111,37,0.5);
    color: #fff !important;
}

.pi-readmore:hover i { transform: translateX(4px); }

/* Responsive */
@media (max-width: 640px) {
    .pi-card { flex-direction: column; }
    .pi-thumb {
        flex: 0 0 auto;
        width: 100%;
        height: 200px;
    }
    .pi-body { padding: 14px 16px 12px; }
}

/* ── Mobile header: collapse social-mobile into the brand row ──── */
@media (max-width: 767px) {
    #header .navbar-header {
        position: relative;
        min-height: 60px;
    }

    /* Float social-mobile into the header row instead of its own row */
    #header .social-mobile {
        position: absolute;
        right: 55px; /* leave room for hamburger toggle */
        top: 0;
        height: 100%;
        display: flex !important;
        align-items: center;
        padding: 0;
    }

    #header .social-mobile .col-sm-12,
    #header .social-mobile .row {
        margin: 0;
        padding: 0;
    }

    #header .social-mobile .nav.navbar-nav {
        display: flex !important;
        align-items: center;
        float: none !important;
        margin: 0 !important;
    }

    /* Hide social links on mobile — keep only the search icon */
    #header .social-mobile li:not(.pull-right) {
        display: none !important;
    }

    #header .social-mobile .search-icon {
        display: flex;
        align-items: center;
        padding: 8px 10px;
        color: rgba(255,255,255,0.85);
        font-size: 16px;
    }

    /* Compact logo on mobile */
    #header .navbar-brand img {
        height: 46px !important;
        max-height: 46px !important;
    }

    #header .navbar.navbar-inverse {
        min-height: 60px !important;
    }
}
