/* Reset margins and padding for better control */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styling */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

/* Navigation styling */
nav {
    background-color: #ffffff;
    padding: 0.5rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.logo {
    height: 50px; /* Adjust logo size as needed */
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1); /* Slightly enlarges logo on hover */
}

/* Menu Toggle Icon for Mobile */
.menu-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #4CAF50; /* Green color for the icon */
}

/* Hide default checkbox style */
.menu-toggle {
    display: none;
}

/* Style for the list items */
nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav ul li a {
    text-decoration: none;
    color: #4CAF50; /* Green color for menu items */
    font-weight: 600;
    transition: color 0.3s ease, transform 0.3s ease;
}

/* Hover effect on menu items */
nav ul li a:hover {
    color: #000000; /* Darker green for hover effect */
    transform: scale(1.1); /* Grows the menu item slightly */
}

/* Animation for slide-in effect */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    /* Display the menu icon */
    .menu-icon {
        display: block;
    }

    nav {
        position: relative; /* Position relative or absolute to enable z-index */
        z-index: 10; /* Higher z-index to appear above the slideshow */
    }
    /* Hide the list items by default */
    nav ul {
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        background-color: #ffffff;
        flex-direction: column;
        align-items: center;
        display: none;
        padding: 1rem 0;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
        animation: slideIn 0.4s ease forwards; /* Adds sliding animation */
    }

    /* Show the menu when checkbox is checked */
    .menu-toggle:checked + .menu-icon + ul {
        display: flex;
    }

    /* Styling for the menu items on mobile */
    nav ul li {
        margin: 0.5rem 0;
    }

    /* Animation for each menu item on mobile */
    nav ul li a {
        animation: fadeIn 0.3s ease forwards;
        opacity: 0;
    }

    /* Sequential delay for each menu item */
    nav ul li:nth-child(1) a { animation-delay: 0.1s; }
    nav ul li:nth-child(2) a { animation-delay: 0.2s; }
    nav ul li:nth-child(3) a { animation-delay: 0.3s; }
    nav ul li:nth-child(4) a { animation-delay: 0.4s; }
    nav ul li:nth-child(5) a { animation-delay: 0.5s; }
}

/* Fade-in animation for list items */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Quick Info Container */
#quick-info {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 1.5rem;
    color: #333;
    font-weight: 600;
    border-radius: 12px;
    background-color: #ffffff;
    background-image: url('path-to-your-cartoon-background.svg'); /* Replace with path to SVG background image */
    background-size: cover;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.8s ease;
    max-width: 800px;
    margin: 1rem auto;
    position: relative;
}

#quick-info .quick-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

#quick-info .quick-item:hover {
    transform: scale(1.05);
}

#quick-info .quick-item i {
    font-size: 1.2rem;
    color: #4CAF50;
}

/* Cartoon Background Pattern */
#quick-info::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('path-to-cartoon-shapes.png') repeat; /* Replace with your image path */
    opacity: 0.1;
    z-index: -1;
}

/* Fade-in Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    #quick-info {
        flex-direction: column;
        padding: 1rem;
    }

    #quick-info .quick-item {
        margin: 0.5rem 0;
    }
}





/* General Styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f4fff4; 
  }
  
  /* School Section */
  .school-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 600px;
    background: url('images/20240513_084114.jpg') center/cover no-repeat;
    overflow: hidden;
    color: white;
    text-align: center;
  }
  
  /* Animated Lines */
  /* .animated-lines{
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
  } 
  
  .animated-lines::before,
  .animated-lines::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 4px;
    background: #00bf00;
    animation: slide-line 3s infinite linear;
  }
  
  .animated-lines::before {
    top: 15%;
    left: -20%;
  }
  
  .animated-lines::after {
    bottom: 15%;
    right: -20%;
  }
  
  @keyframes slide-line {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(200%);
    }
  } */
  
  /* Animated Shapes */
  .animated-shapes {
    position: absolute;
    z-index: 1;
  }
  
  .animated-shapes::before,
  .animated-shapes::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 255, 0, 0.2);
    animation: bounce-shape 6s infinite ease-in-out;
  }
  
  .animated-shapes::before {
    width: 200px;
    height: 200px;
    top: -30px;
    left: 10%;
  }
  
  .animated-shapes::after {
    width: 150px;
    height: 150px;
    bottom: -30px;
    right: 10%;
  }
  
  @keyframes bounce-shape {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-20px) scale(1.1);
    }
  }
  
  /* Content Styling */
  .content {
    position: relative;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.6); 
    padding: 20px;
    border: 2px solid #00ff00; 
  }
  
  .school-name {
    font-size: 3rem;
    text-transform: uppercase;
    color: #00ff00;
    margin-bottom: 20px;
    cursor: pointer;
    animation: fade-in 2s ease-in-out forwards;
  }
  
  .school-name:hover {
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.8);
    transform: rotate(2deg);
  }
  
  .school-description {
    font-size: 1.5rem;
    color: #e0ffe0;
    max-width: 700px;
    line-height: 1.8;
    opacity: 0.8;
    animation: fade-in 3s ease-in-out forwards;
  }
  
  .school-description:hover {
    transform: scale(1.1);
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
  }
  
  /* Fade-in Effect */
  @keyframes fade-in {
    0% {
      opacity: 0;
      transform: translateY(20px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Floating Stars Animation */
  .school-section::before,
  .school-section::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: #00ff00;
    border-radius: 50%;
    animation: float-stars 5s infinite ease-in-out;
  }
  
  .school-section::before {
    top: 10%;
    left: 50%;
  }
  
  .school-section::after {
    bottom: 20%;
    right: 30%;
  }
  
  @keyframes float-stars {
    0%, 100% {
      transform: translateY(0);
      opacity: 0.6;
    }
    50% {
      transform: translateY(-30px) scale(1.2);
      opacity: 1;
    }
  }

  



/* News & Announcements Section */
#news-announcements {
    width: 100%;
    background-color: #f5f5f5;
    color: #2e3b4e;
    padding: 2rem 0;
    text-align: center;
    position: relative;
}

#news-announcements h2 {
    font-size: 1.8rem;
    color: #2e7d32; /* Green title */
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Announcement Container */
.announcement-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
    justify-items: center; /* Centers single card if only one */
}

