/*
Theme Name: Bianca Verdes Law
Author: You
Description: Temă custom pentru Cabinet Avocat Bianca Verdeș
Version: 1.0
*/

/* ==============================
   PALETĂ CULORI & BAZĂ
============================== */

:root {
    /* Verde pământiu – noua paletă principală */
    --blue-primary: #5b6f49;         /* fundal header/footer – verde olive închis */
    --blue-primary-dark: #3f4b33;    /* verde foarte închis – dropdown, hover, meniuri mobile */
    --blue-secondary: #7f8f5f;       /* verde pământiu mai deschis – stări active */

    /* Păstrăm accentele aurii (se potrivesc bine cu verdele) */
    --gold-accent: #d4af37;

    /* Restul variabilelor */
    --bg-body: #f4f5f0;          /* fond foarte deschis, ușor cald */
    --text-body: #111827;
    --border-soft: #e0e2da;
    --card-bg: #ffffff;
    --shadow-soft: 0 1px 4px rgba(15,23,42,0.06);
    --shadow-medium: 0 10px 30px rgba(15,23,42,0.15);
    --radius-lg: 12px;
    --transition-fast: 0.2s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-body);
    color: var(--text-body);
    line-height: 1.6;
}

/* Linkuri generale */
a {
    color: var(--blue-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ==============================
   HEADER STICKY + LOGO
============================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;

    background: linear-gradient(
        to bottom,
        #000000 0%,
        #0f0f0f 35%,
        #1a1a1a 70%,
        #2b2b2b 100%
    );

    color: #ffffff;
    box-shadow: 0 4px 12px rgba(15,23,42,0.15);
    transition: background var(--transition-fast),
                box-shadow var(--transition-fast),
                transform var(--transition-fast);

    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.header-banner {
    width: 100%;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 24px;
}

/* LOGO */
.header-logo-container {
    flex: 0 0 auto;
}

/* Logo foarte înalt în top banner */
.header-logo {
    height: 130px;       /* aproape cât headerul */
    width: auto;
    object-fit: cover;
    padding: 6px 0;
}

@media (max-width: 992px) {
    .header-logo {
        height: 100px;
        padding: 4px 0;
    }
}

@media (max-width: 600px) {
    .header-logo {
        height: 80px;
    }
}

/* Menține proporțiile headerului */
.header-inner {
    padding-top: 4px;
    padding-bottom: 4px;
}

/* CONTACT BOX lângă logo */
.header-contact-box {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    color: #e5e7eb;
}

.header-contact-box .contact-line {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-contact-box .contact-line i {
    color: var(--gold-accent);
}

.header-contact-box a {
    color: #e5e7eb;
    text-decoration: none;
}

.header-contact-box a:hover {
    color: #ffffff;
}

/* Social icons */
.header-social {
    margin-top: 6px;
    display: flex;
    gap: 8px;
}

.header-social .social-link {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e5e7eb;
    font-size: 13px;
    transition: background var(--transition-fast),
                color var(--transition-fast),
                border-color var(--transition-fast),
                transform var(--transition-fast);
}

.header-social .social-link:hover {
    background: var(--gold-accent);
    color: var(--blue-primary);
    border-color: var(--gold-accent);
    transform: translateY(-1px);
}

/* ==============================
   MENIU NAVIGARE
============================== */

.main-nav {
    flex: 0 0 auto;
}

.main-nav ul.main-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 16px;
    align-items: center;
}

.main-nav ul.main-menu > li {
    position: relative;
}

.main-nav ul.main-menu > li > a {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 6px;
    color: #e5e7eb;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: background var(--transition-fast),
                color var(--transition-fast),
                transform var(--transition-fast),
                box-shadow var(--transition-fast);
}

/* Hover meniu – highlight subtil pe gri */
.main-nav ul.main-menu > li > a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 0 8px rgba(0,0,0,0.35);
}

/* Item activ – puțin mai clar ca restul */
.main-nav ul.main-menu > li.current-menu-item > a,
.main-nav ul.main-menu > li.current-menu-ancestor > a {
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
}

/* Dropdown (submeniu) desktop */
.main-nav ul.main-menu li.menu-item-has-children > a::after {
    content: "▾";
    font-size: 10px;
    margin-left: 6px;
}

.main-nav ul.main-menu li ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    border-radius: 8px;
    padding: 8px 0;
    min-width: 220px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    box-shadow: var(--shadow-medium);
    transition: opacity var(--transition-fast),
                transform var(--transition-fast),
                visibility var(--transition-fast);
    z-index: 1001;
}

