/* ===================================
   BES Learning Spaces - 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"/><rect x="20" y="20" width="60" height="60" stroke="rgba(251,191,36,0.15)" stroke-width="2" fill="none"/><rect x="30" y="30" width="40" height="40" stroke="rgba(251,191,36,0.1)" stroke-width="2" fill="none"/></svg>');
  opacity: 0.3;
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

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

.content h2 {
  text-align: center;
  font-size: 2.8rem;
  color: #1e3a8a;
  margin-bottom: 60px;
  font-weight: 700;
  position: relative;
  padding-bottom: 20px;
}

.content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: linear-gradient(90deg, #1e3a8a 0%, #fbbf24 100%);
  border-radius: 3px;
}

/* Category Sections */
.category {
  margin-bottom: 50px;
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.category:hover {
  border-color: rgba(251, 191, 36, 0.3);
  box-shadow: 0 15px 40px rgba(30, 58, 138, 0.12);
}

.category h3 {
  font-size: 1.8rem;
  color: #1e3a8a;
  margin-bottom: 25px;
  font-weight: 700;
  padding-bottom: 15px;
  border-bottom: 3px solid #fbbf24;
  display: flex;
  align-items: center;
  gap: 12px;
}

.category h3::before {
  content: '📚';
  font-size: 1.5rem;
}

.category:nth-child(2) h3::before {
  content: '📖';
}

.category:nth-child(3) h3::before {
  content: '✍️';
}

.category:nth-child(4) h3::before {
  content: '🎓';
}

.category:nth-child(5) h3::before {
  content: '📊';
}

/* Resource Cards */
.resource-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  margin-bottom: 15px;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.03) 0%, rgba(251, 191, 36, 0.03) 100%);
  border-radius: 12px;
  border-left: 4px solid #1e3a8a;
  transition: all 0.3s ease;
  gap: 20px;
}

.resource-card:last-child {
  margin-bottom: 0;
}

.resource-card:hover {
  background: white;
  transform: translateX(10px);
  box-shadow: 0 8px 25px rgba(30, 58, 138, 0.15);
  border-left-color: #fbbf24;
  border-left-width: 6px;
}

/* Resource Info */
.resource-info {
  flex: 1;
}

.resource-info strong {
  display: block;
  font-size: 1.2rem;
  color: #1e3a8a;
  font-weight: 700;
  margin-bottom: 5px;
}

.resource-info p {
  font-size: 1rem;
  color: #7f8c8d;
  margin: 0;
}

/* Visit Link Button */
.visit-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
  white-space: nowrap;
}

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

.visit-link::after {
  content: '→';
  transition: transform 0.3s ease;
}

.visit-link:hover::after {
  transform: translateX(5px);
}

/* Alternating Card Colors */
.resource-card:nth-child(even) {
  border-left-color: #fbbf24;
}

.resource-card:nth-child(even):hover {
  border-left-color: #1e3a8a;
}

/* 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;
  }

  .content h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
  }

  .category {
    padding: 25px 20px;
    margin-bottom: 35px;
  }

  .category h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .resource-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 20px;
    gap: 15px;
  }

  .resource-card:hover {
    transform: translateX(5px);
  }

  .resource-info strong {
    font-size: 1.1rem;
  }

  .resource-info p {
    font-size: 0.95rem;
  }

  .visit-link {
    width: 100%;
    justify-content: center;
    padding: 12px 24px;
  }

  .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;
  }

  .content h2 {
    font-size: 1.8rem;
  }

  .category {
    padding: 20px 15px;
    border-radius: 15px;
  }

  .category h3 {
    font-size: 1.3rem;
    padding-bottom: 12px;
    flex-wrap: wrap;
  }

  .category h3::before {
    font-size: 1.3rem;
  }

  .resource-card {
    padding: 15px 18px;
    border-left-width: 3px;
  }

  .resource-card:hover {
    border-left-width: 5px;
  }

  .resource-info strong {
    font-size: 1rem;
  }

  .resource-info p {
    font-size: 0.9rem;
  }

  .visit-link {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

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