* {box-sizing: border-box}
body {
    background-color: beige;
    font-family: Verdana, sans-serif; 
    margin:0;
  }
  
  cursive_text {
      font-family: 'Pacifico', cursive;
  }
  
  .bhs_head_section {
    background-image: linear-gradient(lightblue, white, ivory);  
  }
  
  .head_top_left {
    float: left; 
    padding-left: 10px;  
  }
  
  .head_top_right {
    float: right; 
    padding-right: 10px;  
  }
  
  .bhs_logo {
      text-decoration:none;
  }
  
  .logo {
      display: block;
      margin: 0 auto;
      width: 60px;
      height: 60px;
}

     .title {
         white-space: nowrap;
         color: blue; 
         text-shadow: 2px 2px 5px red; 
         text-align: center; 
         align-items: center;
         font-family: aharoni; 
         margin: 0; 
         padding: 0px;
         font-size: 34px;
     }
     
     .sub_title {
        white-space: nowrap;
        color: SlateBlue; 
        text-align: right; 
        margin: 0; 
        padding: 3px;
        
     }
     
     .address_section {
         background-image: linear-gradient(lightblue, orange, yellow); 
         padding: 10px; 
         margin: 0;
     }
     
     .address_text {
         text-align: center; 
         color: brown; 
         margin: 0;
     }
     
     .header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-image: linear-gradient(lightblue, white, ivory); 
    color: #fff;
    padding: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
}

.header_logo {
    margin: 0 20px;
    width: 60px;
    height: 60px;
    padding: 0;
}

.header-heading {
    margin: 0;
    display: inline;
    color: blue; 
    text-shadow: 2px 2px 5px red; 
    font-family: aharoni;
    font-size: 34px;
}

.header-desktop-subtitle {
  margin: 0 10px;
  font-family: fantasy;
  font-size: 18px;
  color: brown;
  margin-left: auto;
}
     
@media (max-width: 769px) {
    .head_top_left {
    padding-left: 5px; 
    font-size: 12px;
  }
  
  .header {
    padding: 7px 0;
}
  
  .head_top_right {
    padding-right: 5px;
    font-size: 12px;
  }

     .title {
         font-size: 20px;
     }
     
     .sub_title {
        font-size: 13px;
        
     }
     
     .address_section {
         padding: 7px; 
     }
     
     .header_logo {
    margin: 0 20px;
    width: 40px;
    height: 40px;
}
     
     .header-heading {
    font-size: 24px;
}
.header-desktop-subtitle {
  display: none;
}
}

 .menu-header {
    list-style-type: none;
    margin: 0;
    padding-left: 10px;
    padding-right: 10px;
    overflow: hidden;
    background-color: Dodgerblue;
    animation-duration: 0.5s; /* Adjust the duration as needed */
  animation-timing-function: ease-out;
}

.menu-header.show {
  display: flex;
  flex-direction: column;
  animation-name: slideDown;
}

.menu-header.hide {
  animation-name: slideUp;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-100%);
  }
}

.menu-header-item {
    float: left;
    border-right: 1px solid #bbb;
}

.menu-header-item:last-child {
    border-right: none;
}

.menu-header-item a, .dropbtn {
    display: inline-block;
    color: white;
    text-align: center;
    padding: 12px 5px;
    text-decoration: none;
}

.menu-header-item a:hover, .dropdown:hover .dropbtn {
    background-color: red;
}

.active {
    background-color: #04AA6D;
}

.menu-header-item.dropdown {
    display: inline-block;
}

.menu-header-item.dropdown:after {
    content: '';
    border: 6px solid transparent;
    border-top: 6px solid white;
    margin-left: 0px;
    margin-right: 2px;
    display: inline;
    vertical-align: bottom;
    horizontal-align: center;
}

.menu-header-item.dropdown:hover, .dropdown:hover .dropbtn {
    background-color: red;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #00FFFF;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a {
    color: blue;
    padding: 10px;
    text-decoration: none;
    display: block;
    text-align: left;
    border-bottom: 2px solid white;
}