/* Submeniu – în ton cu top-banner gri, dar cu un pic de relief */
.main-nav ul.main-menu li ul.sub-menu {
    background: linear-gradient(
        180deg,
        #111111 0%,
        #181818 40%,
        #222222 100%
    );
}

.main-nav ul.main-menu li:hover > ul.sub-menu,
.main-nav ul.main-menu li:focus-within > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav ul.main-menu li ul.sub-menu li a {
    display: block;
    padding: 8px 14px;
    color: #e5e7eb;
    font-size: 14px;
    white-space: nowrap;
}

.main-nav ul.main-menu li ul.sub-menu li a:hover {
    background: rgba(148,163,184,0.2);
    color: #ffffff;
}

/* ICONIȚĂ HOME în loc de text "Acasă" (item cu clasa menu-item-home-icon) */
.main-nav ul.main-menu > li.menu-item-home-icon > a {
    position: relative;
    font-size: 0;  /* ascunde vizual textul, rămâne pentru SEO & SR */
    padding-left: 18px;
    padding-right: 18px;
}

.main-nav ul.main-menu > li.menu-item-home-icon > a::before {
    content: "\f015"; /* Font Awesome Home solid */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 20px;
    color: #ffffff;
    display: inline-block;
    line-height: 1;
}

.main-nav ul.main-menu > li.menu-item-home-icon > a:hover::before {
    color: var(--gold-accent);
}

/* Responsive dimensiune icon Home */
@media (max-width: 1023px) {
    .main-nav ul.main-menu > li.menu-item-home-icon > a::before {
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    .main-nav ul.main-menu > li.menu-item-home-icon > a {
        padding: 14px 12px;
    }
    .main-nav ul.main-menu > li.menu-item-home-icon > a::before {
        font-size: 16px;
    }
}

/* BUTON "CONTACT" din meniu – stil Greenice */

.main-nav ul.main-menu > li.top-contact-menu-item > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 8px 22px;
    border-radius: 999px;
    border: 1.5px solid var(--gold-accent);

    background: transparent;
    color: #ffffff;

    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;

    box-shadow: 0 0 0 rgba(0,0,0,0);
    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

/* Săgeata verde din buton (pseudo-element) */
.main-nav ul.main-menu > li.top-contact-menu-item > a::after {
    content: "↗";
    display: inline-block;
    font-size: 14px;
    color: var(--gold-accent);
    transition: transform 0.25s ease, color 0.25s ease;
}

/* Hover – efect ca pe greenice */
.main-nav ul.main-menu > li.top-contact-menu-item > a:hover {
    border-color: var(--gold-accent);
    background: rgba(0,0,0,0.35);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(212,175,55,0.35);
    transform: translateY(-1px);
}

.main-nav ul.main-menu > li.top-contact-menu-item > a:hover::after {
    transform: translateX(4px);
    color: #ffffff;
}

/* STICKY – micșorare logo la scroll */
.site-header.is-scrolled .header-inner {
    padding-top: 6px;
    padding-bottom: 6px;
}

.site-header.is-scrolled .header-logo {
    height: 64px;
}

/* ==============================
   MENIU MOBIL (BURGER)
============================== */

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    flex: 0 0 auto;
}

.menu-toggle .menu-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    margin: 4px 0;
    background: #e5e7eb;
    transition: transform var(--transition-fast),
                opacity var(--transition-fast),
                background var(--transition-fast);
}

/* Animație burger -> X */
.menu-toggle.is-open .menu-toggle-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.menu-toggle.is-open .menu-toggle-bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.is-open .menu-toggle-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Layout responsive header */
@media (max-width: 992px) {

    .header-inner {
        align-items: flex-start;
    }

    .header-contact-box {
        display: none; /* ascundem boxul mare de contact pe mobil ca să nu aglomerăm header-ul */
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(
            to bottom,
            #000000 0%,
            #0f0f0f 40%,
            #1a1a1a 100%
        );
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
    }

    .main-nav.is-open {
        max-height: 500px; /* suficient pentru câteva item-uri; se poate ajusta */
    }

    .main-nav ul.main-menu {
        flex-direction: column;
        align-items: flex-start;
        padding: 8px 12px 12px 12px;
        gap: 4px;
    }

    .main-nav ul.main-menu > li > a {
        width: 100%;
        padding: 10px 10px;
        border-radius: 4px;
    }

    /* Submeniu mobil – afișat ca listă simplă, indentată */
    .main-nav ul.main-menu li ul.sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #020617;
        margin-top: 4px;
        padding: 4px 0 4px 10px;
        border-radius: 4px;
    }

    .main-nav ul.main-menu li ul.sub-menu li a {
        padding: 6px 10px;
        font-size: 14px;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }
}

