
*{
    box-sizing: border-box;
}


body{
    font-family: "Karla", serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    box-sizing: border-box;
    overflow-x: hidden;
}

.nav{
    display: flex;
    align-items: center;
    padding: 15px 10px;
}

.elem_right{
    margin-left: auto;
    display: flex;
    gap: 13px;
    padding-right: 5px;
}

.logo{
    width: 15dvw;
    height: auto;
}

.search{
    border: none;
}

.search_bar{
    border: 1px solid rgba(15, 15, 15, 0.5); 
    display: flex;
    justify-content: space-between;
    margin-right: 0px; 
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;   
}

.search_bar input{
    border: none;
    width: 100%;
}

.search_bar input:focus{
    outline: none;
}

.search-inside img{
    width: 5dvw;
    height: auto;
}

.menu-btn {
    font-size: 20px;
    color: #0e0d0d;
    background: none;
    border: none;
    cursor: pointer;
    padding-bottom: 6px;
}

.menu-panel {
    position: fixed;
    top: 0;
    visibility: hidden;
    width: 300px;
    height: 100%;
    background-color: #ffffff;
    color: #535353;
    transition: right 0.5s ease-in-out;
    z-index: 1000;
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
}

.menu-panel.open {
    right: 0; 
    visibility: visible;
}

.close-btn {
    font-size: 24px;
    color: #535353;
    background: none;
    border: none;
    cursor: pointer;
    padding: 15px;
}

.menu-links {
    list-style: none;
    padding: 0;
    margin-top: 50px;
    margin-left: 20px;
}

.menu-links li {
    margin: 20px 0;
    line-height: 40px;
}

.menu-links a {
    color: #535353;
    text-decoration: none;
    font-size: 18px;
    font-family: "Poppins";
}

.sorter{    
    margin: auto 0px;
    display: table;
    width: 100%;
    table-layout: fixed;
    gap: 30px;  
    border: 1px solid #000;
    border-collapse: collapse;  
    border-bottom: none;
}

.sorter td{
    margin: auto 0px;
    font-family: "Montserrat";
    font-size: 12px;
    background-color: #000;
    color: #f4f4f4;
    border: 1px solid #000;
    border-bottom: 1px solid #fff;
    padding: 5px 10px;
}

.sorter td:hover{
    background-color: rgb(253, 207, 0);
    color: #000;
    border: 0.5px solid #000;
}

.sorter td.active {
    background-color:  rgb(253, 207, 0);  /* or any color you want for the selected cell */
    color: rgb(0, 0, 0);               /* adjust text color as needed */
  }
  

.options-container{
    border: none;
    background-color: orangered;
    color: #fff;
    margin-top: 5px;
    padding: 3px;
}

.articles_body{
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 50px 10px;
}

.grid_item-1{
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.8)0%, rgba(0, 0, 0, 0.2)50%, rgba(0, 0, 0, 0)100%), url("interface-bg.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 5px;
}

.articles_body h3{
    padding-top: 160px;
    font-family: "Montserrat";
    font-size: 22px;
    text-align: center;
    color: #fff;
    text-shadow: 0 0 5px #000;
}

.articles_body a{
    text-decoration: none;
}

.form_area{
    text-align: center;
    font-family: "Karla", serif;
    background-image: url("newsletter_bg.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    filter: contrast(100%) blur(32%) brightness(25%);
    color: white;
    margin-bottom: 10px;
    margin-top: 50px;
}

.form_area p{
    padding-top: 50px;
    padding: 12px (50px, 0px);
    font-size: larger;
}

.form-modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0,0,0,0.4);
  }
  
  /* Modal content */
  .form-content {
    background: white;
    color: #7a7878;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 250px;
    border-radius: 5px;
  }

  .form-content h2{
    font-family: "Karla", serif;
    font-weight: lighter;
  }
 
  .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
  
  .close:hover,
  .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }
  
  /* Form styling */
  .form-group {
    margin-bottom: 40px;
    margin-top: 60px;
  }
  
  form h6 {
    display: block;
    margin-left: -110px;
  }
  
  input {
    width: 50%;
    padding: 8px;
    border-bottom: 1px solid #585858;
    border-top: none;
    border-left: none;
    border-right: none;
  }
  
  .submit-btn {
    margin-top: 25px;
    font-family: "Oxygen", serif;
    background-color: #0e5ae9;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 58%;
  }

.cta-btn {
    display: inline-block;
    margin-top: 5px;
    margin-bottom: 10px;
    padding: 5px 10px;
    background: #ff1100e3;
    color: white;
    text-decoration: none;
    font-family: "Karla", serif;
    font-size: 15px;
    font-weight: lighter;
    border-radius: 2px;
}

.cta-btn:hover {
    background: #e65c00;
    cursor: pointer;
}

/* Footer */
footer {
    background-color: #000000;
    color: #ffffff;
    padding: 40px 0 20px 0;
    font-family: 'Poppins', sans-serif;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 20px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    padding: 0 30px;
    margin-bottom: 20px;
}

.footer-column h3 {
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.1em;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 300;
    font-size: 0.95em;
    display: block; /* Ensures links take full width */
}

.footer-links a:hover {
    color: #ffffff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.description-column {
    flex: 1.5;
}

.description-column p {
    color: #cccccc;
    margin-top: 15px;
    line-height: 1.6;
    font-weight: 300;
    font-size: 0.95em;
}

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333333;
    color: #888888;
    font-size: 0.9em;
}

/* Additional responsive improvements */

.styled-table th,
.styled-table td {
    padding: 12px 15px !important;
}


@media (min-width: 768px) {
    .articles_body {
        grid-template-columns: repeat(2, 1fr);
    }

    .sorter td{
        padding: 20px 10px;
        font-size: 20px;
    }

   .elem_right{
    margin: 0 auto;              
    display: flex;
    justify-content: center;     
    width: 100%;                 
    gap: 45px;
    padding-right: 20px;
    }


    .search_bar{
        margin-right: 320px;
        width: 40%;
    }
    .logo{
        width: 10vw;
        height: auto;
    }

    .search_bar input{
        width: 100%;
        padding: 10px;
        font-size: 16px;
    }

    .search-inside img{
        width: 3vw;
        height: auto;
    }

    .menu-btn{
        display: none;
    }

    .menu-panel {
        position: static;
        visibility: visible;
        width: auto;
        height: auto;
        background: transparent;
    }

    .menu-links {
        display: flex;
        justify-content: right;
        gap: 70px;
        margin-right: 50px;
        margin-top: -120px;
        font-family: "Poppins";
    }
    
    .menu-links a {
        color: rgb(1, 1, 2);
        font-size: 21px;
    }
    
    .close-btn {
        display: none;
    }

    .grid_item-1{
     background-image: 
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.8)   0%,
      rgba(0, 0, 0, 0.2)  50%,
      rgba(0, 0, 0, 0)   100%
    ),
    url("interface-bg.jpg");
    background-position: 
    center center,    
    center  calc(50% + 130px);  /* move the image 20px right of center */  
    background-size: 
    cover,    
    cover;    
    background-repeat: 
    no-repeat,  
    no-repeat;  
}

.form_area{
    background-size: 100% 1000px;
}
}




