*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
nav {
    height: 90px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.847);
    padding: 20px 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid rgb(91, 102, 242);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle div {
    width: 30px;
    height: 4px;
    background-color: rgb(0, 0, 0);
    margin: 5px 0;
    border-radius: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    position: relative;
}

.nav-links li a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: lime;
}

.nav-links li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: rgb(0, 0, 0);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links li a:hover::after {
    width: 100%;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgb(91, 102, 242);
    list-style: none;
    padding: 15px 0;
    margin: 10px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 5px;

}

.dropdown li a {
    color: white;
    padding: 10px 20px;
    display: block;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.dropdown li a:hover {
    color: lime;
}

.nav-links li:hover .dropdown {
    display: block;
}
.logo{
    display: flex;
    justify-content: center;
    align-items: center;
}
.logo p{
    font-size: 20px;
    margin-top: 18px;
    margin-left: 10px;
    color: #1976d2;
    font-weight: bold;
}

@media screen and (max-width: 768px) {
    nav {
        justify-content: space-between;
        align-items: center;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        z-index: 100;
        padding-bottom: 10px;
        margin-top: 20px;
        background-color: rgb(91, 102, 242);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        text-align: center;
        width: 100%;
        margin-bottom: 10px;
    }

    .nav-links li a {
        color: white;
    }

    .dropdown {
        position: static;
        width: 100%;
        transform: none;
    }

    .dropdown li {
        text-align: center;
    }
    .logo p{
        font-size: 17px;
    }
}


.books-section {
    padding: 40px;
    background-color: #fff;
    margin: 20px;
    border-radius: 8px;
    margin-top: 110px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #2c3e50;
    text-align: center;
}

.class-selector {
    margin-bottom: 20px;
    text-align: center;
}

.class-selector select {
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.book-list {
    display: none; /* Initially hide all class book lists */
    margin-top: 20px;
}

.book-list.active {
    display: block; /* Show active class book list */
}

.book-list ul {
    list-style-type: none;
    padding: 0;
}

.book-list li {
    margin: 15px 0;
    padding: 10px;
    background-color: #f1f1f1;
    border-radius: 5px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

.book-list li strong {
    font-size: 1.1em;
    color: #34495e;
}

.book-list button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 5px;
    transition: background 0.3s;
}

.book-list button:hover {
    background-color: #2980b9;
}



h1 {
    text-align: center;
    background-color: #4da6ff;
    color: white;
    padding: 15px;
    border-radius: 10px;
    font-size: 24px;
  }

  table {
    width: 100%;
    border-collapse: collapse;
    background-color: #f0f8ff;
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
  }

  th, td {
    border: 1px solid #a3c9f9;
    padding: 14px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
  }

  th {
    background-color: #4da6ff;
    color: white;
  }

  tr:nth-child(even) {
    background-color: #dbefff;
  }

  tr:hover {
    background-color: #cce7ff;
  }
  .bold {
    font-weight: bold;
  }

 

  @media (max-width: 768px) {
    table, thead, tbody, th, td, tr {
      display: block;
    }

    thead {
      display: none;
    }

    tr {
      margin-bottom: 20px;
      background-color: #f0f8ff;
      border: 1px solid #a3c9f9;
      border-radius: 10px;
      padding: 10px;
    }

    td {
      text-align: left;
      padding: 8px 12px;
      position: relative;
      font-size: 14px;
    }

    td::before {
      content: attr(data-label);
      font-weight: bold;
      display: inline-block;
      width: 110px;
      color: #4da6ff;
    }
  }



footer {
    background: rgb(18, 22, 77);
    color: white;
    padding: 30px 0;
    text-align: center;
}


footer h2{
    color: white;
}
.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 20px;
}

.footer-section {
    width: 250px;
    margin-bottom: 20px;
}

.footer-section h2 {
    font-size: 20px;
    margin: 15px 0;
}

.footer-section p,
.footer-section ul {
    font-size: 14px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin: 8px 0;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    transition: 0.3s;

    &:hover {
        color: #1abc25;
    }
}

.footer-section .contactme,
.socialme {
    display: flex;
    flex-direction: column;
}


.footer-section .aboutme {
    display: flex;
    justify-content: center;
}

.socialme a {
    text-decoration: none;
    color: white;
    font-size: 25px;
    padding-bottom: 10px;
}

/* Responsive Design */
@media (min-width: 768px) {
    main {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .google-map {
        grid-column: span 2;
    }
}