.dropdown-content a:hover {
    background-color: #FFFF00;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* New styles for mobile menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 10px;
    padding: 10px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-icon,
.close-icon {
    display: none;
    color: red;
    font-size: 30px;
    padding: 5px 2px;
    text-align: center;
    text-decoration: none;
    z-index: 9999;
    transform: scale(1);
    transition: transform 0.9s, opacity 0.9s;
    position: absolute;
    top: 2px;
    right: 10px;
}

/* Media query for small screens */
@media (max-width: 768px) {
    .menu-header {
        display: none;
        top: 0;
        position: fixed;
        width: 100%;
        height: auto;
        z-index: 999;
    }

    .mobile-menu {
        display: block;
    }

    ul {
        display: flex;
        flex-direction: column;
    }

    .menu-header-item,
    .menu-header-item.dropdown {
        display: block;
    }

    .mobile-menu-icon {
        display: block;
    }

    .close-icon {
        display: none;
    }

    .dropdown-content {
        position: relative;
    }

    .menu-header-item {
        border-right: none;
        padding: 7px 15px;
    }
}
@keyframes flash {
            0% {
                opacity: 1;
            }
            50% {
                opacity: 0;
            }
            100% {
                opacity: 1;
            }
        }

        .text-flash {
            animation: flash 1s infinite;
        }
        
        .full-width-section {
      box-sizing: border-box;
      overflow: hidden;
      text-align: center;
      padding: 20px;
      color: #fff;
    }

    .current-date-section,
    .birthday-greetings-section {
      width: 100%;
      float: left;
      margin: 2px auto;
    }

    .current-date-section {
      background-color: #007BFF;
    }

    .birthday-greetings-section {
      background-image: url('image_school/confetti.avif');
      border: 20px solid #F1C40F;
      box-shadow: 0 0 0 10px #F7DC6F inset;
      color: blue;
       overflow: hidden;
    }
    
    .greetings-content {
    margin-bottom: 20px;
    border-bottom: 5px solid brown;
    }

    .school-age,
    .greetings-content {
      font-size: 24px;
      margin-top: 10px;
    }

    /* Treasure box (notable events) */
.notable-events {
    font-size: 16px; /* Slightly smaller for better fit */
    background-color: white;
    color: brown;
    border: 5px solid #d2691e;
    padding: 0; /* Remove horizontal padding here to let header span full width */
    position: relative;
    height: 180px; /* Increased height to accommodate exam info */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.7);
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
    overflow: hidden; /* Keep the lid clip */
    z-index: 1;
}

/* Internal wrapper to handle scrolling when content is long */
.box-inner-content {
    padding: 0 15px 10px 15px;
    height: 130px; /* box height - header height */
    overflow-y: auto; /* Adds scrollbar if too many exams */
    scrollbar-width: thin;
}

/* The lid covering the whole height of the treasure box */
.lid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Cover the entire height of the box */
    background-color: #8b4513; /* Dark wooden color for the lid */
    border: 5px solid #d2691e;
    transform-origin: top; /* Anchor the lid at the top */
    transform: perspective(600px) rotateX(0deg); /* Initially closed */
    transition: transform 1.5s ease-in-out;
    z-index: 2;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.5);
}

/* The handle/knob on the lid */
.lid::before {
    content: '';
    position: absolute;
    bottom: 10px; /* Positioned near the bottom of the lid */
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 10px;
    background-color: #4b2e04; /* Darker wood for the knob */
    border-radius: 5px;
}

.notable-events {
    perspective: 1000px; /* perspective for 3D effect */
}

.event-item {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.4;
    border-bottom: 1px dashed #eee;
    padding-bottom: 4px;
}

