/* Container & Base Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
}

/* Hero Section */
.home-hero {
  text-align: center;
  margin-bottom: 36px;
}

.home-hero h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
  color: #111111;
}

.home-hero p {
  font-size: 1.1rem;
  color: #555555;
  margin: 0;
}

/* 2x2 Main Interests Grid */
.adventures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .adventures-grid {
    grid-template-columns: repeat(2, 1fr); /* Enforces 2x2 layout on desktop */
  }
}

/* Interest Card Block */
.adventure-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.adventure-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

/* Card Image Box (Fixed Crop) */
.adventure-card .card-media {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: #f8f9fa;
  flex-shrink: 0;
}

.adventure-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.adventure-card:hover .card-media img {
  transform: scale(1.03); /* Subtle image zoom on hover */
}

/* Card Text Body */
.adventure-card .card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.adventure-card h2 {
  margin: 0 0 8px 0;
  font-size: 1.3rem;
  color: #111111;
}

.adventure-card p {
  margin: 0 0 16px 0;
  font-size: 0.95rem;
  color: #555555;
  line-height: 1.5;
  flex-grow: 1;
}

.card-link-text {
  font-weight: bold;
  font-size: 0.9rem;
  color: #0066cc;
}

/* YouTube Channels Section */
.youtube-section {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.youtube-section h2 {
  margin: 0 0 8px 0;
  font-size: 1.6rem;
  color: #111111;
}

.youtube-section p {
  margin: 0 0 24px 0;
  color: #555555;
  font-size: 1rem;
}

/* Channel Buttons Container */
.channel-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

/* Channel Subscribe Button */
.channel-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 18px;
  background-color: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  text-decoration: none;
  color: #333333;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.channel-btn strong {
  font-size: 1.05rem;
  color: #cc0000; /* YouTube Red Accent */
}

.channel-btn span {
  font-size: 0.85rem;
  color: #666666;
  margin-top: 4px;
}

.channel-btn:hover {
  background-color: #ff0000;
  border-color: #cc0000;
  transform: translateY(-2px);
}

.channel-btn:hover strong,
.channel-btn:hover span {
  color: #ffffff;
}

/* Quick Links Container */
.quick-links-section {
  margin: 2rem 0;
}

.quick-links-grid {
  display: grid;
  /* Flexibly wraps items, fitting as many as possible per row */
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

/* Individual Quick Link Card */
.quick-link-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background-color: #f8f9fa;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  background-color: #ffffff;
}

/* Square Image Thumbnail */
.quick-link-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

/* Text Content */
.quick-link-text {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.quick-link-text strong {
  font-size: 0.9rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quick-link-text span {
  font-size: 0.75rem;
  color: #666;
  line-height: 1.2;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Accessible hidden header class */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}