/* ============================================
   XennGaming — Homepage Only
   ============================================ */

/* Full-bleed homepage only */
body.home main.xg-site-content,
body.front-page main.xg-site-content {
  width: 100%;
  padding: 0;
  max-width: none;
  margin-top: 0 !important;
}

/* Remove Astra's default spacing on homepage */
body.home .ast-container,
body.front-page .ast-container {
  max-width: none;
  padding: 0;
}

/* FIX: Remove gap between header and homepage content - VERY AGGRESSIVE */
body.home #content,
body.front-page #content,
body.home .xg-site-content,
body.front-page .xg-site-content,
body.home main,
body.front-page main,
#content.xg-site-content,
main.xg-site-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body.home .container:first-child,
body.front-page .container:first-child,
body.home .xg-banner:first-of-type,
body.front-page .xg-banner:first-of-type {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Remove ANY spacing from Astra */
body.home .ast-container,
body.front-page .ast-container,
body.home .site-content,
body.front-page .site-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* ============================================
   BANNER SECTIONS
   ============================================ */
.xg-banner {
  width: 100%;
  margin: 40px 0;
  overflow: hidden;
  border-radius: 0 !important; /* No rounded corners */
}

.xg-banner__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 400px;
  border-radius: 0 !important; /* No rounded corners */
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.xg-section {
  margin: 80px 0;
}

.xg-section__header {
  text-align: center;
  margin-bottom: 60px;
}

.xg-section__label {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #066AAB;
  margin-bottom: 12px;
}

.xg-section__title {
  font-size: 42px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
  margin: 0;
}

/* Alternate section background */
.xg-section--alt {
  background: #f9fafb;
  padding: 80px 0;
  margin: 60px -15px;
  border-radius: 20px;
}

/* ============================================
   USE CASES GRID
   ============================================ */
.xg-usecases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.xg-usecase {
  background: white;
  padding: 32px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.xg-usecase:hover {
  border-color: #066AAB;
  box-shadow: 0 8px 24px rgba(13, 110, 253, 0.12);
  transform: translateY(-2px);
}

.xg-usecase__title {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 12px 0;
}

.xg-usecase__desc {
  font-size: 15px;
  line-height: 1.7;
  color: #6b7280;
  margin: 0;
}

/* ============================================
   ECO IMPACT BANNER
   ============================================ */
.xg-eco-banner {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 16px;
  padding: 48px 40px;
  margin: 60px 0;
  position: relative;
  overflow: hidden;
}

.xg-eco-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.xg-eco-banner__content {
  display: flex;
  align-items: center;
  gap: 32px;
  position: relative;
  z-index: 1;
}

.xg-eco-banner__icon {
  font-size: 64px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.xg-eco-banner__text {
  flex: 1;
}

.xg-eco-banner__title {
  font-size: 28px;
  font-weight: 700;
  color: white;
  margin: 0 0 12px 0;
  letter-spacing: -0.02em;
}

.xg-eco-banner__desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  line-height: 1.6;
}

.xg-eco-banner__badge {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
  .xg-section__title {
    font-size: 32px;
  }

  .xg-usecases {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .xg-usecase {
    padding: 24px;
  }

  .xg-eco-banner {
    padding: 32px 24px;
  }

  .xg-eco-banner__content {
    flex-direction: column;
    text-align: center;
  }

  .xg-eco-banner__title {
    font-size: 22px;
  }

  .xg-banner__img {
    max-height: 250px;
  }
}

@media (max-width: 480px) {
  .xg-section {
    margin: 50px 0;
  }

  .xg-section__title {
    font-size: 28px;
  }
  
  .xg-eco-banner__badge {
    font-size: 11px;
    padding: 10px 18px;
  }
}
