:root {
  --color-bg: #f8f4ee;
  --color-bg-soft: #fffaf2;
  --color-primary: #f29c38;
  --color-primary-deep: #c96a16;
  --color-secondary: #3d7a4a;
  --color-accent: #f6cf65;
  --color-text: #0c6169;
  --color-muted: #7b6a57;
  --radius-lg: 1.5rem;
  --radius-md: 1rem;
  --shadow-soft: 0 18px 35px rgba(0, 0, 0, 0.07);
  --max-width: 1200px;
  --transition-fast: 0.2s ease-out;
}
.product-image-link img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 14px;
}
/* Global resets */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background: radial-gradient(circle at top, #fff7e8 0, #f8f4ee 60%, #f2ebdd 100%);
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius-md);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: "Playfair Display", "Georgia", serif;
  margin: 0 0 0.4em;
  color: #4d351a;
}

p {
  margin: 0 0 1em;
  line-height: 1.7;
}

a {
  color: var(--color-primary-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Layout helpers */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.section {
  margin-top: 2.5rem;
}

.section-card {
  background: var(--color-bg-soft);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

/* Badge & pill */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.05);
  background: rgba(246,207,101,0.15);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(90deg, rgba(248,244,238,0.94), rgba(248,244,238,0.88));
  border-bottom: 1px solid rgba(0,0,0,0.03);
}

.nav-bar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.nav-logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 1.25rem;
  background: conic-gradient(from 180deg, #f29c38, #f6cf65, #3d7a4a, #f29c38);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-logo-text span:first-child {
  font-family: "Playfair Display", serif;
  font-size: 1.45rem;     /* Larger premium brand name */
  font-weight: 700;
  color: #0c6169;
  letter-spacing: 0.4px;
}

.nav-logo-text span:last-child {
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;      /* Slightly bigger tagline */
  font-weight: 500;
  color: #b46911;
  margin-top: 2px;
}

.nav-logo-image {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 10px; /* optional – keeps it premium */
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.nav-links a {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.nav-active {
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

/* Primary CTA button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-deep));
  color: white;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 15px 30px rgba(201,106,22,0.4);
  text-decoration: none;
  font-size: 0.9rem;
}

.btn-primary span {
  font-size: 1rem;
}

.btn-primary:hover {
  transform: translateY(-1px);
  color: var(--color-primary-deep) !important;
  background: #ffffff !important;
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

/* Secondary CTA */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  border: 1px dashed rgba(61,122,74,0.4);
  color: var(--color-secondary);
  background: rgba(61,122,74,0.04);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
}

/* Hero */
.hero {
  margin-top: 1.75rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 2.25rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 3vw, 2.7rem);
}

.hero-copy p.hero-lead {
  font-size: 1rem;
  color: var(--color-muted);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.8rem;
}

.hero-tag-pill {
  font-size: 0.78rem;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,0,0,0.04);
}

.hero-actions {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.3rem;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.hero-meta-item span {
  display: block;
}

.hero-meta-item span:first-child {
  font-weight: 600;
  color: var(--color-secondary);
}

/* Hero image card */
.hero-media {
  position: relative;
  padding: 1.4rem;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top, #ffe7be 0, #f29c38 32%, #3d7a4a 80%);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hero-media-inner {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.2);
  padding: 0.9rem;
  backdrop-filter: blur(20px);
}

.hero-media img {
  border-radius: var(--radius-lg);
}

.hero-media::before,
.hero-media::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255,255,255,0.26);
  filter: blur(28px);
}

.hero-media::before {
  width: 200px;
  height: 200px;
  top: -80px;
  right: -40px;
}

.hero-media::after {
  width: 160px;
  height: 160px;
  bottom: -60px;
  left: -20px;
}

/* Info grid / cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.card {
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(242,156,56,0.08), transparent 55%);
  pointer-events: none;
}

.card-small {
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
}

/* Product cards */
.product-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
  margin-top: 64px; 
}

.product-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-card-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.product-chip {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(61,122,74,0.08);
  color: var(--color-secondary);
}

/* Contact form shared */
.contact-strip {
  margin-top: 3rem;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
  border-radius: 2rem;
  background: linear-gradient(135deg, #ffffff, #fff5e6);
  box-shadow: var(--shadow-soft);
  padding: 2rem;
}

.contact-copy h2 {
  margin-bottom: 0.4rem;
}

.contact-copy ul {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: var(--color-muted);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 0.9rem;
}

.contact-form .full-row {
  grid-column: 1 / -1;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
}

.form-field label {
  font-weight: 500;
}

.form-field input,
.form-field select,
.form-field textarea {
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.08);
  padding: 0.55rem 0.9rem;
  font: inherit;
  background: rgba(255,255,255,0.9);
}

.form-field textarea {
  resize: vertical;
  min-height: 90px;
  border-radius: 1rem;
}

.form-note {
  font-size: 0.75rem;
  color: var(--color-muted);
}

/* Footer */
.site-footer {
  padding: 1.8rem 1.25rem 2.4rem;
  background: #f1eadf;
  border-top: 1px solid rgba(0,0,0,0.04);
  font-size: 0.8rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
}

.footer-col {
  max-width: 260px;
}

.footer-col strong {
  display: block;
  margin-bottom: 0.3rem;
}

/* Academy list */
.academy-grid {
  display: block; /* remove 2-column layout */
}

/* ----------------------------------------------
   COMPACT ACADEMY CARD STYLE (NEW)
---------------------------------------------- */

.article-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

/* Full-width article grid */
.article-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 25px;
}

/* Card */
.article-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  padding: 0;
  transition: transform 0.15s ease;
}

