/* Root Variables */
:root {
  --primary-color: #011f4b;
  --secondary-color: #03396c;
  --accent-color: #6497b1;
  --dark-bg: #1a1a1a;
  --light-bg: #b3cde0;
  --text-dark: #595959;
  --text-light: #666;
  --border-color: #f8bbd0;
  --shadow: 0 2px 8px rgba(233, 30, 99, 0.1);
  --shadow-lg: 0 8px 24px rgba(233, 30, 99, 0.15);
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Touch-friendly minimum touch targets */
button, a, input[type="checkbox"], input[type="radio"], select {
  min-height: 44px;
  min-width: 44px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  font-weight: 600;
}

h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
}

h2 {
  font-size: 2rem;
  color: var(--primary-color);
}

h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

/* Navigation */
header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
}

.logo-section:hover {
  transform: translateY(-2px);
}

.logo-section img {
  height: 40px;
  width: 40px;
  transition: all 0.3s ease;
}

.logo-section:hover img {
  transform: rotate(5deg) scale(1.05);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  margin: 5px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: white;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

nav a.active {
  font-weight: 700;
}

/* Link Styles */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 6rem 2rem;
  text-align: center;
  animation: fadeInDown 0.8s ease;
  position: relative;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
  top: -100px;
  right: -100px;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite reverse;
  bottom: -50px;
  left: -50px;
  z-index: 0;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: white;
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: fadeInDown 0.8s ease 0.2s both;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.2;
}

.hero p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.3rem;
  animation: fadeInUp 0.8s ease 0.3s both;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.4s both;
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.7rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.4s ease;
  z-index: 1;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}

.btn-primary:hover {
  background-color: #e67e00;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 140, 0, 0.4);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
}

.btn-secondary:hover {
  background-color: #008555;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-accent {
  background-color: var(--accent-color);
  color: white;
}

.btn-accent:hover {
  background-color: #ff5252;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline:hover {
  background-color: white;
  color: var(--primary-color);
}

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

/* Sections */
section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  animation: fadeInUp 0.6s ease;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  margin: 1rem auto 0;
  border-radius: 2px;
  animation: scaleIn 0.8s ease 0.3s both;
}

.section-title h2 {
  margin-bottom: 1rem;
  font-size: 2.2rem;
}

.section-title p {
  font-size: 1.1rem;
  color: var(--text-light);
  font-weight: 400;
}

/* Featured Resources */
.featured-section {
  background-color: var(--light-bg);
  position: relative;
}

.featured-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

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

.resource-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: fadeInUp 0.6s ease;
  cursor: pointer;
  border: 1px solid rgba(255, 140, 0, 0.1);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.resource-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 2;
}

.resource-card:hover::before {
  transform: scaleX(1);
}

.resource-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 12px 35px rgba(255, 140, 0, 0.2);
}

.resource-card-header {
  height: 200px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  overflow: hidden;
  position: relative;
  transition: all 0.4s ease;
}

.resource-card:hover .resource-card-header {
  transform: scale(1.05);
}

.resource-card-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.resource-card:hover .resource-card-header::after {
  opacity: 1;
}

.resource-card-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.resource-category {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.resource-card h3 {
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.resource-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.resource-card-footer {
  display: flex;
  gap: 0.75rem;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  flex: 1;
  text-align: center;
}

/* Search & Filter */
.search-filter-section {
  background-color: var(--light-bg);
  padding: 2rem 0;
  margin-bottom: 2rem;
  border-radius: 0.75rem;
  animation: fadeInDown 0.6s ease;
}

.search-filter-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

.search-box,
.filter-box {
  display: flex;
  flex-direction: column;
  animation: fadeInUp 0.5s ease;
}

.search-box label,
.filter-box label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-size: 0.95rem;
}

input[type="text"],
select {
  padding: 0.9rem 1rem;
  border: 2px solid #e8e8e8;
  border-radius: 0.7rem;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: white;
}

input[type="text"]:hover,
select:hover {
  border-color: var(--accent-color);
}

input[type="text"]:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
  transform: translateY(-2px);
}

/* Map - Explicit height fix */
#resourceMap {
  height: 500px;
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(255, 140, 0, 0.15);
  margin: 2rem 0;
  border: 1px solid rgba(255, 140, 0, 0.1);
  animation: scaleIn 0.7s ease;
}

.leaflet-container {
  font-family: inherit;
  height: 100%;
  width: 100%;
}

.resource-marker {
  color: white;
}

/* Resources Grid */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.resource-item {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease;
}

.resource-item:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.resource-item-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 1rem;
}

.resource-item h3 {
  margin: 0;
  color: var(--primary-color);
}

.resource-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag {
  background-color: var(--light-bg);
  color: var(--text-dark);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 500;
}

.resource-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.info-icon {
  width: 20px;
  text-align: center;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-top: 2px;
}

.info-text {
  color: var(--text-light);
}

/* Form Styles */
.form-section {
  background-color: var(--light-bg);
}

