/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f5f5f5;
  color: #333;
}

/* Colors */
:root {
  --primary-color: #8B0000; /* Deep Red */
  --accent-color: #800080;  /* Purple */
}




/* Navbar */
.navbar {
  background-color: #fff;
  padding: 20px 0; /* Unified vertical padding */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

/* Logo */
.logo img {
  max-width: 220px; /* Bigger, consistent logo size */
  height: auto;
}





/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  background: url('images/news/news3.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: background-image 2s ease-in-out; /* Smooth transition for background image */
}

.overlay {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 40px;
  width: 100%;
  height: 100%;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: opacity 2s ease-in-out; /* Smooth fade effect for overlay */
}

.hero h1, .hero p {
  opacity: 0; /* Start with hidden text */
  transition: opacity 2s ease-in-out;
}

.hero h1.visible, .hero p.visible {
  opacity: 1; /* Fade in effect */
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}





/* Form Section */
.form-section {
  padding: 60px 20px;
  background-color: #fff;
  display: flex;
  justify-content: center;
}

.form-container {
  background-color: #fefefe;
  padding: 40px;
  max-width: 600px;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.form-container h2 {
  text-align: center;
  color: var(--accent-color);
  margin-bottom: 30px;
}

form input,
form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

form button {
  background-color: var(--primary-color);
  color: white;
  padding: 15px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  font-size: 1rem;
  transition: background 0.3s;
}

form button:hover {
  background-color: #5a0000;
}

/* Animations */
.fade-in {
  opacity: 0;
  animation: fadeIn 2s ease forwards;
}

.slide-in {
  transform: translateY(30px);
  opacity: 0;
  animation: slideIn 2s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}









/* General Styles for the Section */
.nominated-section {
  background-color: #f5f5f5;
  padding: 80px 20px;
  text-align: center;
}

.nominated-section h2 {
  color: var(--accent-color);
  margin-bottom: 30px;
  font-size: 1.5rem;
}

/* Scrollable Container */
.scrollable {
  max-height: 600px; /* Increased height */
  overflow-y: auto;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #ccc;
  background: #fff;
  margin: 0 auto;
  width: 90%;
  max-width: 1000px; /* Wider container */
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

/* List of Nominated Schools */
.nominated-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* School Card Styles */
.school-card {
  background-color: #ffffff;
  padding: 20px 25px;
  border-left: 6px solid var(--primary-color);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.school-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.school-card h3 {
  color: var(--primary-color);
  margin-bottom: 8px;
  font-size: 1.4rem;
}

.school-card p {
  margin: 4px 0;
  font-size: 1rem;
  color: #444;
}






/* Footer Styling */
.footer {
    background-color: #9370DB;
    color: #fff;
    padding: 30px;
    text-align: center;
}

.footer .social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.footer .social-icons a {
    font-size: 24px;
    color: #fff;
    transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.footer .social-icons a:hover {
    color: #f1f1f1;
    transform: scale(1.1);
}

.footer-bottom p {
    font-size: 14px;
    margin-top: 15px;
    opacity: 0.7;
}




.back-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  padding: 10px 20px;
  background-color: #800080; /* Purple */
  color: #fff;            /* Deep Red */
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  z-index: 9999;
  transition: background-color 0.3s;
}
.back-btn:hover {
  background-color: #4B004B; /* Darker purple on hover */
}