/* Hero Carousel Styles */
.hero-carousel-container.ribbon-view {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  height: 400px; /* Fixed height for the ribbon */
  overflow: hidden;
  background: rgba(10, 10, 10, 0.95); /* More solid for better readability */
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 15px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 193, 7, 0.1);
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.carousel-slide {
  flex: 0 0 100%; /* Each slide takes exactly 100% of the visible track */
  height: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 40px; /* More horizontal padding */
}

/* Visibility Utilities */
.mobile-only { display: none !important; }
.desktop-only { display: block !important; }

@media (max-width: 768px) {
    .mobile-only { display: flex !important; }
    .desktop-only { display: none !important; }
    
    .carousel-slide {
        padding: 0 20px;
    }
}

/* Feature boxes inside carousel */
.carousel-slide .feature-card:hover {
    border-color: var(--colour-orange, #FFC107);
    background-color: rgba(255, 193, 7, 0.05);
}

/* Adjusting internal content for the Ribbon View */
.carousel-slide .hero-logo-text {
    font-size: 32px;
    margin-bottom: 5px;
}

.carousel-slide .hero-title {
    font-size: 24px;
    margin-bottom: 5px;
}

.carousel-slide .hero-subtitle {
    font-size: 16px;
    margin-bottom: 15px;
}

.carousel-slide .section-title {
    font-size: 20px;
    margin-bottom: 15px;
}

.carousel-slide .guild-card {
    transform: scale(0.85);
    background-color: rgba(20, 20, 20, 0.6);
}

.carousel-slide .guild-image {
    height: 100px;
}

.carousel-slide .feature-card {
    padding: 10px;
}

/* Slide Specific Backgrounds / Overlays */
.carousel-slide .hero-video {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.carousel-slide .hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.carousel-slide .hero-content {
    position: relative;
    z-index: 2;
}

/* Navigation Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 10, 10, 0.5);
  border: 1px solid rgba(255, 193, 7, 0.3);
  color: #FFC107;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 18px;
  transition: all 0.3s ease;
}

.carousel-arrow:hover {
  background: rgba(255, 193, 7, 0.2);
  box-shadow: 0 0 15px rgba(255, 193, 7, 0.3);
}

.carousel-arrow.prev { left: 10px; }
.carousel-arrow.next { right: 10px; }

/* Indicators */
.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #FFC107;
  transform: scale(1.2);
  box-shadow: 0 0 5px rgba(255, 193, 7, 0.5);
}

/* Adjusting existing sections for carousel compatibility */
.hero {
  height: 100%;
  width: 100%;
}

.carousel-slide .featured-section, 
.carousel-slide .features-section {
    background-color: transparent;
    padding: 0;
    width: 100%;
}

.carousel-slide .section-title {
    margin-bottom: 20px;
}

/* Hero Section Styles */
.hero {
  position: relative;
  height: 400px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 50%; /* Start the image from the center */
  transform: translateX(-50%); /* Center-align the image */
  width: auto;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  z-index: -1;

  /* mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 90%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 90%, rgba(0, 0, 0, 0) 100%);     */

}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
}

.hero-subtitle {
  font-size: 24px;
  margin-bottom: 40px;
  color: #fff;
  text-shadow: 0 0 10px rgba(0,0,0,0.8);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Featured Guilds Section */
.featured-section {
  padding: 100px 0;
  position: relative;
  background-color: #111;
}

.guilds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.guild-card {
  background-color: rgba(30, 30, 30, 0.6);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #333;
  cursor: pointer;
}

.guild-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.guild-image {
  height: 200px;
  width: 100%;
  background-color: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  position: relative;
  overflow: hidden;
}

.guild-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.guild-card:hover .guild-image img {
  transform: scale(1.05);
}

.guild-content {
  padding: 20px;
}

.guild-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #FFC107;
}

.guild-category {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 15px;
}

.guild-stats {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #999;
}

.guild-stats span {
  display: flex;
  align-items: center;
}

.guild-stats span:before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #FFC107;
  border-radius: 50%;
  margin-right: 5px;
}

.view-more {
  display: block;
  width: 200px;
  margin: 0 auto;
  padding: 12px 0;
  background-color: transparent;
  color: #FFC107;
  border: 2px solid #FFC107;
  border-radius: 5px;
  text-align: center;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.view-more:hover {
  background-color: rgba(255, 193, 7, 0.2);
  transform: translateY(-3px);
}

/* Features Section */
.features-section {
  padding: 100px 0;
  background-color: #0a0a0a;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(300px, 1fr)); /* Handles 4 cards per row */
  gap: 40px;
  justify-content: center; /* Centers the overall grid within parent container */
  width: fit-content; /* Shrinks the grid's width to fit the content */
  margin: 0 auto; /* Centers the grid block */
}

.feature-card:last-child:nth-child(5) {
  grid-column: span 4; /* Makes the fifth card span the row and center it */
  justify-self: center; /* Ensures the single card aligns centrally */
}

.feature-card {
  background-color: rgba(30, 30, 30, 0.6);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid #333;
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 193, 7, 0.15);
  border-radius: 50%;
  color: #FFC107;
  font-size: 36px;
}

.feature-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #FFC107;
}

.feature-desc {
  font-size: 16px;
  line-height: 1.6;
  color: #ddd;
}

/* Call to Action Section */
.cta-section {
  padding: 80px 0;
  background-color: #111;
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #FFC107;
}

.cta-text {
  font-size: 18px;
  margin-bottom: 40px;
  color: #ddd;
}

/* Testimonials Section */
.testimonials-section {
  padding: 100px 0;
  background-color: #0a0a0a;
}

.testimonials-container {
  max-width: 900px;
  margin: 0 auto;
}

.testimonial-card {
  background-color: rgba(30, 30, 30, 0.6);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 40px;
  position: relative;
  border: 1px solid #333;
}

.testimonial-content {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
  font-style: italic;
  color: #ddd;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
  background-color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 20px;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 700;
  color: #FFC107;
}

.author-guild {
  font-size: 14px;
  color: #ccc;
}

/* Responsive styles for home page specific elements */
@media (max-width: 1024px) {
  .hero-title {
      font-size: 42px;
  }
  
  .hero-subtitle {
      font-size: 20px;
  }
}

@media (max-width: 768px) {
  .hero-logo {
      width: 300px;
  }
  
  .hero-title {
      font-size: 36px;
  }
  
  .hero-subtitle {
      font-size: 18px;
  }
  
  .hero-buttons {
      flex-direction: column;
      gap: 15px;
  }
}

@media (max-width: 480px) {
  .hero-logo {
      width: 250px;
  }
  
  .hero-title {
      font-size: 28px;
  }
  
  .hero-subtitle {
      font-size: 16px;
  }
}