/* ==============================
   SITE MAIN – spațiu sub header
============================== */

.site-main {
    padding-top: 150px; /* aproximativ înălțimea header-ului */
}

@media (max-width: 992px) {
    .site-main {
        padding-top: 130px;
    }
}

@media (max-width: 768px) {
    .site-main {
        padding-top: 120px;
    }
}

/* ==============================
   SIDEBAR CONTACT din pagini
============================== */

.sidebar-contact {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-soft);
}

.sidebar-contact h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

.sidebar-contact p {
    font-size: 14px;
}

.sidebar-contact ul {
    padding-left: 18px;
    margin: 8px 0;
}

.sidebar-contact a {
    color: var(--blue-primary);
}

/* ==============================
   CARDURI SERVICII / DOMENII
============================== */

.services-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-soft);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(148,163,184,0.3);
}

.services-card h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

.services-card p {
    margin-bottom: 16px;
    font-size: 14px;
}

.services-card .wp-block-buttons {
    margin-top: auto;
}

/* Buton "Află mai mult" – stil similar cu butonul Contact din meniu */
.services-card .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 8px 22px;
    border-radius: 999px;
    border: 1.5px solid var(--gold-accent);

    background: transparent;
    color: #ffffff;
    background-color: #000000; /* îl facem dark ca să semene cu headerul */

    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;

    box-shadow: 0 0 0 rgba(0,0,0,0);
    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

/* Săgeata din butonul "Află mai mult" */
.services-card .wp-block-button__link::after {
    content: "↗";
    display: inline-block;
    font-size: 14px;
    color: var(--gold-accent);
    transition: transform 0.25s ease, color 0.25s ease;
}

/* Hover – efect ca la butonul Contact din meniu */
.services-card .wp-block-button__link:hover {
    border-color: var(--gold-accent);
    background: #111111;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(212,175,55,0.35);
    transform: translateY(-1px);
}

.services-card .wp-block-button__link:hover::after {
    transform: translateX(4px);
    color: #ffffff;
}


/* ==============================
   CONTAINERE POSTĂRI BLOG
============================== */

.post-container {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin: 20px 0;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
}

.post-container h2 {
    font-size: 1.5rem;
    color: var(--blue-primary);
    margin-top: 0;
}

.post-interaction {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid var(--border-soft);
}

/* ==============================
   FOOTER
============================== */

.site-footer {
    background: linear-gradient(
        to bottom,
        #1e1e1e 0%,
        #161616 40%,
        #0d0d0d 100%
    );
    color: #ffffff;
    padding: 30px 20px;
    margin-top: 40px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-copy {
    margin: 0 0 8px 0;
    opacity: 0.85;
    font-size: 14px;
}

.footer-legal {
    font-size: 13px;
}

.footer-legal a {
    color: #b0b0b0;
    opacity: 0.9;
    text-decoration: underline;
    transition: color 0.25s ease, opacity 0.25s ease;
}

.footer-legal a:hover {
    color: #ffffff;
    opacity: 1;
}

.footer-separator {
    margin: 0 6px;
    color: #ffffff;
    opacity: 0.6;
}

/* ==============================
   COOKIE BANNER
============================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15,23,42,0.96);
    color: #ffffff;
    z-index: 9999;
    font-size: 14px;
    padding: 0;
}

.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.cookie-banner p {
    margin: 0;
    flex: 1 1 260px;
}

.cookie-banner a {
    color: var(--gold-accent);
    text-decoration: underline;
}

.cookie-accept-btn {
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    background: var(--gold-accent);
    color: var(--blue-primary);
    font-weight: 600;
    cursor: pointer;
    flex: 0 0 auto;
}

.cookie-accept-btn:hover {
    opacity: 0.9;
}

@media (max-width: 600px) {
    .cookie-banner-inner {
        align-items: flex-start;
    }

    .cookie-accept-btn {
        width: 100%;
        margin-top: 8px;
    }
}

/* ==============================
   HERO BANNER – HomePage BAIA MARE
============================== */

.hero-banner-muzeu {
    width: 100%;
    height: 420px; /* poți crește la 500-600px dacă vrei mai „cinematic” */
    background-image: url('http://localhost/avocatbv/wp-content/uploads/2025/11/HomePageIMG.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    margin: 0;
    padding: 0;
    display: block;

    /* stare inițială pentru animație */
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

/* când devine vizibilă (clasă adăugată din JS) */
.hero-banner-muzeu.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* „sticky feel” / parallax light pe desktop */
@media (min-width: 768px) {
    .hero-banner-muzeu {
        background-attachment: fixed;
    }
}

/* pe unele mobile background-attachment: fixed nu e bine suportat – îl dezactivăm explicit */
@media (max-width: 767px) {
    .hero-banner-muzeu {
        background-attachment: scroll;
    }
}

/* ==============================
   HERO HOME – IMAGINE BACKGROUND
============================== */

.home-hero {
    width: 100%;
    height: 420px;
    position: relative;
    margin: 0;
    padding: 0;

    background-image: url('https://avocatmaramures.ro/wp-content/uploads/2026/01/avocat-bianca-verdes-baia-mare.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    color: #f9fafb;
    display: flex;
    align-items: center;
}

/* overlay întunecat peste imagine, ca textul să fie clar */
.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.92) 0%,
        rgba(15, 15, 15, 0.88) 20%,
        rgba(43, 43, 43, 0.70) 50%,
        rgba(91, 111, 73, 0.55) 75%,
        rgba(91, 111, 73, 0.00) 100%
    );
}

/* conținutul propriu-zis */
.home-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
    text-align: center;
}