.article-card:hover {
  transform: translateY(-3px);
}

/* Image */
.article-card img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-bottom: 1px solid #e5e5e5;
}

/* Text wrapper */
.article-card > div {
  padding: 10px 12px;
}

/* Title */
.article-card h3 {
  font-size: 13px;
  line-height: 1.3;
  margin-bottom: 6px;
  font-weight: 600;
}

/* Meta line */
.article-meta {
  font-size: 11px;
  color: #777;
  margin-bottom: 6px;
}

/* Description */
.article-card p {
  font-size: 12px;
  line-height: 1.4;
  margin-bottom: 0;
}

/* Remove underline from link */
.article-card a {
  text-decoration: none;
  color: inherit;
}

.article-card a:hover h3 {
  color: #00796B;
}

/* Responsive tuning */
@media (max-width: 768px) {
  .article-list {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }

  .article-card img {
    height: 95px;
  }

  .article-card h3 {
    font-size: 12.5px;
  }

  .article-card p {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .article-list {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
}

/* Tables / details */
.details-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 1.6rem;
}

.list-pill {
  margin: 0;
  padding-left: 1.2rem;
}

.list-pill li {
  margin-bottom: 0.3rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .contact-card,
  .academy-grid,
  .details-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-media {
    order: -1;
  }

  .nav-bar {
    flex-wrap: wrap;
  }

  .nav-links {
    flex: 1 1 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .container {
    padding-inline: 1rem;
  }

  .section-card {
    padding: 1.4rem;
  }

  .hero-meta {
    flex-direction: column;
    gap: 0.7rem;
  }

  .contact-card {
    padding: 1.4rem;
  }

  .contact-form {
    grid-template-columns: minmax(0,1fr);
  }

  .article-card {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* DROPDOWN FILTER STYLE */
.filter-bar {
  margin: 15px 0 25px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.filter-bar label {
  font-size: 14px;
  font-weight: 500;
  color: #444;
}

.filter-bar select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.filter-bar select:focus {
  outline: none;
  border-color: #009688;
  box-shadow: 0 0 4px rgba(0,150,136,0.3);
}

@media (max-width: 480px) {
  .filter-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* ======================================================
   GLOBAL: Remove underline on all links everywhere
   ====================================================== */
a, a:visited, a:hover, a:focus, a:active {
  text-decoration: none !important;
}

/* ======================================================
   ARTICLE CARD WRAPPER: Make whole card behave like a button
   ====================================================== */
.article-link-wrapper {
  display: block;
  border-radius: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Layered hover effect (smooth + premium feel) */
.article-link-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.12);
}

/* Enhance inner card hover too (double-layer effect) */
.article-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.article-link-wrapper:hover .article-card {
  transform: scale(1.015);
  box-shadow: 0 12px 32px rgba(0,0,0,0.14);
}

/* Optional: Change title color slightly on hover */
.article-link-wrapper:hover h3 {
  color: var(--color-primary-deep);
}
/* ======================================================
   LUXURY INTERACTION STYLE
   Premium, soft, high-end motion for Atlas Academy
   ====================================================== */

/* Remove underlines everywhere for luxury minimalism */
a, a:visited, a:hover, a:focus, a:active {
  text-decoration: none !important;
}

/* Wrapper handles the movement + glow */
.article-link-wrapper {
  display: block;
  border-radius: 14px;
  transition: transform 0.32s ease, box-shadow 0.32s ease, background 0.32s ease;
}

/* Premium hover effect:
   - subtle lift
   - warm glow
   - soft shadow expansion
*/
.article-link-wrapper:hover {
  transform: translateY(-6px); /* slow, confident lift */
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.10);
  background: radial-gradient(
      circle at top,
      rgba(242, 156, 56, 0.045),
      rgba(246, 207, 101, 0.03),
      transparent 70%
    );
}

/* Inner card gets slight scale + inner-shadow */
.article-card {
  transition: transform 0.32s ease, box-shadow 0.32s ease;
}

.article-link-wrapper:hover .article-card {
  transform: scale(1.017);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

/* Luxury title hover color */
.article-link-wrapper:hover h3 {
  color: #C96A16; /* deep warm premium tone */
}

/* Optional: image luxury fade on hover */
.article-card img {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.article-link-wrapper:hover .article-card img {
  opacity: 0.94;
  transform: scale(1.02); /* very subtle zoom */
}


/* Floating language selector */
.lang-float{
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,244,238,0.96));
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.18);
  backdrop-filter: blur(12px);
  max-width: calc(100% - 24px);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.lang-float:hover{ transform: translateX(-50%) translateY(-1px); }
.lang-float:focus-within{ box-shadow: 0 16px 38px rgba(0,0,0,0.22); }

.lang-float .lang-icon{
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(122,74,46,0.10);
  color: #7a4a2e;
  font-size: 16px;
  user-select: none;
}

.lang-float select{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.72);
  border-radius: 999px;
  font: 600 13px/1.2 Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #2b2b2b;
  padding: 10px 38px 10px 14px;
  cursor: pointer;
  outline: none;
  min-width: 190px;
}
.lang-float select:focus{ box-shadow: 0 0 0 4px rgba(242,156,56,0.20); }

.lang-float .chev{
  margin-left: -30px;
  font-size: 12px;
  opacity: 0.65;
  pointer-events: none;
}

@media (max-width: 640px){
  .lang-float{
    left: 50%;
    right: auto;
    bottom: calc(12px + env(safe-area-inset-bottom));
    padding: 9px 10px;
    width: calc(100% - 24px);
    justify-content: center;
  }
  .lang-float select{ width: 100%; max-width: 360px; }
}
