/*
Theme Name: Eduma Child (gavaa.mn)
Template: eduma
Version: 1.1.8
Text Domain: eduma-child
*/

/* ===== gavaa.mn — нүүр хуудас ===== */
:root {
  --g-green: #1F6F43;
  --g-green-dark: #155233;
  --g-gold: #F2B33D;
  --g-ink: #1d2026;
  --g-text: #3d4350;
  --g-muted: #6b7280;
  --g-bg: #f5f7f6;
  --g-radius: 12px;
}

/* Нүүр хуудсанд Eduma-гийн гарчгийн хэсгийг нуух, контейнерийг бүтэн өргөн болгох */
.home .top_site_main,
.home .breadcrumbs-wrapper { display: none !important; }
.home #main-home-content.container { width: 100%; max-width: none; padding: 0; }

.gavaa-home, .gavaa-home * { box-sizing: border-box; }
.gavaa-home { overflow-x: hidden; color: var(--g-text); font-size: 16px; line-height: 1.6; }
.gavaa-home h1, .gavaa-home h2, .gavaa-home h3 { color: var(--g-ink); margin: 0 0 .5em; text-transform: none; }
.gavaa-home p { margin: 0 0 1em; }
.g-wrap { max-width: 1170px; margin: 0 auto; padding: 0 20px; }
.g-section { padding: 72px 0; }
.g-eyebrow { color: var(--g-gold); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 13px; margin-bottom: 10px !important; }
.g-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.g-head h2 { font-size: 30px; margin: 0; }
.g-head a { color: var(--g-green); font-weight: 600; white-space: nowrap; }
.g-sub { color: var(--g-muted); max-width: 760px; margin-top: -8px !important; margin-bottom: 24px !important; }

