/* ============================================
   RESOURCES PAGE STYLES
   Color scheme: #111B47, #505F98, #3b82f6,
   #E7ECFF, #f8fafc, #ffffff
   ============================================ */

/* ==================== HERO ==================== */
.res-hero {
  position: relative;
  min-height: 420px;
  background: linear-gradient(135deg, #111B47 0%, #505F98 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.res-hero-bg {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.res-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 120px 40px 80px;
  animation: fadeInUp 0.8s ease-out;
}

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

.res-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 8px 20px;
  margin-bottom: 25px;
  font-family: 'Fira Code', monospace;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
}

.res-hero h1 {
  font-family: Aldrich, sans-serif;
  font-size: 3rem;
  font-weight: 400;
  color: #ffffff;
  margin: 0 0 15px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.res-hero-sub {
  font-family: 'Roboto', sans-serif;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  letter-spacing: 0.4px;
}

/* ==================== SECTION SHARED ==================== */
.res-section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.res-section-header {
  text-align: center;
  margin-bottom: 40px;
}

.res-section-tag {
  font-family: 'Fira Code', monospace;
  font-size: 0.85rem;
  color: #505F98;
  display: block;
  margin-bottom: 12px;
}

.res-section-tag.closing {
  display: block;
  text-align: center;
  margin-top: 50px;
  color: #bcc5e0;
}

.res-section-header h2 {
  font-family: Aldrich, sans-serif;
  font-size: 2.5rem;
  color: #111B47;
  margin: 0;
}

.res-section-subtitle {
  font-family: 'Roboto', sans-serif;
  font-size: 1.05rem;
  color: #6b7280;
  margin-top: 10px;
}

/* ==================== FILTER TABS ==================== */
.res-filter-wrap {
  background: #f8fafc;
  max-width: 100%;
  padding: 60px 20px 0;
}

.res-filter-wrap > .res-section-header {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto 50px;
}

.filter-tab {
  font-family: Aldrich, sans-serif;
  font-size: 0.9rem;
  padding: 10px 24px;
  border-radius: 50px;
  border: 2px solid #e5e7eb;
  background: #ffffff;
  color: #505F98;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-tab:hover {
  border-color: #3b82f6;
  color: #111B47;
}

.filter-tab.active {
  background: #111B47;
  color: #ffffff;
  border-color: #111B47;
}

/* ==================== RESOURCE CARDS GRID ==================== */
.res-grid-wrap {
  background: #f8fafc;
  max-width: 100%;
  padding: 0 20px 80px;
}

.res-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.res-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 28px 24px;
  text-decoration: none;
  color: #111B47;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.res-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #111B47, #3b82f6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.res-card:hover {
  box-shadow: 0 12px 32px rgba(17, 27, 71, 0.12);
  transform: translateY(-5px);
  border-color: #3b82f6;
}

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

.res-card.hidden {
  display: none;
}

.res-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.res-card-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #E7ECFF 0%, #dbeafe 100%);
  border-radius: 12px;
  color: #3b82f6;
  transition: all 0.3s ease;
}

.res-card:hover .res-card-icon {
  background: linear-gradient(135deg, #111B47, #1e3a8a);
  color: #ffffff;
}

.res-card-icon svg {
  width: 26px;
  height: 26px;
}

.res-card-title {
  font-family: Aldrich, sans-serif;
  font-size: 1.05rem;
  color: #111B47;
  margin: 0;
  line-height: 1.3;
}

.res-card-category {
  font-family: 'Fira Code', monospace;
  font-size: 0.72rem;
  color: #505F98;
  background: #E7ECFF;
  padding: 3px 10px;
  border-radius: 50px;
  display: inline-block;
  margin-top: 2px;
}

.res-card-desc {
  font-family: 'Roboto', sans-serif;
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.res-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: Aldrich, sans-serif;
  font-size: 0.82rem;
  color: #3b82f6;
  margin-top: 4px;
  transition: gap 0.2s ease;
}

.res-card:hover .res-card-link {
  gap: 10px;
}

.res-card-link svg {
  width: 14px;
  height: 14px;
}

/* ==================== CTA ==================== */
.res-cta {
  position: relative;
  background: linear-gradient(135deg, #111B47 0%, #505F98 100%);
  padding: 80px 20px;
  text-align: center;
  overflow: hidden;
}

.res-cta-bg {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.res-cta-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  margin: 0 auto;
}

.res-cta h2 {
  font-family: Aldrich, sans-serif;
  font-size: 2.5rem;
  color: #ffffff;
  margin: 0 0 14px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.res-cta p {
  font-family: 'Roboto', sans-serif;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 35px;
  line-height: 1.6;
}

.res-cta-btns {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* reuse hackathon button styles */
.btn-primary-res {
  display: inline-block;
  padding: 16px 36px;
  background: #ffffff;
  color: #111B47;
  font-family: Aldrich, sans-serif;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary-res:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-secondary-res {
  display: inline-block;
  padding: 16px 36px;
  background: transparent;
  color: #ffffff;
  font-family: Aldrich, sans-serif;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.btn-secondary-res:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-3px);
}

/* ==================== SCROLL REVEAL ==================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== RESPONSIVE: 1024px ==================== */
@media (max-width: 1024px) {
  .res-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .res-hero h1 {
    font-size: 2.4rem;
  }
}

/* ==================== RESPONSIVE: 768px ==================== */
@media (max-width: 768px) {
  .res-hero-content {
    padding: 100px 20px 60px;
  }

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

  .res-section-header h2 {
    font-size: 2rem;
  }

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

  .res-cta h2 {
    font-size: 2rem;
  }
}

/* ==================== RESPONSIVE: 480px ==================== */
@media (max-width: 480px) {
  .res-hero h1 {
    font-size: 1.6rem;
  }

  .res-badge {
    font-size: 0.72rem;
    padding: 6px 14px;
  }

  .res-cta h2 {
    font-size: 1.6rem;
  }

  .btn-primary-res,
  .btn-secondary-res {
    padding: 14px 28px;
    font-size: 0.9rem;
  }
}

html {
  scroll-behavior: smooth;
}
