/* =========================
   GeoTamu Theme Custom CSS
   Header gradient kept, background changes removed
   ========================= */

/* Main green header/footer */
.account-masthead,
.masthead,
.site-footer {
  background: linear-gradient(90deg, #064e3b, #0f6b3a, #15803d) !important;
}

/* Header shadow */
.masthead {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

/* Logo area */
.masthead .logo {
  display: flex !important;
  align-items: center !important;
  text-decoration: none !important;
}

/* Logo image */
.masthead .logo img {
  max-height: 58px !important;
  width: auto !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  padding: 4px !important;
}

/* Add GeoTamu text beside logo */
.masthead .logo::after {
  content: "GeoTamu";
  color: #ffffff !important;
  font-size: 30px !important;
  font-weight: 800 !important;
  margin-left: 14px !important;
  letter-spacing: 0.5px !important;
}

/* Navigation links */
.masthead .navigation .nav-pills li a {
  color: #ffffff !important;
  font-weight: 600 !important;
}

/* Navigation hover/active */
.masthead .navigation .nav-pills li a:hover,
.masthead .navigation .nav-pills li.active a {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  border-radius: 8px !important;
}

/* Search box in header */
.masthead input[type="text"],
.masthead input[type="search"] {
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
}

/* Homepage hero area spacing only */
.hero {
  padding-top: 28px !important;
  padding-bottom: 28px !important;
}

/* White cards styling, no background colour changes */
.hero .box,
.homepage .box,
.homepage .module-search {
  border-radius: 18px !important;
  border: 1px solid rgba(21, 128, 61, 0.12) !important;
  box-shadow: 0 10px 28px rgba(15, 107, 58, 0.12) !important;
}

/* Homepage card text */
.homepage h1,
.homepage h2,
.homepage h3,
.hero h1,
.hero h2,
.hero h3 {
  color: #064e3b !important;
}

/* Search area text */
.homepage .module-search h2,
.homepage .module-search h1 {
  color: #064e3b !important;
  font-weight: 800 !important;
}

/* Buttons */
.btn-primary,
.btn-success,
.homepage .btn {
  background: #15803d !important;
  border-color: #166534 !important;
  color: #ffffff !important;
  border-radius: 9px !important;
  font-weight: 700 !important;
}

/* Button hover */
.btn-primary:hover,
.btn-success:hover,
.homepage .btn:hover {
  background: #0f6b3a !important;
  border-color: #064e3b !important;
  color: #ffffff !important;
}

/* General links */
a {
  color: #047857;
}

a:hover {
  color: #065f46;
}

/* Dataset/resource cards */
.dataset-item,
.media-item,
.module-content,
.wrapper {
  border-radius: 12px !important;
}

/* Dataset item spacing */
.dataset-item {
  padding: 18px !important;
  border-bottom: 1px solid #e5e7eb !important;
}

/* Labels/badges */
.label,
.badge {
  border-radius: 999px !important;
}

/* Private badge nicer */
.label-private,
.label[data-format],
.badge {
  font-weight: 700 !important;
}

/* Footer links */
.site-footer,
.site-footer a,
.site-footer label,
.site-footer small {
  color: #ffffff !important;
}

/* Admin/config page keeps readable */
.primary,
.secondary,
.module {
  border-radius: 12px !important;
}

/* Make form buttons consistent */
button.btn,
input.btn {
  border-radius: 8px !important;
}

@media (max-width: 768px) {
  .jtu-home-hero {
    grid-template-columns: 1fr;
  }

  .masthead .logo::after {
    font-size: 22px;
  }

  .masthead .logo img {
    max-height: 44px;
  }
}

/* =========================
   GeoTamu homepage hero card layout
   ========================= */

.jtu-home-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr) !important;
  gap: 32px !important;
  align-items: center !important;

  background: #f3fbf5 !important;
  border: 1px solid rgba(21, 128, 61, 0.14) !important;
  border-radius: 22px !important;
  box-shadow: 0 12px 28px rgba(15, 107, 58, 0.12) !important;
  padding: 32px !important;
}

.jtu-home-hero-text {
  min-width: 0 !important;
}

.jtu-home-kicker {
  display: block !important;
  color: #064e3b !important;
  font-size: 15px !important;
  margin-bottom: 8px !important;
}

.jtu-home-hero h1 {
  color: #064e3b !important;
  font-size: 36px !important;
  line-height: 1.08 !important;
  font-weight: 800 !important;
  margin: 0 0 14px 0 !important;
}

.jtu-home-hero p {
  color: #1f2937 !important;
  font-size: 16px !important;
  line-height: 1.65 !important;
  margin-bottom: 18px !important;
  max-width: 430px !important;
}

.jtu-home-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
}

.jtu-home-actions .btn {
  margin: 0 !important;
}

.jtu-home-hero-image {
  min-width: 0 !important;
}

.jtu-home-hero-image img {
  width: 100% !important;
  max-width: 330px !important;
  height: auto !important;
  display: block !important;
  margin: 0 auto !important;
  border-radius: 18px !important;
}

/* Tablet */
@media (max-width: 992px) {
  .jtu-home-hero {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    padding: 28px !important;
  }

  .jtu-home-hero p {
    max-width: 100% !important;
  }

  .jtu-home-hero-image img {
    max-width: 360px !important;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .jtu-home-hero {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 24px !important;
    border-radius: 18px !important;
  }

  .jtu-home-hero h1 {
    font-size: 28px !important;
  }

  .jtu-home-hero p {
    font-size: 15px !important;
    line-height: 1.6 !important;
  }

  .jtu-home-hero-image img {
    max-width: 280px !important;
    margin: 8px auto 0 auto !important;
  }

  .jtu-home-actions {
    flex-direction: column !important;
  }

  .jtu-home-actions .btn {
    width: 100% !important;
    text-align: center !important;
  }
}

/* Very small phone */
@media (max-width: 480px) {
  .jtu-home-hero {
    padding: 20px !important;
  }

  .jtu-home-hero h1 {
    font-size: 25px !important;
  }

  .jtu-home-kicker {
    font-size: 14px !important;
  }

  .jtu-home-hero-image img {
    max-width: 240px !important;
  }
}