/* Товч */
.g-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.g-btn { display: inline-block; padding: 14px 26px; border-radius: 8px; font-weight: 700; text-decoration: none !important; transition: .15s; border: 2px solid transparent; line-height: 1.2; cursor: pointer; font-size: 16px; }
.g-btn-primary { background: var(--g-green); color: #fff !important; }
.g-btn-primary:hover { background: var(--g-green-dark); }
.g-btn-ghost { border-color: rgba(255,255,255,.7); color: #fff !important; }
.g-btn-ghost:hover { background: rgba(255,255,255,.12); }

/* Hero */
.g-hero { position: relative; background: #17251d; color: #fff; overflow: hidden; }
.g-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.g-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,28,20,.92) 0%, rgba(14,28,20,.75) 38%, rgba(14,28,20,0) 62%); }
.g-hero-text { position: relative; z-index: 1; padding-top: 170px; padding-bottom: 110px; }
.g-hero-text > * { max-width: 500px; }
.g-hero h1 { color: #fff; font-size: 44px; line-height: 1.15; }
.g-lead { font-size: 18px; color: rgba(255,255,255,.88); }

/* Итгэл төрүүлэх мөр */
.g-trust { background: var(--g-green); color: #fff; }
.g-trust-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 22px; padding-bottom: 22px; text-align: center; }
.g-trust b { display: block; font-size: 24px; color: #fff; }
.g-trust span { font-size: 14px; opacity: .85; }

/* Картууд */
.g-grid { display: grid; gap: 24px; }
.g-grid-3 { grid-template-columns: repeat(3, 1fr); }
.g-grid-6 { grid-template-columns: repeat(3, 1fr); gap: 18px; }
.g-card { display: block; background: #fff; border: 1px solid #e6e8ea; border-radius: var(--g-radius); overflow: hidden; color: inherit !important; text-decoration: none !important; transition: .15s; }
a.g-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.g-card-img { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #eef1ef; }
.g-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-card.is-soon .g-card-img img { filter: grayscale(.35); opacity: .75; }
.g-card-body { padding: 16px 18px 18px; }
.g-card-body h3 { font-size: 19px; margin-bottom: 6px; }
.g-meta { color: var(--g-muted); font-size: 14px; margin-bottom: 8px !important; }
.g-price { color: var(--g-green); font-weight: 800; font-size: 20px; margin: 0 !important; }
.g-badge { position: absolute; top: 12px; left: 12px; background: rgba(29,32,38,.85); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
.g-badge-new { background: var(--g-gold); color: var(--g-ink); }
.g-card.is-featured { border-color: var(--g-green); }

/* Teams */
.g-teams { background: var(--g-ink); color: #fff; }
.g-teams h2 { color: #fff; font-size: 32px; }
.g-list { list-style: none; padding: 0; margin: 0 0 18px; }
.g-list li { padding-left: 26px; position: relative; margin-bottom: 8px; color: rgba(255,255,255,.9); }
.g-list li::before { content: "✓"; position: absolute; left: 0; color: var(--g-gold); font-weight: 700; }
.g-price-big { font-size: 34px; font-weight: 800; color: var(--g-gold); }
.g-price-big small { display: block; font-size: 14px; font-weight: 400; color: rgba(255,255,255,.7); }

/* Teams: баруун талын мэдээллийн карт */
.g-split-2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.g-facts { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.g-facts span { display: block; font-size: 13px; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .05em; }
.g-facts b { font-size: 20px; color: #fff; }
.g-facts p { grid-column: 1 / -1; margin: 0 !important; font-size: 14px; color: rgba(255,255,255,.75); border-top: 1px solid rgba(255,255,255,.14); padding-top: 16px; }

/* Загварууд */
.g-tpl { display: block; border-radius: 10px; overflow: hidden; border: 1px solid #e6e8ea; aspect-ratio: 4/3; }
.g-tpl img { width: 100%; height: 100%; object-fit: cover; display: block; transition: .2s; }
.g-tpl:hover img { transform: scale(1.04); }

/* Багш */
.g-about { background: var(--g-bg); }
.g-split-img { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: center; }
.g-about-img { width: 100%; border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
.g-about h2 { font-size: 30px; }

/* Бонус */
.g-bonus-box { max-width: 1130px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; background: #fff; border: 2px solid var(--g-green); border-radius: 16px; padding: 40px; }
.g-bonus h2 { font-size: 28px; }
.g-form { display: grid; gap: 12px; }
.g-form input[type=text], .g-form input[type=email] { width: 100%; padding: 13px 14px; border: 1px solid #cfd5d2; border-radius: 8px; font-size: 16px; margin: 0; }
.g-form .g-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.g-form-msg { margin: 0 !important; font-weight: 600; }
.g-form-msg.is-ok { color: var(--g-green); }
.g-form-msg.is-email, .g-form-msg.is-wait, .g-form-msg.is-err { color: #b42318; }

/* Таблет */
@media (max-width: 991px) {
  .g-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .g-grid-6 { grid-template-columns: repeat(3, 1fr); }
  .g-hero h1 { font-size: 36px; }
  .g-split-2 { grid-template-columns: 1fr; gap: 28px; }
}
/* Утас */
@media (max-width: 767px) {
  .g-section { padding: 48px 0; }
  .g-hero-bg { position: relative; height: auto; aspect-ratio: 1/1; object-position: center 20%; }
  .g-hero::after { display: none; }
  .g-hero-text { padding-top: 28px; padding-bottom: 36px; background: #17251d; }
  .g-hero h1 { font-size: 28px; }
  .g-lead { font-size: 16px; }
  .g-btns .g-btn { flex: 1 1 100%; text-align: center; }
  .g-trust-row { grid-template-columns: repeat(2, 1fr); }
  .g-grid-3 { grid-template-columns: 1fr; }
  .g-grid-6 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .g-grid-6 .g-tpl:nth-child(n+5) { display: none; } /* утсан дээр 4 загвар */
  .g-facts { padding: 20px; }
  .g-head { flex-direction: column; gap: 4px; }
  .g-split-img { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .g-about-img { max-width: 200px; margin: 0 auto; }
  .g-bonus-box { grid-template-columns: 1fr; padding: 24px; gap: 20px; }
}

/* ===== Сагсны дүрс (header цэс) ===== */
.gavaa-cart-item { display: flex; align-items: center; }
.gavaa-cart-link { position: relative; display: inline-flex; align-items: center; padding: 6px 4px !important; color: inherit !important; }
.gavaa-cart-count { position: absolute; top: -4px; right: -10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #F2B33D; color: #1d2026; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
.gavaa-cart-count.is-empty { display: none; }

/* ===== Сургалтын «Сагсанд хийх» товчны бичиг цагаан ===== */
.lp-course-buttons .lp-button, .lp-course-buttons button, .course-buttons .lp-button,
.lp-course-buttons a.button, form.purchase-course button, .wc-forward,
.learn-press-woo-payment button, button.lp-button, a.lp-button { color: #fff !important; }

/* ===== WooCommerce товчнууд: цагаан бичиг ===== */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce a.checkout-button, .woocommerce #place_order, .woocommerce .wc-proceed-to-checkout a,
.wc-block-components-button:not(.is-link) .wc-block-components-button__text { color: #fff !important; }
.woocommerce a.checkout-button, .woocommerce #place_order { background: #1F6F43 !important; font-weight: 700; font-size: 16px; }

/* ===== Сагс, төлбөрийн хуудас: том, цэвэрхэн ===== */
.woocommerce-cart .top_site_main, .woocommerce-checkout .top_site_main { padding-top: 110px !important; padding-bottom: 30px !important; min-height: 0 !important; }
.woocommerce-cart .top_site_main h1, .woocommerce-checkout .top_site_main h1 { font-size: 34px !important; }
.woocommerce-cart table.shop_table { font-size: 17px; }
.woocommerce-cart table.shop_table th { font-size: 15px; text-transform: none; }
.woocommerce-cart table.shop_table td.product-name a { font-size: 18px; font-weight: 700; color: #1d2026; }
.woocommerce-cart table.shop_table td.product-thumbnail img { width: 140px !important; max-width: 140px; border-radius: 8px; }
.woocommerce-cart .cart_totals h2 { font-size: 24px; }
.woocommerce-cart .cart_totals table { font-size: 17px; }
.woocommerce-cart .cart_totals .order-total .amount { font-size: 26px; color: #1F6F43; }
.woocommerce a.checkout-button { display: flex !important; align-items: center; justify-content: center; height: auto !important; min-height: 56px; line-height: 1.2 !important; padding: 14px 18px !important; font-size: 18px !important; }
/* Тоо ширхэг өөрчлөх шаардлагагүй (бүтээгдэхүүн бүр 1 ширхэг) */
.woocommerce-cart td.product-quantity, .woocommerce-cart th.product-quantity,
.woocommerce-cart button[name="update_cart"] { display: none !important; }
/* Header сагсны дүрс томруулах */
.gavaa-cart-link svg { width: 26px; height: 26px; }
@media (max-width: 767px) {
  .woocommerce-cart table.shop_table td.product-thumbnail img { width: 90px !important; }
  .woocommerce-cart .top_site_main, .woocommerce-checkout .top_site_main { padding-top: 90px !important; }
}

/* Сагсны зураг: тайралгүй, бүтэн харагдана */
.woocommerce-cart table.shop_table td.product-thumbnail img { height: auto !important; aspect-ratio: auto; object-fit: contain; }
/* Дансаар төлөх үеийн гүйлгээний утга */
.gavaa-ref { background: #fff8e6; border: 2px solid #F2B33D; border-radius: 12px; padding: 18px 22px; margin: 0 0 24px; font-size: 17px; }
.gavaa-ref b { font-size: 28px; color: #1d2026; letter-spacing: .04em; }

/* Тест ашиглахгүй тул «Тэнцэх оноо»-г нууна (зөвхөн явцын хувь харагдана) */
.course-progress .course-progress__label ~ .course-progress__label { display: none !important; }

/* Хичээлийн доорх асуултын «Илгээх» товч */
#respond input#submit, #respond .form-submit input[type=submit], .comment-form input[type=submit] { color: #fff !important; background: #1F6F43 !important; border: 0; font-weight: 700; padding: 12px 28px; cursor: pointer; }
#respond input#submit:hover { background: #155233 !important; }
