/* FEATURED LAYOUT */
.feature-layout {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

/* BASE FEATURE CARD */
.feature-card {
  position: relative;
  width: 100%;
  display: block;
  background: var(--card);
  border: 0.5px solid #dfdede;
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.feature-card:hover {
  border-color: #ccc;
}

/* SHARED IMAGE POSITIONING */
.feature-card img {
  position: absolute;
  left: 50%;
  bottom: 100px;
  transform: translateX(-50%);
  height: auto;
  display: block;
}

/* =========================================================
   HUB CARD GRID
   Used by homepage category cards and category hub pages.
   Matches the clean blue-grey card style from the reference.
========================================================= */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 50px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 50px;
}

.hub-section {
  padding: 16px 0 var(--hero-gap);
}

.hub-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 50px;
}

.hub-card {
  position: relative;
  min-height: 100%;
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, 0.02);
  border-radius: 26px;
  background: var(--card);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.hub-card:hover {
  border-color: var(--border);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.055);
}

/* Supports both naming systems:
   Reference file: .hub-card-content / .hub-card-top
   Current index:  .card-content / .card-top
*/

.hub-card-content,
.card-content {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.hub-card-top,
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.hub-card h1,
.hub-card h2 {
  font-size: clamp(25px, 3vw, 35px);
  font-weight: 500;
  letter-spacing: -2px;
  line-height: 1.02;
  color: #111;
  max-width: 75%;
  overflow-wrap: break-word;
}

.hub-number,
.card-number {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border);
  color: #aaa;
  font-size: 18px;
  font-weight: 600;
}

.hub-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  min-height: 86px;
  margin-bottom: 16px;
}

.hub-main-link,
.card-main-link {
  align-self: center;
  margin-top: auto;
  margin-bottom: 14px;
  padding: 9px 16px;
  border-radius: 999px;
  background: transparent;
  border: 2px solid var(--accent);
  color: #111;
  font-size: 13px;
  font-weight: 600;
  transition: 0.2s ease;
}

.hub-main-link:hover,
.card-main-link:hover {
  background: var(--accent);
  color: #fff;
}

.hub-links,
.card-links {
  display: grid;
  gap: 8px;
}

.hub-links a,
.card-links a {
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 14px;
  background: #fff;
  color: var(--muted);
  font-size: 12.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hub-links a:hover,
.card-links a:hover {
  color: #111;
  outline: 2px solid var(--accent);
}

/* Add arrows automatically if your current links do not include spans */
.card-links a::after {
  content: "→";
}

.hub-links a span,
.card-links a span {
  margin-left: auto;
}

/* Responsive */
@media (max-width: 980px) {
  .grid-3,
  .grid-4,
  .hub-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .grid-3,
  .grid-4,
  .hub-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

/* PHOTOS — 4:3 */
.photos-card {
  aspect-ratio: 4 / 3;
  max-width: 700px;
}

.photos-card img {
  width: 84%;
  max-height: 70%;
  object-fit: contain;
}

/* CONTENT — 1:1 */
.content-card {
  aspect-ratio: 1 / 1;
  max-width: 700px;
}

.content-card img {
  width: 78%;
  max-height: 72%;
  object-fit: contain;
}

/* DESIGN — 16:9 */
.design-card {
  aspect-ratio: 16 / 9;
  max-width: 1400px;
}

.design-card img {
  width: 90%;
  max-height: 90%;
  object-fit: contain;
}

/* PILLS */
.pill {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(255,255,255,0.88);
  color: #111;
  padding: 7px 13px;
  border: 2px solid var(--accent);
  border-color: var(--accent);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  z-index: 5;
}

/* FEATURED DOG EAR */
.dog-ear {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 32px;
  font-size: 16.1px;
  font-weight: 500;
  z-index: 6;
  border-bottom-left-radius: 18px;
}

/* CARD BOTTOM TEXT BAND */
.card-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0,0,0,0.08);
  transition: border-color 0.2s ease;
  padding: 10px 14px;
  z-index: 4;
}

.feature-card:hover .card-caption,
.mini-card:hover .card-caption {
  border-top: 2px solid #dfdede;
}

.card-caption h3 {
  font-size: 17px;
  margin-bottom: 4px;
}

.card-caption p {
  font-size: 13px;
  color: var(--muted);
}

/* =========================================================
   GOLD NAVIGATION CARD STYLE
   Used by Aviation cards and Sitemap special-focus cards.
   Darker gold family based on #b88921.
========================================================= */

.aviation-card,
.special-card.sitemap-card {
  position: relative;
  min-height: 100%;
  padding: 10px;
  border: 1px solid var(--gold-soft);
  border-radius: 26px;
  background: var(--gold-bg);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.aviation-card:hover,
.special-card.sitemap-card:hover {
  border-color: #b88921;
  box-shadow: 0 18px 40px var(--gold-shadow);
}

.aviation-card-content,
.special-card .sitemap-card-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.aviation-card-top,
.special-card .sitemap-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.aviation-card-top h1,
.special-card .sitemap-card-top h1 {
  flex: 0 1 75%;
  width: 75%;
  max-width: 75%;
  min-width: 0;
}

.aviation-card h1,
.special-card .sitemap-card-top h1 {
  color: #b88921;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 500;
  letter-spacing: -1.5px;
  line-height: 1.02;
  white-space: normal;
  overflow-wrap: break-word;
}

.aviation-card p,
.special-card.sitemap-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 16px;
  position: relative;
}

.aviation-number,
.special-card .sitemap-number {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid rgba(184, 137, 33, 0.45);
  color: #b88921;
  font-size: 18px;
  font-weight: 600;
}

.aviation-main-link,
.special-card .sitemap-main-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin-top: auto;
  margin-bottom: 14px;
  padding: 9px 16px;
  border-radius: 999px;
  background: #b88921;
  border: 2px solid transparent;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: font-weight 0.2s ease, transform 0.2s ease;
}

.aviation-main-link:hover,
.special-card .sitemap-main-link:hover {
  background: #b88921;
  border-color: transparent;
  color: #fff;
  font-weight: 600;
}

.aviation-links,
.special-card .sitemap-links {
  display: grid;
  grid-template-rows: repeat(5, 32px);
  gap: 8px;
}

.aviation-links a,
.special-card .sitemap-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 32px;
  padding: 6px 10px;
  border-radius: 14px;
  background: #fff;
  border: 2px solid rgba(184, 137, 33, 0.18);
  color: var(--muted);
  font-size: 12.5px;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.aviation-links a::after,
.special-card .sitemap-links a::after {
  display: none;
  content: "";
}

.aviation-links a:hover,
.special-card .sitemap-links a:hover {
  color: #111;
  border-color: #b88921;
  transform: translateX(2px);
}

@media (max-width: 620px) {
  .aviation-card,
  .special-card.sitemap-card {
    border-radius: 24px;
  }

  .aviation-card h1,
  .special-card .sitemap-card-top h1 {
    font-size: clamp(24px, 9vw, 34px);
  }
}