/* ===================================
   BES Resources Page - Royal Blue & Gold
   =================================== */

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

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
  color: #2c3e50;
  line-height: 1.6;
  min-height: 100vh;
}

/* Hero Banner */
.hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: #fbbf24;
  text-align: center;
  padding: 80px 20px;
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  margin-bottom: 60px;
  border-bottom: 5px solid #fbbf24;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><path d="M20 50 L80 50 M50 20 L50 80" stroke="rgba(251,191,36,0.1)" stroke-width="3"/></svg>');
  opacity: 0.3;
}

/* Main Content Container */
.content {
  max-width: 1400px;
  margin: 0 auto 80px;
  padding: 0 20px;
}

/* Search Box */
.search-box {
  display: flex;
  gap: 15px;
  max-width: 800px;
  margin: 0 auto 40px;
  background: white;
  padding: 12px;
  border-radius: 50px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.search-box:focus-within {
  border-color: rgba(251, 191, 36, 0.5);
  box-shadow: 0 15px 50px rgba(30, 58, 138, 0.2);
  transform: translateY(-2px);
}

.search-box input {
  flex: 1;
  border: none;
  padding: 15px 25px;
  font-size: 1rem;
  border-radius: 50px;
  outline: none;
  color: #2c3e50;
}

.search-box input::placeholder {
  color: #95a5a6;
}

.search-box button {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.search-box button:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #1e3a8a;
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}

/* Filters */
.filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.filters button {
  background: white;
  color: #1e3a8a;
  border: 2px solid #e8ecf1;
  padding: 12px 28px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.filters button:hover {
  border-color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.2);
}

.filters button.active {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #fbbf24;
  border-color: #1e3a8a;
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.3);
}

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

/* Resource Card */
.resource-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.resource-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(30, 58, 138, 0.2);
  border-color: rgba(251, 191, 36, 0.5);
}

.resource-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.resource-card:hover img {
  transform: scale(1.1);
}

/* Card Details */
.details {
  padding: 25px;
}

.badge {
  display: inline-block;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.badge.digital {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #fbbf24;
}

.badge.educational {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #1e3a8a;
}

.badge.literature {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: white;
}

.details h4 {
  font-size: 1.3rem;
  color: #1e3a8a;
  margin-bottom: 10px;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.details p {
  font-size: 0.95rem;
  color: #7f8c8d;
  margin-bottom: 8px;
  line-height: 1.5;
}

.details p:first-of-type {
  color: #34495e;
  font-weight: 600;
}

.details p em {
  font-size: 0.85rem;
  color: #95a5a6;
}

/* Availability Status */
.availability {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 10px;
  margin-bottom: 10px;
}

.availability.available-online {
  background: rgba(30, 58, 138, 0.1);
  color: #1e3a8a;
  border: 2px solid #1e3a8a;
}

.availability.available-offline {
  background: rgba(251, 191, 36, 0.1);
  color: #f59e0b;
  border: 2px solid #f59e0b;
}

/* University Footer */
.university-footer {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  padding: 60px 20px 40px;
  text-align: center;
  margin-top: 80px;
  border-top: 5px solid #fbbf24;
}

.university-footer h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-weight: 700;
  letter-spacing: 2px;
}

.tagline {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.social-icons a {
  display: inline-block;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  transform: translateY(-5px);
}

.social-icons img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: white;
  padding: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.social-icons a:hover img {
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    font-size: 2.5rem;
    padding: 60px 20px;
    letter-spacing: 2px;
  }

  .search-box {
    flex-direction: column;
    border-radius: 20px;
    padding: 10px;
  }

  .search-box input,
  .search-box button {
    border-radius: 15px;
    padding: 12px 20px;
  }

  .filters {
    gap: 10px;
  }

  .filters button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .resources-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }

  .details {
    padding: 20px;
  }

  .details h4 {
    font-size: 1.15rem;
  }

  .university-footer h3 {
    font-size: 1.4rem;
  }

  .tagline {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .hero {
    font-size: 2rem;
    padding: 50px 15px;
    letter-spacing: 1px;
  }

  .content {
    padding: 0 15px;
  }

  .search-box {
    margin-bottom: 30px;
  }

  .filters {
    gap: 8px;
  }

  .filters button {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

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

  .resource-card img {
    height: 180px;
  }

  .details {
    padding: 18px;
  }

  .details h4 {
    font-size: 1.1rem;
  }

  .details p {
    font-size: 0.9rem;
  }

  .badge {
    font-size: 0.7rem;
    padding: 5px 12px;
  }

  .availability {
    font-size: 0.8rem;
    padding: 6px 14px;
  }

  .social-icons img {
    width: 40px;
    height: 40px;
  }
}