/* =========================================================
   ECOURLSY DESIGN SYSTEM — TERRACOTTA & SAND
   Shared tokens for every Ecoursly page and hub.
   ========================================================= */
:root {
  --terracotta: #A65336;
  --terracotta-dark: #87432D;
  --terracotta-soft: #F1E1D7;
  --sand: #F5EFE6;
  --sand-muted: #D9C6B2;
  --charcoal: #27221F;
  --brown: #49372D;
  --muted: #766B63;
  --line: #D9C6B2;
  --white: #FFFFFF;
  --bg: #F5EFE6;
  --success: #28734F;
  --danger: #A83232;

  /* Backward-compatible aliases for older page CSS. */
  --purple: var(--terracotta);
  --purple-dark: var(--terracotta-dark);
  --purple-light: var(--terracotta-soft);
  --ink: var(--charcoal);
  --green: var(--success);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, "Plus Jakarta Sans", Arial, sans-serif;
  color: var(--ink);
  background: var(--sand);
}
h1, h2, h3, h4, h5, h6 { font-family: "Plus Jakarta Sans", Inter, Arial, sans-serif; }
a { text-decoration: none; color: inherit; }
button, input { font: inherit; }

.navbar {
  height: 76px;
  padding: 0 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.logo {
  flex-shrink: 0;
  color: var(--ink);
  font-size: 25px;
  font-weight: 850;
  letter-spacing: -1.1px;
}
.logo span { color: var(--purple); }
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 27px;
  color: #635850;
  font-size: 14px;
  font-weight: 600;
}
.nav-links a:hover { color: var(--purple); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.login {
  font-size: 14px;
  font-weight: 700;
  color: #49372D;
  padding: 11px 10px;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 9px;
  padding: 12px 17px;
  font-size: 13px;
  font-weight: 750;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:hover { filter: brightness(.97); }
.btn-primary {
  background: var(--purple);
  color: white;
  box-shadow: 0 7px 18px rgba(166,83,54,.18);
}
.btn-primary:hover { background: var(--purple-dark); }
.btn-outline {
  border-color: #D9C6B2;
  color: var(--purple);
  background: white;
}
.btn-outline:hover { background: var(--purple-light); }
.btn-hire {
  background: var(--brown);
  color: #fff;
  padding: 12px 16px;
  box-shadow: 0 7px 20px rgba(73,55,45,.15);
}
.btn-hire:hover { background: #352820; }
.btn-creator {
  background: var(--terracotta);
  color: #fff;
  padding: 15px 21px;
  box-shadow: 0 8px 22px rgba(166,83,54,.18);
}
.btn-creator:hover { background: #87432D; }

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 85% 25%, #EAD9C9 0, transparent 35%),
    linear-gradient(110deg, #F5EFE6 0%, #F5EFE6 56%, #EFE3D7 100%);
  padding: 76px 6% 70px;
}
.hero-inner {
  max-width: 1190px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  align-items: center;
  gap: 40px;
}
.hero-copy { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--purple);
  background: #fff;
  border: 1px solid #E7D5C6;
  padding: 9px 13px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .7px;
  margin-bottom: 22px;
}
.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #A65336;
}
h1 {
  max-width: 650px;
  font-size: clamp(42px, 5vw, 65px);
  line-height: 1.06;
  letter-spacing: -2.8px;
  margin-bottom: 20px;
}
h1 span { color: var(--purple); }
.hero-description {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  max-width: 540px;
  margin-bottom: 27px;
}
.hero-search {
  max-width: 535px;
  background: white;
  border: 1px solid #D9C6B2;
  border-radius: 12px;
  padding: 7px;
  display: flex;
  gap: 8px;
  box-shadow: 0 12px 35px rgba(73,55,45,.07);
  margin-bottom: 18px;
}
.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 10px 12px;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
}
.hero-search .btn { white-space: nowrap; }
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 27px;
}
.hero-note {
  color: #766B63;
  font-size: 12px;
}
.hero-note strong { color: var(--green); }

