
        html {
            scroll-behavior: smooth;
        }
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --background-color: rgb(249, 249, 249);
            --section-01: rgb(237, 237, 237);
            --acsr: rgba(0, 0, 128, 0.193);
            --main-text: rgb(52, 52, 52);
            --contact-background-color: gray;
            --nav-text-color: black;
            --accent-color: rgba(255, 0, 0, 0.25);
            
        }


        nav {
    /*border-bottom: 1px solid var(--hover-color); */
    position: absolute;
    top: 0;
    width: 100%;
    box-sizing: border-box;
    
    
}
/*
.hide-on-desktop {
    display: none;
}
*/
nav ul {
    list-style: none;
    display: flex;
}

nav li{
    display: flex;
    font-size: 1.1em;
}

nav .home-li{
    margin-right: auto;
    
}

nav a{
    display: flex;
    text-decoration: none;
    color: var(--nav-text-color);
    padding: 1em 2em;
    transition: background-color 150ms ease;
    
}

nav a:hover{
    background-color: rgba(128, 128, 128, 0.138);
}

nav a.active-link{
    border-bottom: 2px solid var(--nav-text-color);
}

nav a.accent-link{
    background-color: var(--accent-color);
}

@media screen and (max-width:1350px){
    #open-sidebar-button, #close-sidebar-button{
        display: block !important;
        
    }
    nav{
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: min(16em, 100%);
        z-index: 110;
        border-left: 1px solid var(--hover-color);
        background-color: rgba(0, 0, 0, 0.859);
        transition: right 300ms ease-out;
    }



    nav.show ~ #overlay{
        display: block;
        

    }

    nav.show{
        right: 0;
    }



    nav ul{
        width: 100%;
        flex-direction: column;
    }
    nav a{
        width: 100%;
        padding-left: 2.5em;
        color: white;
    }

    .hide-on-desktop{
        display: flex;
    }

    .title video{
        display: none;
    }

    .title {

        background-color: var(--background-color);


        /*
        background-image: url("/assets/pt-bkg-img.png"); 
            background-repeat: no-repeat;
            background-size: cover;
            background-position: center;
            min-height: 50vh; */

    }

    
    
}

@media screen and (max-width:670px){
    .left-grid h1{
        font-size: 2em;
    
    }
    .left-grid p {
        font-size: 1.6em;
    
    }

}


#open-sidebar-button{
    display: none;
    background: none;
    border: none;
    padding: 1em;
    margin-left: auto;
    cursor: pointer;
    position: fixed;
    top: 0;
    right: 0;
}

#close-sidebar-button{
    display: none;
    background: none;
    border: none;
    padding: 1em;
    cursor: pointer;
}












        body {
            background: var(--background-color);
            font-family: Arial, sans-serif;
}
        

        .grid-container {
            display: grid;
            grid-template-columns: [full-start]20px [breakout-start] 1fr 1fr 1fr 1fr [content-start] 1fr 1fr 1fr 1fr [content-end] 1fr 1fr 1fr 1fr [breakout-end] 20px [full-end];
            gap: 20px;
        }



        .grid-container>* {
            grid-column: content;
            
        }

        .grid-container>.breakout {
            grid-column: breakout;
            background-color: lightcoral;

        }

        .grid-container>.full {
            grid-column: full;
            background-color: pink;
        }


        .left-grid {
            grid-column: 2 / 8;
            /* Start at line 2, end before line 8 */
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            align-items: flex-start;
            
            

            
        }

        .left-grid h1{
            margin: 0;
        }

       




        .right-grid {
            grid-column: 8/14;
            
        }

        .right-grid-img {
            grid-column: 8/14;
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100%;
            overflow: hidden;
            
            
            
            
        }

        .img-container{
            display: block;
            max-width: 100%;
            max-height: 100%;
            width: auto;
            object-fit: contain;
            

            
            
            


            /* object-fit: cover; */
            
        }


        .certification-text {
            grid-column: 2/9;
        }

        .certification-image {
            grid-column: 10/14;
            object-fit: cover;
            max-height: 300px;
            
        }

        

        main h1, main h2, main h3, main h4, main p, footer, .contact-form {
            font-family: Arial, Helvetica, sans-serif, sans-serif;
            color: var(--main-text);

        }


        h1 {
            font-size: 3.4rem;
            
        }

        .subtitle{
            font-size: 2.8rem;
            
            line-height: 2.5rem;
        }

        main h2 {
            font-size: 2.5rem;
            margin-bottom: 1em;
            
        }

        p {
            font-size: 1.3rem;
            line-height: 1.8rem;
        }




        header {
            height: 75px;
        }

        .top-content {
            padding: 2em 0 2em 0;
            height: 460px;
            display: flex;
            align-items: stretch;
        }

        

        .section01{
            background: var(--section-01);
            padding: 2em 0 2em 0;
        }

        .section02{
            background: var(--background-color);
            padding: 2em 0 2em 0;
        }

        .section03{
            background: var(--acsr);
            padding: 2em 0 2em 0;

        }




        .more-button {
            color: white;
            text-decoration: none;
            border: none;
            padding: 10px 15px;
            border-radius: 15px;
            cursor: pointer;
            font-size: 1em;
            background: #8024e4;
            margin-top: 2em;
            width: 260px;
            
            
        }

        .more-button:hover {
            background: rgb(253, 107, 132);
            transform: scale(1.05); 
        }

        .more-button:active{
            background: rgb(255, 70, 101);
            transform: scale(0.95);
        }
