/* RAT Events Custom Styles */
/* Color Scheme: Primary #00375C, Secondary #0E1B2B, Tertiary White */

:root {
  --primary-color: #00375c;
  --secondary-color: #0e1b2b;
  --tertiary-color: #ffffff;
  --text-dark: #1a1a1a;
  --text-light: #666666;
  --border-color: #e5e7eb;
  --hover-color: #004d7a;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #f8f9fa;
}

/* Header Styles */
.header {
  background-color: var(--tertiary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Logo Styles */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--primary-color);
  transition: opacity 0.3s ease;
}

.logo:hover {
  opacity: 0.8;
}

.logo-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.2;
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media screen and (max-width: 991px) {
  .logo-title {
    font-size: 1.2rem;
  }

  .logo-subtitle {
    font-size: 0.65rem;
  }

  .logo-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .header .container {
    padding: 0 1rem;
  }

  .header-content {
    padding: 0.5rem 0;
  }
}

/* Auth */
.oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  background: white;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.oauth-btn:hover {
  border-color: #00375c;
  background: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.oauth-btn img {
  width: 20px;
  height: 20px;
}

/* Navigation Styles */
.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a,
.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

/* Mobile Navigation */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: 1rem;
}

.mobile-menu-btn .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
}

@media screen and (max-width: 991px) {
  .mobile-menu-btn {
    display: block;
  }

  .header-content {
    position: relative;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--tertiary-color);
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  .nav.active {
    display: flex;
  }

  /* Ensure nested nav lists inside the mobile menu are visible */
  .nav.active .nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  /* Make dropdown menus behave nicely inside the mobile panel */
  .nav.active .dropdown-menu {
    position: static; /* stack within the flow */
    float: none;
    display: none; /* hidden until toggled */
    box-shadow: none;
    border: none;
    padding: 0.25rem 0;
    margin: 0;
  }

  /* Show submenu when Bootstrap toggles it */
  .nav.active .dropdown-menu.show {
    display: block;
  }

  .social-icons {
    display: none;
  }

  .mobile-menu-btn.active .bar:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .mobile-menu-btn.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

.nav a:hover,
.nav-link:hover {
  color: var(--primary-color);
}

/* Ensure both .nav a and .nav-link get the underline that matches current text color */
.nav a::after,
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: currentColor;
  transition: width 0.3s ease;
}

.nav a:hover::after,
.nav-link:hover::after {
  width: 100%;
}

/* Dropdown Styles */
.nav-item {
  list-style: none;
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
}

.dropdown-menu {
  background-color: var(--tertiary-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 180px;
}

.dropdown-item {
  color: var(--text-dark);
  padding: 0.75rem 1.25rem;
  transition: all 0.3s ease;
  display: block;
  text-decoration: none;
}

.dropdown-item:hover {
  background-color: var(--primary-color);
  color: var(--tertiary-color);
}

@media screen and (max-width: 991px) {
  .nav-item {
    width: 100%;
  }

  .dropdown-menu {
    position: static !important;
    width: 100%;
    box-shadow: none;
    border: none;
    background-color: rgba(0, 0, 0, 0.02);
    padding: 0;
    margin-top: 0.5rem;
    transform: translate3d(0, 4px, 0px) !important;
  }

  .dropdown-item {
    padding: 0.75rem 1rem;
  }

  .nav-item .nav-link {
    width: 100%;
    display: block;
  }
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.social-icons a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  color: var(--tertiary-color);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.social-icons a:hover {
  transform: translateY(-2px);
  color: var(--tertiary-color) !important;
}

/* Alert Messages */
.alert {
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin: 1rem 0;
  border: none;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
}

/* Button Styles */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--tertiary-color);
  padding: 0.4rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--hover-color);
  border-color: var(--hover-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 55, 92, 0.3);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background-color: transparent;
  padding: 0.4rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

/* Footer Styles */
.footer {
  background-color: var(--primary-color);
  color: var(--tertiary-color);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h3 {
  color: var(--tertiary-color);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.footer-col h4 {
  color: var(--tertiary-color);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.footer-col p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--tertiary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  font-size: 0.9rem;
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--tertiary-color);
  transform: translateY(-2px);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Section Spacing */
section {
  padding: 4rem 0;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--hover-color);
}

/* Mission Section */
.mission-section {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--tertiary-color);
  padding: 5rem 0;
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.mission-content h2 {
  color: var(--tertiary-color);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.mission-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.95);
}

.mission-content .subtitle {
  display: block;
  font-size: 0.9rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.5rem;
}