/* News Card Styling */
.news-card {
    width: 100%; /* Full width when only one item */
    max-width: 100%;
    background-color: #ffffff;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: slideIn 1s ease-out forwards;
    animation-delay: calc(var(--i) * 0.2s);
}

/* Text Styling */
.news-card h3 {
    font-size: 1.2rem;
    color: #2e7d32;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.news-card p {
    font-size: 1rem;
    color: #555;
    margin: 0.5rem 0;
    line-height: 1.5;
}

.news-card small {
    font-size: 0.85rem;
    color: #888;
    display: block;
    margin-top: 1rem;
}

/* Slide-in Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* School Departments Section */
#school-departments {
    padding: 50px 20px;
    background-color: #f9fdf9; /* Light greenish background */
    text-align: center;
    color: #004f00; /* Deep green color */
  }
  
  #school-departments h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #007f00; /* Vibrant green */
    text-transform: uppercase;
    position: relative;
    display: inline-block;
  }
  
  #school-departments h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background-color: #00bf00; /* Green accent underline */
    border-radius: 2px;
  }
  
  /* Departments Container */
  .departments-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
  }
  
  /* Department Card */
  .department-card {
    background: white;
    border: 1px solid #e0ffe0; /* Light green border */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 127, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .department-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 127, 0, 0.2);
  }
  
  /* Icons */
  .department-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
  }
  
  /* Card Title */
  .department-card h3 {
    font-size: 1.5rem;
    color: #007f00;
    margin: 10px 0;
  }
  
  /* Card Text */
  .department-card p {
    font-size: 1rem;
    line-height: 1.5;
    color: #555; /* Neutral gray for text */
  }
  
  /* Animation */
  @keyframes fadeInUp {
    0% {
      opacity: 0;
      transform: translateY(20px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .department-card {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
  }
  
  .department-card:nth-child(1) {
    animation-delay: 0.1s;
  }
  
  .department-card:nth-child(2) {
    animation-delay: 0.2s;
  }
  
  .department-card:nth-child(3) {
    animation-delay: 0.3s;
  }
  
  .department-card:nth-child(4) {
    animation-delay: 0.4s;
  }
  
  .department-card:nth-child(5) {
    animation-delay: 0.5s;
  }
  



/* Mission and Vision Section Container */
.mission-vision-container {
    background-image: url('bg1.jpg'); /* Replace with actual image path */
    background-size: cover;
    background-position: center;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    color: white;
    overflow: hidden;
  }
  
  .mission-vision-overlay {
    background-color: rgba(0, 128, 0, 0.7); /* Green overlay with transparency */
    padding: 40px;
    border-radius: 10px;
  }
  
  .mission-vision-content {
    position: relative;
    z-index: 1;
  }
  
  .mission-vision-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: white;
  }
  
  .mission-vision-text-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
  }
  
  .mission-box, .vision-box {
    max-width: 500px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 8px;
    color: #004d00; /* Dark green text color */
  }
  
  .mission-heading, .vision-heading {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #004d00;
  }
  
  .mission-text, .vision-text {
    font-size: 1em;
    line-height: 1.6;
  }
  


  /* Footer Container */
.footer {
    background-color: #004d00; /* Dark green background */
    color: white;
    padding: 40px 20px;
    font-size: 1rem;
  }
  
  .footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  /* Footer Logo Section */
  .footer-logo-section {
    flex: 1 1 250px;
    text-align: center;
  }
  
  .footer-logo {
    max-width: 100px;
    margin-bottom: 10px;
  }
  
  .footer-description {
    font-size: 0.9rem;
    color: #e0ffe0; /* Light green for a soft contrast */
  }
  
  /* Footer Links */
  .footer-links {
    flex: 1 1 200px;
  }
  
  .footer-heading {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #bfff80; /* Light green for headings */
  }
  
  .footer-nav {
    list-style: none;
    padding: 0;
  }
  
  .footer-nav li {
    margin-bottom: 8px;
  }
  
  .footer-nav a {
    color: white;
    text-decoration: none;
  }
  
  .footer-nav a:hover {
    color: #bfff80; /* Light green on hover */
  }
  
  /* Footer Contact */
  .footer-contact {
    flex: 1 1 200px;
  }
  
  .footer-contact p {
    margin: 5px 0;
    color: #e0ffe0;
  }
  
  /* Footer Social Links */
  .footer-social {
    flex: 1 1 200px;
    text-align: center;
  }
  
  .social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
  }
  
  .social-link {
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
  }
  
  .social-link:hover {
    color: #bfff80;
  }
  
  /* Footer Bottom */
  .footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #bfff80;
    font-size: 0.9rem;
    color: #e0ffe0;
  }
  


  