/* css for the form */

.contact-wrapper {
    background-color: var(--background-color);
}

.contact-form{
    background-color: var(--contact-background-color);
    padding: 3em;
}

.contact-form h1, h2, h3{
    color: white;
    padding-bottom: 0.5em;
}

.contact-title p, .info{
    color: rgba(255, 255, 255, 0.67);
    padding-bottom: 1em;
    font-size: 1.4em;
}




.form-heading{
    color: rgba(255, 255, 255);
    font-size: 1.2em;
    font-weight: 800;
    padding-bottom: 1em;
}

.contact-split{
    display: flex;
    
}

.contact-left-side{
    flex: 2;
}




.contact-right-side{
    width: 50%;
}

/* name and email sections */ 
.contact-name-email{
    
    display: flex;
    width: 100%;    
    
    gap: 1em;
}

.contact-name-email input, textarea{
    background-color: var(--input-background);
    margin-bottom: 2em;
    border: 1px solid rgba(255, 255, 255, 0.512);
    border-radius: 5px;
    resize: none;
    padding: 1em;
    color: rgba(255, 255, 255, 0.515);
    font-family: Poppins, sans-serif;
    font-size: 1em;
}

textarea{
    height: 10em;
}

.contact-name{
    flex: 1;
    width: 50%;
    
}

.contact-name input{
    width: 100%;
}

.contact-email{
    flex: 1;
    width: 50%;
    
}

.contact-email input{
    width: 100%;
}

.contact-message textarea{
    width: 100%;
}


.contact-left-side .submit-button{
    color: white;
    width: 20%;
    padding: 1em;
    background-color: rgba(255, 255, 255, 0.141);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1em;
    border: 1px solid white;
    border-radius: 10px;
    cursor: pointer;
    min-width: 200px;
} 

.contact-right-side{
    margin-left: 2em;
    border-left: 1px solid rgba(255, 255, 255, 0.132);
    padding-left: 2em;
    flex: 1;  
}

.contact-right-side svg {
    width: 30px; /* Adjust size */
    height: 30px;
    fill: white; /* Change icon color */
    margin-right: 1em;
    transition: transform 0.3s ease, fill 0.3s ease;
}

.contact-right-side svg:hover {
    transform: scale(1.5); /* Slight zoom effect on hover */
    fill: rgb(79, 79, 255); /* Change color on hover */
}    


/* check you need this */



.footer-wrapper{
    background-color: var(--background-color);
    z-index: -1;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  width: 100%;
  padding: 0;
  z-index: 0;
  background-color: rgb(0, 0, 0);
  
}

.footer-item {
  
  min-width: 33.33%;
  text-align: left;
  padding: 30px;
  /*
  border-left: 1px solid rgba(255, 255, 255, 0.184); */
}

.footer-item p, .footer-bottom{
    font-size: 1em;
    padding: 2px 0;
    color: rgba(190, 190, 190, 0.714);
}

.footer-bottom{
    padding-bottom: 20px;
}

.footer-item i{
    font-size: 1em;
    margin-right: 5px;
    margin-top: 5px;
    position: relative;
    top: 2px;

}

.footer h2{
    color: rgba(255, 255, 255, 0.863);
}

/*

.footer-border{
    border-right: 1px solid rgba(255, 255, 255, 0.391);
    border-left: 1px solid rgba(255, 255, 255, 0.391);
}

*/




.footer a{
    text-decoration: none;
    color: rgba(190, 190, 190, 0.714);
}
.footer img{
    height: 21px;
    width: auto;
    vertical-align: middle;
    margin-left: 3px;
    
}

#open-sidebar-button{
    display: none;
    background: none;
    border: none;
    padding: 1em;
    margin-left: auto;
    cursor: pointer;
    position: fixed;
    top: 0;
    right: 0;
}

#close-sidebar-button{
    display: none;
    background: none;
    border: none;
    padding: 1em;
    cursor: pointer;
}

.maru-logo {
    max-width: 250px;
    height: auto;
    padding: 10px;
    margin-left: 10px;
    position: relative;
    z-index: 100;

}

.button-row {
    display: flex;
    flex-wrap: wrap;
    

}

