:root {
  --primary-color: #006838;  /* Deep green */
  --secondary-color: #D4AF37; /* Golden */
  --accent-color: #004d2a;   /* Darker green */
  --background-color: #f5f5f5;
  --text-gold: #C5A028;      /* Slightly darker gold for better readability */
}

.deadline-banner {
  background: #ff4444;  /* Changed to a reddish color */
  color: white;
  text-align: center;
  padding: 0.75rem;
  font-weight: bold;
  font-size: 1.1rem;
  animation: slideDown 0.5s ease-out forwards, pulseRed 2s infinite;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.deadline-banner i {
  margin-right: 0.5rem;
  animation: bounce 1s infinite;
}

@keyframes pulseRed {
  0% {
    background: #ff4444;
  }
  50% {
    background: #cc0000;
  }
  100% {
    background: #ff4444;
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background: var(--background-color);
}

header {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  padding: 2rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
  pointer-events: none;
}

.logo-container {
  margin-bottom: 0;
}

.hub-logo {
  max-width: 120px;
  height: auto;
  border-radius: 10px;
  background: white;
  padding: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.hub-logo:hover {
  transform: scale(1.05);
}

.header-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  animation: fadeScale 0.8s ease-out forwards;
}

@keyframes fadeScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.header-content i {
  margin-right: 0.5rem;
  color: var(--secondary-color);
}

.title-container {
  text-align: left;
}

.title-container h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.university-name {
  color: var(--secondary-color);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.motto {
  font-style: italic;
  margin-top: 0.5rem;
  font-size: 1.2rem;
  color: var(--secondary-color);
}

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

.events {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
  overflow-x: auto;
}

.event-card {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  padding-bottom: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  min-width: 280px;
  height: 100%;
  animation: fadeIn 0.5s ease-out forwards;
  position: relative;
  overflow: hidden;
}

.event-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(0, 104, 56, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.event-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.event-card:hover::before {
  opacity: 1;
}

.event-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.event-card i {
  color: var(--secondary-color);
}

.event-card:nth-child(2) {
  animation-delay: 0.2s;
}

.event-card:nth-child(3) {
  animation-delay: 0.4s;
}

.event-card:nth-child(4) {
  animation-delay: 0.6s;
}

.event-details {
  margin-bottom: 0.5rem;
}

.event-details p {
  margin-bottom: 0.5rem;
  animation: fadeInRight 0.5s ease-out forwards;
  opacity: 0;
}

.event-details p:nth-child(1) { animation-delay: 0.1s; }
.event-details p:nth-child(2) { animation-delay: 0.2s; }
.event-details p:nth-child(3) { animation-delay: 0.3s; }
.event-details p:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.event-details p i {
  margin-right: 0.5rem;
  color: var(--secondary-color);
  width: 20px;
}

.prizes {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  animation: glowPulse 2s infinite;
}

@keyframes glowPulse {
  0% {
    box-shadow: 0 0 0 rgba(212, 175, 55, 0);
  }
  50% {
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
  }
  100% {
    box-shadow: 0 0 0 rgba(212, 175, 55, 0);
  }
}

.benefits {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: slideUp 0.6s ease-out forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.benefits::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.benefits h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #eee;
}

.benefits h3 i {
  color: var(--secondary-color);
  font-size: 1.8rem;
}

.benefits ul {
  list-style-type: none;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.benefits li {
  margin-bottom: 1rem;
  position: relative;
  padding: 1rem;
  background: #f8f8f8;
  border-radius: 8px;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  animation: slideIn 0.5s ease-out forwards;
  opacity: 0;
}

.benefits li:nth-child(1) { animation-delay: 0.2s; }
.benefits li:nth-child(2) { animation-delay: 0.4s; }
.benefits li:nth-child(3) { animation-delay: 0.6s; }

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.benefits li:hover {
  transform: translateX(10px);
  background-color: #f0f0f0;
}

.benefits li:hover i {
  transform: rotate(360deg);
}

.benefits li i {
  margin-right: 1rem;
  color: var(--secondary-color);
  font-size: 1.5rem;
  background: white;
  padding: 0.8rem;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.6s ease;
}

.benefits li span {
  font-size: 1.1rem;
  color: #333;
}

.organizers {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  margin: 2rem 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  animation: slideUp 0.6s ease-out forwards;
}

.organizers h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #eee;
}

.head-organizer {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--primary-color);
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.head-organizer-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid var(--secondary-color);
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.head-organizer-info {
  flex: 1;
  min-width: 250px;
}

.head-organizer h4 {
  color: var(--secondary-color);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

.head-organizer p {
  color: var(--text-gold);
  font-size: 1.1rem;
  margin: 0.5rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  overflow-x: auto;
}

.contact-card {
  background: #f8f8f8;
  padding: 1.5rem;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-width: 250px;
  height: 100%;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.contact-card h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-person {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-person img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 3px solid var(--secondary-color);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

.contact-person p {
  margin: 0.3rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.contact-person i {
  color: var(--secondary-color);
  width: 20px;
}

.contact-person a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-person a:hover {
  color: var(--secondary-color);
}

@media (max-width: 1200px) {
  .events {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .events {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

footer {
  text-align: center;
  background: var(--primary-color);
  color: white;
  padding: 2rem 0;
  border-top: 1px solid var(--secondary-color);
}

footer p i {
  margin-right: 0.5rem;
  color: var(--secondary-color);
}

.copyright {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.copyright p {
  margin: 0.3rem 0;
}

.copyright p i {
  color: var(--secondary-color);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.register-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 1.5rem;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
  text-align: center;
  font-weight: bold;
  width: 100%;
  border: 2px solid var(--primary-color);
}

.register-btn:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.register-btn i {
  margin-right: 0.5rem;
}