/* ==========================================
   RESOURCES (BOOKS LIBRARY) STYLES
   ========================================== */

.resources-hero {
  min-height: 95vh;
  display: flex;
  align-items: center;
  padding: 100px 0 60px 0; /* padding top to clear fixed navbar */
  background-color: var(--background);
}

.resources-hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--grid-margin);
}

@media (max-width: 992px) {
  .resources-hero-container {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    gap: 30px;
  }

  .resources-hero-text {
    text-align: center;
  }
}

/* Left Column: Big Bold Text */
.resources-hero-title {
  font-family: var(--font-headline);
  font-size: 52px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .resources-hero-title {
    font-size: 38px;
  }
}

/* Right Column: Hero Logo Wrapper */
.resources-hero-image-wrapper {
  width: 100%;
  max-width: 440px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.95) 0%, rgba(248, 243, 242, 0.8) 100%);
  border: 1px solid rgba(140, 113, 111, 0.15);
  border-radius: var(--rounded-lg) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  justify-self: end;
}

@media (max-width: 992px) {
  .resources-hero-image-wrapper {
    justify-self: center;
    max-width: 100%;
    height: 260px;
  }
}

.resources-hero-image-wrapper img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(112, 2, 16, 0.12));
}

/* Core Resources Section */
.core-resources-section {
  padding: 80px 0;
  background-color: var(--background);
}

.resources-grid-row1 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

@media (max-width: 992px) {
  .resources-grid-row1 {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .resources-grid-row1 {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Book Card */
.book-card {
  background-color: var(--surface-container-lowest);
  border: 1px solid rgba(140, 113, 111, 0.08);
  border-radius: 0 !important; /* STRAIGHT SHARP EDGES */
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(112, 2, 16, 0.01);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.book-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(112, 2, 16, 0.05);
}

.book-cover-wrapper {
  background-color: var(--surface-container-low);
  height: 320px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 !important; /* STRAIGHT SHARP EDGES */
}

.book-cover {
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  box-shadow: 5px 10px 20px rgba(0, 0, 0, 0.15);
  border-radius: 0 !important; /* STRAIGHT SHARP EDGES */
  transition: transform 0.4s ease;
}

.book-card:hover .book-cover {
  transform: scale(1.03) rotate(-1deg);
}

.book-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.book-tag {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  color: var(--secondary); /* Gold accent */
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.book-title {
  font-family: var(--font-headline);
  font-size: 20px;
  font-weight: 700;
  color: var(--on-surface);
  line-height: 1.3;
}

.book-author {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--outline);
  margin-bottom: 8px;
}

.btn-book-download {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 0 !important; /* STRAIGHT SHARP EDGES */
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  align-self: flex-start;
  transition: var(--transition-smooth);
}

.btn-book-download:hover {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(112, 2, 16, 0.15);
}

/* Other Resources Section */
.other-resources-section {
  padding: 60px 0 100px 0;
  background-color: var(--surface-container-low);
  border-top: 1px solid rgba(140, 113, 111, 0.06);
}

.other-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px auto;
}

.other-title-sub {
  font-family: var(--font-headline);
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.other-desc {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--on-surface-variant);
  line-height: 1.6;
}

.resources-grid-other {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

@media (max-width: 992px) {
  .resources-grid-other {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .resources-grid-other {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Worship & Music Section */
.worship-music-section {
  padding: 80px 0;
  background-color: var(--surface);
  border-top: 1px solid rgba(140, 113, 111, 0.08);
}

.worship-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 992px) {
  .worship-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .worship-grid {
    grid-template-columns: 1fr;
  }
}

.music-card-item {
  display: flex;
  flex-direction: column;
  background-color: var(--surface-container-low);
  border-radius: var(--rounded-md);
  overflow: hidden;
  border: 1px solid rgba(140, 113, 111, 0.12);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: var(--transition-smooth);
}

.music-card-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(112, 2, 16, 0.12);
  border-color: rgba(112, 2, 16, 0.25);
}

.music-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #000000;
}

.music-card-thumb a {
  display: block;
  width: 100%;
  height: 100%;
}

.music-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.music-card-item:hover .music-card-thumb img {
  transform: scale(1.05);
}

.music-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.music-card-date {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.music-card-title {
  font-family: var(--font-headline);
  font-size: 16px;
  font-weight: 700;
  color: var(--on-surface);
  line-height: 1.4;
  margin-bottom: 2px;
}

.music-card-artist {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--on-surface-variant);
  margin-bottom: 8px;
}

.music-card-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  text-transform: lowercase;
  margin-top: auto;
  transition: var(--transition-smooth);
}

.music-card-view-btn:hover {
  color: var(--primary-container);
  transform: translateX(4px);
}