.button-row a{
    width: 33.3%;
    text-decoration: none;
    
}









/* Footer for mobile and small screens */
@media (max-width: 768px) {
    .footer {
      flex-direction: column;
    }
    .footer-item {
      min-width: 100%;
      text-align: center;
    }
    .footer-item{
      border: none;
    }
  
    .footer-bottom{
      text-align: center;
      margin: 2em;
    }
  
    .footer p {
      font-size: 1.3em;
      margin: 1em 0;
    }

    .footer-bottom {
        margin: 0;
        padding: 2em;
    }

    
    
  }
/* For big screens for the button row*/
@media (max-width: 1480px) {
    .button-row {
        flex-direction: column;
    }
}




    
@media (max-width:960px){
    .contact-name-email {
        display: flex;
        flex-direction: column;
        width: 100%;    
        
        gap: 1em;
    }
    .contact-name{
        flex: 1;
        width: 100%;
        
    }
    
    .contact-email{
        flex: 1;
        width: 100%;
        
    }
    
    }
    
    @media (max-width:670px){
        .contact-split{
            display: flex;
            flex-direction: column;
            
        }
    
        .contact-right-side{
            border-left: none;
            margin-top: 2em;
            
    
            
            
            
        }

        .certification-text h2 {
            text-align: center;
        }



    }
    
    /* Media Query for Small Screens */
    @media (max-width: 560px) {
        .contact-split {
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 100% 
        }
    
        .contact-right-side{
            margin: 1em 0;
            padding: 1em 0;
            
        }
        .contact-right-side p{
            font-size: 0.9em;
            text-align: center;
            
        }
    
        .contact-right-side .social-media, 
        .contact-right-side p {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            width: 100%;
        }
    
        .contact-right-side svg {
            margin: 1em 0;
        }
       
        .submit-button{
            width: 100%;
        }
    }
    
    /* For small screens */
@media (max-width: 1010px) {
    .top-content {
        flex-direction: column; /* Stacks items vertically */
        height: auto;
        align-items: center; /* Center the flex items (.left-grid, .right-grid-img) horizontally */
        gap: 2em; /* Optional: Add space between stacked items */
    }

    .top-content .left-grid {
         width: 90%; /* Keep width, adjust as needed */
         max-width: 600px; /* Keep max-width, adjust as needed */
         text-align: center; /* Ensure text *within* this container is centered */
         order: 1; /* Make text appear second */
         /* Explicitly remove potential side margins causing offset */
         margin-left: auto; /* Helps centering if width is less than container */
         margin-right: auto; /* Helps centering if width is less than container */
    }

    .top-content .right-grid-img {
         width: 90%; /* Keep width, adjust as needed */
         max-width: 600px; /* Keep max-width, adjust as needed */
         order: 2; /* Make image appear first */
         /* Explicitly remove potential side margins causing offset */
         margin-left: auto; /* Helps centering if width is less than container */
         margin-right: auto; /* Helps centering if width is less than container */
         /* --- Center the image *within* this container --- */
         display: flex;           /* Use flexbox on the container */
         justify-content: center; /* Center the image horizontally */
         align-items: center;     /* Center the image vertically (optional) */
    }

     .top-content .right-grid-img img {
        /* Image takes available width but not more than its natural size or container */
        max-width: 100%;
        /* Remove fixed width/height if they exist from desktop styles */
        width: auto; /* Adjust if needed, e.g., width: 80%; */
        height: auto;
        /* display: block; /* Often good practice for centering images */
        /* margin: 0 auto; /* Alternative centering method if flex doesn't work */
     }


     .left-grid {
        grid-column: 2/14;
        align-items: center;
        justify-content: center;
        
     }

     .right-grid {
        grid-column: 2/14;
        
    }

    .right-grid-img {
        grid-column: 2/14;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        overflow: hidden;   
        
    }

    h1{
        padding: 1em
    }

    .subtitle  {
       padding: 0.2em;
    }

    .more-button {
        margin-bottom: 1em;
    }



}


/* smaller screens main content */

@media (max-width: 940px) {

   article .section01 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
   } 

   .certification-text {
    grid-column: 2/14;
    order: 2;
    width: 100%;
    
   }

   .certification-image {
    grid-column: 2/14;
    order: 1;
    margin: auto;
   }
   
   .certification-text .more-button {
    display: block;
    margin-left: auto;   /* Automatically calculate left margin */
    margin-right: auto;  /* Automatically calculate right margin */
    text-decoration: none;
    

   }

   
   .certification-text a {
    text-decoration: none !important; /* Remove underline from the link */
    display: block; /* Make the link a block for centering */
    width: fit-content; /* Make the link only as wide as its content (the button) */
    margin-left: auto;   /* Center the link block */
    margin-right: auto;  /* Center the link block */
    
}

   

   

}