/* ==========================================================================
   Base Styles
   ========================================================================== */
body { 
    font-family: 'Segoe UI', Roboto, Arial, sans-serif; 
    font-size: 17px; 
    line-height: 1.8; 
    margin: 0; 
    padding: 0; 
    background: #f4f4f4; 
    color: #222; 
    letter-spacing: 0.2px; 
    scroll-behavior: smooth; 
}

h2, h3 { 
    color: #004a99; 
}

.main-title {
    font-size: 2em; 
    color: #333; 
    margin-top: 0;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header { 
    background: #004a99; /* Albastru Hidroelectrica */
    color: white; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    border-bottom: 3px solid #ffcc00; /* Accentuare galben */
}

.header-container { 
    max-width: 1200px; 
    margin: auto; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 0.5em 1em; 
}

.header-logo a { 
    color: #fff; 
    font-size: 24px; 
    font-weight: 700; 
    text-decoration: none; 
}

nav { 
    display: flex; 
    gap: 1.5em; 
}

nav a { 
    color: white; 
    text-decoration: none; 
    font-weight: 500; 
}

.menu-toggle { 
    display: none; 
    font-size: 30px; 
    color: #ffffff; 
    cursor: pointer; 
}

/* ==========================================================================
   Hero & Layout
   ========================================================================== */
.hero-container { 
    max-width: 1200px; 
    margin: 20px auto; 
    display: flex; 
    gap: 20px; 
    padding: 0 15px; 
}

.hero-left { 
    flex: 2; 
}

.hero-right { 
    flex: 1; 
    background: #fff; 
    padding: 20px; 
    border-radius: 8px; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); 
    height: fit-content; 
}

.toc-title { 
    margin-top: 0; 
    font-size: 20px; 
    color: #004a99; 
    border-bottom: 2px solid #ffcc00; 
    padding-bottom: 10px; 
    margin-bottom: 15px; 
}

.toc-list { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}

.toc-list li { 
    margin-bottom: 8px; 
    border-bottom: 1px solid #eee; 
    padding-bottom: 5px; 
}

.toc-list a { 
    text-decoration: none; 
    color: #333; 
    font-size: 15px; 
}

.toc-list a:hover { 
    color: #004a99; 
}

.main-content { 
    max-width: 1200px; 
    margin: 20px auto; 
    background: white; 
    padding: 30px; 
    border-radius: 8px; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); 
    box-sizing: border-box; 
}

.responsive-img { 
    max-width: 100%; 
    height: auto; 
    display: block; 
    border-radius: 5px; 
}

.section-title { 
    font-size: 22px; 
    color: #004a99; 
    display: inline-block; 
    padding-bottom: 6px; 
    border-bottom: 2px solid #ffcc00; 
    margin-bottom: 15px; 
}

.btn-suna { 
    display: inline-block; 
    background: #004a99; 
    color: white; 
    padding: 12px 25px; 
    text-decoration: none; 
    border-radius: 5px; 
    font-weight: bold; 
    margin: 15px 0; 
}

.highlight-box { 
    background: #f9f9f9; 
    border-left: 5px solid #ffcc00; 
    padding: 20px; 
    margin: 20px 0; 
}

/* ==========================================================================
   Table & Ads Components
   ========================================================================== */
.ad-inline {
    display: block; 
    text-align: center;
}

.data-table {
    width: 100%; 
    border-collapse: collapse; 
    margin: 20px 0; 
    font-size: 16px;
}

.data-table thead tr {
    background-color: #1a4a8e; 
    color: white; 
    text-align: left;
}

.data-table th, 
.data-table td {
    padding: 12px; 
    border: 1px solid #ddd;
}

.data-table .row-alt {
    background-color: #f9f9f9;
}

/* ==========================================================================
   Hidro Custom Container
   ========================================================================== */
.container-hidro-final { 
    border: 1px solid #d4af37; 
    border-radius: 5px; 
    padding: 35px; 
    margin: 20px auto; 
    background-color: #ffffff; 
    max-width: 100%; 
    box-sizing: border-box; 
    outline: 2px solid #8a6d3b; 
    outline-offset: -3px; 
    box-shadow: 0 8px 20px rgba(0,0,0,0.15), inset 0 0 0 2px #f1d592, inset 0 0 15px rgba(0,0,0,0.2); 
    font-family: Arial, sans-serif; 
    color: #333; 
    line-height: 1.6; 
}

