/* ================================================= */
/* Base Styles & Structure */
/* ================================================= */
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    /* Removed padding from body so the banner/footer can be edge-to-edge */
}

main.sitemap-container {
    flex: 1; /* pushes support box down */
    width: 100%; /* Ensure it takes full width */
}

/* ================================================= */
/* 1. Hero */
/* ================================================= */
.hero.sitemap-hero {
  position: relative;
  background: linear-gradient(135deg, #0F766E, #0d5c55);
  color: #fff;
  text-align: center;
  padding: 100px 20px; /* increased for more height */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.hero.sitemap-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 70%);
  z-index: 0;
}

.hero.sitemap-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25); /* soft overlay */
  z-index: 1;
}

.hero.sitemap-hero .container {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero.sitemap-hero h1 {
  font-family: 'Montserrat', 'Arial Black', Impact, sans-serif;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.3;
  letter-spacing: 2px;
  color: #ffffff;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.2s;
}

.hero.sitemap-hero p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #e8f6f5;
  max-width: 650px;
  margin: 0 auto;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.25);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.5s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================================= */
/* 2. Sitemap Container */
/* ================================================= */
.sitemap-container {
    max-width: 1100px;
    margin: 4rem auto;
    padding: 2rem;
    display: flex;
    justify-content: center;
    background: #f9fafb;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    /* Added min-width fix for mobile */
    min-width: 90%; 
}

/* Grid Layout */
.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    text-align: left;
    width: 100%; /* Ensures grid utilizes container width */
}

/* Section Title */
.sitemap-section h3 {
    font-family: 'Georgia', serif;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: #277c7c;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 6px;
}

.sitemap-section h3 i {
    width: 20px;
    height: 20px;
    color: #14b8a6;
}

/* Links */
.sitemap-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sitemap-section ul li {
    margin-bottom: 0.75rem;
}
.sitemap-section ul li a {
    font-family: 'Times New Roman', serif;
    text-decoration: none;
    color: #374151;
    font-size: 1rem;
    font-weight: 500;
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}
.sitemap-section ul li a:hover {
    color: #fff;
    background: #14b8a6;
    transform: translateX(5px);
}

/* ================================================= */
/* 3. Support Section */
/* ================================================= */
.support-box {
    width: 100%;
    background: #ffffff;
    color: #111827;
    text-align: center;
    padding: 3rem 1rem;
    border-radius: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.support-box h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #277c7c;
    font-family: 'Georgia', sans-serif;
}

.support-box p {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.2rem;
    margin: 0 auto 1.8rem auto;
    color: #374151;
    line-height: 1.6;
    max-width: 600px;
}

/* Button Style */
.btn-primary {
    background: #14b8a6;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary:hover {
    background: #0f766e;
    transform: translateY(-2px);
}



/* ================================================= */
/* Responsive Media Queries (Refined) */
/* ================================================= */

/* Tablets & small laptops (max-width: 1024px) */
@media (max-width: 1024px) {
    /* 2 columns for sitemap */
    .sitemap-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .hero.sitemap-hero h1 {
        font-size: 2.8rem;
    }

    .support-box h2 {
        font-size: 1.6rem;
    }

    .support-box p {
        font-size: 1.1rem;
    }
}

/* Tablets & large phones (max-width: 768px) */
@media (max-width: 768px) {
    /* 1 column for sitemap */
    .sitemap-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero.sitemap-hero h1 {
        font-size: 2.4rem;
    }

    .sitemap-container {
        margin: 1.5rem auto;
        padding: 1rem;
    }

    .support-box h2 {
        font-size: 1.4rem;
    }

    .support-box p {
        font-size: 1rem;
    }

    .btn-primary {
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* Small mobile (max-width: 425px) */
@media (max-width: 425px) {
    .hero.sitemap-hero {
        padding: 3rem 0.5rem; /* Reduced horizontal padding */
    }
    .hero.sitemap-hero h1 {
        font-size: 2rem;
    }

    .sitemap-container {
        margin: 1rem 0.5rem;
        padding: 0.8rem;
        width: calc(100% - 1rem);
        max-width: 100%;
    }
    
    .sitemap-section h3 {
        font-size: 1.1rem;
    }

    .sitemap-section ul li a {
        font-size: 0.9rem;
        padding: 3px 6px;
    }

    .support-box {
        padding: 2rem 0.8rem;
    }
    .support-box h2 {
        font-size: 1.2rem;
    }

    .support-box p {
        font-size: 0.95rem;
    }

    .btn-primary {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .site-footer {
        padding: 2rem 1rem 0.8rem;
    }
}
