/* ====================================
   OSNOVNI WRAPPER – isto kao podno
   ==================================== */

.enerset-baza-page {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    color: #2c3e50;
    line-height: 1.6;
}

.enerset-baza-page * {
    box-sizing: border-box;
}

.enerset-baza-page .page-wrapper {
    width: 100%;
    min-height: 100%;
}

/* ====================================
   HERO – novi gradijent + blur panel
   (isti kao na podnom)
   ==================================== */

.enerset-baza-page .hero {
    background: linear-gradient(135deg, #17263C 0%, #FFFFFF 45%, #E51C3C 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.enerset-baza-page .hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
    background: rgba(23, 38, 60, 0.65);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.enerset-baza-page .hero h1 {
    font-size: 2.5rem;
    margin: 0 0 24px 0;
    font-weight: 700;
    line-height: 1.2;
    color: #F9FAFB;
}

.enerset-baza-page .hero p {
    font-size: 1.125rem;
    margin: 0 0 32px 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    color: #E5E7EB;
}

/* ====================================
   GLAVNI CONTAINER
   ==================================== */

.enerset-baza-page .main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Section headings (intro sekcija) */

.enerset-baza-page .section-heading {
    font-size: 2rem;
    color: #1e3a8a;
    margin: 0 0 16px 0;
    font-weight: 700;
}

.enerset-baza-page .section-description {
    font-size: 1.125rem;
    color: #4b5563;
    margin: 0 0 48px 0;
    line-height: 1.8;
}

/* ====================================
   CATEGORIES GRID – kao products-grid
   ==================================== */

.enerset-baza-page .categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.enerset-baza-page .category-card {
    background: white;
    border-radius: 16px;
    overflow: hidden; /* slika + header prate zaobljene ivice */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.enerset-baza-page .category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

/* ====================================
   CATEGORY HEADER – rame za sliku
   (analogno .product-header)
   ==================================== */

.enerset-baza-page .category-header {
    position: relative;         /* da labela, naslov i tagline mogu preko */
    height: 220px;              /* visina headera – prilagodi po potrebi */
    padding: 0;
    margin: 0;
    overflow: hidden;
    border-bottom: 1px solid #e5e7eb;
    background: #000;           /* fallback dok se slika ne učita */
}

/* SLIKA U BOXU – ti samo ubaciš src u PHP
   <img class="category-image" src="..." alt="...">
*/
.enerset-baza-page .category-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;  /* popuni okvir, može malo iseći ivice slike */
}

/* Tamni gradijent preko slike da se tekst lepo vidi */
.enerset-baza-page .category-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0.4) 40%,
        rgba(0, 0, 0, 0.05) 100%
    );
    z-index: 1;
}

/* Naslov preko slike (kao h3 na product-header-u) */
.enerset-baza-page .category-header h3 {
    position: absolute;
    bottom: 38px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 6px 16px;
    background: rgba(0,0,0,0.45);
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    border-radius: 6px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    text-align: center;
    z-index: 2;
}

/* Tagline ispod naslova, takođe preko slike */
.enerset-baza-page .category-header .category-tagline {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 2px 10px;
    color: #E5E7EB;
    font-size: 0.9rem;
    text-align: center;
    z-index: 2;
    opacity: 0.95;
}

/* “Najpopularnije” badge – lep i istaknut */
.enerset-baza-page .category-label {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    background: #fbbf24;
    color: #78350f;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

/* Za svaki slučaj – da tema ne sakrije h3 */
.enerset-baza-page .category-card h3 {
    opacity: 1 !important;
    visibility: visible !important;
}

/* ====================================
   DONJI DEO KARTICE – body
   (analogno .product-body)
   ==================================== */

.enerset-baza-page .category-body {
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.enerset-baza-page .category-description {
    font-size: 1rem;
    color: #4b5563;
    margin: 0 0 20px 0;
    line-height: 1.8;
}

/* Highlights blok (kutija sa listom) */

.enerset-baza-page .category-highlights {
    background: #f8fafc;
    border-left: 4px solid #E51C3C;
    padding: 16px 18px;
    margin: 0 0 20px 0;
    border-radius: 8px;
}

.enerset-baza-page .category-highlights h4 {
    font-size: 1rem;
    color: #1e3a8a;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.enerset-baza-page .category-highlights ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.enerset-baza-page .category-highlights li {
    padding: 4px 0;
    color: #6b7280;
    position: relative;
    padding-left: 22px;
    font-size: 0.95rem;
}

.enerset-baza-page .category-highlights li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #c41e3a;
    font-weight: bold;
}

/* ====================================
   CRVENO CTA DUGME U SVAKOJ KARTICI
   – ISTA FILOZOFIJA KAO NA PODNOM
   ==================================== */

.enerset-baza-page .category-cta {
    display: block;        /* dugme zauzima celu širinu */
    width: 100%;
    text-align: center;    /* tekst centriran */
    margin-top: auto;      /* gura dugme na dno kartice */
    align-self: stretch;
    background: #c41e3a;
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.enerset-baza-page .category-cta:hover {
    background: #a01829;
    transform: scale(1.05);
}

/* ====================================
   GLOBAL CTA BUTTON (u footer-u)
   – preuzima stil iz podnog .cta-button
   ==================================== */

.enerset-baza-page .cta-button {
    display: inline-block;
    background: white;
    color: #182A44;
    padding: 16px 40px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1.125rem;
}

.enerset-baza-page .cta-button:hover {
    background: #f0f0f0;
    transform: none;
}

/* ====================================
   CTA FOOTER – gradijent + crn tekst
   (isti feeling kao na podnom)
   ==================================== */

.enerset-baza-page .cta-footer {
    background: linear-gradient(135deg, #17263C 0%, #FFFFFF 45%, #E51C3C 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    border-radius: 16px;
    margin-bottom: 40px;
}

.enerset-baza-page .cta-footer h2 {
    font-size: 2rem;
    margin: 0 0 16px 0;
    font-weight: 700;
    color: #182A44; /* boja teksta naslova */
}

.enerset-baza-page .cta-footer p {
    font-size: 1.125rem;
    margin: 0 0 32px 0;
    opacity: 0.95;
    color: #182A44; /* boja teksta opisa */
}

/* ====================================
   RESPONSIVE
   ==================================== */

@media (max-width: 768px) {
    .enerset-baza-page .hero h1 {
        font-size: 1.875rem;
    }

    .enerset-baza-page .hero p {
        font-size: 1rem;
    }

    .enerset-baza-page .section-heading {
        font-size: 1.5rem;
    }

    .enerset-baza-page .categories-grid {
        grid-template-columns: 1fr;
    }

    .enerset-baza-page .cta-footer h2 {
        font-size: 1.5rem;
    }
}
