@import url("layout.css");
@import url("components.css");

* {
    padding: 0;
    margin: 0;
    font-family: var(--primary-font);
    font-size: var(--font-size-body); 
} 
  

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    color: var(--primary-light-text-color);
  }
h1 {
    font-size: var(--font-size-heading);
  }
h2 {
    font-size: var(--font-size-subheading);
  }
h3 {
    font-size: var(--font-size-sub-subheading);
  
  }
p {
    font-family: var(--primary-font);
    color: var(--primary-light-text-color);
  }

body {
  
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensure the body spans the full viewport height */
  }
header {
    background-color: var(--secondary-light-color);
    height: fit-content;
    min-height: 5vh;
    padding-top: 10px;
    
  }
  
footer {
    background-color: var(--button-color);
    height: fit-content;
    min-height: 25vh;
    padding-left: 8rem;
    padding-top: 5rem;
    flex:1
    
  }
   

body {
    background-color: var(--primary-light-color);
}
.card-icon {
    color: var(--accent-color);
}

.navbar{
    display: flex;
    height: fit-content;
    width: 100%;
    justify-content: space-between;
    position: fixed;
    top: 0;
    background-color: var(--secondary-light-color);
        
}
#menu-button {
  display: none;
  color: var(--primary-light-text-color);
}

.leftnav{
    
    display: flex;
    align-items: center;
        
}
.SchDetails{
    
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.2rem;
        
}

.logo img{

    margin: 0.4rem;
    width: 65px; 
    height: 65px;
}

.SchName p{

    color: var(--accent-color);
    font-family: var(--heading-font);
    font-size: var(--font-size-nav);
}
 

.SchMotto p{

    color: var(--primary-light-text-color);
    font-family: var(--primary-font);
    font-size: var(--font-size-smaller);

}
.rightnav{
    
    display: flex;
    padding-right: 2rem;
    flex-direction: row;
        
} 
.navlist {

    display: flex;
    margin: 0;
    padding: 0;
    gap: 1rem;
    align-items: center;
       
}

li{
    list-style: none;
    color: var(--primary-light-text-color);
    
}

a{
    color: var(--primary-light-text-color);
    text-decoration: none;
    font-family: var(--primary-font);
    
}

a:hover{
    color:var(--accent-color);
}
a:active{
    color:var(--accent-color);
}

.foot{

    display: flex;
    flex-direction: row;
    gap: 2%;
    height: fit-content;    
    
}


.col{

    
    display: flex;
    flex-direction: column;
    width: 25%;
    gap: 1rem;

}



footer ul{
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}


.icon{

  color:var(--primary-light-text-color);

}

ul.sociallist{

    display: flex;
    flex-direction: row;
    
}

.title{

    color: var(--accent-color);
    font-family: var(--heading-font);
}


/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
  }
  
  /* Hide default HTML checkbox */
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  /* The slider */
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: var(--secondary-light-color);
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  input:checked + .slider {
    background-color: #94949B;
  }
  
  input:focus + .slider {
    box-shadow: 0 0 1px #111827;
  }
  
  input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
  }
  
  /* Rounded sliders */
  .slider.round {
    border-radius: 34px;
  }
  
  .slider.round:before {
    border-radius: 50%;
  }

  .contactlist p{
    display: inline;
  }

/* Media Queries */
@media (max-width: 768px) {
    .navbar {
        align-items: flex-start;
        padding: 0.8rem;
        flex-direction: column;
        
    }
    #menu-button {
      display: block  !important;
    }
    .leftnav {
      display: flex;
      justify-content: space-between;
      width: 95%;
      padding: 0 0.5rem;
    }

    .rightnav {
      flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
        display: none;
        

    }
    

    .navlist {
        flex-direction: column;
        gap: 0.5rem;
    }

    .SchDetails {
        align-items: flex-start;
    }

    .welcome-text-container {
        padding: 0 2rem;
        text-align: center;
    }

    .card-section, .news-section {
        flex-direction: column;
        align-items: center;
        padding: 2rem 1rem;
    }

    .card, .news-card {
        width: 90%;
        margin-bottom: 1rem;
    }

    .foot {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
    }

    .col {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.5rem;
    }

    .SchName p {
        font-size: var(--font-size-small);
    }

    .SchMotto p {
        font-size: var(--font-size-smaller);
    }

    .welcome-text-container h1 {
        font-size: 1.5rem;
    }

    .welcome-text-container p {
        font-size: 0.875rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .footer {
        padding: 1rem;
    }
}