.form-container {
  background: white;
  padding: 3rem;
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(255, 140, 0, 0.1);
  max-width: 600px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease;
  border: 1px solid rgba(255, 140, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 2px solid #e8e8e8;
  border-radius: 0.7rem;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: #fafafa;
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
  border-color: var(--accent-color);
  background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  background: white;
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
  transform: translateY(-2px);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
  animation: fadeInUp 0.7s ease 0.8s both;
}

.form-buttons .btn {
  flex: 1;
  padding: 1rem;
  font-size: 1rem;
  border-radius: 0.7rem;
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.15);
}

.form-buttons .btn:hover {
  box-shadow: 0 8px 25px rgba(255, 140, 0, 0.25);
}

.submit-status {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 0.7rem;
  text-align: center;
  font-weight: 500;
  display: none;
  animation: slideInUp 0.4s ease;
  border-left: 4px solid transparent;
}

.submit-status.success {
  background-color: #d4edda;
  color: #155724;
  display: block;
  border-left-color: #28a745;
}

.submit-status.error {
  background-color: #f8d7da;
  color: #721c24;
  display: block;
  border-left-color: #e53935;
}

/* Calendar Styling */
#calendar-title {
  animation: slideInDown 0.6s ease;
}

#calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  min-height: 400px;
  animation: fadeInUp 0.6s ease 0.2s both;
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
}

#calendar-grid > div {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  word-break: break-word;
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.footer-section {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

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

.footer-section h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: white;
  text-decoration: underline;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

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

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

/* Scroll animation trigger */
.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.fade-in-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero {
    padding: 3rem 1rem;
    min-height: auto;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    padding: 0.9rem 1rem;
  }

  .hamburger {
    display: flex;
  }

  nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    flex-direction: column;
    gap: 0;
    font-size: 0.9rem;
    align-items: stretch;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  }

  nav.active {
    max-height: 300px;
  }

  nav a {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  nav a::after {
    display: none;
  }

  .header-content {
    position: relative;
  }

  .logo-section {
    gap: 0.5rem;
    font-size: 1.2rem;
  }

  .logo-section img {
    height: 30px;
    width: 30px;
  }

  section {
    padding: 2rem 1rem;
  }

  .section-title h2 {
    font-size: 1.5rem;
  }

  .section-title::after {
    width: 60px;
  }

  .search-filter-content {
    grid-template-columns: 1fr;
  }

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

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

  .footer-content {
    grid-template-columns: 1fr;
  }

  #resourceMap {
    height: 350px;
  }

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

  .form-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

  .form-buttons .btn {
    padding: 0.9rem;
  }

  .header-content {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0 1rem;
  }

  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  .hero {
    padding: 2rem 1rem;
  }

  .hero h1 {
    font-size: 1.75rem;
    font-weight: 700;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .hero-buttons {
    gap: 0.5rem;
  }

  nav {
    gap: 0.25rem;
  }

  nav a {
    padding: 0.4rem 0.5rem;
    font-size: 0.75rem;
  }

  .section-title {
    margin-bottom: 1.5rem;
  }

  .featured-grid,
  .resources-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .resource-card-header {
    height: 150px;
    font-size: 2.5rem;
  }

  .resource-card-body {
    padding: 1rem;
  }

  #resourceMap {
    height: 300px;
  }

  .form-container {
    padding: 1rem;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 0.75rem 0.75rem;
    font-size: 16px;
  }

  .form-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

  .search-filter-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

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

  section {
    padding: 2rem 0;
  }

  h1 {
    font-size: 1.5rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  nav {
    gap: 0.5rem;
    font-size: 0.8rem;
  }

  .featured-grid {
    gap: 1rem;
  }

  #resourceMap {
    height: 300px;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

.fade-in-down {
  animation: fadeInDown 0.7s ease forwards;
}

.fade-in-up {
  animation: fadeInUp 0.7s ease forwards;
}

.slide-in-left {
  animation: slideInLeft 0.7s ease forwards;
}

.slide-in-right {
  animation: slideInRight 0.7s ease forwards;
}

.scale-in {
  animation: scaleIn 0.6s ease forwards;
}

.bounce-in {
  animation: bounce 0.6s ease;
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

.pulse-animation {
  animation: pulse 2s ease-in-out infinite;
}

.glow-animation {
  animation: glow 2s ease-in-out infinite;
}

/* Staggered animations for grids */
.resource-card {
  animation: fadeInUp 0.6s ease forwards;
}

.resource-card:nth-child(1) { animation-delay: 0.1s; }
.resource-card:nth-child(2) { animation-delay: 0.2s; }
.resource-card:nth-child(3) { animation-delay: 0.3s; }
.resource-card:nth-child(4) { animation-delay: 0.4s; }
.resource-card:nth-child(5) { animation-delay: 0.5s; }
.resource-card:nth-child(6) { animation-delay: 0.6s; }
.resource-card:nth-child(n+7) { animation-delay: 0.7s; }

.section-title {
  animation: fadeInDown 0.6s ease;
}

.form-group {
  animation: fadeInUp 0.5s ease forwards;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; }
.form-group:nth-child(6) { animation-delay: 0.6s; }
.form-group:nth-child(7) { animation-delay: 0.7s; }

/* Enhanced transitions for interactive elements */
.btn, .resource-card, input, select, textarea {
  transition: var(--transition);
}

.btn:active {
  transform: scale(0.98);
}

/* Smooth page enter/exit */
@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  animation: pageEnter 0.6s ease;
}

