/* Custom CSS for Tailwind */
:root {
  --navy: #1E3A8A;
  --yellow: #FBBF24;
  --mint: #E6FFFA;
  --charcoal: #374151;
  --white: #FFFFFF;
  --dark-slate: #1F2937;
  --light-navy: #3B82F6;
  --soft-yellow: #FEF3C7;
  --light-gray: #D1D5DB;
}

.theme-light {
  --button-radius: 6px;
  --card-radius: 6px;
  --bg-color: #E6FFFA;
  --text-color: #374151;
  --accent-color: #1E3A8A;
  --card-bg: #FFFFFF;
}

.theme-dark {
  --button-radius: 6px;
  --card-radius: 6px;
  --bg-color: #1F2937;
  --text-color: #D1D5DB;
  --accent-color: #3B82F6;
  --card-bg: #374151;
}

.theme-primary {
  --button-radius: 6px;
  --card-radius: 6px;
  --bg-color: #E6FFFA;
  --text-color: #374151;
  --accent-color: #1E3A8A;
  --card-bg: #FFFFFF;
}

.theme-secondary {
  --button-radius: 3px;
  --card-radius: 3px;
  --bg-color: #E6FFFA;
  --text-color: #374151;
  --accent-color: #FBBF24;
  --card-bg: #FFFFFF;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  background-color: #E6FFFA !important;
  color: var(--text-color) !important;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"><path d="M2 2h16v12h-4v4h-8v-4h-4z" fill="%233B82F6" fill-opacity="0.05"/><path d="M5 13l2-11 3 1 2-1 3 1 2-1 3 11h-3l-2-1-2 1-2-1z" fill="%23FEF3C7" fill-opacity="0.05"/></svg>');
  background-size: 20px 20px;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  color: var(--accent-color) !important;
}

/* Header and Footer */
.header, .footer {
  background-color: #FFFFFF !important;
  z-index: 50;
}

.nav {
  display: flex;
  flex-wrap: nowrap;
}

.nav-link {
  color: #1E3A8A !important;
  text-decoration: none;
  padding: 0.5rem 0.5rem;
  font-size: 0.9rem;
  transition: transform 0.2s ease;
  z-index: 50;
}

.nav-link:hover {
  transform: scale(1.1);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: #1E3A8A !important;
  font-size: 1.2rem;
  z-index: 50;
}

.dropdown-toggle {
  background: none;
  border: none;
  color: #1E3A8A !important;
  font-size: 1.2rem;
  z-index: 60;
}

.dropdown-menu {
  background-color: #FFFFFF !important;
  border: 1px solid #374151;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  z-index: 60;
}

.theme-select, .language-select, .role-select {
  font-size: 0.9rem;
  background-color: #1E3A8A !important;
  color: #FFFFFF !important;
  display: block !important;
  visibility: visible !important;
  z-index: 60;
}

/* Sections */
.section {
  padding: 1.25rem 0;
  min-height: 25vh;
}

/* Buttons */
.button {
  background: linear-gradient(to right, var(--accent-color), #FBBF24);
  color: #FFFFFF !important;
  padding: 0.5rem 1rem;
  border-radius: var(--button-radius);
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease;
  z-index: 50;
}

.button:hover {
  transform: scale(1.05);
}

/* Cards */
.news-card, .event-card, .faculty-card, .program-content {
  background-color: #FFFFFF !important;
  border-radius: var(--card-radius);
  transition: transform 0.2s ease;
  z-index: 40;
}

.program-button {
  background-color: #1E3A8A !important;
  color: #ffffff !important;
}

/* Form and Map */
.input {
  width: 100%;
  margin: 0.4rem 0;
  padding: 0.5rem;
  border: 1px solid #1E3A8A;
  border-radius: var(--button-radius);
  font-family: 'Lato', sans-serif;
  background-color: #FFFFFF !important;
  color: #374151 !important;
  transition: border-color 0.2s ease;
  z-index: 40;
}

.input:focus {
  outline: none;
  border-color: #FBBF24;
  box-shadow: 0 0 3px rgba(251, 191, 36, 0.3);
}

.textarea {
  height: 90px;
  resize: vertical;
}

.form-success {
  font-weight: 700;
  color: #FBBF24 !important;
  animation: fadeOut 3s ease forwards;
  z-index: 50;
}

/* Animations */
@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.news-card, .event-card, .faculty-card, .admissions-form, .contact-form, #tour-container, .program-content {
  animation: slide-up 0.4s ease;
}

/* Responsive Design */
@media (max-width: 640px) {
  .hamburger {
    display: block;
  }

  .nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 56px;
    right: 0;
    background-color: #FFFFFF !important;
    width: 160px;
    padding: 0.5rem;
    border-radius: 0 0 0 6px;
    border: 1px solid #374151;
    z-index: 50;
  }

  .nav.open {
    display: flex;
  }

  .nav-link, .theme-select, .language-select, .role-select {
    width: 100%;
    text-align: center;
  }

  .dropdown-menu {
    width: 130px;
  }

  .footer {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .section h2 {
    font-size: 1.25rem !important;
  }
}