* {
    box-sizing: border-box;
}

aside, article, body, div, footer, header, html, nav, ol, ul, li, p {
    margin: 0;
    padding: 0;
}

header.hprincipal {
    background-image: url('../imagini/vin-sun-rise2.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    max-width: 200vh;
    height: 14rem;
    
}


header.hprincipal-m {
    background-image: url('../imagini/marturie2.png');
    background-size: cover;
    background-repeat: no-repeat;
    max-width: 200vh;
    height: 14rem;
    
}


header.hprincipal-dn {
    background-image: url('../imagini/thereishope.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    max-width: 200vh;
    height: 14rem;
}


header.hprincipal-c {
    background-image: url('../imagini/img12.png');
    background-size: cover;
    background-repeat: no-repeat;
    max-width: 200vh;
    height: 14rem;
    overflow: hidden; /* This prevents the header from covering the nav */
    position: relative;
    
}



header img{
    opacity: 1.0;
}

header.hprincipal-m img{
    opacity: 0.3;
}

header img:hover{
    opacity: 0.8;
}



.logoheader {
    display: block;
    float: right;
    margin-top: 20px;
}


.button {
         height: 60px;
         width: 60px;
         margin: 10px;
         float: left;
         cursor: pointer;
         background: #fff;
         overflow: hidden;
         border-radius: 10px;
         line-height: 60px;
         transition: all 0.3s ease-in-out;
         box-shadow: 0px 10px 10px rgba(0,0,0,0.1);
         float: right;
      }
      .button .icon{
         height: 60px;
         width: 60px;
         display: inline-block;
         transition: all 0.3s ease-in-out;
         text-align: center;
         border-radius: 10px;
      }

      .button .icon i{
         font-size: 25px;
         transition: all 0.3s ease-in-out;
         line-height: 60px;

      }


      .button span{
         font-size: 20px;
         font-weight: 500;
         line-height: 60px;
         margin-left: 10px;
      }

      .button:nth-child(1):hover .icon{
         background: #4267b2;
      }

      .button:nth-child(1)span{
         color: #4267b2;
      }

      .<!-- button:hover i{
         color:  #fff;
      } -->

      .button:hover {
         width: 200px;
      }
      .background_image {
         background-image: url('./RV_FINAL_Rom.jpg');
         background-size: cover;
         background-repeat: no-repeat;
         height: 100vh;
        
      }
nav.navbar {
    background-color: #f0e7b4;
    height: 2.5rem;
    position: relative;
    z-index: 9999;
    clear: both;
    display: block;
    width: 100%;
}

.navbar-links ul {
    display: flex; /* Lines them up perfectly without overlapping */
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.navbar-links li {
    display: block;
}

.navbar-links li a {
    color: #190763;
    font-weight: bold;
    display: block;
    width: 12rem; 
    text-align: center;
    text-decoration: none;
    height: 2.5rem;
    line-height: 2.5rem; 
    transition: background-color 0.3s;
}

/* Hover Effect */
.navbar-links li a:hover {
    background-color: #6fd6b0;
}

/* The Active Link Highlight */
.navbar-links li.activ a {
    background-color: #6fd6b0 !important;
    color: #190763 !important;
}

/* --- FIX FOR THE INVISIBLE TOGGLE BUTTON --- */
.toggle-button {
    display: none !important; /* This stops it from blocking desktop clicks */
}

main {
    padding: 0.3rem;

}

main article {
    width: 98%;
    margin: 1% auto;
    background-color: #e3edc0;
    padding: 1rem;
    border-radius: 5px;
}

aside {
   padding: 0.3em;
   overflow: hidden;
}

aside article {
    width: 32%;
    padding: 0.5rem;
    /*background-color: #FFFFFF;*/
    border-radius: 5px;
    float: left;
}

aside .stanga {
        margin: 0 0 1% 1%;
}


aside .stangac {
    width: 48%;
        margin: 0 0 1% 1%;
}

aside .mijloc {
    margin: 0 1% 1% 1%;
    border-left-style:dashed;
    border-left-width:1px;
    border-left-color:#ffcc00;
    border-right-style:dashed;
    border-right-width:1px;
    border-right-color:#ffcc00;
}

aside .dreapta {
    margin: 0 1% 1% 0;
}

aside .dreaptac {
    width: 48%;
    margin: 0 1% 1% 0;
    float: right;
}

aside h1, aside p {
    color: #190763;
}

#continutPagina {
    background-color: #ddeda8;
}


.feed {
    border:20px solid #601D0C;
    width: 70%;
    padding-left: 10px;
    margin-left: 10px;
}

.marturie {
    border:20px solid #601D0C;
    width: 70%;
    margin-bottom: 7px;
    padding-left: 10px;
    margin-left: 10px;
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
}


.toggle-button {
    position: relative;
    height: 150px;
    width: 100%;
    flex-direction: column;
    justify-content: space-between;
    display: none;
    
}

.toggle-button .bar{
    height: 3px;
    width: 100%;
    background-color: whitesmoke;
    border-radius: 7px;
    display: none;
    flex-direction: column;
    justify-content: space-evenly;
    width: 31px;
    height: 7px;
    margin-top: 3px;
}

.toggle-button .bar :hover {
    style="clear:both;"
}

.pttel {
    padding: 10px;
    border: 10px;
    display: none;
}

footer {
    border:2px solid black;
    margin-bottom: 7px;
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
    background-color: #565656;
    /* vechea culoare de background: #6fd6b0 */
}

footer p {
    text-align: center;
    <!--height: 3.5rem;-->
    line-height: 1.8rem;
}

@media (max-width: 800px) {
    /* 1. Reset Header and Logo */
    header.hprincipal, header.hprincipal-m, header.hprincipal-dn, header.hprincipal-c {
        height: auto;
        min-height: 12rem;
    }

    .logoheader {
        width: 120px; /* Adjusted for better visibility */
        height: auto;
        float: none;
        margin: 10px auto;
        display: block;
    }

    /* 2. Toggle Button Styling */
    .toggle-button {
        display: flex !important; 
        position: absolute;
        top: 0.5rem;
        right: 1rem;
        width: 35px;
        height: 25px;
        z-index: 10000;
        cursor: pointer;
    }

    .toggle-button .bar {
        display: block !important;
        width: 100%;
        height: 4px;
        background-color: #190763; /* Changed to dark so it's visible on light yellow nav */
        border-radius: 10px;
    }

    /* 3. The Menu Logic */
    .navbar {
        height: auto !important; /* Allow nav to expand when menu is open */
    }

    .navbar-links {
        display: none; /* Hidden by default on mobile */
        width: 100%;
    }

    /* This class is added via JavaScript when you click the button */
  /* Force the menu to show and stack links */
.navbar-links.active {
    display: block !important;
    background-color: #f0e7b4; /* Match your nav color */
    position: absolute;
    top: 2.5rem; /* Puts it right under the nav bar */
    left: 0;
    width: 100%;
    z-index: 10001;
}

.navbar-links.active ul {
    display: flex !important;
    flex-direction: column !important;
}

    .navbar-links li a {
        width: 100% !important;
        text-align: center;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    /* 4. Content Stacking */
    aside article {
        width: 100% !important;
        float: none !important;
        margin: 10px 0 !important;
        display: block !important; /* Overriding your 'display: none' so content stays visible */
    }
}
