.site-content .ast-container {
    display: block; 
    padding: 0;
    }


.header, .footer {
    padding: 1em var(--section-vertical);
}


.main-content {
    margin: 0 auto;
    max-width: var(--site-max-width);
}

section {
    margin: 2em 1em;
    padding: 1em;
}

.header {
    background-color:white;
    box-shadow: 0 2px 4px var(--light-border);
    position: sticky;
    top: 0;
    z-index: 1100;
}

img {
    border-radius: var(--border-radius-lg);
}


.header-container {
    margin: 0 auto;
    /*    display: flex;
    justify-content: space-between;
    align-items: center;
    */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2em;
    align-items: center;
  
    
}



/* -----  primary-NAVIGATION ----- */

.primary-nav {
    position: fixed;
    inset: 0; /* Shorthand for top/right/bottom/left: 0 */
    width: 100%;
    
    /* Use dynamic viewport height to prevent mobile browser clipping */
    height: 100dvh; 
    
    /* Vertical padding might be ignored on scroll if overflow isn't set */
    padding: 4rem 1.5rem; 
    overflow-y: auto; 
    
    background: #696969;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.primary-nav.open {
  transform: translateX(0);
}


.primary-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.85em 0 0;
    display: block;
}

.sub-menu {
    padding-left: .2em;
    margin: 0;
}

.sub-menu a {
    font-size: 1.2rem;
    padding: 0.5em 0;
}

.primary-nav li:not(:last-child) {
        border-bottom: 1px dotted #a190b6;
    }

ul {
    padding: 0;
    margin: 0;
    list-style-type: none;
}

.btn.menu-btn {
    position: relative;
  z-index: 10001;
    margin: 0;
    padding: .5em 1em;
    justify-self: self-end;

}


.menu-btn i {
  font-size: 1.5rem;
  color: black;
  background-color: transparent;
  cursor: pointer;
  transition: transform 0.2s ease;
}


a.header-btn {
    padding: .5em 1em;
    font-weight: 500;
    justify-self: center;
}


button .menu-btn i:hover {
  transform: scale(1.4);
}




/**************************** Skip link - visible when focused **********************/
.skip-link{
    position: absolute;
    left: 0;
    top: 0;
    background: #fff;
    color: #2b283a;
    padding: 0.5rem 1rem;
    z-index: 1200;
    transform: translateY(-120%);
    transition: transform 0.2s ease;
}
.skip-link:focus,
.skip-link:active{
    transform: translateY(0);
}

/******************----- Footer ----- ******************/
.footer  {
    background-color:#5c2a73f2;
}

.footer-wrapper{
    color: white;
}

.footer-middle-part {
    display: flex;
    flex-direction: column;
    gap: 1em;
    justify-content: center;
    align-items: center;
}

.footer-btns{
    display: flex;
    gap: .5em;
    
}

.footer-one h3, .footer-one h5 {
    color: white;
}

.footer-one p{
    margin: 0.5em;
}
.footer-btn{
    width: 120px;
}



.social-icons a {
  margin: 0.5em .2em;
  font-size: .9rem;
  color: white;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #0077b5;
}

.vertical-menus-wrapper{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2em;
    justify-items: center;
}



.vertical-menus-wrapper h5{
    margin-bottom: 0.5em;
}
.vertical-menus-wrapper a{
    color:var(--brand-white);
    text-decoration: none;
    font-size: .75rem;
}

.copyright{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1em;
    justify-content: space-between;
    
}

.footer-links a{
    font-size:.7rem;
    color: white;
    margin-right: 0.8em;
}

.footer-hr{
    margin: 1em;
}



.ba-card {
    background: white;
    max-width: 1040px;        /* wider to fit two columns */
    margin: 0 auto;
    padding: 1.5em 2em;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
}



/**************** Grid layout mobile 1fr, 2 col @ 768px & 3 col @ 990   ********************/
.ba-1-2-3-grid, 
.ba-2-4-grid,
.ba-1-2-4-grid {
    display: grid;
    gap: 1.5rem;
    margin: 1.25em 0;
}