.titlu-hidro { 
    font-weight: bold; 
    font-size: 20px; 
    margin-top: 0; 
    margin-bottom: 25px; 
    color: #000; 
    text-align: left; 
}

.rand-hidro { 
    display: flex; 
    align-items: flex-start; 
    margin-bottom: 18px; 
    text-align: left; 
}

.check-v { 
    color: #2e7d32; 
    font-weight: bold; 
    margin-right: 12px; 
    font-size: 20px; 
    line-height: 1; 
}

.tel-activ { 
    color: #0335ab !important; 
    text-decoration: underline !important; 
    font-weight: bold; 
}

/* ==========================================================================
   Conventie Consum Section
   ========================================================================== */
.section-conventie {
    padding: 50px 0; 
    display: block;
}

.conventie-box {
    font-family: Arial, sans-serif; 
    line-height: 1.6; 
    color: #333; 
    margin-top: 25px;
}

.text-blue {
    color: #1a4a8e;
}

.list-padded {
    padding-left: 20px;
}

.mb-8 {
    margin-bottom: 8px;
}

.notice-box {
    background-color: #f9f9f9; 
    padding: 15px; 
    border-left: 4px solid #ccc;
}

.tip-box {
    background-color: #f0f7ff; 
    border-left: 5px solid #3b71ca; 
    padding: 15px; 
    font-style: italic;
}

/* ==========================================================================
   Section Container & Steps
   ========================================================================== */
.section-container { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    color: #333; 
    line-height: 1.6; 
    margin: 20px auto; 
}

.header-box { 
    background-color: #3b71ca; 
    color: white; 
    padding: 15px 20px; 
    display: inline-block; 
    font-size: 24px; 
    font-weight: bold; 
    margin-bottom: 20px; 
}

.intro-text { 
    margin-bottom: 25px; 
}

.link-custom { 
    color: #3b71ca; 
    text-decoration: underline; 
}

.steps-list { 
    list-style: none; 
    padding: 0; 
}

.step-item { 
    display: flex; 
    align-items: center; 
    margin-bottom: 12px; 
    font-weight: bold; 
}

.step-number { 
    background-color: #28a745; 
    color: white; 
    width: 24px; 
    height: 24px; 
    border-radius: 50%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    font-size: 14px; 
    margin-right: 15px; 
    flex-shrink: 0; 
}

.benefits-box { 
    border: 1px solid #28a745; 
    padding: 0; 
    margin-top: 30px; 
}

.benefits-header { 
    background-color: #3b71ca; 
    color: white; 
    padding: 10px 15px; 
    margin: 0; 
    font-size: 18px; 
    font-weight: bold; 
}

.benefits-list { 
    list-style: none; 
    padding: 15px; 
    margin: 0; 
}

.benefit-item { 
    display: flex; 
    align-items: flex-start; 
    margin-bottom: 8px; 
}

.benefit-item::before { 
    content: '✓'; 
    color: #3b71ca; 
    font-weight: bold; 
    margin-right: 10px; 
}

.benefit-title { 
    color: #3b71ca; 
    font-weight: bold; 
    text-decoration: underline; 
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-wrapper { 
    max-width: 850px; 
    margin: 40px auto; 
    font-family: 'Segoe UI', Roboto, sans-serif; 
    color: #333; 
}

.faq-title { 
    text-align: center; 
    color: #1a4a8e; 
    margin-bottom: 30px; 
    font-size: 28px; 
    font-weight: 800; 
}

.faq-item { 
    background: #fff; 
    border: 1px solid #e0e6ed; 
    border-radius: 8px; 
    margin-bottom: 15px; 
    overflow: hidden; 
    transition: all 0.3s ease; 
}

.faq-item:hover { 
    border-color: #3b71ca; 
    box-shadow: 0 4px 12px rgba(59, 113, 202, 0.1); 
}

.faq-question { 
    padding: 18px 25px; 
    background: #f8f9fa; 
    cursor: pointer; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    font-weight: 600; 
    font-size: 17px; 
    color: #1a4a8e; 
}

.faq-question::after { 
    content: '+'; 
    font-size: 22px; 
    color: #3b71ca; 
    transition: transform 0.3s ease; 
}

.faq-item.active .faq-question::after { 
    transform: rotate(45deg); 
}

.faq-item.active .faq-question { 
    background: #fff; 
    border-bottom: 1px solid #eee; 
}

.faq-answer { 
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1); 
    padding: 0 25px; 
    background: #fff; 
    line-height: 1.7; 
}