.mission-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.rat-mission-learn-more-btn {
  padding: 0.8rem 1rem !important;
  width: 200px;
  border-color: white !important;
  color: white !important;
  background-color: transparent !important;
}

.rat-mission-learn-more-btn:hover {
  background-color: white !important;
  color: var(--primary-color) !important;
}

/* Welcome Banner */
.welcome-banner {
  background-image: url("../images/index/index-event2.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  color: var(--tertiary-color);
  text-align: center;
  margin: 3rem auto;
  border-radius: 12px;
  max-width: 1200px;
}

.welcome-banner h1 {
  color: var(--tertiary-color);
  font-size: 3rem;
  margin-bottom: 1rem;
}

.welcome-banner .welcome-banner-content h2 {
  color: white;
}

.welcome-banner .lead {
  max-width: 80%;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.welcome-banner-content {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 6rem 2rem;
}

.btn-welcome {
  background-color: var(--tertiary-color);
  color: var(--primary-color);
  padding: 1rem 2.5rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-welcome:hover {
  transform: translateY(-3px);
  background-color: var(--primary-color);
  color: var(--tertiary-color);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3);
}

/* FAQ */
.faq-title {
  margin-bottom: 3rem !important;
}

/* Database Events Section */
.db-events-section {
  padding: 4rem 0;
  background-color: #f8f9fa;
}

.section-title {
  text-align: center;
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 3rem;
  font-weight: 700;
}

.event-card {
  height: 100%;
  margin-bottom: 2rem;
}

.event-image {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.event-card .card-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.event-card .card-text {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.event-meta {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.event-meta i {
  color: var(--primary-color);
}

.btn-primary-custom {
  background-color: var(--primary-color);
  color: var(--tertiary-color);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary-custom:hover {
  background-color: var(--hover-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 55, 92, 0.3);
  color: var(--tertiary-color);
}

.no-events {
  font-size: 1.2rem;
  color: var(--text-light);
  padding: 3rem 0;
}

/* Awards */
ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

ul li {
  color: black;
}

.awards-list-item {
  color: var(--primary-color) !important;
  margin-top: 1.5rem !important;
  row-gap: 0 !important;
  gap: 0 !important;
}

.awards-list-item:first-child {
  margin-top: 0 !important;
}

/* Events Section */
.events-section {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.events-section .section-header h2 {
  color: var(--tertiary-color);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.events-section .section-header p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.events-section .event-card {
  background-color: var(--tertiary-color);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.events-section .event-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.event-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--tertiary-color);
  background-color: var(--primary-color);
  font-size: 2rem;
}

.events-section .event-card h3 {
  color: var(--primary-color);
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.event-description {
  color: var(--text-dark);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.event-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.event-features li {
  color: var(--text-light);
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
}

.event-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* Calendar Section */
.calendar-section {
  padding: 5rem 0;
  background-color: #f8f9fa;
}

.calendar-section .section-header h2 {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.calendar-section .section-header p {
  color: var(--text-light);
  font-size: 1.2rem;
}

.calendar-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.venue-card {
  background-color: var(--tertiary-color);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

@media (min-width: 576px) {
  padding: 2rem;
}

.venue-card:hover {
  box-shadow: 0 8px 30px rgba(0, 55, 92, 0.15);
}

.venue-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.venue-header i {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.venue-header h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin: 0;
}

.venue-events {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.event-item {
  padding: 1.5rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.event-item:hover {
  background-color: rgba(0, 55, 92, 0.05);
}

.event-info {
  margin-bottom: 1rem;
}

.event-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.event-date i {
  color: var(--primary-color);
}

.event-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.event-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--primary-color);
  color: var(--tertiary-color);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.register-btn {
  background-color: white;
  color: black;
  padding: 0.4rem 1.5rem;
  border: 1px solid;
  border-color: white;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  font-size: 14px;
}

.register-btn:hover {
  border-color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 55, 92, 0.1);
}

/* Winners Section */
.winners-section {
  margin-top: 4rem;
  padding: 3rem;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 12px;
}

.winners-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.winners-header i {
  color: #ffd700;
  font-size: 2rem;
}

.winners-header h3 {
  color: var(--tertiary-color);
  font-size: 2rem;
  margin: 0;
}

.winners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.winner-card {
  background-color: var(--tertiary-color);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.winner-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.winner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.winner-year {
  background-color: var(--primary-color);
  color: var(--tertiary-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 700;
}

.trophy-icon {
  color: #ffd700;
  font-size: 1.5rem;
}

.winner-card h4 {
  color: var(--primary-color);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.winner-school {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.winner-team {
  color: var(--text-light);
  font-style: italic;
}

/* Complete Profile */
.card {
  padding: 0 !important;
  border: none;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.form-control {
  border-radius: 10px;
  border: 2px solid #e9ecef;
  padding: 12px 15px;
  transition: all 0.3s ease;
}

.btn-complete-profile {
  background: var(--primary-color);
  border: none;
  border-radius: 10px;
  padding: 12px 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  color: white;
}

.btn-complete-profile:hover {
  transform: translateY(-2px);
  background: var(--hover-color);
  color: white;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.welcome-text {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 2rem;
}

/* Teacher */
.view-teacher-school {
  width: fit-content;
  background-color: white;
  color: var(--primary-color) !important;
  border: 1px solid var(--primary-color);
  border-radius: 30px;
  line-height: 1;
  padding: 5px 20px !important;
}

/* About Home Section */
.about-home-section {
  padding: 5rem 0;
  background-color: var(--tertiary-color);
}

.about-home-section h2 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.about-home-section p {
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.btn-outline-custom {
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  background-color: transparent;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-outline-custom:hover {
  background-color: var(--primary-color);
  color: var(--tertiary-color);
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 992px) {
  .header-content {
    flex-wrap: wrap;
  }

  .nav {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .social-icons {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
  }

  .mission-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .calendar-grid {
    grid-template-columns: 1fr;
  }

  .welcome-banner h1 {
    font-size: 2.5rem;
  }

  .welcome-banner .lead {
    font-size: 1.25rem;
  }
}

@media (max-width: 768px) {
  .header .container {
    padding: 0 1rem;
  }

  .nav {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }

  .nav a {
    width: 100%;
    text-align: center;
    padding: 0.75rem;
  }

  .logo-title {
    font-size: 1.25rem;
  }

  .logo-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .mission-section {
    padding: 3rem 0;
  }

  .mission-content h2 {
    font-size: 2rem;
  }

  .welcome-banner {
    margin: 3rem 1.5rem;
  }

  .welcome-banner h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }

  .winners-grid {
    grid-template-columns: 1fr;
  }

  .school-tab-nav {
    flex-direction: row !important;
    gap: 0.5rem;
    margin-top: 25px;
    position: relative !important;
    top: 0;
    border-radius: 1rem;
  }

  .school-tab-nav .nav-item {
    width: auto;
    flex-grow: 1;
    border-width: 1px !important;
  }
}

@media (max-width: 992px) {
  .header-social-icons {
    display: none !important;
  }
}

/* Amin Events */
.admin-events-view-btn {
  background-color: #00375c !important;
  color: white !important;
}

.admin-events-create-btn {
  border: 1px solid #00375c !important;
  color: #00375c !important;

  &:hover {
    color: white !important;
    background-color: #00375c !important;
  }
}

/* Donation Page Styles */
.donations-container {
  min-height: 50vh;
}

.donation-page {
  min-height: 100vh;
  /*max-width: 500px !important;*/
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 4rem 0;
}

.donation-form {
  width: 100%;
}

.donation-input {
  border: none;
  width: 100%;
  padding: 1rem 1.25rem;

  &:active,
  &:focus {
    border: none;
    box-shadow: none;
    outline: none;
  }
}

.donation-currency {
  height: 100%;
  padding: 1rem 1.5rem;
  background-color: var(--border-color);
}

/* Enhanced header with icon and better visual hierarchy */
.donation-header {
  background: linear-gradient(135deg, #00375c 0%, #0e1b2b 100%);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
  margin-bottom: 3rem;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 55, 92, 0.3);
  position: relative;
  overflow: hidden;
}

.donation-header::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: pulse 15s ease-in-out infinite;
}

.view-donation-btn {
  &:hover {
    transform: none !important;
  }
}

.change-donation-status-btn {
  border-bottom-right-radius: 0.5rem !important;
  border-top-right-radius: 0.5rem !important;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.donation-header h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
  color: white;
  z-index: 1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.donation-header h1 i {
  color: #ff6b6b;
  margin-right: 1rem;
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.1);
  }
  50% {
    transform: scale(1);
  }
}

.donation-header p {
  font-size: 1.2rem;
  margin: 0;
  position: relative;
  z-index: 1;
  opacity: 0.95;
}

/* Enhanced form container with better shadow and spacing */
.donation-form-container {
  background: white;
  border-radius: 20px;
  padding: 3.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  max-width: 900px;
  margin: 0 auto;
}

/* Modern fieldset design with icons and better borders */
.donation-form fieldset {
  border: 3px solid #e9ecef;
  border-radius: 15px;
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
  transition: all 0.3s ease;
  position: relative;
}

.donation-form fieldset:hover {
  border-color: #00375c;
  box-shadow: 0 5px 20px rgba(0, 55, 92, 0.1);
  transform: translateY(-2px);
}

.donation-form legend {
  color: #00375c;
  font-size: 1.6rem;
  font-weight: 800;
  padding: 0;
  width: auto;
  margin-bottom: 20px;
  background: white;
  border-radius: 10px;
}

/* Enhanced form labels with better typography */
.donation-form .form-label {
  color: #0e1b2b;
  font-weight: 700;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  display: block;
}

/* Modern input styling with better focus states */
.donation-form .form-control,
.donation-form .form-select {
  border: 2px solid #dee2e6;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  transition: all 0.3s ease;
  font-size: 1rem;
  background: white;
}

.donation-form .form-control:hover,
.donation-form .form-select:hover {
  border-color: #00375c;
}

.donation-form .form-control:focus,
.donation-form .form-select:focus {
  border-color: #00375c;
  box-shadow: 0 0 0 0.3rem rgba(0, 55, 92, 0.15);
  background: #f8f9fa;
  outline: none;
}

.donation-form textarea.form-control {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

/* Enhanced checkbox styling */
.donation-form .form-check {
  padding: 1.25rem;
  background: #f8f9fa;
  border-radius: 10px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
  gap: 20px;
}

.donation-form .form-check:hover {
  background: white;
  border-color: #00375c;
}

.donation-form .form-check-input {
  border: 2px solid #dee2e6;
  width: 25px;
  height: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.donation-form .form-check-input:checked {
  background-color: #00375c;
  border-color: #00375c;
  box-shadow: 0 0 0 0.2rem rgba(0, 55, 92, 0.25);
}

.donation-form .form-check-label {
  color: #495057;
  width: auto;
  flex-grow: 1;
  font-weight: 500;
  cursor: pointer;
  font-size: 1rem;
}

/* Better grid layout for form rows */
.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

/* Address section styling */
.address-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px dashed #dee2e6;
}

.address-section h4 {
  color: #00375c;
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

/* Enhanced donation button with animation */
.btn-donation {
  background: linear-gradient(135deg, #00375c 0%, #0e1b2b 100%);
  color: white;
  border: none;
  padding: 1.25rem 3rem;
  font-size: 1.2rem;
  font-weight: 800;
  border-radius: 15px;
  transition: all 0.4s ease;
  width: 100%;
  margin-top: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 55, 92, 0.3);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-donation::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-donation:hover::before {
  width: 300px;
  height: 300px;
}

.btn-donation:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 55, 92, 0.4);
}

.btn-donation:active {
  transform: translateY(-1px);
}

.btn-donation i {
  margin-right: 0.75rem;
  font-size: 1.3rem;
}

/* Required field indicator styling */
.donation-form .required {
  color: #dc3545;
  font-weight: 700;
}

/* Form actions container */
.form-actions {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid #e9ecef;
}

/* Select dropdown arrow styling */
.donation-form .form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2300375c' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px 12px;
  padding-right: 3rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .donation-page {
    padding: 2rem 0;
  }

  .donation-header {
    padding: 3rem 1.5rem;
    border-radius: 15px;
  }

  .donation-header h1 {
    font-size: 2rem;
  }

  .donation-header p {
    font-size: 1rem;
  }

  .donation-form-container {
    padding: 2rem;
    border-radius: 15px;
  }

  .donation-form fieldset {
    padding: 1.5rem;
  }

  .donation-form legend {
    font-size: 1.3rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .btn-donation {
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .donation-header h1 {
    font-size: 1.75rem;
  }

  .donation-form-container {
    padding: 1.5rem;
  }

  .donation-form fieldset {
    padding: 1.25rem;
  }
}

/* When specific nav blocks are highlighted for school users, style only those elements */
.school-highlight > .nav-link,
.school-highlight .header-dropdown-item,
.nav .school-highlight-link {
  color: #007bff; /* blue used for school links */
}

.school-highlight > .nav-link:hover,
.school-highlight .header-dropdown-item:hover,
.nav .school-highlight-link:hover {
  color: #0056b3; /* slightly darker on hover */
}