.ba-1-2-3-grid {
    grid-template-columns: 1fr; 
}


/**************** Grid layout mobile 2 col  & 4 col @ 990   ********************/
.ba-2-4-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)); 
}



.value-grid {
  display: grid;
  grid-template-areas:
    "value-image value-title value-title value-title"
    "value-image value-item  value-item  value-item"
    "value-image value-item  value-item  value-item";
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: .5em;
  background-color: dodgerblue;
  padding: 5px;
}
.container div {
  background-color: white;
  padding: 10px;
}
.container div.header {
  grid-area: header;
  text-align: center;
}
.container div.menu {
  grid-area: menu;
}
.container div.content {
  grid-area: content;
}
.container div.footer {
  grid-area: footer;
  text-align: center;  
}


/* Media Queries */

@media (min-width: 480px) {
    
  
   
    
    
    
}




@media (min-width: 768px) {
    section {
        margin: 3em 2em;
    }
    .primary-nav {
       overflow-y: visible; 
    }
    
    .main-content {
        padding: 1em 2em;
    }

    

    /************ 2 columns grid************/
    .ba-1-2-3-grid,
    .ba-1-2-4-grid{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

   


}


@media (min-width: 990px) {
    /************** Footer navigation *******************/
    .footer-one {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }
    .vertical-menus-wrapper{
        display: flex;
        flex-direction: row;
        gap: 2em;
    }    

    .footer-middle-part {
    text-align: center;
    margin: 0em 1em;
    }

    .footer .copyright{
    flex-direction: row;
    }
 

/**********grid********************/


    .ba-1-2-3-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    }

     /* 4 columns grid*/
    .ba-2-4-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    
   
    .main-content {
        padding: 1em 3em;
    }
    


}


@media (min-width: 1025px) {
    /*******************header****************************/   
    .header-container {
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    



    .primary-nav {
        position: static;
        background-color: transparent;
        transform: none;
        padding: 0;
        height: auto;
        margin-right: .5em;
    }

    .primary-nav a {
        color: black;
        font-size: 1rem;
        font-weight: 400;
        padding: 0.85em 0;
        transition: transform 0.2s ease;
    }

    .primary-nav a:hover,
    .primary-nav a:focus {
        transform: scale(1.2);
        color: var(--brand-color);
    }




    .primary-nav ul {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 2rem;
    }

    .menu-btn {
        display: none;
    }

    .primary-nav li:not(:last-child) {       
        border: none;
    }

    .primary-nav li {
        position: relative;
    }

    .sub-menu {
        position: absolute;
        top: 75%;
        left: 50%;
        transform: translateX(-50%);
        visibility: hidden;
        padding: 0;
        margin: 0;
        list-style: none;
        z-index: 10;
    }

    .primary-nav li:hover .sub-menu {
        visibility: visible;
    }

    .sub-menu a {
        padding: 0.5em;
        font-size: 1rem;
        white-space: nowrap;
        font-weight: 500;
        
    }

    .sub-menu a:hover {
        color: var(--brand-color);
    }
    

}

@media (min-width: 1280px) {
    .header, .footer {
    padding: 1.5em 3em;
    }    
    
    
  
    .logo-container img {
        width: 80px;
        margin-right: 0.5em;
    }
    
    .ba-1-2-4-grid{
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
     
}

/* 1. By default on large desktop screens (1025px and up), hide the mobile logo */
.custom-astra-logo-wrapper .mobile-logo {
    display: none;
}

/* 2. Target everything below desktop views (max-width: 1024px) to swap logos */
@media (max-width: 990px) {
    /* If a custom mobile logo exists, hide the desktop version */
    .custom-astra-logo-wrapper:has(.mobile-logo) .desktop-logo {
        display: none !important;
    }
    
    /* Reveal the mobile logo asset */
    .custom-astra-logo-wrapper .mobile-logo {
        display: inline-block !important;
    }
}