.faq-item.active .faq-answer { 
    max-height: 1000px; 
    padding: 20px 25px; 
}

.highlight-blue { 
    color: #3b71ca; 
    font-weight: 700; 
}

.status-badge { 
    display: inline-block; 
    background: #e7f3ff; 
    color: #1a4a8e; 
    padding: 2px 10px; 
    border-radius: 4px; 
    font-size: 0.9em; 
    margin-top: 10px; 
}

/* ==========================================================================
   Contact Details
   ========================================================================== */
.contact-details {
    font-family: Arial, sans-serif; 
    line-height: 1.6; 
    color: #333; 
    max-width: 800px;
}

.contact-subtitle {
    color: #1a4a8e; 
    border-bottom: 2px solid #1a4a8e; 
    padding-bottom: 5px;
}

.dept-title {
    margin-top: 20px; 
    color: #1a4a8e;
}

/* ==========================================================================
   Reviews System (Placeholder support)
   ========================================================================== */
.review-title {
    color: #005baa; 
    font-family: 'Segoe UI', Arial, sans-serif; 
    border-left: 5px solid #ffc107; 
    padding-left: 15px; 
    margin-top: 40px; 
    margin-bottom: 20px; 
    font-size: 24px; 
    text-transform: uppercase; 
    font-weight: 700;
}

.msg-success {
    color: green;
}

/* ==========================================================================
   App Download Section
   ========================================================================== */
.download-section { 
    background: #fdfdfd; 
    border: 2px solid #e7f3ff; 
    border-radius: 12px; 
    padding: 30px; 
    margin: 30px auto; 
    max-width: 800px; 
    font-family: 'Segoe UI', Tahoma, sans-serif; 
    text-align: center; 
}

.download-title { 
    color: #1a4a8e; 
    font-size: 24px; 
    font-weight: 800; 
    margin-bottom: 15px; 
    text-transform: uppercase; 
}

.download-description { 
    color: #555; 
    font-size: 16px; 
    line-height: 1.6; 
    margin-bottom: 25px; 
}

.app-buttons-container { 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
    flex-wrap: wrap; 
}

.app-btn { 
    display: flex; 
    align-items: center; 
    background-color: #000; 
    color: #fff !important; 
    padding: 10px 20px; 
    border-radius: 8px; 
    text-decoration: none !important; 
    transition: transform 0.2s, background-color 0.2s; 
    min-width: 200px; 
    text-align: left; 
}

.app-btn:hover { 
    background-color: #333; 
    transform: translateY(-3px); 
}

.app-btn i { 
    font-size: 24px; 
    margin-right: 12px; 
}

.btn-text { 
    display: flex; 
    flex-direction: column; 
}

.btn-label { 
    font-size: 11px; 
    text-transform: uppercase; 
    opacity: 0.8; 
}

.btn-store { 
    font-size: 17px; 
    font-weight: 600; 
}

.release-date { 
    display: inline-block; 
    margin-top: 20px; 
    background: #e7f3ff; 
    color: #1a4a8e; 
    padding: 5px 15px; 
    border-radius: 20px; 
    font-size: 14px; 
    font-weight: bold; 
}

/* ==========================================================================
   Recommended Articles Cards
   ========================================================================== */
.recomandate-section { 
    max-width: 1000px; 
    margin: 40px auto; 
    padding: 0 20px; 
}

.pseudo-h2 { 
    display: block; 
    font-size: 1.75rem; 
    font-weight: bold; 
    color: #222; 
    margin-bottom: 25px; 
    border-bottom: 2px solid #eee; 
    padding-bottom: 10px; 
}

.card-articol { 
    background: #fff; 
    border-radius: 10px; 
    overflow: hidden; 
    margin-bottom: 25px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); 
}

.card-container { 
    display: flex; 
    align-items: center; 
}

