/*Page2.css*/

/* Page Container */
.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--off-white);
}

/* Header Bar */
.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 20px;
}

.header-bar .leftlogo,
.header-bar .rightlogo {
  height: 55px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.header-bar .college-name {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  color: var(--primary-red);
  text-align: center;
  flex-grow: 1;
  margin: 0;
  letter-spacing: -0.5px;
}

/* Navigation Bar */
.navbar {
  background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
  padding: 0 40px;
  box-shadow: var(--shadow-sm);
}

.navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
}

.navbar ul li {
  margin: 0;
}

.navbar ul li a {
  display: block;
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  padding: 16px 24px;
  transition: var(--transition);
  position: relative;
}

.navbar ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background-color: var(--white);
  transition: var(--transition);
  transform: translateX(-50%);
}

.navbar ul li a:hover::after,
.navbar ul li a.active::after {
  width: calc(100% - 48px);
}

.navbar ul li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Main Container */
.main-container {
  display: flex;
  flex: 1;
  width: 100%;
  min-height: calc(100vh - 200px);
}

/* Content Area (Left Side) */
.content-area {
  flex: 1;
  padding: 40px;
  background-color: var(--white);
  overflow-y: auto;
}

.content-area h2 {
  color: var(--primary-red);
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 20px;
}

.content-area p {
  color: var(--darker-gray);
  line-height: 1.8;
}

/* Stream Bar (Right Side) */
.stream-bar {
  width: 280px;
  min-width: 280px;
  background-color: var(--white);
  border-left: 1px solid var(--medium-gray);
  padding: 30px 20px;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.05);
}

.stream-bar h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-red);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-red);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stream-bar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.stream-bar ul li {
  padding: 14px 16px;
  cursor: pointer;
  border-radius: var(--border-radius);
  margin-bottom: 8px;
  transition: var(--transition);
  font-weight: 500;
  color: var(--darker-gray);
  border: 1px solid transparent;
}

.stream-bar ul li a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.stream-bar ul li:hover {
  background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
  color: var(--white);
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
}

.stream-bar ul li:hover a {
  color: var(--white);
}

.stream-bar ul li.active {
  background-color: var(--primary-red);
  color: var(--white);
  border-color: var(--dark-red);
}

/* Footer Styles */
footer {
  background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
  padding: 20px 40px;
  text-align: center;
  margin-top: auto;
}

.terms {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.terms a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
}

.terms a:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.footer-image {
  width: 100%;
  max-width: 1200px;
  margin: 15px auto 0;
  display: block;
  opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .stream-bar {
    width: 240px;
    min-width: 240px;
  }

  .header-bar {
    padding: 12px 20px;
  }

  .navbar {
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  .main-container {
    flex-direction: column;
  }

  .stream-bar {
    width: 100%;
    min-width: 100%;
    border-left: none;
    border-top: 1px solid var(--medium-gray);
    padding: 20px;
  }

  .stream-bar ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .stream-bar ul li {
    margin-bottom: 0;
    text-align: center;
  }

  .stream-bar ul li:hover {
    transform: translateY(-3px);
  }

  .header-bar {
    flex-direction: column;
    padding: 15px;
    gap: 10px;
  }

  .header-bar .college-name {
    order: -1;
    font-size: 22px;
  }

  .navbar ul {
    justify-content: center;
  }

  .navbar ul li a {
    padding: 12px 16px;
    font-size: 14px;
  }

  .content-area {
    padding: 25px;
  }
}

@media (max-width: 480px) {
  .stream-bar ul {
    grid-template-columns: 1fr;
  }

  .navbar ul li a {
    padding: 10px 12px;
    font-size: 13px;
  }

  .terms {
    flex-direction: column;
    gap: 15px;
  }
}