
body {
    font-family: Arial, sans-serif, Helvetica;
    margin: 0;
    padding: 0;
    overflow: overlay;
}
header {
    background-color: #706f75;
    color: white;
    padding: 1em;
    text-align: center;
    position: relative;
}


.site-header div h1{
    margin : 0px;
}


.site-header {
  display: flex;
  align-items: center;
  gap: 10px; 
  padding: 10px;
  margin: 0px
}

.site-header .logo {
  height: 80px; 
  width: auto;
}


.subtitle {
  margin: 0;
  font-size: 1em;
  color: #ffff66; 
}

.estd-row {
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  font-family: Comic Sans MS;
  font-size: 0.8em;

}

.estd-left,
.estd-right {
  color: white;
}




 html {
    scroll-behavior: smooth;
  }

main a,
main a:visited,
main a:hover,
main a:active {
    text-decoration: none;
    color: black;
}




.active{
    color: white;
}





.principal-photo {
    float: right;
    margin-left: 20px;
    margin-bottom: 10px;
    width: 130px;
}




.principal-photo img {
    width: 100%;
    height: auto;
    
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.greeting-text {
    flex: 1;
    min-width: 250px;
}





ul {
 
    list-style-type: none;
    padding: 0px;
    margin: 0px;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    text-align: center;
}
nav ul li {
    display: inline-block;
    margin: 0 15px;
}
nav ul li a {
    color: black;
    text-decoration: none;
}




.menu-toggle {
    display: none;
    position: absolute;
    top: 1.2em;
    right: 1em;
    font-size: 1.5em;
    cursor: pointer;
}
main {
    padding: 1.5em;
    padding-bottom: 4em;
}


section {
    margin-bottom: 3em;
}

section h3 {
    
    margin-top: 2em;
    border-bottom: 2px solid #000000;
    padding-bottom: 0.3em;
}



.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 1em 0;
}

.gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.alumni-faculty-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 2em;
}

.alumni-faculty-card {
    background-color: #f4f4f4;
    padding: 1em;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.alumni-faculty-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 5%;
    margin-bottom: 0.5em;
}

.alumni-faculty-card p{
    margin: 3px;
}


.alumni-faculty-card h4 {
    margin: 0.5em 0 0.3em;
    
}


#accreditation ul{
    list-style-type: disc;
    
}



.calendar-table {
  overflow-x: auto;
  margin-top: 1em;
}

.calendar-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 300px;
}

.calendar-table th,
.calendar-table td {
  border: 1px solid #ddd;
  padding: 8px 12px;
  text-align: left;
}

.calendar-table th {
  background-color: #f4f4f4;
  font-weight: bold;
}


.grades-table-wrapper {
  overflow-x: auto;
}

.grades-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  min-width: 600px;
}

.grades-table th,
.grades-table td {
  border: 1px solid #ccc;
  padding: 12px;
  text-align: center;
}

.grades-table th {
  background-color: #f0f0f0;
  font-weight: bold;
}


footer {
    background-color: #706f75;
    color: white;
    text-align: center;
    padding: 0.3em;
    position: fixed;
    bottom: 0;
    width: 100%;
}


@media (max-width: 600px) {


    header {
        padding: 0em;

}

    
    .menu-toggle {
        display: block;
    }
    header h1{
        font-size: 21px;
    }


    .estd-row, .subtitle{

        font-size: 13px;

    }


    nav ul {
        display: none;
        flex-direction: column;
    }
    nav ul.active {
        display: flex;
    }
    nav ul li {
        display: block;
        margin: 10px 0;
    }

    main {
    padding: 0.7em;
    padding-bottom: 2em;
    padding-top: 0em;
}

    .gallery {
    grid-template-columns: repeat(1, 1fr);
    
}
    
    .principal-greeting {
        flex-direction: column;
        align-items: center;
    }

    .greeting-text {
        text-align: justify;
    }


    .principal-photo {
    width: 95px;
    }

    .calendar-table table,
    .calendar-table thead,
    .calendar-table tbody,
    .calendar-table th,
    .calendar-table td,
    .calendar-table tr {
    display: block;
}

    footer {

    padding: 0.15em;

}

    ol{
        padding-left:1.5em;
    }

}



@media (max-width: 460px) {


    .site-header{
        display: block;
    }

    ol{
        padding-left:1.5em;
    }


}