.home-hero-inner h1 {
    font-size: 2.4rem;
    line-height: 1.2;
    margin-bottom: 16px;
    color: #f9fafb;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.home-hero-inner p {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 760px;
    margin: 0 auto 24px;
    color: #e5e7eb;
}

/* Imagine de fundal pentru mobil */
@media (max-width: 768px) {
    .home-hero {
        background-image: url('https://avocatmaramures.ro/wp-content/uploads/2026/01/avocat-bianca-verdes-baia-mare.webp');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        height: 250px;
    }
}

/* buton CTA, armonizat cu paleta site-ului */
.home-hero-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 999px;

    background: var(--gold-accent);
    color: var(--blue-primary);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.03em;
    text-decoration: none;
    border: 1px solid var(--gold-accent);

    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.5);
    transition: background 0.2s ease, color 0.2s ease,
                transform 0.2s ease, box-shadow 0.2s ease;
}

.home-hero-btn:hover,
.home-hero-btn:focus {
    background: var(--blue-primary);
    color: #f9fafb;
    border-color: var(--gold-accent);
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.6);
}

/* Butonul "Contactează-ne" – stil identic cu .home-hero-btn */
.wp-block-button__link.has-vivid-cyan-blue-background-color {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 999px;

    background: var(--gold-accent) !important;
    color: var(--blue-primary) !important;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.03em;
    text-decoration: none;
    border: 1px solid var(--gold-accent);

    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.5);
    transition: background 0.2s ease, color 0.2s ease,
                transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover/focus – la fel ca .home-hero-btn */
.wp-block-button__link.has-vivid-cyan-blue-background-color:hover,
.wp-block-button__link.has-vivid-cyan-blue-background-color:focus {
    background: var(--blue-primary) !important;
    color: #f9fafb !important;
    border-color: var(--gold-accent);
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.6);
}

/* pe mobil, micșorăm un pic totul */
@media (max-width: 768px) {
    .home-hero {
        height: 360px;
        align-items: flex-end;
        padding-bottom: 32px;
    }

    .home-hero-inner h1 {
        font-size: 1.8rem;
    }

    .home-hero-inner p {
        font-size: 0.95rem;
    }

    .home-hero-btn {
        padding: 10px 22px;
        font-size: 0.95rem;
    }
}

/* ==============================
   TITLURI PAGINI – ASCUNSE
============================== */

.page .entry-title,
.page h1.entry-title,
.page .page-title {
    display: none !important;
}

/* ==============================
   AJUSTĂRI MOBILE
============================== */

/* Afișăm datele de contact pe mobil (dacă vrei să nu fie ascunse) */
@media (max-width: 992px) {
    .header-contact-box {
        display: flex !important;
        flex-direction: column;
        gap: 4px;
        color: #f5f5f5;
        padding: 4px 0;
    }
}

/* Pe mobil NU afișăm submeniurile (subpagini) */
@media (max-width: 992px) {
    .main-nav ul.main-menu li ul.sub-menu {
        display: none !important;
    }

    /* Ascundem și săgeata ▼ */
    .main-nav ul.main-menu li.menu-item-has-children > a::after {
        display: none !important;
    }
}

/* (opțional) – aici poți adăuga alte ajustări de pagină specială */


