:root{
  --text: #0b1220;
  --muted: rgba(11,18,32,.68);
  --card: rgba(255,255,255,.75);
  --line: rgba(15,23,42,.10);
  --shadow: 0 22px 55px rgba(15,23,42,.12);
  --teal: #1f9895;
  --teal2: #2dbdba;
  --teal-light: #4dd4d1;
  --radius: 18px;
}

*{ box-sizing:border-box; }

html{
  height: 100%;
  scroll-behavior: smooth;
}

body {
  height: 100%;
}

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: #f6fffe;
  overflow-x: hidden;
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; text-underline-offset: 3px; }

.wrap{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px 22px;
}

.bg{
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.grid-sheen{
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(255,255,255,.3), transparent 50%);
  pointer-events:none;
}

.blob{
  display: none;
}

/* Top nav */
.nav{
  display:flex;
  align-items:center;
  justify-content: center;
  gap: 14px;
  padding: 14px 24px;
  animation: fadeInDown .6s ease-out;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(15,23,42,.08);
  position: sticky;
  top: 0;
  z-index: 1001;
}

.nav > div{
  width: 100%;
  max-width: 1100px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
}

@keyframes fadeInDown{
  from{
    opacity: 0;
    transform: translateY(-10px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -.01em;
  transition: transform .3s ease;
}

.brand:hover{
  text-decoration: none;
}

.logo{
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: white;
  object-fit: contain;
  transition: all .3s ease;
}

.brand:hover .logo{
  transform: rotate(-5deg);
}

.navlinks{
  display:flex;
  gap: 24px;
  align-items:center;
  font-weight: 600;
  color: rgba(11,18,32,.74);
  font-size: 15px;
}

.navlinks > a,
.navlinks .nav-item{
  padding: 8px 14px;
  border-radius: 12px;
  position: relative;
  transition: all .2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.navlinks > a{
  display: block;
}

.nav-item{
  display: inline-block;
  user-select: none;
  position: relative;
}

.nav-item-link{
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

.nav-item::after{
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.5;
  transition: transform .2s ease, opacity .2s ease;
}

.nav-item:hover::after{
  opacity: 0.8;
  transform: translateY(2px);
}

.navlinks > a:hover,
.navlinks .nav-item:hover{
  background: rgba(31,152,149,.35);
  color: white;
  text-decoration:none;
}

/* Active tab state */
.navlinks > a.active,
.navlinks .nav-item.active{
  color: var(--teal);
  font-weight: 700;
  position: relative;
  background: rgba(31,152,149,.08);
}

/* Add underline bar to all active tabs */
.navlinks > a.active::after{
  content: '';
  position: absolute;
  bottom: -14px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--teal);
  border-radius: 2px 2px 0 0;
  z-index: 1002;
}

/* Add underline bar to active dropdown items using ::before */
.navlinks .nav-item.active::before{
  content: '';
  position: absolute;
  bottom: -14px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--teal);
  border-radius: 2px 2px 0 0;
  z-index: 1002;
}

/* Keep the dropdown arrow visible and teal colored */
.navlinks .nav-item.active::after{
  border-top-color: var(--teal);
}

.navlinks > a.active:hover,
.navlinks .nav-item.active:hover{
  background: rgba(31,152,149,.12);
  color: var(--teal2);
  text-decoration: none;
}

/* Dropdown menu */
.nav-dropdown{
  position: fixed;
  top: 67px;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(246,255,254,.98);
  backdrop-filter: blur(40px);
  border-bottom: 1px solid rgba(15,23,42,.08);
  opacity: 0;
  visibility: hidden;
  transition: all .4s cubic-bezier(0.32, 0.72, 0, 1);
  transform: translateY(0);
  padding: 32px 24px 32px;
  overflow: visible;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.nav-dropdown-buttons{
  display: flex;
  flex-direction: row;
  gap: 16px;
  max-width: 1000px;
  width: 100%;
  justify-content: center;
  padding: 0 24px 8px;
}

.nav-item:hover .nav-dropdown{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  color: rgba(11,18,32,.85);
  font-weight: 700;
  border-radius: 14px;
  transition: all .25s ease;
  font-size: 15px;
  position: relative;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(15,23,42,.10);
  flex: 1;
  min-width: 0;
  text-align: center;
  min-height: 70px;
  white-space: nowrap;
}

.nav-dropdown a:hover{
  background: rgba(31,152,149,.10);
  border-color: rgba(31,152,149,.25);
  color: var(--teal);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(31,152,149,.18);
}

.nav-dropdown a + a{
  margin-top: 0;
}

.nav-dropdown a span{
  position: relative;
}

/* Dropdown search bar */
.dropdown-search-wrapper{
  width: 100%;
  max-width: 1000px;
  margin-top: 20px;
  display: flex;
  justify-content: center;
  position: relative;
  padding: 0 24px;
}

.dropdown-search{
  width: 100%;
  padding: 13px 20px 13px 44px;
  border: 2px solid rgba(15,23,42,.12);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  background: rgba(255,255,255,.90);
  color: rgba(11,18,32,.85);
  transition: all .25s ease;
  outline: none;
  font-family: inherit;
}

.dropdown-search::placeholder{
  color: rgba(11,18,32,.45);
}

.dropdown-search:focus{
  border-color: var(--teal);
  background: rgba(255,255,255,1);
  box-shadow: 0 4px 16px rgba(31,152,149,.12);
}

.dropdown-search:hover{
  border-color: rgba(31,152,149,.25);
}

.dropdown-search-icon{
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: rgba(11,18,32,.45);
  pointer-events: none;
  transition: color .25s ease;
}

.dropdown-search:focus ~ .dropdown-search-icon,
.dropdown-search-wrapper:focus-within .dropdown-search-icon{
  color: var(--teal);
}

/* Search button in navigation */
.nav-search-button{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all .2s ease;
  position: relative;
}

.nav-search-button:hover{
  background: rgba(31,152,149,.35);
  text-decoration: none;
}

.nav-search-icon{
  width: 18px;
  height: 18px;
  opacity: 0.74;
  transition: all .2s ease;
  color: rgba(11,18,32,.74);
}

.nav-search-button:hover .nav-search-icon{
  opacity: 1;
  transform: scale(1.1);
  color: white;
}

/* Force show dropdown class */
.nav-item.force-show .nav-dropdown{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Dropdown backdrop blur */
.dropdown-backdrop{
  position: fixed;
  top: 210px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(246,255,254,.50);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: all .3s ease;
  pointer-events: auto;
  display: block;
}

.dropdown-backdrop.active{
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 99999 !important;
}

/* Hero */
.hero{
  display: block;
  padding: 60px 0 48px;
  animation: fadeInUp .8s ease-out;
  max-width: 1100px;
}

.hero-top{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 40px;
}

.hero-top-left{
  display: flex;
  flex-direction: column;
}

.hero-top-right{
  display: flex;
  align-items: flex-start;
  justify-content: center;
  animation: fadeInUp .8s ease-out .2s both;
}

.hero-image{
  width: 100%;
  max-width: 450px;
  height: auto;
  object-fit: contain;
}

@keyframes fadeInUp{
  from{
    opacity: 0;
    transform: translateY(20px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow{
  margin: 6px 0 10px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .02em;
  font-size: 14px;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
}

h1{
  font-size: 52px;
  line-height: 1.06;
  margin: 0 0 12px;
  letter-spacing: -.03em;
  background: linear-gradient(135deg, #0b1220 0%, #1f2937 40%, #1f9895 50%, #1f2937 60%, #0b1220 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: shimmer 8s linear infinite;
}

@keyframes shimmer{
  0%{ background-position: 0% center; }
  100%{ background-position: 200% center; }
}

.lead{
  margin: 0 0 48px 0;
  color: rgba(11,18,32,.72);
  font-size: 20px;
  line-height: 1.6;
  max-width: 100%;
}

.lead-secondary{
  margin: 0 0 56px 0;
  color: rgba(11,18,32,.65);
  font-size: 16px;
  line-height: 1.8;
  max-width: 100%;
  font-weight: 400;
  text-align: center;
  font-style: italic;
  padding: 0 60px;
}

.cta{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 56px;
  margin-bottom: 0;
  animation: fadeInUp .8s ease-out .6s both;
  justify-content: center;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 14px 24px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.70);
  font-weight: 700;
  font-size: 16px;
  transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn::before{
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,.3), transparent 70%);
  opacity: 0;
  transition: opacity .3s ease;
}

.btn:hover::before{
  opacity: 1;
}

.btn.primary{
  background: linear-gradient(180deg, rgba(31,152,149,1), rgba(45,189,186,1));
  color: white;
  border-color: rgba(255,255,255,.2);
}

.btn:hover{
  text-decoration:none;
  transform: translateY(-2px) scale(1.01);
}

.btn.primary:hover{
}

.minirow{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 24px;
  margin-top: 0;
}

.mini{
  background: linear-gradient(135deg, rgba(255,255,255,.85), rgba(246,255,254,.85));
  border: 2px solid rgba(31,152,149,.25);
  border-radius: var(--radius);
  padding: 20px;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  animation: fadeInUp .8s ease-out both;
  position: relative;
  overflow: visible;
}

.mini::after{
  content: '→';
  position: absolute;
  bottom: 16px;
  right: 18px;
  color: var(--teal);
  font-size: 20px;
  font-weight: 700;
  opacity: 0.6;
  transition: all .3s ease;
}

.mini:nth-child(1){ animation-delay: .3s; }
.mini:nth-child(2){ animation-delay: .4s; }
.mini:nth-child(3){ animation-delay: .5s; }

.mini:hover{
  transform: translateY(-6px);
  background: linear-gradient(135deg, rgba(31,152,149,.12), rgba(45,189,186,.08));
  border-color: var(--teal);
}

.mini:hover::after{
  opacity: 1;
  transform: translateX(4px);
}


.mini-title{
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 6px;
  position: relative;
  z-index: 2;
  color: var(--teal);
  font-size: 16px;
}

.mini-text{
  color: rgba(11,18,32,.68);
  font-size: 14px;
  line-height: 1.45;
  transition: opacity .3s ease;
  position: relative;
  z-index: 1;
  margin-bottom: 8px;
  font-weight: 600;
}

/* Mini Modal */
.mini-modal{
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.mini-modal.active{
  display: flex;
}

.mini-modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(31,152,149,.03);
  backdrop-filter: blur(12px);
  animation: fadeIn .3s ease;
}

.mini-modal-content{
  position: relative;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 48px 40px;
  max-width: 600px;
  width: 100%;
  border: 1px solid rgba(15,23,42,.10);
  animation: slideUp .4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1;
}

@keyframes fadeIn{
  from{ opacity: 0; }
  to{ opacity: 1; }
}

@keyframes slideUp{
  from{
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to{
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.mini-modal-close{
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,.90);
  border: 1px solid rgba(15,23,42,.12);
  color: rgba(11,18,32,.70);
  font-size: 28px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all .2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
}

.mini-modal-close:hover{
  background: rgba(31,152,149,.15);
  color: var(--teal);
  transform: rotate(90deg);
}

.mini-modal-title{
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 20px 0;
  color: var(--teal);
  letter-spacing: -.01em;
}

.mini-modal-text{
  font-size: 18px;
  line-height: 1.7;
  color: rgba(11,18,32,.25);
  margin: 0;
  font-weight: 500;
  min-height: 60px;
}

.mini-modal-text .word-revealed{
  color: rgba(11,18,32,.85);
}

/* Right column "glass" card */
.glasscard{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 16px;
  backdrop-filter: blur(10px);
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInUp .8s ease-out .15s both;
}

.glasscard:hover{
  border-color: rgba(31,152,149,.12);
  transform: translateY(-2px);
}

.cardtitle{
  font-weight: 900;
  letter-spacing: -.01em;
  margin-bottom: 12px;
}

.contactline{
  display:flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(15,23,42,.08);
}

.contactline:first-of-type{
  border-top: none;
  padding-top: 0;
}

.label{
  color: rgba(11,18,32,.60);
  font-weight: 700;
  min-width: 80px;
}

.value{
  text-align: right;
  font-weight: 650;
  color: rgba(11,18,32,.86);
  word-break: break-word;
}

.value a{
  position: relative;
  transition: color .2s ease;
}

.value a:hover{
  color: var(--teal);
  text-decoration: none;
}

.value a::after{
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--teal2));
  transition: width .3s ease;
}

.value a:hover::after{
  width: 100%;
}

.cardnote{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(15,23,42,.08);
  color: rgba(11,18,32,.62);
  font-size: 13px;
}

/* Small stats */
.statgrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.stat{
  background: rgba(255,255,255,.68);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
  animation: fadeInUp .8s ease-out both;
}

.stat:nth-child(1){ animation-delay: .25s; }
.stat:nth-child(2){ animation-delay: .35s; }

.stat:hover{
  transform: translateY(-3px);
  background: rgba(255,255,255,.80);
  border-color: rgba(31,152,149,.15);
}

.statnum{
  font-weight: 900;
  letter-spacing: -.02em;
}

.statlabel{
  color: rgba(11,18,32,.62);
  font-weight: 650;
  margin-top: 4px;
}

/* Contact page */
.contact-section{
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 0 40px;
}

.contact-header{
  text-align: center;
  margin-bottom: 50px;
  animation: fadeInUp .8s ease-out;
}

.contact-header h1{
  font-size: 48px;
  margin: 0 0 16px;
}

.contact-header .lead{
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.contact-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 0;
  animation: fadeInUp .8s ease-out .15s both;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.contact-grid .cta-card{
  grid-column: 1 / -1;
  max-width: 435px;
  margin: 0 auto;
  width: 100%;
}

.contact-card{
  background: rgba(255,255,255,.75);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 32px 24px;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.contact-card:hover{
  transform: translateY(-6px);
  border-color: rgba(31,152,149,.20);
  background: rgba(255,255,255,.85);
  box-shadow: 0 12px 24px rgba(31,152,149,.15);
  cursor: pointer;
}

.contact-icon{
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(31,152,149,.15), rgba(45,189,186,.10));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  transition: all .3s ease;
}

.contact-card:hover .contact-icon{
  background: linear-gradient(135deg, var(--teal), var(--teal2));
  color: white;
  transform: scale(1.1) rotate(5deg);
}

.contact-icon svg{
  width: 32px;
  height: 32px;
}

.contact-card-title{
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.01em;
  margin: 0;
  color: rgba(11,18,32,.90);
}

.contact-card-info{
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(11,18,32,.75);
  font-weight: 600;
}

.contact-card-info a{
  color: var(--teal);
  transition: all .2s ease;
  position: relative;
}

.contact-card-info a::after{
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--teal2));
  transition: width .3s ease;
}

.contact-card-info a:hover::after{
  width: 100%;
}

.contact-card-info a:hover{
  text-decoration: none;
  color: var(--teal2);
}

.contact-card-note{
  margin: 0;
  font-size: 14px;
  color: rgba(11,18,32,.60);
  font-weight: 500;
}

.cta-card{
  border-color: rgba(31,152,149,.25);
}

.cta-card .contact-icon{
  background: linear-gradient(135deg, var(--teal), var(--teal2));
  color: white;
}

.cta-card:hover .contact-icon{
  background: linear-gradient(135deg, var(--teal2), var(--teal-light));
}

/* Spelling page */
.spelling-section{
  max-width: 700px;
  margin: 0 auto;
  padding: 100px 0 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.message-box{
  background: rgba(255,255,255,.85);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  padding: 60px 48px;
  text-align: center;
  animation: fadeInUp .8s ease-out;
  position: relative;
  overflow: hidden;
}

.message-box::before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--teal2), var(--teal-light));
}

.message-icon{
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(31,152,149,.15), rgba(45,189,186,.10));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  animation: pulse 2s ease-in-out infinite;
}

.message-icon svg{
  width: 40px;
  height: 40px;
}

@keyframes pulse{
  0%, 100%{ transform: scale(1); }
  50%{ transform: scale(1.05); }
}

.message-box h1{
  font-size: 42px;
  margin: 0 0 20px;
  line-height: 1.2;
}

.message-text{
  font-size: 18px;
  color: rgba(11,18,32,.72);
  margin: 0 0 32px;
  line-height: 1.6;
}

.message-box .btn{
  margin: 0;
}

/* Footer */
.foot{
  display:flex;
  justify-content: center;
  align-items:center;
  gap: 12px;
  padding: 40px 0 40px;
  color: rgba(11,18,32,.60);
  font-weight: 650;
  margin-top: 60px;
  border-top: 1px solid rgba(15,23,42,.08);
  font-size: 14px;
}

.footlinks{
  display:flex;
  gap: 14px;
}

.footlinks a{
  position: relative;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all .2s ease;
}

.footlinks a:hover{
  background: rgba(31,152,149,.08);
  color: var(--teal);
  text-decoration: none;
}

/* Books page */
.books-header{
  text-align: center;
  padding: 60px 0 40px;
  animation: fadeInUp .8s ease-out;
}

.books-header h1{
  font-size: 48px;
  margin: 0 0 16px;
  line-height: 1.15;
}

.books-header .lead{
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Product Grid */
.product-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 20px 0 40px;
  animation: fadeInUp .8s ease-out .15s both;
}

.writing-grid{
  grid-template-columns: repeat(2, 1fr);
  max-width: 700px;
  margin: 0 auto;
}

.product-tile{
  background: rgba(255,255,255,.75);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 24px;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.product-tile:hover{
  transform: translateY(-6px);
  border-color: rgba(31,152,149,.15);
  background: rgba(255,255,255,.85);
}

.product-tile-content{
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.product-tile-title{
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.01em;
  margin: 0;
  line-height: 1.2;
  min-height: 53px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
}

.title-main{
  display: block;
}

.title-teacher{
  display: block;
  font-size: 16px;
  color: #38bdf8;
  font-weight: 700;
}

.product-tile-image-wrapper{
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, rgba(31,152,149,.05), rgba(45,189,186,.05));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  transition: all .3s ease;
}

.product-tile-image-wrapper:hover{
  background: linear-gradient(135deg, rgba(31,152,149,.10), rgba(45,189,186,.10));
  transform: scale(1.02);
}

.product-tile-image{
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  transition: transform .3s ease;
}

.product-tile-image-wrapper:hover .product-tile-image{
  transform: scale(1.05);
}

.product-tile-description{
  color: rgba(11,18,32,.72);
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
  flex-grow: 1;
}

.product-tile-meta{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid rgba(15,23,42,.08);
  border-bottom: 1px solid rgba(15,23,42,.08);
}

.product-tile-grade{
  font-weight: 700;
  color: var(--teal);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.product-tile-grade-teacher{
  color: #38bdf8;
}

.product-tile-price{
  font-weight: 800;
  font-size: 18px;
  color: rgba(11,18,32,.86);
}

.product-tile-button{
  background: linear-gradient(180deg, rgba(31,152,149,1), rgba(45,189,186,1));
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-tile-button:hover{
  transform: translateY(-2px) scale(1.02);
}

/* Gallery Modal */
.gallery-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-modal.active{
  opacity: 1;
  visibility: visible;
}

.gallery-modal-overlay{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(31,152,149,.08), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(45,189,186,.06), transparent 50%),
    linear-gradient(135deg, rgba(15,23,42,.95), rgba(30,41,59,.92));
  backdrop-filter: blur(20px);
}

.gallery-modal-content{
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 40px 40px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gallery-close{
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.2);
  color: white;
  font-size: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  transition: all .2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  backdrop-filter: blur(10px);
}

.gallery-close:hover{
  background: rgba(255,255,255,.25);
  transform: rotate(90deg);
}

.gallery-title{
  color: white;
  text-align: center;
  margin: 0 0 8px 0;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
}

.gallery-main{
  flex: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 0;
}

.gallery-image-container{
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 0;
}

.gallery-main-image{
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 18px;
}

.gallery-counter{
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-weight: 600;
  font-size: 14px;
  background: rgba(255,255,255,.15);
  padding: 6px 14px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2);
}

.gallery-nav{
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.2);
  color: white;
  font-size: 48px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  transition: all .2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.gallery-nav:hover{
  background: rgba(255,255,255,.25);
  transform: scale(1.1);
}

.gallery-nav:active{
  transform: scale(0.95);
}

.gallery-thumbnails{
  display: none;
}

.gallery-thumbnail{
  width: 100px;
  height: 75px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all .2s ease;
  background: rgba(255,255,255,.1);
  padding: 0;
}

.gallery-thumbnail img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbnail:hover{
  border-color: rgba(255,255,255,.4);
  transform: translateY(-4px);
}

.gallery-thumbnail.active{
  border-color: var(--teal);
}

/* Gallery dots */
.gallery-dots{
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-top: 8px;
  position: relative;
}

.gallery-dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  border: none;
  cursor: pointer;
  transition: all .3s ease;
  padding: 0;
}

.gallery-dot:hover{
  background: rgba(255,255,255,.5);
  transform: scale(1.2);
}

.gallery-dot.active{
  width: 32px;
  border-radius: 4px;
  background: rgba(255,255,255,.9);
}

/* Autoplay button */
.gallery-autoplay{
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.2);
  color: white;
  font-size: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  transition: all .2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  backdrop-filter: blur(10px);
  margin-left: 12px;
}

.gallery-autoplay:hover{
  background: rgba(255,255,255,.25);
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 900px){
  h1{ font-size: 40px; }
  .lead{ font-size: 18px; }
  .minirow{ grid-template-columns: 1fr; }
  .value{ text-align:left; }
  .contactline{ flex-direction: column; align-items:flex-start; }
  .contact-header h1{ font-size: 40px; }
  .books-header h1{ font-size: 40px; }

  .hero-top{
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-image{
    max-width: 350px;
  }

  .nav > div{
    flex-direction: column;
    gap: 16px;
  }

  .navlinks{
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 14px;
  }

  .brand{
    font-size: 15px;
  }

  .logo{
    width: 32px;
    height: 32px;
  }

  .nav-dropdown{
    top: auto;
    padding: 24px 16px 32px;
  }

  .nav-dropdown-buttons{
    flex-direction: column;
    gap: 12px;
    padding: 0 16px;
    max-width: 100%;
  }

  .nav-dropdown a{
    font-size: 15px;
    padding: 18px 20px;
    width: 100%;
    max-width: 100%;
    min-height: 65px;
  }

  .dropdown-search-wrapper{
    margin-top: 16px;
    padding: 0 16px;
    max-width: 100%;
  }

  .dropdown-search{
    font-size: 14px;
    padding: 12px 16px 12px 42px;
  }

  .dropdown-search-icon{
    width: 16px;
    height: 16px;
    left: 28px;
  }

  .nav-search-icon{
    width: 14px;
    height: 14px;
  }

  .product-grid,
  .writing-grid{
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gallery-modal-content{
    padding: 20px 20px 20px;
    gap: 12px;
  }

  .gallery-nav{
    width: 44px;
    height: 44px;
    font-size: 36px;
  }

  .gallery-title{
    font-size: 20px;
    margin: 0 0 6px 0;
  }

  .gallery-thumbnails{
    gap: 8px;
  }

  .gallery-thumbnail{
    width: 70px;
    height: 53px;
  }

  .gallery-main-image{
    max-height: 50vh;
  }

  .contact-grid{
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-grid .cta-card{
    max-width: 100%;
  }
}