

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}
  
  .wrapper {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;     /* Centers horizontally */
  }
  
  

/* Banner Image */
.banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* Make header items align left/right */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background-color: #f5f5f5;
}

header h1 {
  margin: 0;
  font-size: 1.5rem;
}

header h1 a {
  text-decoration: none;
  color: #333;
}

/* Header Layout */
.site-header {
  display: flex;
  justify-content: space-between; /* Title left, menu right */
  align-items: center;
  padding: 10px 20px;
  background-color: #f5f5f5;
}

.site-title {
  margin: 0;
  font-size: 1.5rem;
}

.site-title a {
  text-decoration: none;
  color: #333;
}

/* Dropdown positioning */
.dropdown {
  position: relative;
}

/* Hamburger button */
.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 18px; /* total icon height */
}

/* Hamburger bars */
.hamburger-bar {
  width: 25px;
  height: 3px;
  background-color: #333;
  border-radius: 2px;
}

/* Dropdown menu styling */
.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background-color: #fff;
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 1000;
}

.dropdown-content a {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: #333;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

/* Show menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

  
  .site-title span {
    color: #ffffff; /* same color you used originally for the .com */
  }
  
  .site-title:hover span {
    color: #ffffff; /* slightly darker hover effect */
  }
  .back-to-top {
    text-align: right;
    margin-top: 20px;
  }
  
  .back-to-top a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
  }
  
  .back-to-top a:hover {
    color: #111112;
  }

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 25px;

  /* Center vertically */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
}

.hero {
  text-align: center;
  margin-top: 25px;
  margin: 10px 0;
}

.hero h2 {
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 10px;
  color: #111;
}

.hero p {
  color: #555;
  font-size: 1rem;
  margin-top: 0;
}

/* Search bar style */
.search-box form {
    display: flex;
    gap: 10px;
    align-items: center;
  }
  
  .search-box input {
    flex: 1;
  }
  
  .search-box button {
    flex-shrink: 0;
  }

  .error-message {
    color: red;
    margin-top: 10px;
    font-size: 0.9rem;
  }
label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
  font-size: 0.9rem;
}

select, input {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

button {
  margin-top: 20px;
  background: #ffffff;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}

button:hover {
  background: #ffffff;
}

.sales-letter {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin: 24px auto;
    max-width: 900px;
  }
  
  .sales-container h2 {
    margin: 0 0 8px;
    font-size: 1.6rem;
    color: #111827;
  }
  
  .sales-container .lead {
    color: #374151;
    margin-bottom: 16px;
  }
  
  .sales-container h3 {
    margin-top: 16px;
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: #111827;
  }
  
  .benefits {
    padding-left: 18px;
    margin: 0 0 16px;
  }
  
  .benefits li {
    margin-bottom: 8px;
    line-height: 1.45;
  }
  
  .cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
  }
  
  .btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid transparent;
  }
  
  .btn-primary {
    background: #4f46e5;
    color: #fff;
  }
  
  .btn-primary:hover {
    background: #4338ca;
  }
  
  .btn-ghost {
    background: transparent;
    color: #4f46e5;
    border-color: #4f46e5;
  }
  
  .btn-ghost:hover {
    background: #eef2ff;
  }

.store-layout {
  display: flex;
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto;
  align-items: flex-start;
}

.course-info {
  flex: 0 0 250px;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  font-size: 1.1rem;
  font-weight: bold;
  line-height: 1.5;
}

.course-info h2 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #222;
}

.course-info p {
  margin: 8px 0;
}

.store-widget {
  flex: 1;
}

.store-widget h2 {
  margin-bottom: 20px;
  font-size: 1.4rem;
  color: #333;
}

.contact-btn {
  display: inline-block;
  background-color: #522D80; /* Jacksonville purple */
  color: #fff;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.contact-btn:hover {
  background-color: #DAA520; /* gold on hover */
  color: #fff;
}

/* Keep the row on one line (desktop) */
#codeForm{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;              /* <-- don't wrap on wide screens */
}

/* Label on the left, fixed width */
#codeForm label[for="classCode"]{
  display: inline-block;
  width: 130px;
  margin: 0;
  white-space: nowrap;
  font-weight: 600;
}

