/* Import professional font */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

/* Base Reset and Body */
* {
  box-sizing: border-box;
}

body {
  padding-top: 80px;
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  background-color: #0b0b0b;
  color: #e0e0e0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header and Layout */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #121212;
  border-bottom: 3px solid #b71c1c;
  box-shadow: 0 3px 10px rgba(183, 28, 28, 0.5);
  top: 0;
  z-index: 1000;
}


.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.team-logo {
  width: 48px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 0 10px #b71c1c80;
}

.header-left h1 {
  margin: 0;
  font-weight: 700;
  font-size: 2.5rem;
  color: #e53935;
  text-shadow: 0 0 2px #ff5252;
}

/* Navigation container */
.header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  font-weight: 600;
  font-size: 1 rem;
}

/* Main group headers */
.nav-group-header {
  color: #ff6f6f;
  text-transform: uppercase;
  padding: 0.3rem 0.5rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
}

.nav-group-header:hover,
.nav-group-header:focus {
  color: #ffffff;
  border-color: #ff5353;
  outline: none;
}

/* Sub items */
.nav-sub-item {
  color: #ddd;
  padding-left: 1.4rem;
  text-transform: none;
  font-weight: 400;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.nav-sub-item:hover,
.nav-sub-item:focus {
  color: #ff9999;
  outline: none;
}

/* Regular buffer links or standalone links */
.header-nav a:not(.nav-group-header):not(.nav-sub-item) {
  color: #eee;
  padding: 0.3rem 0.5rem;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.header-nav a:not(.nav-group-header):not(.nav-sub-item):hover,
.header-nav a:not(.nav-group-header):not(.nav-sub-item):focus {
  color: #ff6666;
  outline: none;
}

/* Main Content Sections (placeholders) */
main section {
  max-width: 98%;
  margin: 2rem auto;
  padding: 0.5rem;
  background-color: #1c1c1c;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(183, 28, 28, 0.4);
  min-height: 150px;
}

/* Footer styling */
footer {
  text-align: center;
  padding: 1rem 2rem;
  background-color: #121212;
  border-top: 1px solid #440000;
  color: #757575;
  font-weight: 400;
}

/* Responsive */
@media (max-width: 100%) {
  header {
    flex-wrap: wrap;
    gap: 1rem;
  }
  .header-nav {
    justify-content: center;
  }
}

 #visionmission-section {
    background: #2a2a2a;
    color: #e0e0e0;
    max-width: 98%;
    margin: 2rem auto;
    padding: 1rem 2rem;
    border: 3px solid #b71c1c;
    border-radius: 12px;
    box-shadow: 0 0 20px #b71c1c;
  }


 #students-section {
    background: #2a2a2a;
    color: #e0e0e0;
    max-width: 98%;
    margin: 2rem auto;
    padding: 1rem 2rem;
    border: 3px solid #b71c1c;
    border-radius: 12px;
    box-shadow: 0 0 20px #b71c1c;
  }
  

  #students {
  max-width: 1200px;
  margin: 0 auto;
  display: grid; 
  gap: 1.5rem;
  }

 #supportus-section {
    background: #2a2a2a;
    color: #e0e0e0;
    max-width: 98%;
    margin: 2rem auto;
    padding: 1rem 2rem;
    border: 3px solid #b71c1c;
    border-radius: 12px;
    box-shadow: 0 0 20px #b71c1c;
  }

#scholarship-section {
    background: #2a2a2a;
    color: #e0e0e0;
    max-width: 98%;
    margin: 2rem auto;
    padding: 1rem 2rem;
    border: 3px solid #b71c1c;
    border-radius: 12px;
    box-shadow: 0 0 20px #b71c1c;
  }

#contactus-section {
    background: #2a2a2a;
    color: #e0e0e0;
    max-width: 98%;
    margin: 2rem auto;
    padding: 1rem 2rem;
    border: 3px solid #b71c1c;
    border-radius: 12px;
    box-shadow: 0 0 20px #b71c1c;
  }

#ourjourney-section {
  height: 100%;
  max-width: 98%;
  margin: 2rem auto;
  padding: 1rem 2rem;
  background: #2a2a2a;
  color: #e0e0e0;
  border: 3px solid #b71c1c;
  border-radius: 12px;
  box-shadow: 0 0 20px #b71c1c;
  height: 600px; /* Increased height */
  box-sizing: border-box; /* Include padding in height */
  overflow: hidden; /* prevent outer scrollbar */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#journey-updates-container {
  height: 400px; /* Fill entire section height */
  overflow-y: auto; /* Scroll only inside this container */
  scroll-behavior: smooth;
  border: none; /* Remove extra borders if any */
  padding-right: 1rem; /* Add some padding for scrollbar space */
  box-sizing: border-box;
}

 h2 {
    border-bottom: 2px solid #b71c1c;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    color: #ef5350;
  }
  .journey-update {
    border-bottom: 1px solid #b71c1c;
    padding: 1rem 0;
  }
  .journey-date {
    color: #ff8a80;
    font-weight: bold;
    margin-bottom: 0.3rem;
  }
  .journey-description {
    font-size: 1rem;
    margin-bottom: 0.6rem;
  }
  .journey-image img {
    max-width: 40;
    max-height: auto;
    border-radius: 8px;
    box-shadow: 0 0 8px #b71c1c;
  }
  .journey-video iframe {
    width: 40%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 10px #b71c1c;
  }

header {
  transition: opacity 0.3s ease;
}
header.hidden {
  opacity: 0;
  pointer-events: none;
}
header.visible {
  opacity: 1;
  pointer-events: auto;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}