.card-image-link { 
    flex: 0 0 33.333%; 
    max-width: 33.333%; 
    display: block; 
    overflow: hidden; 
}

.title-link { 
    text-decoration: none; 
    color: inherit; 
    display: inline-block; 
}

.card-image-box { 
    width: 100%; 
    height: 200px; 
    overflow: hidden; 
}

.card-img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block; 
    transition: transform 0.5s ease; 
}

.card-image-link:hover .card-img { 
    transform: scale(1.1); 
}

.card-content { 
    flex: 0 0 66.666%; 
    max-width: 66.666%; 
    padding: 25px; 
    box-sizing: border-box; 
}

.card-title { 
    margin: 0 0 12px 0; 
    font-size: 1.4rem; 
    color: #111; 
    display: inline-block; 
    position: relative; 
}

.card-title::after { 
    content: ''; 
    position: absolute; 
    width: 0; 
    height: 2px; 
    bottom: -2px; 
    left: 0; 
    background-color: #007bff; 
    transition: width 0.3s ease; 
}

.title-link:hover .card-title::after { 
    width: 100%; 
}

.card-summary { 
    color: #555; 
    font-size: 1rem; 
    line-height: 1.6; 
    margin: 0; 
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer { 
    background: #111; 
    color: white; 
    padding: 1.5em 0; 
    text-align: center; 
    margin-top: 30px; 
}

.em-site-footer { 
    background-color: #000000; 
    color: #ffffff; 
    padding: 60px 0 30px; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    border-top: 3px solid #e31e24; 
    margin-top: 50px; 
    line-height: 1.5; 
    text-align: left; 
}

.em-footer-container { 
    max-width: 1200px; 
    margin: 0 auto; 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 40px; 
    padding: 0 15px; 
}

.em-footer-heading { 
    color: #ffffff; 
    font-size: 1.3rem; 
    font-weight: 700; 
    margin-bottom: 25px; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    display: block; 
    border-bottom: 2px solid #e31e24; 
    padding-bottom: 8px; 
    width: fit-content; 
    text-align: left; 
}

.em-footer-column p { 
    color: #d1d1d1; 
    margin: 0 0 15px 0; 
    text-align: left; 
}

.em-footer-list { 
    list-style: none !important; 
    padding: 0 !important; 
    margin: 0 !important; 
    text-align: left; 
}

.em-footer-list li { 
    margin-bottom: 12px !important; 
    list-style: none !important; 
}

.em-footer-list li a { 
    color: #d1d1d1 !important; 
    text-decoration: none !important; 
    display: flex; 
    align-items: center; 
    transition: transform 0.3s ease, color 0.3s ease; 
    font-weight: 600; 
}

.em-footer-list li a::before { 
    content: "→"; 
    display: inline-block; 
    margin-right: 10px; 
    color: #ffefba; 
    font-size: 18px; 
    transition: transform 0.3s ease; 
}

.em-footer-list li a:hover { 
    color: #e31e24 !important; 
    transform: translateX(10px); 
}

.em-footer-list li a:hover::before { 
    transform: scale(1.2); 
    color: #e31e24; 
}

.em-contact-info p { 
    color: #d1d1d1; 
    margin-bottom: 10px; 
    text-align: left; 
}

.footer-copyright {
    text-align: center; 
    margin-top: 40px; 
    padding-top: 20px; 
    border-top: 1px solid #222; 
    font-size: 0.9rem; 
    color: #888;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 992px) { 
    .hero-container { 
        flex-direction: column; 
    } 
}

@media (max-width: 768px) { 
    nav { 
        display: none; 
        flex-direction: column; 
        background: #004a99; 
        padding: 1em; 
        position: absolute; 
        top: 60px; 
        right: 0; 
        width: 200px; 
    } 
    nav.active { 
        display: flex; 
    } 
    .menu-toggle { 
        display: block; 
    } 
    .card-container { 
        flex-direction: column; 
    } 
    .card-image-link, .card-content { 
        flex: 0 0 100%; 
        max-width: 100%; 
    } 
    .card-image-box { 
        height: 220px; 
    } 
    .em-footer-container { 
        grid-template-columns: 1fr; 
        gap: 30px; 
    } 
}

@media (max-width: 600px) { 
    .container-hidro-final { 
        padding: 20px; 
        border-width: 8px; 
    } 
    .titlu-hidro { 
        font-size: 18px; 
    } 
}


/* --- SECTIUNE SHOWROOM-URI EMAG (RESPONSIVE OPTIMIZAT) --- */
.section-emag-showrooms {
    width: 100%;
    margin: 30px 0;
    box-sizing: border-box;
}

.emag-showroom-card {
    background-color: #ffffff;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.emag-title {
    color: #005e9e;
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 12px;
    line-height: 1.3;
}

.emag-intro {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Container cu scroll orizontal fluid pe mobil */
.emag-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Derulare lină pe iOS */
    border-radius: 8px;
    border: 1px solid #edf2f7;
    margin-bottom: 10px;
}

.emag-table {
    width: 100%;
    min-width: 550px; /* Previne înghesuirea coloanelor pe telefoane */
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.emag-table thead {
    background-color: #005e9e;
    color: #ffffff;
}

.emag-table th {
    padding: 12px 14px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.emag-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #edf2f7;
    color: #2d3748;
    vertical-align: middle;
}

/* Setări lățimi coloane pentru aspect echilibrat */
.emag-table td:nth-child(1) {
    width: 25%;
}

.emag-table td:nth-child(2) {
    width: 30%;
}

.emag-table td:nth-child(3) {
    width: 45%;
}

.emag-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.emag-table tbody tr:hover {
    background-color: #f1f5f9;
}

/* Ajustări pentru ecrane foarte mici */
@media (max-width: 640px) {
    .emag-showroom-card {
        padding: 14px;
        border-radius: 8px;
    }

    .emag-title {
        font-size: 1.2rem;
    }

    .emag-intro {
        font-size: 0.9rem;
    }
    
    .emag-table th, 
    .emag-table td {
        padding: 10px 12px;
    }
}


/* --- SECTIUNE RECLAMATII EMAG --- */
.emag-reclamatii-section {
    width: 100%;
    margin: 30px 0;
    box-sizing: border-box;
    font-family: inherit;
}

.emag-reclamatii-header {
    background: #f8fafc;
    border-left: 4px solid #005e9e;
    padding: 20px;
    border-radius: 0 12px 12px 0;
    margin-bottom: 25px;
}

.emag-reclamatii-title {
    color: #005e9e;
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 12px;
    line-height: 1.3;
}

.emag-reclamatii-intro,
.emag-reclamatii-subintro {
    color: #000;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 10px 0;
}

.emag-reclamatii-subintro {
    margin-bottom: 0;
    font-weight: 500;
}

.emag-subtitle {
    color: #1a202c;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 25px 0 15px 0;
}

/* Grid Layout Responsive */
.emag-grid-canale {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

/* Carduri Canale */
.emag-canal-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.emag-canal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.07);
}

.emag-card-highlight {
    border-color: #005e9e;
    background-color: #f0f7ff;
}

.emag-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.emag-card-icon {
    font-size: 1.3rem;
}

.emag-card-header h4 {
    margin: 0;
    color: #005e9e;
    font-size: 1.05rem;
    font-weight: 700;
}

.emag-canal-card p {
    color: #000;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 10px 0;
}

.emag-canal-card ul {
    margin: 0 0 10px 0;
    padding-left: 18px;
    color: #000;
    font-size: 0.95rem;
    line-height: 1.5;
}

.emag-canal-card li {
    margin-bottom: 4px;
}

.emag-link-tel {
    color: #005e9e;
    font-weight: 700;
    text-decoration: none;
}

.emag-link-tel:hover {
    text-decoration: underline;
}

/* Tag-uri */
.emag-tag-timp,
.emag-tag-recomandat {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    margin-top: auto;
}

.emag-tag-timp {
    background-color: #edf2f7;
    color: #4a5568;
}

.emag-tag-recomandat {
    background-color: #005e9e;
    color: #ffffff;
}

/* Mobil Adjustments */
@media (max-width: 640px) {
    .emag-grid-canale {
        grid-template-columns: 1fr;
    }
    
    .emag-reclamatii-header {
        padding: 15px;
        border-radius: 8px;
    }

    .emag-reclamatii-title {
        font-size: 1.2rem;
    }
}