.holiday-text { color: #d32f2f; }

.exam-text.summative { color: #d35400; }
.exam-text.formative { color: #27ae60; }


/* Separate div for h2 with its own background */
.notable-events .header-container {
    background-color: #d2691e;
    color: white;
    margin-bottom: 10px;
    margin-top: 0;
}

/* The content inside the treasure box (initially hidden) */
.notable-events h2, 
.notable-events p {
    opacity: 0;
    transform: scale(0.8); /* Initially smaller */
    transition: opacity 0.5s ease, transform 0.5s ease;
    position: relative;
    z-index: 1;
}

/* When the section is visible */
.notable-events.visible {
    opacity: 1;
    transform: translateY(0); /* Bring the box into view */
}

/* The header will become visible */
.notable-events.visible .header-container h2 {
    opacity: 1;
    transform: scale(1); /* Pop to normal size */
    transition-delay: 2.5s; /* Slight delay before the h2 pops */
}

/* The p element animation will start after the lid opens */
.notable-events.visible p {
    opacity: 1;
    animation: pop-up 0.5s ease 3s forwards; /* Delayed to sync with lid */
}

/* When the lid opens, it opens outward */
.notable-events.visible .lid {
    transform: perspective(600px) rotateX(-120deg); /* Rotate outward */
}

/* Pop effect for the p text */
@keyframes pop-up {
    0% { transform: scale(0.8); }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

    @media (min-width: 768px) {
      .current-date-section,
      .birthday-greetings-section {
        width: 50%;
        min-height: 500px;
        max-height: 500px;
      }
    }

.section-container {
      display: flex;
      flex-wrap: wrap;
      max-width: 100%;
      overflow: hidden;
      background-color: white;
    }
    
    .section-container:after {
  content: "";
  display: table;
  clear: both;
}

    .info-container {
      flex: 1;
      margin: 10px;
      text-align: center;
      display: flex;
      flex-direction: column;
      justify-content: center;
      border: 5px solid blue;
    }
    
    .info-container a {
  display: inline-block;
  padding: 10px 20px;
  margin: 5px; 
  background-color: #007BFF;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.info-container a:hover {
  background-color: #0056b3;
}

   .info-container1 {
      flex: 1;
      margin: 10px;
      text-align: center;
      display: flex;
      flex-direction: column;
      justify-content: center;
      border: 5px solid green;
    }
    
    .info-container1 a {
  display: inline-block;
  padding: 10px 20px;
  margin: 5px; 
  background-color: #F6F63A;
  color: blue;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.info-container1 a:hover {
  background-color: #D2D273;
}

    .image-container {
      flex: 2;
      margin: 10px;
      overflow: hidden;
      position: relative;
    }

    .image-slider {
      display: flex;
      transition: transform 2s ease;
    }

    .image-slider img {
      width: 100%;
      object-fit: cover;
    }

    .toggle-bar {
      position: absolute;
      top: 50%;
      width: 20px;
      height: 40px;
      background-color: rgba(255, 255, 255, 0.5);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background-color 0.3s ease;
    }

    .toggle-bar-left {
      left: 0;
    }

    .toggle-bar-right {
      right: 0;
    }

    .toggle-bar:hover {
      background-color: rgba(255, 255, 255, 0.8);
    }

    @keyframes slide {
      0% {
        transform: translateX(0);
      }
      25% {
        transform: translateX(-100%);
      }
      50% {
        transform: translateX(-200%);
      }
      75% {
        transform: translateX(-300%);
      }
      100% {
        transform: translateX(0);
      }
    }

    /* Media query for responsive styling */
    @media (max-width: 768px) {
      .section-container {
        flex-direction: column;
        margin: 5px 5px;
      }

      .info-container, .image-container {
        flex: 1;
        margin: 10px 0;
      }
    }
        
        .cover-container {
			width: 100%;
			max-width: 1200px;
			margin: 2px auto;
			padding: 20px;
			box-sizing: border-box;
                  background-color: lightblue;
		}
		
		img {
			display: block;
			max-width: 100%;
			height: auto;
			margin: 0 auto;
		}

.admin-panel {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 20px;
}

.admin-column {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    margin: 0 10px; /* Equal left and right margin */
    flex: 1;
    align-items: center;
}

.admin-column2 {
    background-color: #3498db;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    margin: 0 10px; /* Equal left and right margin */
    flex: 1;
    align-items: center;
}

h2 {
    font-size: 1.5rem;
    text-align: center;
}

.grid-box {
    display: inline-block;
    margin: 10px;
    border: 2px solid red;
    border-radius: 5px;
    width: 42%; /* Adjust as needed for equal spacing */
    text-align: center;
    padding: 10px;
}

.grid-box2 {
    display: inline-block;
    margin: 10px;
    border: 2px solid white;
    border-radius: 5px;
    width: 42%; /* Adjust as needed for equal spacing */
    text-align: center;
    padding: 10px;
}

.grid-box-link {
    display: block;
    text-decoration: none;
    background-color: #3498db;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
    color: white; /* Text color */
    transition: background-color 0.3s;
}

.grid-box-link:hover {
    background-color: #267bbf; /* Change background color on hover */
}

.grid-box-link2 {
    display: block;
    text-decoration: none;
    background-color: white;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
    color: blue; /* Text color */
    transition: background-color 0.3s;
}

.grid-box-link2:hover {
    background-color: beige; /* Change background color on hover */
}

.grid-box-icon {
    background-color: lightblue;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px auto;
}

.grid-box-icon img {
    width: 70px;
    height: 70px;
    margin: 0 auto;
}

.grid-box-icon2 {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px auto;
}

.grid-box-icon2 img {
    width: 70px;
    height: 70px;
    margin: 0 auto;
}

.grid-box-text {
    text-align: center;
    margin: 10px;
}

.quick_link_section {
    width: 95%;
    margin: 10px auto;
    border: 2px solid brown;
    background-color: white;
}

.quick_link_heading {
    display: flex;
    width: 100%;
    float: left;
    border: 2px solid white;
    background-color: black;
    color: white;
    padding: 20px;
}

.quick_links {
    display: inline-block;
    margin: 10px;
    text-decoration: none;
    background-color: Dodgerblue;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
    color: white; /* Text color */
    transition: background-color 0.3s;
}

.quick_links:hover {
    background-color: lightblue;
    color: blue;
}


@media (max-width: 768px) {
    .admin-panel {
        flex-direction: column;
        margin: 5px;
    }
    .admin-column {
        margin: 10px;
    }
}

.legacy-hub {
    padding: 50px 20px;
    background: #ffffff;
    text-align: center;
}

.hub-title {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 10px;
    font-family: 'Aharoni', sans-serif;
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 30px auto;
}

.hub-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    border: 1px solid #eee;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hub-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    background: #fff;
}

/* Initiative-specific hover colors */
.initiative:hover { border-bottom: 4px solid #27ae60; }
.event:hover { border-bottom: 4px solid #3498db; }
.flyer:hover { border-bottom: 4px solid #f39c12; }
.gallery:hover { border-bottom: 4px solid #8e44ad; }

.card-icon { font-size: 40px; margin-bottom: 15px; }

.hub-btn {
    margin-top: auto;
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
}

.hub-card:hover .hub-btn { background: #e74c3c; }

    /* Footer styles */
footer {
  background-color: white;
  color: #fff;
  padding: 0;
  margin: 0;
}

.footer-container {
  text-align: center;
  margin: 0;
  padding: 0;
}

.footer-row {
  flex-basis: 100%;
}

/* Top row styles */
.top-row {
  background-image: url('image_webpage/wall1.jpeg');
  background-size: cover;
  background-position: center;
  padding: 20px;
  position: relative;
}

.top-row::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  z-index: -1;
}

.top-row a {
  color: #fff;
  text-decoration: none;
  display: block;
  margin-bottom: 20px;
  font-weight: bold;
}

@media (min-width: 768px) {
  .footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .top-row a {
    width: 48%; /* Two columns with a small gap */
    display: inline-block;
  }
}

/* Social media row styles */
.social-media-row {
  text-align: center;
  padding: 10px;
  display: flex;
  justify-content: space-around; 
}

.social-media-icons img {
  width: 80px;
  height: auto;
  margin: 0 10px; /* Adjusted margin for consistency */
  display: inline-block;
}

/* Bottom row styles */
.bottom-row {
  text-align: center;
  display: inline-block;
  background-color: #333;
  width: 100%;
}

@media (max-width: 768px) {
  .social-media-icons img {
    width: 60px;
    margin: 0 5px; /* Adjusted margin for consistency */
  }
}