/* IMPORTANT: override the global input { width:100% } */
#codeForm #classCode{
  width: auto;                    /* <-- stop the 100% width */
  flex: 1 1 320px;                /* grows/shrinks as needed */
  min-width: 0;                   /* allows shrinking inside flex */
  max-width: none;                /* remove your earlier 420px cap */
}

/* Make the button sit on the same line and be visible */
#codeForm button{
  margin-top: 0;                  /* override global 20px top margin */
  white-space: nowrap;
  background:#522D80;
  color:#fff;
}
#codeForm button:hover{ background:#DAA520; }
#codeForm label[for="classCode"]{ width:auto; }
#codeForm button{ width:100%; }

/* Mobile: stack vertically */
@media (max-width: 600px){
  #codeForm{
    flex-wrap: wrap;              /* allow wrapping on small screens */
    flex-direction: column;
    align-items: stretch;
    }
    #codeForm #classCode{
    padding: 6px 10px !important;   /* was 10px all around */
    line-height: 1.2 !important;
    font-size: 16px !important;      /* keep ≥16px to prevent iOS auto-zoom */
    height: 10px !important;         /* set a comfortable fixed height */
    border-radius: 4px;              /* slightly smaller corners (optional) */
  }
}
  


/* (Optional) style for the error box you already have */
.error{
  display: none;
  background: #ffe6e6;
  color: #b00020;
  padding: .75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

footer {
  margin-top: 50px;
  background: white;
  padding: 20px 0;
  border-top: 1px solid #ddd;
  font-size: 0.9rem;
  color: #666;
  text-align: center;
  width: 100%;
}

/* =========================
   Base (mobile-first)
   ========================= */

/* Form: stack vertically on small screens */
#codeForm{
  display: flex;
  flex-direction: column;       /* stack */
  align-items: stretch;
  gap: 10px;
  margin-top: .5rem;
}

#codeForm label[for="classCode"]{
  width: auto;
  margin: 0;
  font-weight: 600;
}

#codeForm #classCode{
  /* Smaller, comfy input on phones */
  padding: 6px 10px;
  line-height: 1.2;
  font-size: 16px;              /* prevents iOS zoom */
  height: 38px;
  border-radius: 4px;
  width: 100%;
}

#codeForm button{
  margin-top: 0;                /* override global margin */
  width: 100%;                  /* full width on small screens */
  background:#522D80;
  color:#fff;
}

/* Layout blocks */
.store-layout{
  flex-direction: column;       /* stack sidebar and store */
  gap: 20px;
  padding: 0 12px;
}

.course-info{ flex: 1 1 auto; }

/* Ecwid thumbnails on small screens */
.ec-product-list .grid-product__image img{
  max-width: 120px;             /* a bit smaller on phones */
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

/* If you forced 2-per-row for Ecwid, switch to 1 on phones */
@media (max-width: 480px){
  html#ecwid_html body#ecwid_body .ec-size .ec-store .grid-product{
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* =========================
   ≥ 600px (small tablets)
   ========================= */
@media (min-width: 600px){
  /* Put the form in one row */
  #codeForm{
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;          /* keep on one line */
  }
  #codeForm label[for="classCode"]{
    width: 130px;               /* label left, fixed width */
    white-space: nowrap;
  }
  #codeForm #classCode{
    width: auto;                /* stop global 100% from forcing wrap */
    flex: 1 1 320px;
    min-width: 0;
    height: 40px;               /* a touch taller for pointer accuracy */
    padding: 8px 12px;
  }
  #codeForm button{
    width: auto;
  }

  .store-layout{
    padding: 0 16px;
  }

  /* Ecwid thumbnails can be 150px from here up */
  .ec-product-list .grid-product__image img{ max-width: 150px; }
}

/* =========================
   ≥ 900px (desktop)
   ========================= */
@media (min-width: 900px){
  main{ padding: 48px 20px 32px; }

  .store-layout{
    flex-direction: row;        /* sidebar + store side-by-side */
    gap: 40px;
  }
  .course-info{ flex: 0 0 250px; }

  /* If you force 2-per-row for Ecwid on desktop */
  html#ecwid_html body#ecwid_body .ec-size .ec-store .grid-product{
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* =========================
   ≥ 1200px (wide screens)
   ========================= */
@media (min-width: 1200px){
  .wrapper{ padding: 0 8px; }   /* subtle breathing room */
  .banner img{ max-height: 420px; object-fit: cover; }
}
