/*
Theme Name: Moon Aca GeneratePress Child
Theme URI: https://moonaca.com/
Description: High-fidelity GeneratePress child theme for Moon Aca Phú Quốc, built from approved homepage, WooCommerce archive/product and blog mockups.
Author: TD Digital
Template: generatepress
Version: 2.0.0
Text Domain: moonaca
*/

:root{
  --ma-navy:#082d5c;
  --ma-navy-2:#001f43;
  --ma-gold:#cc8d27;
  --ma-gold-2:#e8b65e;
  --ma-cream:#fbf6ee;
  --ma-cream-2:#f5eadb;
  --ma-ink:#102645;
  --ma-muted:#687487;
  --ma-line:#e7e1d8;
  --ma-white:#fff;
  --ma-radius:22px;
  --ma-shadow:0 16px 45px rgba(18,35,59,.08);
  --ma-max:1240px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#fff;color:var(--ma-ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;line-height:1.55}
body .site-content{display:block!important;padding:0!important;max-width:none!important}
body .content-area{width:100%!important;float:none!important}
body #primary{width:100%!important;margin:0!important}
body .inside-article{padding:0!important}
a{text-decoration:none;color:inherit}
img{max-width:100%;display:block}
.ma-shell{max-width:var(--ma-max);margin:auto;padding:0 26px}
.ma-display{font-family:Georgia,"Times New Roman",serif;letter-spacing:-.025em}
.ma-script{font-family:"Segoe Script","Brush Script MT",cursive;font-style:italic;color:var(--ma-gold);font-weight:500}
.ma-pill,.button,.single_add_to_cart_button,.ma-btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:48px;padding:0 23px;border:1px solid transparent;border-radius:999px;background:var(--ma-gold);color:#fff;font-weight:700;transition:.2s ease;cursor:pointer}
.ma-btn:hover,.single_add_to_cart_button:hover{transform:translateY(-1px);filter:brightness(.97)}
.ma-btn-outline{background:#fff;color:var(--ma-navy);border-color:var(--ma-navy)}
.ma-eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:.14em;font-weight:800;color:var(--ma-gold)}
.ma-section{padding:62px 0}
.ma-title{margin:0 0 10px;font-size:42px;line-height:1.08;color:var(--ma-navy)}
.ma-subtitle{color:var(--ma-muted);max-width:700px}
.ma-card{background:#fff;border:1px solid var(--ma-line);border-radius:var(--ma-radius);box-shadow:0 8px 30px rgba(17,40,70,.05)}

/* Header */
.ma-topbar{background:var(--ma-navy);color:#fff;font-size:12px}
.ma-topbar .ma-shell{display:flex;justify-content:space-between;gap:20px;padding-top:7px;padding-bottom:7px}
.ma-header{background:rgba(255,255,255,.97);position:sticky;top:0;z-index:80;border-bottom:1px solid rgba(8,45,92,.08);backdrop-filter:blur(14px)}
.ma-header .ma-shell{display:grid;grid-template-columns:240px 1fr auto;align-items:center;height:78px;gap:28px}
.ma-brand{display:flex;align-items:center;gap:12px;color:var(--ma-navy)}
.ma-moon{width:44px;height:44px;border-radius:50%;background:linear-gradient(145deg,#e1ad49,#b97914);position:relative;flex:0 0 auto}
.ma-moon:after{content:"";position:absolute;width:34px;height:34px;border-radius:50%;background:#fff;right:-5px;top:-2px}
.ma-brand strong{font:700 28px/1 Georgia,serif}
.ma-brand small{display:block;font-size:8px;letter-spacing:.16em;color:var(--ma-gold);margin-top:5px}
.ma-nav{display:flex;justify-content:center;gap:30px;font-size:14px;font-weight:650}
.ma-nav a{padding:29px 0 26px;border-bottom:2px solid transparent}
.ma-nav a:hover,.ma-nav .active{color:var(--ma-gold);border-bottom-color:var(--ma-gold)}
.ma-header-actions{display:flex;align-items:center;gap:12px}
.ma-search{font-size:20px;color:var(--ma-navy)}
.ma-mobile-toggle{display:none}

/* Home */
.ma-home-hero{background:linear-gradient(90deg,#fffaf2 0%,#fff 48%,#f8ecdd 100%);overflow:hidden}
.ma-home-hero .ma-shell{display:grid;grid-template-columns:.92fr 1.08fr;min-height:520px;align-items:stretch;padding-right:0}
.ma-hero-copy{padding:74px 42px 60px 0}
.ma-hero-copy h1{font-size:58px;line-height:.98;margin:0;color:var(--ma-navy)}
.ma-hero-copy h1 span{display:block;color:var(--ma-gold)}
.ma-hero-copy .ma-script{font-size:37px;margin:10px 0}
.ma-hero-copy p{font-size:17px;max-width:530px}
.ma-hero-actions{display:flex;gap:14px;margin-top:28px;flex-wrap:wrap}
.ma-trust-row{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:38px}
.ma-trust-item{font-size:12px;text-align:center;border-right:1px solid #ddd4c9;padding:0 12px;color:var(--ma-navy);font-weight:700}
.ma-trust-item:last-child{border:0}
.ma-hero-media{min-height:520px;background:url("assets/images/hero-home.webp") center/cover no-repeat;position:relative}
.ma-hero-media:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#fff 0%,transparent 18%,transparent 80%,rgba(3,25,48,.06))}
.ma-categories{margin-top:-28px;position:relative;z-index:4}
.ma-category-bar{display:grid;grid-template-columns:repeat(4,1fr);padding:15px;background:#fff;border-radius:24px;box-shadow:var(--ma-shadow);border:1px solid #eee7dd}
.ma-category{padding:20px 26px;border-right:1px solid var(--ma-line)}
.ma-category:last-child{border:0}
.ma-category b{display:block;color:var(--ma-navy);font-size:15px}
.ma-category span{font-size:12px;color:var(--ma-muted)}
.ma-feature-grid{display:grid;grid-template-columns:1.05fr 1.95fr;gap:48px;align-items:center}
.ma-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:30px}
.ma-step{text-align:center;font-size:12px}
.ma-step i{width:54px;height:54px;border-radius:50%;background:#fff5e6;border:1px solid #f1d09b;display:grid;place-items:center;margin:0 auto 10px;font-style:normal;font-size:20px}
.ma-course-row{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.ma-mini-course{overflow:hidden}
.ma-mini-course img{height:145px;width:100%;object-fit:cover}
.ma-mini-course .inner{padding:14px}
.ma-mini-course h3{font-size:15px;margin:2px 0 8px}
.ma-mini-course .price{font-weight:800;color:var(--ma-navy);font-size:14px}
.ma-stats{background:linear-gradient(120deg,#032b58,#001e3d);color:#fff;padding:34px 0}
.ma-stats .ma-shell{display:grid;grid-template-columns:repeat(4,1fr);text-align:center}
.ma-stat strong{display:block;font-size:30px;color:#f0b54d}
.ma-stat span{font-size:12px;opacity:.86}

/* Archive common */
.ma-archive-hero{background:linear-gradient(90deg,#fff8ed 0%,#fff 52%,#f7ead8 100%);min-height:250px;overflow:hidden}
.ma-archive-hero .ma-shell{display:grid;grid-template-columns:1.05fr .95fr;align-items:center;min-height:250px;padding-right:0}
.ma-archive-hero h1{font:700 48px/1.05 Georgia,serif;margin:0 0 8px;color:var(--ma-navy)}
.ma-archive-hero .visual{height:250px;background:url("assets/images/hero-products.webp") center/cover no-repeat}
.ma-filter-tabs{margin-top:-28px;position:relative;z-index:3}
.ma-tabs-card{display:flex;background:#fff;border:1px solid var(--ma-line);box-shadow:var(--ma-shadow);border-radius:24px;padding:12px;gap:10px}
.ma-tab{flex:1;padding:15px 18px;border-radius:16px;background:#fff;text-align:center;font-weight:750;font-size:13px}
.ma-tab.active{background:var(--ma-navy);color:#fff}
.ma-archive-wrap{display:grid;grid-template-columns:230px 1fr;gap:28px;padding-top:40px;padding-bottom:70px}
.ma-sidebar{padding:20px;align-self:start;position:sticky;top:100px}
.ma-filter-group{border-bottom:1px solid var(--ma-line);padding:0 0 18px;margin-bottom:18px}
.ma-filter-group:last-child{border:0}
.ma-filter-group h4{margin:0 0 12px;font-size:13px}
.ma-filter-group label{display:block;font-size:12px;margin:9px 0;color:#35455d}
.ma-filter-group input{margin-right:7px}
.ma-product-toolbar{display:flex;justify-content:space-between;align-items:center;margin:0 0 18px;font-size:12px;color:var(--ma-muted)}
.ma-product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.ma-product-card{overflow:hidden;position:relative}
.ma-product-card img{width:100%;height:170px;object-fit:cover}
.ma-product-card .body{padding:13px 13px 15px}
.ma-product-card h2,.ma-product-card h3{font-size:16px;margin:2px 0 8px;color:var(--ma-navy)}
.ma-chips{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:10px}
.ma-chip{background:#f7f2eb;color:#6b5b4c;border-radius:6px;padding:4px 6px;font-size:9px}
.ma-product-card .price{font-size:13px;font-weight:800;margin:9px 0}
.ma-product-card .ma-btn{width:100%;min-height:35px;padding:0 10px;font-size:11px;background:#fff;color:var(--ma-navy);border-color:#99a9be}
.ma-badge{position:absolute;z-index:2;top:10px;left:10px;background:#ef5b68;color:#fff;font-size:9px;font-weight:800;padding:5px 9px;border-radius:999px}
.ma-pagination{display:flex;justify-content:center;gap:8px;margin-top:28px}
.ma-pagination .page-numbers{width:36px;height:36px;border:1px solid var(--ma-line);display:grid;place-items:center;border-radius:50%;font-size:12px}
.ma-pagination .current{background:var(--ma-navy);color:#fff}

/* Product detail */
.ma-breadcrumb{padding:18px 0;font-size:12px;color:#687487}
.ma-product-hero{display:grid;grid-template-columns:1fr .96fr;gap:28px;align-items:start}
.ma-gallery-main{height:430px;border-radius:22px;overflow:hidden;background:#f4eadf}
.ma-gallery-main img{width:100%;height:100%;object-fit:cover}
.ma-gallery-thumbs{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-top:10px}
.ma-gallery-thumbs img{height:72px;width:100%;object-fit:cover;border-radius:10px;border:1px solid var(--ma-line)}
.ma-product-info h1{font:700 40px/1.05 Georgia,serif;color:var(--ma-navy);margin:5px 0}
.ma-rating{display:flex;gap:10px;font-size:12px;margin:14px 0 20px}
.ma-rating .stars{color:#e7a429}
.ma-feature-icons{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;border-top:1px solid var(--ma-line);border-bottom:1px solid var(--ma-line);padding:16px 0;margin-bottom:18px}
.ma-feature-icons div{text-align:center;font-size:10px;color:#46566d}
.ma-buybox{padding:18px}
.ma-variation-title{font-weight:800;font-size:12px;margin:10px 0 8px}
.ma-choice-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.ma-choice{border:1px solid #d6dce4;border-radius:12px;padding:12px;text-align:center;font-size:11px;background:#fff}
.ma-choice.active{border-color:var(--ma-gold);background:#fff9ef}
.ma-buybox .price{font-size:26px;color:var(--ma-navy);font-weight:850;margin:17px 0}
.ma-buybox form.cart .quantity{display:none}
.ma-buybox .single_add_to_cart_button{width:100%;border:0;background:var(--ma-gold)!important;color:#fff!important;border-radius:999px!important;min-height:48px!important}
.variations{width:100%;border-collapse:separate;border-spacing:0 8px}
.variations th{font-size:12px;text-align:left;width:110px}
.variations select{width:100%;height:44px;border:1px solid #d8dee7;border-radius:10px;padding:0 12px;background:#fff}
.woocommerce-variation-price{font-size:22px;font-weight:850;color:var(--ma-navy);margin:8px 0}
.ma-product-tabs{margin-top:28px}
.ma-section-nav{display:flex;gap:28px;border-bottom:1px solid var(--ma-line);padding:0 16px;overflow:auto}
.ma-section-nav a{padding:15px 0;font-size:12px;font-weight:750;white-space:nowrap}
.ma-section-nav a:first-child{color:var(--ma-gold);border-bottom:2px solid var(--ma-gold)}
.ma-course-body{display:grid;grid-template-columns:.8fr 1.8fr;gap:28px;padding:24px}
.ma-course-body h3{color:var(--ma-navy)}
.ma-class-table{width:100%;border-collapse:collapse;font-size:11px}
.ma-class-table th,.ma-class-table td{padding:11px;border-bottom:1px solid #edf0f4;text-align:left}
.ma-seats{display:inline-grid;place-items:center;min-width:32px;padding:4px 8px;border-radius:999px;background:#edf8ed;color:#2e6d39}
.ma-lower-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:18px;margin-top:18px}
.ma-lower-grid>div{padding:18px}
.ma-faq details{border-bottom:1px solid var(--ma-line);padding:10px 0;font-size:12px}
.ma-related{margin-top:20px;padding:20px}
.ma-related .ma-product-grid{grid-template-columns:repeat(5,1fr)}
.ma-related .ma-product-card img{height:100px}

/* Blog archive */
.ma-blog-hero{background:linear-gradient(90deg,#fff8ee,#fff 55%,#f4e4cf)}
.ma-blog-hero .ma-shell{display:grid;grid-template-columns:1.25fr .75fr;min-height:230px;align-items:center;padding-right:0}
.ma-blog-hero h1{font:700 46px/1.05 Georgia,serif;color:var(--ma-navy);margin:0}
.ma-blog-hero .visual{height:230px;background:url("assets/images/blog-hero.webp") center/cover no-repeat}
.ma-blog-layout{display:grid;grid-template-columns:250px 1fr;gap:28px;padding:38px 0 70px}
.ma-blog-sidebar{align-self:start;position:sticky;top:100px}
.ma-blog-sidebar .ma-card{padding:20px;margin-bottom:18px}
.ma-cat-list a{display:flex;justify-content:space-between;padding:9px 10px;border-radius:10px;font-size:12px}
.ma-cat-list a:first-child{background:#fff4e3}
.ma-tags{display:flex;flex-wrap:wrap;gap:7px}
.ma-tags a{border:1px solid var(--ma-line);padding:6px 9px;border-radius:999px;font-size:10px}
.ma-post-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.ma-post-card{overflow:hidden}
.ma-post-card img{width:100%;height:150px;object-fit:cover}
.ma-post-card .body{padding:14px}
.ma-post-card h2,.ma-post-card h3{font-size:15px;line-height:1.35;color:var(--ma-navy);margin:5px 0 8px}
.ma-post-card p{font-size:11px;color:var(--ma-muted);margin:0 0 10px}
.ma-post-meta{font-size:10px;color:#7b8798}

/* Single post */
.ma-article-wrap{display:grid;grid-template-columns:1fr 300px;gap:42px;padding:30px 0 70px}
.ma-article h1{font:700 46px/1.05 Georgia,serif;color:var(--ma-navy);margin:13px 0}
.ma-article .lead{font-size:17px;color:#5a6677}
.ma-article-meta{display:flex;gap:14px;align-items:center;font-size:11px;margin:18px 0}
.ma-featured-post{border-radius:20px;overflow:hidden;margin:20px 0}
.ma-featured-post img{width:100%;max-height:510px;object-fit:cover}
.ma-article-content{font-size:15px}
.ma-article-content h2{font-size:22px;color:var(--ma-navy);margin-top:30px}
.ma-article-content h3{font-size:18px;color:var(--ma-navy);margin-top:26px}
.ma-article-content blockquote{margin:26px 0;background:#fff7e7;border-left:4px solid var(--ma-gold);padding:18px 20px;border-radius:0 12px 12px 0}
.ma-article-content img{border-radius:14px}
.ma-article-sidebar .ma-card{padding:20px;margin-bottom:18px}
.ma-toc ol{padding-left:22px;font-size:12px}
.ma-toc li{margin:10px 0}
.ma-author{display:flex;gap:16px;align-items:center;padding:18px;margin-top:26px}
.ma-author-avatar{width:54px;height:54px;border-radius:50%;background:#efe5d7;display:grid;place-items:center;font-weight:900;color:var(--ma-navy)}

/* CTA + Footer */
.ma-cta{background:linear-gradient(110deg,#052d5a,#001d3d);color:#fff;border-radius:24px;padding:30px 34px;display:grid;grid-template-columns:1.2fr 1fr;align-items:center;gap:30px;margin:0 auto 40px}
.ma-cta h2{font:700 30px/1.1 Georgia,serif;color:#fff;margin:0 0 6px}
.ma-cta .ma-script{font-size:25px}
.ma-cta-features{display:grid;grid-template-columns:repeat(3,1fr);font-size:11px;text-align:center;gap:10px}
.ma-footer{background:#fff9f1;border-top:1px solid #eee3d6;padding:38px 0 0}
.ma-footer-grid{display:grid;grid-template-columns:1.25fr repeat(3,1fr);gap:42px}
.ma-footer h4{font-size:11px;text-transform:uppercase;color:var(--ma-navy)}
.ma-footer a,.ma-footer p{font-size:11px;color:#42516a;display:block;margin:6px 0}
.ma-footer-bottom{background:var(--ma-navy);color:#fff;margin-top:30px;padding:14px 0;font-size:10px}
.ma-footer-bottom .ma-shell{display:flex;justify-content:space-between}

/* WP/WC normalizers */
.woocommerce .woocommerce-breadcrumb,.woocommerce .woocommerce-result-count,.woocommerce .woocommerce-ordering{display:none}
.woocommerce div.product div.images,.woocommerce div.product div.summary{float:none;width:auto;margin:0}
.woocommerce div.product p.price,.woocommerce div.product span.price{color:var(--ma-navy)}
.woocommerce-message,.woocommerce-info{border-top-color:var(--ma-gold)}
.woocommerce-message::before,.woocommerce-info::before{color:var(--ma-gold)}
.screen-reader-text{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

@media(max-width:1080px){
  .ma-product-grid{grid-template-columns:repeat(3,1fr)}
  .ma-post-grid{grid-template-columns:repeat(3,1fr)}
  .ma-header .ma-shell{grid-template-columns:200px 1fr auto}
  .ma-nav{gap:17px}
}
@media(max-width:820px){
  .ma-topbar{display:none}
  .ma-header .ma-shell{grid-template-columns:1fr auto;height:68px}
  .ma-brand strong{font-size:23px}
  .ma-nav,.ma-header-actions .ma-search{display:none}
  .ma-mobile-toggle{display:block}
  .ma-home-hero .ma-shell,.ma-archive-hero .ma-shell,.ma-blog-hero .ma-shell,.ma-product-hero,.ma-article-wrap{grid-template-columns:1fr}
  .ma-home-hero .ma-shell,.ma-archive-hero .ma-shell,.ma-blog-hero .ma-shell{padding-right:26px}
  .ma-hero-copy{padding:48px 0 30px}
  .ma-hero-copy h1{font-size:44px}
  .ma-hero-media{min-height:360px;border-radius:18px}
  .ma-category-bar{grid-template-columns:1fr 1fr}
  .ma-category:nth-child(2){border-right:0}
  .ma-feature-grid{grid-template-columns:1fr}
  .ma-course-row{grid-template-columns:1fr 1fr}
  .ma-archive-hero .visual,.ma-blog-hero .visual{border-radius:18px;margin-bottom:20px}
  .ma-archive-wrap,.ma-blog-layout{grid-template-columns:1fr}
  .ma-sidebar,.ma-blog-sidebar{position:static}
  .ma-product-grid,.ma-post-grid{grid-template-columns:repeat(2,1fr)}
  .ma-lower-grid{grid-template-columns:1fr}
  .ma-related .ma-product-grid{grid-template-columns:repeat(2,1fr)}
  .ma-course-body{grid-template-columns:1fr}
  .ma-gallery-main{height:360px}
  .ma-footer-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:560px){
  .ma-shell{padding-left:16px;padding-right:16px}
  .ma-header .ma-btn{min-height:40px;padding:0 14px;font-size:11px}
  .ma-hero-copy h1,.ma-archive-hero h1,.ma-blog-hero h1,.ma-article h1{font-size:36px}
  .ma-trust-row{grid-template-columns:1fr 1fr}
  .ma-category-bar,.ma-course-row,.ma-product-grid,.ma-post-grid{grid-template-columns:1fr}
  .ma-feature-icons,.ma-stats .ma-shell{grid-template-columns:1fr 1fr}
  .ma-tabs-card{overflow:auto}
  .ma-tab{min-width:125px}
  .ma-gallery-main{height:300px}
  .ma-choice-row{grid-template-columns:1fr}
  .ma-footer-grid{grid-template-columns:1fr}
  .ma-cta{grid-template-columns:1fr}
  .ma-cta-features{grid-template-columns:1fr}
  .ma-related .ma-product-grid{grid-template-columns:1fr 1fr}
}


/* === v1.1 Woo dynamic + full viewport refinements === */
.ma-home-hero,
.ma-archive-hero,
.ma-blog-hero,
.ma-footer,
.ma-stats{
  width:100vw;
  max-width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
}
.ma-home-hero{
  min-height:calc(100vh - 78px);
  display:flex;
  align-items:stretch;
}
.ma-home-hero > .ma-shell{
  width:100%;
  min-height:calc(100vh - 78px);
}
.ma-home-hero .ma-hero-copy,
.ma-home-hero .ma-hero-media{
  min-height:calc(100vh - 78px);
}
.ma-home-hero .ma-hero-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.ma-footer{
  overflow:hidden;
}
.ma-footer > .ma-shell{
  max-width:var(--ma-max);
}
.ma-archive-hero,
.ma-blog-hero{
  overflow:hidden;
}
@media(max-width:820px){
  .ma-home-hero,
  .ma-home-hero > .ma-shell,
  .ma-home-hero .ma-hero-copy,
  .ma-home-hero .ma-hero-media{
    min-height:auto;
  }
  .ma-home-hero .ma-hero-media{
    min-height:52vh;
  }
}


/* === v1.2 Native GeneratePress header/footer styling === */
.site-header{
  background:#fff;
  border-bottom:1px solid rgba(8,45,92,.08);
  position:sticky;
  top:0;
  z-index:100;
  width:100%;
  box-shadow:0 2px 14px rgba(8,45,92,.03);
}
.site-header .inside-header{
  max-width:var(--ma-max);
  margin:0 auto;
  min-height:78px;
  padding:12px 26px;
}
.site-logo img,
.navigation-branding img{
  max-height:54px;
  width:auto;
}
.site-branding .main-title a,
.navigation-branding .main-title a{
  font-family:Georgia,"Times New Roman",serif;
  font-size:28px;
  font-weight:700;
  color:var(--ma-navy);
}
.site-description{
  color:var(--ma-gold);
  font-size:9px;
  letter-spacing:.14em;
  text-transform:uppercase;
}
#site-navigation{
  background:#fff;
}
.main-navigation .inside-navigation{
  max-width:var(--ma-max);
  margin:0 auto;
}
.main-navigation .main-nav ul li a{
  color:var(--ma-navy);
  font-weight:650;
  font-size:14px;
  padding-left:18px;
  padding-right:18px;
}
.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li:focus > a,
.main-navigation .main-nav ul li[class*="current-menu-"] > a{
  color:var(--ma-gold);
  background:transparent;
}
.main-navigation .main-nav ul li[class*="current-menu-"] > a{
  box-shadow:inset 0 -2px 0 var(--ma-gold);
}
.menu-toggle{
  color:var(--ma-navy);
  background:#fff;
}
.mobile-menu-control-wrapper .menu-toggle,
.mobile-menu-control-wrapper .menu-toggle:hover{
  background:#fff;
  color:var(--ma-navy);
}

.site-footer{
  width:100vw;
  max-width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
  background:var(--ma-cream);
  color:var(--ma-ink);
  border-top:1px solid var(--ma-line);
}
.footer-widgets{
  background:var(--ma-cream);
}
.footer-widgets .inside-footer-widgets{
  max-width:var(--ma-max);
  margin:0 auto;
  padding:42px 26px;
}
.site-info{
  background:var(--ma-navy);
  color:#fff;
}
.site-info .inside-site-info{
  max-width:var(--ma-max);
  margin:0 auto;
  padding:14px 26px;
}
.site-info a{
  color:#fff;
}
.moonaca-td-credit{
  float:right;
  font-weight:700;
}
.moonaca-native-footer-menu{
  max-width:var(--ma-max);
  margin:0 auto;
  padding:18px 26px 0;
}
.moonaca-footer-links{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap:22px;
  flex-wrap:wrap;
}
.moonaca-footer-links a{
  color:var(--ma-navy);
  font-size:12px;
  font-weight:650;
}

/* Prevent duplicated custom footer styling if old template-parts remain in the theme package. */
.ma-footer{display:none!important}

@media(max-width:820px){
  .site-header .inside-header{padding:10px 16px}
  .site-branding .main-title a,
  .navigation-branding .main-title a{font-size:23px}
  .moonaca-td-credit{float:none;display:block;margin-top:5px}
}


/* =========================================================
   MOON ACA v2.0 — screenshot correction pass
   Goal: match approved mockups much more closely in real WP.
   ========================================================= */

/* Global proportions */
:root{
  --ma-max:1320px;
  --ma-radius:18px;
  --ma-shadow:0 12px 36px rgba(13,42,77,.08);
}
body{font-size:16px}
.ma-shell{max-width:var(--ma-max);padding-left:32px;padding-right:32px}
.site-content{overflow:visible}

/* Native GeneratePress header: taller, more premium */
.site-header .inside-header{
  max-width:var(--ma-max);
  min-height:88px;
  padding:14px 32px;
}
.site-branding .main-title a,
.navigation-branding .main-title a{
  font-size:31px;
  letter-spacing:-.02em;
}
.main-navigation .main-nav ul li a{
  font-size:15px;
  padding-left:22px;
  padding-right:22px;
}

/* HOME — true full-screen visual balance */
.ma-home-hero{
  min-height:calc(100vh - 88px);
  background:linear-gradient(90deg,#fff9ef 0%,#fffdf9 47%,#f4e3cc 100%);
}
.ma-home-hero > .ma-shell{
  max-width:none!important;
  padding-left:max(32px,calc((100vw - var(--ma-max))/2 + 32px));
  padding-right:0!important;
  grid-template-columns:minmax(520px,.92fr) minmax(600px,1.08fr);
  min-height:calc(100vh - 88px);
}
.ma-home-hero .ma-hero-copy{
  min-height:calc(100vh - 88px);
  padding:70px 72px 64px 0;
}
.ma-home-hero .ma-hero-media{
  min-height:calc(100vh - 88px);
  border-radius:0;
  background-position:center;
}
.ma-hero-copy h1{font-size:72px;line-height:.94;max-width:650px}
.ma-hero-copy .ma-script{font-size:38px;line-height:1.45;max-width:620px}
.ma-hero-copy p{font-size:18px;max-width:620px}
.ma-hero-actions .ma-btn{min-height:54px;padding:0 28px}
.ma-trust-row{margin-top:48px;max-width:650px}
.ma-categories{margin-top:-48px}
.ma-category-bar{padding:18px;border-radius:22px}
.ma-category{padding:24px 30px}
.ma-category b{font-size:16px}
.ma-category span{font-size:13px;margin-top:4px;display:block}
.ma-section{padding:86px 0}
.ma-feature-grid{grid-template-columns:.9fr 1.55fr;gap:70px}
.ma-title{font-size:52px}
.ma-course-row{gap:20px}

/* Cards: remove the "tiny image floating in a huge white box" look */
.ma-product-card{
  display:flex;
  flex-direction:column;
  min-height:0;
  overflow:hidden;
  background:#fff;
}
.ma-product-card > img{
  width:100%!important;
  height:210px!important;
  min-height:210px!important;
  object-fit:cover!important;
  object-position:center!important;
  margin:0!important;
  padding:0!important;
}
.ma-product-card .body{
  padding:18px 18px 20px;
  display:flex;
  flex-direction:column;
  flex:1;
}
.ma-product-card h2,.ma-product-card h3{
  font-size:19px;
  line-height:1.25;
  margin:0 0 12px;
}
.ma-product-card .price{font-size:15px;margin-top:auto;padding-top:10px}
.ma-product-card .ma-btn{min-height:42px;font-size:12px;margin-top:8px}

/* PRODUCT ARCHIVE — wider cards, no tall empty cards */
.ma-archive-hero{min-height:330px}
.ma-archive-hero .ma-shell{
  min-height:330px;
  max-width:none!important;
  padding-left:max(32px,calc((100vw - var(--ma-max))/2 + 32px));
  padding-right:0!important;
  grid-template-columns:1.05fr .95fr;
}
.ma-archive-hero h1{font-size:60px}
.ma-archive-hero .visual{height:330px}
.ma-filter-tabs{margin-top:-38px}
.ma-tabs-card{padding:14px;border-radius:22px}
.ma-tab{padding:18px 20px;font-size:14px}
.ma-archive-wrap{
  grid-template-columns:260px minmax(0,1fr);
  gap:34px;
  padding-top:48px;
}
.ma-sidebar{padding:24px}
.ma-product-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:22px;
  align-items:start;
}
.ma-archive-wrap .ma-product-card{min-height:390px}
.ma-archive-wrap .ma-product-card > img{
  height:190px!important;
  min-height:190px!important;
}

/* PRODUCT DETAIL — rebuild top composition */
.ma-breadcrumb{padding:24px 0 18px;font-size:13px}
.ma-product-hero{
  grid-template-columns:minmax(0,1.05fr) minmax(440px,.95fr);
  gap:48px;
  align-items:start;
}
.ma-product-hero > section:first-child{min-width:0}
.ma-gallery-main{
  width:100%!important;
  height:520px!important;
  min-height:520px!important;
  background:#f7f0e7;
  border-radius:22px;
  overflow:hidden;
  box-shadow:var(--ma-shadow);
}
.woocommerce div.product .ma-gallery-main img,
.ma-gallery-main img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  object-fit:cover!important;
  object-position:center!important;
  margin:0!important;
}
.ma-gallery-thumbs{
  grid-template-columns:repeat(5,88px);
  gap:12px;
  margin-top:14px;
}
.woocommerce div.product .ma-gallery-thumbs img,
.ma-gallery-thumbs img{
  width:88px!important;
  height:72px!important;
  object-fit:cover!important;
  border-radius:10px;
}
.ma-product-info{padding-top:4px}
.ma-product-info h1{font-size:56px;line-height:1;margin:5px 0 8px}
.ma-product-info .ma-script{font-size:29px!important}
.ma-rating{font-size:13px;margin:16px 0 24px}
.ma-feature-icons{padding:18px 0;margin-bottom:22px}
.ma-feature-icons div{font-size:11px}
.ma-buybox{
  padding:24px;
  border-radius:20px;
  box-shadow:0 14px 42px rgba(16,43,76,.08);
}
.ma-variation-title{font-size:13px;margin:14px 0 9px}
.ma-choice{padding:14px 10px;font-size:12px;min-height:72px}
.ma-buybox .price,
.ma-buybox .macs-price-note{font-size:28px!important;display:block;margin:20px 0 12px}
.ma-product-tabs{margin-top:42px}
.ma-section-nav{padding:0 24px;gap:36px}
.ma-section-nav a{font-size:13px;padding:18px 0}
.ma-course-body{
  grid-template-columns:minmax(280px,.72fr) minmax(0,1.8fr);
  gap:40px;
  padding:30px;
}
.ma-course-body p{font-size:14px}
.ma-class-table{font-size:12px}
.ma-class-table th,.ma-class-table td{padding:14px 12px}
.ma-lower-grid{gap:22px;margin-top:22px}
.ma-lower-grid>div{padding:24px;min-height:250px}
.ma-lower-grid h3{font-size:25px;margin-top:0}
.ma-related{margin-top:24px;padding:26px}
.ma-related h3{font-size:27px;margin-top:0}
.ma-related .ma-product-grid{grid-template-columns:repeat(4,1fr)}
.ma-related .ma-product-card > img{
  height:150px!important;
  min-height:150px!important;
}

/* Woo native product content must not shrink our custom layout */
.woocommerce div.product .ma-product-hero div.images,
.woocommerce div.product .ma-product-hero div.summary{
  width:auto!important;
  float:none!important;
}
.woocommerce div.product img{box-shadow:none}

/* FOOTER — actual GP footer, full width with proper breathing room */
.site-footer{margin-top:0}
.footer-widgets .inside-footer-widgets{padding-top:54px;padding-bottom:54px}
.site-info .inside-site-info{min-height:58px;display:flex;align-items:center;justify-content:center}

/* desktop large */
@media(min-width:1500px){
  :root{--ma-max:1420px}
  .ma-home-hero > .ma-shell{grid-template-columns:minmax(620px,.92fr) minmax(720px,1.08fr)}
  .ma-hero-copy h1{font-size:80px}
  .ma-gallery-main{height:580px!important;min-height:580px!important}
}

/* tablet */
@media(max-width:1100px){
  .ma-home-hero > .ma-shell{grid-template-columns:1fr 1fr}
  .ma-hero-copy h1{font-size:56px}
  .ma-product-grid{grid-template-columns:repeat(3,1fr)}
  .ma-product-hero{grid-template-columns:1fr 1fr;gap:28px}
  .ma-gallery-main{height:430px!important;min-height:430px!important}
  .ma-product-info h1{font-size:44px}
  .ma-related .ma-product-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:820px){
  .ma-home-hero > .ma-shell{
    padding-left:20px!important;padding-right:20px!important;
    grid-template-columns:1fr;
  }
  .ma-home-hero .ma-hero-copy{padding:48px 0 30px}
  .ma-hero-copy h1{font-size:48px}
  .ma-home-hero .ma-hero-media{min-height:52vh}
  .ma-archive-hero .ma-shell{padding-left:20px!important;padding-right:20px!important;grid-template-columns:1fr}
  .ma-archive-hero .visual{height:280px}
  .ma-product-hero{grid-template-columns:1fr}
  .ma-gallery-main{height:420px!important;min-height:420px!important}
  .ma-product-grid{grid-template-columns:repeat(2,1fr)}
  .ma-course-body{grid-template-columns:1fr}
  .ma-related .ma-product-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:560px){
  .ma-hero-copy h1{font-size:41px}
  .ma-title{font-size:38px}
  .ma-product-grid{grid-template-columns:1fr}
  .ma-gallery-main{height:330px!important;min-height:330px!important}
  .ma-product-info h1{font-size:39px}
  .ma-related .ma-product-grid{grid-template-columns:1fr}
}