.hero-visual {
  position: relative;
  min-height: 390px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.visual-orb {
  width: 355px;
  height: 355px;
  border-radius: 50%;
  background: linear-gradient(145deg, #EAD9C9, #F5EFE6);
  position: absolute;
  right: 4%;
}
.book-card {
  position: absolute;
  width: 185px;
  height: 245px;
  background: linear-gradient(145deg, #B96545, #87432D);
  color: white;
  border-radius: 12px;
  box-shadow: 0 22px 45px rgba(73,55,45,.20);
  padding: 22px 18px;
  transform: rotate(-9deg) translate(-62px, 6px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.book-card small { font-size: 9px; letter-spacing: 1.3px; opacity: .8; }
.book-card strong { font-size: 26px; line-height: 1.1; }
.book-card .book-art {
  align-self: flex-end;
  font-size: 58px;
  line-height: 1;
}
.course-card {
  position: absolute;
  width: 205px;
  height: 265px;
  background: white;
  border-radius: 13px;
  padding: 10px;
  box-shadow: 0 22px 50px rgba(46,28,83,.16);
  transform: rotate(8deg) translate(65px, 12px);
  z-index: 3;
}
.course-image {
  height: 145px;
  border-radius: 9px;
  background: linear-gradient(145deg, #EAD2BC, #C98266 52%, #A65336);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 58px;
}
.course-card .course-tag {
  display: inline-block;
  color: var(--purple);
  background: var(--purple-light);
  border-radius: 5px;
  padding: 5px 7px;
  font-size: 9px;
  font-weight: 800;
  margin: 11px 0 7px;
}
.course-card h3 { font-size: 13px; line-height: 1.4; }
.course-card p { color: var(--muted); font-size: 10px; margin-top: 7px; }
.float-label {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  background: white;
  border: 1px solid #E7D5C6;
  border-radius: 11px;
  box-shadow: 0 12px 30px rgba(73,55,45,.08);
  font-size: 11px;
  font-weight: 750;
}
.float-label span { font-size: 21px; }
.label-top { top: 37px; right: 0; }
.label-bottom { bottom: 32px; left: 0; }

.trust-row {
  max-width: 1190px;
  margin: 27px auto 0;
  padding-top: 22px;
  border-top: 1px solid #D9C6B2;
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
  color: #766B63;
  font-size: 11px;
}
.trust-row strong { color: #27221F; }
.trust-item { display: flex; align-items: center; gap: 7px; }

.section {
  padding: 75px 6%;
}
.section-inner { max-width: 1190px; margin: auto; }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 27px;
}
.section-kicker {
  color: var(--purple);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.section h2 {
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -1px;
}
.section-subtitle {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  margin-top: 9px;
}
.text-link {
  color: var(--purple);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.categories { background: white; }
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
.category {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 20px 17px;
  display: flex;
  align-items: center;
  gap: 13px;
  transition: .2s;
  background: white;
}
.category:hover {
  border-color: #C99B83;
  box-shadow: 0 12px 25px rgba(73,55,45,.06);
}
.category-icon {
  flex-shrink: 0;
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--purple-light);
  font-size: 22px;
}
.category h3 { font-size: 13px; margin-bottom: 5px; }
.category p { color: var(--muted); font-size: 10px; }

.products-section { background: var(--bg); }
/*.product-grid {*/
/*  display: grid;*/
/*  grid-template-columns: repeat(4, 1fr);*/
/*  gap: 18px;*/
/*}*/

/*.product-grid {*/
/*    display: flex;*/
/*    gap: 18px;*/
/*    overflow: hidden;*/
/*    position: relative;*/
/*    width: 100%;*/
/*    align-items: stretch;*/
/*}*/

/*.product-grid .product-card {*/
/*    flex: 0 0 calc((100% - 54px) / 4);*/
/*    min-width: 0;*/
/*    box-sizing: border-box;*/
/*}*/

/*@media (max-width: 900px) {*/
/*    .product-grid .product-card {*/
/*        flex-basis: calc((100% - 18px) / 2);*/
/*    }*/
/*}*/

/*@media (max-width: 520px) {*/
/*    .product-grid .product-card {*/
/*        flex-basis: 85%;*/
/*    }*/
/*}*/



.product-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    width: 100%;
    align-items: stretch;
    scroll-behavior: smooth;
    scrollbar-width: auto;
    -ms-overflow-style: auto;
}

.product-grid::-webkit-scrollbar {
    display: none;
}


.product-grid .product-card {
    /* Wider than four cards can fit in the row, so horizontal scrolling works */
    flex: 0 0 320px;
    min-width: 320px;
    box-sizing: border-box;
}

@media (max-width: 900px) {
    .product-grid .product-card {
        flex: 0 0 260px;
        min-width: 260px;
    }
}

@media (max-width: 520px) {
    .product-grid .product-card {
        flex: 0 0 85%;
        min-width: 85%;
    }
}

.product-card {
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  transition: .2s;
}
.product-card:hover {
  box-shadow: 0 15px 32px rgba(73,55,45,.08);
}
.product-cover {
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 58px;
  position: relative;
}
.cover-one { background: linear-gradient(135deg,#EAD9C9,#D5B29E); }
.cover-two { background: linear-gradient(135deg,#E7E8D9,#C5D1B8); }
.cover-three { background: linear-gradient(135deg,#EAD2BC,#D7A27F); }
.cover-four { background: linear-gradient(135deg,#E6D8CA,#CBA58D); }
.product-label {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 8px;
  background: white;
  border-radius: 5px;
  color: var(--purple);
  font-size: 9px;
  font-weight: 800;
}
.product-info { padding: 15px; }
.product-info .type {
  color: var(--purple);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.product-info h3 { font-size: 14px; line-height: 1.45; margin: 8px 0; }
.product-info p { color: var(--muted); font-size: 11px; }
/*.product-bottom {*/
/*  display: flex;*/
/*  justify-content: space-between;*/
/*  align-items: center;*/
/*  margin-top: 14px;*/
/*  padding-top: 12px;*/
/*  border-top: 1px solid #E7D5C6;*/
/*}*/
/*.price { font-size: 15px; font-weight: 850; }*/
/*.rating { color: #d99a20; font-size: 11px; }*/
/*.product-bottom a { color: var(--purple); font-size: 11px; font-weight: 800; }*/



.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #E7D5C6;
}

.product-pricing {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.price {
    font-size: 15px;
    font-weight: 850;
    white-space: nowrap;
}

.mark-price {
    color: #999;
    font-size: 11px;
    text-decoration: line-through;
    white-space: nowrap;
}

.discount-badge {
    display: inline-block;
    background: #d9fbe8;
    color: #087443;
    padding: 3px 6px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.product-bottom a {
    color: var(--purple);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}


.courses-section { background: white; }
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.video-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  transition: .2s;
}
.video-card:hover {
  box-shadow: 0 15px 32px rgba(73,55,45,.08);
}
.video-thumb {
  height: 180px;
  display: grid;
  place-items: center;
  position: relative;
  font-size: 53px;
}
.video-one { background: linear-gradient(135deg,#E8C4B4,#C98266); }
.video-two { background: linear-gradient(135deg,#EAD9C9,#D5B29E); }
.video-three { background: linear-gradient(135deg,#E7E8D9,#C5D1B8); }
.video-thumb img { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; }
.video-thumb .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  color: white; background: rgba(25,21,43,.78); font-size: 15px; padding-left: 3px;
}
.video-thumb .duration {
  position: absolute; right: 10px; bottom: 10px; color: white;
  background: rgba(25,21,43,.72); padding: 5px 8px; border-radius: 5px;
  font-size: 9px; font-weight: 700;
}
.video-info { padding: 15px; }
.video-info .type { color: var(--purple); font-size: 9px; font-weight: 800; letter-spacing: .5px; }
.video-info h3 { font-size: 14px; line-height: 1.45; margin: 8px 0; }
.video-info p { color: var(--muted); font-size: 11px; line-height: 1.6; min-height: 35px; }
.video-meta { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-top:14px; padding-top:12px; border-top:1px solid #E7D5C6; font-size:10px; color:var(--muted); }
.video-meta strong { color:var(--purple); font-size:12px; }
.why-section { background: #F5EFE6; }
.why-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:15px; }
.why-card { border:1px solid var(--line); border-radius:13px; padding:20px 17px; background:white; }
.why-icon { width:42px; height:42px; display:grid; place-items:center; border-radius:10px; background:var(--purple-light); font-size:20px; margin-bottom:14px; }
.why-card h3 { font-size:13px; margin-bottom:7px; }
.why-card p { color:var(--muted); font-size:11px; line-height:1.6; }

.video-two { background: linear-gradient(135deg,#EAD9C9,#D5B29E); }
.video-three { background: linear-gradient(135deg,#E7E8D9,#C5D1B8); }
.play {
  position: absolute;
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--purple);
  background: white;
  font-size: 15px;
  box-shadow: 0 6px 15px rgba(0,0,0,.12);
}
.duration {
  position: absolute;
  bottom: 11px;
  right: 11px;
  color: white;
  background: rgba(25,21,43,.72);
  border-radius: 5px;
  padding: 5px 7px;
  font-size: 10px;
}
.video-info { padding: 16px; }
.video-info h3 { font-size: 14px; margin: 8px 0; }
.video-info p { color: var(--muted); font-size: 11px; line-height: 1.6; }
.video-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 13px;
  color: var(--muted);
  font-size: 10px;
}
.video-meta strong { color: var(--ink); font-size: 13px; }

.why-section { background: #F5EFE6; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
  margin-top: 28px;
}
.why-card {
  background: white;
  border: 1px solid #D9C6B2;
  border-radius: 12px;
  padding: 23px 18px;
}
.why-icon {
  width: 45px;
  height: 45px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--purple-light);
  font-size: 21px;
  margin-bottom: 15px;
}
.why-card h3 { font-size: 14px; margin-bottom: 8px; }
.why-card p { color: var(--muted); font-size: 11px; line-height: 1.7; }

.creator-banner {
  margin: 0 6%;
  border-radius: 18px;
  padding: 42px 5%;
  background: linear-gradient(110deg,#49372D,#654838 72%,#87432D);
  color: white;
  overflow: hidden;
  position: relative;
}
.creator-banner:after {
  content: "✦";
  position: absolute;
  right: 7%;
  top: -50px;
  font-size: 220px;
  color: rgba(255,255,255,.07);
}
.creator-inner {
  max-width: 1190px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  position: relative;
  z-index: 1;
}
.creator-banner .section-kicker { color: #EAD2BC; }
.creator-banner h2 { font-size: clamp(25px,3vw,36px); margin-bottom: 10px; }
.creator-banner p {
  color: #F1E1D7;
  font-size: 13px;
  line-height: 1.7;
  max-width: 600px;
}
.creator-banner .btn-creator { flex-shrink: 0; }

.hire-strip {
  padding: 65px 6%;
  text-align: center;
  background: white;
}
.hire-strip h2 { font-size: 27px; letter-spacing: -.7px; margin-bottom: 10px; }
.hire-strip p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  margin: 0 auto 20px;
  max-width: 600px;
}
.hire-strip .btn { padding: 14px 22px; }

.footer {
  background: #49372D;
  color: white;
  padding: 42px 6% 22px; 
}
.footer-inner {
  max-width: 1190px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 35px;
  flex-wrap: wrap;
}
.footer-brand { max-width: 320px; }
.footer-brand .logo { color: white; display: inline-block; margin-bottom: 13px; }
.footer-brand p { color: #D9C6B2; font-size: 12px; line-height: 1.8; }
.footer-links h4 { font-size: 12px; margin-bottom: 14px; }
.footer-links a {
  display: block;
  color: #D9C6B2;
  font-size: 11px;
  margin-bottom: 11px;
}
.footer-links a:hover { color: white; }
.copyright {
  max-width: 1190px;
  margin: 30px auto 0;
  padding-top: 17px;
  border-top: 1px solid #654D3F;
  color: #D9C6B2;
  font-size: 10px;
}

@media(max-width:1050px) {
  .navbar { padding: 0 4%; gap: 15px; }
  .nav-links { gap: 15px; }
  .nav-actions { gap: 7px; }
  .btn-hire { padding: 11px 12px; }
  .hero, .section { padding-left: 4%; padding-right: 4%; }
  .category-grid, .product-grid { grid-template-columns: repeat(2,1fr); }
  .course-grid { grid-template-columns: repeat(2,1fr); }
  .why-grid { grid-template-columns: repeat(2,1fr); }
  .why-grid { grid-template-columns: repeat(2,1fr); }
}
@media(max-width:760px) {
  .navbar { height: auto; min-height: 70px; padding: 13px 5%; flex-wrap: wrap; }
  .logo { font-size: 22px; }
  .nav-links { order: 3; width: 100%; justify-content: flex-start; overflow-x: auto; padding: 7px 0 2px; gap: 22px; }
  .nav-links a { white-space: nowrap; }
  .nav-actions { margin-left: auto; }
  .login { display: none; }
  .btn { padding: 11px 12px; font-size: 11px; }
  .btn-hire { font-size: 11px; }
  .hero { padding: 55px 5% 45px; }
  .hero-inner { grid-template-columns: 1fr; gap: 10px; }
  .hero-copy { text-align: center; }
  .hero-description, .hero-search { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  h1 { letter-spacing: -1.8px; }
  .hero-visual { min-height: 325px; }
  .visual-orb { width: 290px; height: 290px; right: auto; }
  .book-card { transform: rotate(-9deg) translate(-48px, 5px) scale(.86); }
  .course-card { transform: rotate(8deg) translate(48px, 10px) scale(.86); }
  .label-top { right: 2%; top: 5px; }
  .label-bottom { left: 1%; bottom: 10px; }
  .trust-row { justify-content: center; }
  .section { padding-top: 55px; padding-bottom: 55px; }
  .section-heading { align-items: flex-start; }
  .section-heading .text-link { margin-top: 5px; }
  .creator-banner { margin: 0 5%; padding: 32px 23px; }
  .creator-inner { align-items: flex-start; flex-direction: column; }
  .hire-strip { padding: 50px 5%; }
}
@media(max-width:480px) {
  .nav-actions { gap: 6px; }
  .btn-hire { padding: 10px 9px; font-size: 10px; }
  .nav-links { font-size: 12px; }
  .hero { padding-top: 42px; }
  h1 { font-size: 42px; }
  .hero-description { font-size: 14px; }
  .hero-search { padding: 5px; }
  .hero-search input { font-size: 11px; padding: 8px; }
  .hero-search .btn { padding: 10px; }
  .hero-visual { min-height: 290px; }
  .visual-orb { width: 255px; height: 255px; }
  .book-card { transform: rotate(-9deg) translate(-40px, 5px) scale(.74); }
  .course-card { transform: rotate(8deg) translate(40px, 10px) scale(.74); }
  .float-label { padding: 8px 10px; font-size: 9px; }
  .float-label span { font-size: 17px; }
  .category-grid { gap: 10px; }
  .category { padding: 13px 10px; gap: 9px; }
  .category-icon { width: 38px; height: 38px; font-size: 18px; }
  .category h3 { font-size: 11px; }
  .category p { font-size: 9px; }
  .product-grid { gap: 11px; }
  .product-cover { height: 330px; font-size: 43px; }
  .product-info { padding: 11px; }
  .product-info h3 { font-size: 12px; }
  .product-info p { font-size: 10px; }
  .product-bottom { flex-wrap: wrap; gap: 7px; }
  .course-grid, .why-grid { grid-template-columns: 1fr; }
  .video-thumb { height: 190px; }
  .why-grid { gap: 10px; }
  .why-card { padding: 15px 12px; }
  .why-card h3 { font-size: 12px; }
  .why-card p { font-size: 10px; }
  .section-heading { flex-direction: column; gap: 10px; }
}

/* Authentication styles are maintained in /assets/auth.css. */

/*@media(max-width:760px){*/
/*  .auth-actions .btn-hire{display:none}*/
/*  .auth-login{padding:10px 7px}*/
/*  .auth-account-btn{padding:8px 10px}*/
/*  .auth-modal-card{padding:25px 20px}*/
/*}*/


@media (max-width: 760px) {
    .navbar {
        display: grid;
        grid-template-columns: 1fr auto;
        column-gap: 10px;
        row-gap: 12px;
        height: auto;
        min-height: 0;
        padding: 14px 5%;
        align-items: center;
    }

    .navbar > .logo {
        grid-column: 1;
        grid-row: 1;
        font-size: 22px;
    }

    
.navbar > .nav-actions {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-left: 0;
}

.navbar > .nav-actions .auth-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}


.navbar > .nav-actions > .btn-hire,
.navbar > .nav-actions > .btn-primary {
    display: inline-flex;
    width: auto;
    flex: 0 1 auto;
    white-space: nowrap;
    justify-content: center;
    padding: 12px 10px;
    font-size: 11px;
}

@media (max-width: 480px) {
    .navbar > .nav-actions {
        gap: 6px;
    }

    .navbar > .nav-actions .auth-actions {
        gap: 4px;
    }

    .navbar > .nav-actions > .btn-hire,
    .navbar > .nav-actions > .btn-primary {
        padding: 12px 8px;
        font-size: 10px;
    }
}



    .nav-actions .auth-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 6px;
    }

    .auth-login {
        display: inline-flex;
        padding: 9px 7px;
        font-size: 12px;
    }

    #openSignup {
        padding: 9px 10px;
        font-size: 11px;
    }

    .nav-actions > .btn-hire,
    .nav-actions > .btn-primary {
        display: inline-flex;
        width: auto;
        max-width: 100%;
        justify-content: center;
        padding: 10px 12px;
        font-size: 11px;
    }

    .navbar > .nav-links {
        grid-column: 1 / -1;
        grid-row: 3;
        order: initial;
        width: 100%;
        display: flex;
        gap: 22px;
        overflow-x: auto;
        padding: 7px 0 2px;
    }

    .auth-account-btn {
        padding: 8px 10px;
    }

}


/* =================================
   ECOURLSY GLOBAL FOOTER
================================= */

.ec-footer {
    background: #49372D;
    color: #F5EFE6;
    padding: 55px 5% 20px;
    margin-top: 50px;
}

.ec-footer .footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.3fr;
    gap: 35px;
}

.ec-footer .logo {
    color: #F5EFE6;
    font-size: 28px;
    font-weight: 800;
    text-decoration: none;
}

.ec-footer .logo span {
    color: #D9A48D;
}

.ec-footer .footer-brand p {
    max-width: 330px;
    color: #E0D2C5;
    line-height: 1.8;
    font-size: 14px;
}

.ec-footer .footer-links h4 {
    color: #FFFFFF;
    font-size: 16px;
    margin: 0 0 18px;
}

.ec-footer .footer-links a {
    display: block;
    color: #E0D2C5;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 12px;
    transition: color 0.2s ease;
}

.ec-footer .footer-links a:hover {
    color: #FFFFFF;
}

.ec-footer .copyright {
    max-width: 1400px;
    margin: 35px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(217, 198, 178, 0.3);
    text-align: center;
    color: #D9C6B2;
    font-size: 13px;
}

/* Responsive */

@media (max-width: 900px) {
    .ec-footer .footer-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {
    .ec-footer {
        padding: 40px 22px 20px;
    }

    .ec-footer .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 28px 18px;
    }

    .ec-footer .footer-brand {
        grid-column: 1 / -1;
    }
}



/* =========================================================
   REUSABLE HYBRID CSS UTILITIES
   Use these in new pages; keep truly unique styling local.
   ========================================================= */
.ec-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.ec-page { color: var(--charcoal); background: var(--sand); }
.ec-text-muted { color: var(--muted); }
.ec-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 17px; border: 1px solid var(--terracotta); border-radius: 9px; background: var(--terracotta); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.ec-button:hover { background: var(--terracotta-dark); border-color: var(--terracotta-dark); }
.ec-button-outline { background: #fff; color: var(--terracotta); border-color: var(--sand-muted); }
.ec-button-outline:hover { background: var(--terracotta-soft); }