/* Data articolului – styling */
.post-date {
  font-size: 14px;
  color: #444;
  margin: 10px 0 20px;
  opacity: 0.85;
}




/* mofificari posturi */

.post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.post-card h2,
.post-card h3 {
    margin-top: 0;
}

.post-card .post-excerpt {
    flex-grow: 1; /* împinge CTA-ul în jos */
}

.post-card .post-readmore {
    margin-top: auto;
    font-weight: 600;
    color: #5b6f49;
}

/* grila de post */

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 22px;
}

.posts-grid .post-card {
    height: 100%;
}

/* pt html carduri */
.post-card {
    position: relative;
    overflow: hidden;
}

.post-link-overlay {
    position: absolute;
    inset: 0; /* acoperă complet cardul */
    z-index: 5;
    text-indent: -9999px;
    background: transparent;
}


/* =========================
   BLOG – GRID & CARDURI
========================= */

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    align-items: stretch;
}

/* Card articol */

.post-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    transition:
        transform 0.18s ease-out,
        box-shadow 0.18s ease-out,
        border-color 0.18s ease-out;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.14);
    border-color: rgba(91, 111, 73, 0.7); /* olive */
}

/* Overlay link = tot cardul clicabil */

.post-link-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    background: transparent;
    text-indent: -9999px;
}

/* Imagine */

.post-card-thumb img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}

/* Conținut */

.post-card-body {
    position: relative;
    z-index: 6; /* peste overlay, ca să fie textul selectabil dar click-ul să meargă */
    display: flex;
    flex-direction: column;
    padding: 16px 18px 14px;
    height: 100%;
}

.post-card-meta {
    margin: 0 0 6px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6b7280;
}

.post-card-title {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.post-card-title a {
    color: #111827;
}

.post-card-title a:hover {
    color: #5b6f49;
}

.post-excerpt {
    font-size: 0.95rem;
    color: #4b5563;
    margin-bottom: 14px;
    flex-grow: 1; /* împinge footerul în jos => egalizare */
}

/* Footer card */

.post-card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 0.85rem;
    font-weight: 600;
    color: #5b6f49;
}

.post-readmore::after {
    content: " →";
}

/* Pagination */

.posts-pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.posts-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    margin: 0 4px;
    border-radius: 999px;
    font-size: 0.86rem;
    text-decoration: none;
    border: 1px solid rgba(148, 163, 184, 0.4);
    color: #374151;
    padding: 0 10px;
}

.posts-pagination .page-numbers.current {
    background: #5b6f49;
    border-color: #5b6f49;
    color: #f9fafb;
}

.posts-pagination .page-numbers:hover:not(.current) {
    background: #f3f4f6;
}

/* =========================
   SINGLE POST
========================= */

.post-container {
    max-width: 780px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.10);
    padding: 24px 24px 28px;
}

.post-header {
    margin-bottom: 18px;
}

.post-header h1 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.9rem;
}

.post-date {
    font-size: 0.85rem;
    color: #6b7280;
}

.post-intro {
    font-size: 1rem;
    color: #4b5563;
    margin-top: 6px;
}

.post-content {
    font-size: 1rem;
    color: #111827;
}

.post-content h2,
.post-content h3 {
    margin-top: 26px;
}

.post-content p {
    margin-bottom: 14px;
}

/* CTA sub articol */

.post-cta {
    margin-top: 30px;
    padding: 18px 18px 20px;
    border-radius: 16px;
    background: #f3f4f6;
    border-left: 4px solid #5b6f49;
}

.post-cta h2 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.post-cta .btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid #5b6f49;
    background: #5b6f49;
    color: #f9fafb;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.post-cta .btn-action:hover {
    background: #6b7f55;
}

/* Meta tags */

.post-meta {
    margin-top: 18px;
    font-size: 0.85rem;
    color: #6b7280;
}

.post-meta .post-tags span {
    display: inline-block;
    margin-right: 6px;
}


/* Layout conținut + sidebar */

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.1fr);
    gap: 32px;
}

.content-main {
    min-width: 0;
}

.content-sidebar {
    position: sticky;
    top: 130px;
    align-self: flex-start;
}

.sidebar-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px 18px 14px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    font-size: 0.95rem;
}

.sidebar-box + .sidebar-box {
    margin-top: 16px;
}

.sidebar-box h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1rem;
}

/* Responsive */

@media (max-width: 992px) {
    .content-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .content-sidebar {
        position: static;
    }
}

.entry-content h1,
article h1,
section h1 {
  font-size: 2.4rem;
  line-height: 1.2;
}


