/* GoatIndia 2026 design layer — used with the Elementor templates in this folder.
   Installed on the site as a WPCode CSS snippet ("GoatIndia 2026 design CSS").
   Brand: green #123B24 / #1B4D2E, accent orange #F58220, button orange #B35500 (white text passes 4.5:1). */
/* DM Serif Display + Inter = 2026 design. Poppins + Merriweather = fonts used inside the existing page designs (previously loaded by the old header). */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Inter:wght@400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&family=Merriweather:wght@400;700&display=swap');

body { background: #FAF7F0; font-family: 'Inter', system-ui, sans-serif; color: #1F2421; }

/* Accent words inside headings */
.gi-accent { color: #F58220; }

/* Eyebrow labels */
.gi-eyebrow .elementor-heading-title { letter-spacing: 1.2px; text-transform: uppercase; }

/* Cards */
.gi-card { background: #fff; border: 1px solid #E6E1D6; border-radius: 14px; overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.gi-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(18,59,36,.12); }

/* Breed cards (Image Box) */
.gi-breed-card .elementor-image-box-img { width: 100% !important; margin: 0 !important; }
.gi-breed-card .elementor-image-box-img img { width: 100%; height: 150px; object-fit: cover; display: block; border-radius: 0; }
.gi-breed-card .elementor-image-box-content { padding: 14px 52px 16px 16px; position: relative; }
.gi-breed-card .elementor-image-box-content::after { content: "→"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; background: #1B4D2E; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.gi-breed-card .elementor-image-box-title { margin: 0 0 3px !important; }
.gi-breed-card .elementor-image-box-description { margin: 0; }

/* Trust strip + step + calculator tiles (Icon Box) */
.gi-trust-item .elementor-icon { background: #EEF4EE; border-radius: 50%; padding: 12px; }
.gi-trust-item .elementor-icon-box-title { margin: 0 !important; }
.gi-step, .gi-calc-tile { padding: 18px 14px; text-align: center; }
.gi-step .elementor-icon { background: #FDEBDC; color: #B35500 !important; border-radius: 50%; padding: 12px; }
.gi-step .elementor-icon i, .gi-step .elementor-icon svg { color: #B35500; fill: #B35500; }
.gi-calc-tile { border-color: #D6E3D7; min-height: 120px; display: flex; align-items: center; justify-content: center; }
.gi-calc-tile .elementor-icon-box-description:empty { display: none; }

/* Steps image */
.gi-steps-media { align-self: stretch; }
.gi-steps-img img { height: 100% !important; min-height: 300px; object-fit: cover; }

/* Products */
.gi-prod-card { align-items: stretch; }
.gi-prod-img img { width: 130px; height: 170px; object-fit: cover; border-radius: 10px; background: #F1EEE4; }
.gi-badge .elementor-heading-title { display: inline-block; background: #FDEBDC; padding: 3px 9px; border-radius: 999px; }
.gi-price { margin-top: auto; }

/* Keep Elementor button widgets clean even where older page CSS also styles .gi-btn (e.g. Articles hub) */
.elementor-widget-button.gi-btn { background: transparent !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; }

/* Buttons: guarantee 44px touch targets */
.gi-btn .elementor-button { min-height: 44px; display: inline-flex; align-items: center; }

/* FAQ toggle */
.gi-faq .elementor-toggle-item { background: #fff; border: 1px solid #E6E1D6; border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.gi-faq .elementor-tab-title { padding: 14px 16px !important; border: 0 !important; }
.gi-faq .elementor-tab-content { border: 0 !important; padding: 0 16px 16px !important; }
.gi-more-faqs a { color: #B35500; font-weight: 700; text-decoration: none; }

/* Latest articles shortcode [gi_latest_posts_cards] */
.gi-lp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.gi-lp-card { display: block; background: #fff; border: 1px solid #E6E1D6; border-radius: 14px; overflow: hidden; text-decoration: none; color: #1F2421; transition: transform .15s ease, box-shadow .15s ease; }
.gi-lp-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(18,59,36,.12); }
.gi-lp-media { display: block; height: 150px; background-size: cover; background-position: center; position: relative; }
.gi-lp-chip { position: absolute; left: 12px; top: 12px; background: #fff; color: #123B24; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.gi-lp-body { display: block; padding: 14px 16px 16px; }
.gi-lp-title { display: block; font-weight: 700; font-size: 16px; line-height: 1.35; color: #123B24; margin-bottom: 8px; }
.gi-lp-date { display: block; font-size: 13px; color: #57605A; }

/* Header */
.gi-mainbar { position: relative; z-index: 50; }
.gi-nav .hfe-nav-menu .sub-menu { border-radius: 10px; box-shadow: 0 10px 28px rgba(18,59,36,.14); }
.gi-topbar-text p { margin: 0; }
.gi-topbar a, .gi-footer a, .gi-footer-bar a { text-decoration: none; }

/* Footer */
.gi-foot-links .elementor-icon-list-icon { display: none; }
.gi-foot-links a:hover, .gi-legal a:hover { color: #fff !important; }
.gi-copy p, .gi-copy .hfe-copyright-wrapper { margin: 0; color: #D7E3D9; font-size: 13px; }

/* ===== Inner pages: breed layout (display-time template "gi2") ===== */
.gi2-breed { background: #FAF7F0; }
.gi2-bhero { background: #FAF7F0; border-bottom: 1px solid #E6E1D6; }
.gi2-bhero-in { max-width: 1180px; margin: 0 auto; padding: 22px 24px 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: end; }
.gi2-bhero-copy { padding-bottom: 34px; }
.gi2-crumb { font-size: 13px; color: #57605A; margin-bottom: 22px; }
.gi2-crumb a { color: #57605A !important; }
.gi2-crumb a:hover { color: #1B4D2E !important; }
.gi2-crumb span[style] { color: #1F2421 !important; }
.gi2-h1 { font-family: 'Poppins', 'Inter', sans-serif !important; font-weight: 800 !important; font-size: 46px !important; line-height: 1.08 !important; color: #123B24 !important; margin: 0 0 12px !important; }
.gi2-intro { font-size: 17px; line-height: 1.6; color: #3B423E; margin: 0 0 16px; max-width: 560px; }
.gi2-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gi2-chips span { background: #fff; border: 1px solid #E6E1D6; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; color: #1B4D2E; }
.gi2-bhero-img img { display: block; width: 100%; height: 340px; object-fit: cover; border-radius: 18px 18px 0 0; }
.gi2-tabs { background: #fff; border-bottom: 1px solid #E6E1D6; position: sticky; top: 0; z-index: 20; }
.gi2-tabs-in { max-width: 1180px; margin: 0 auto; padding: 10px 24px; display: flex; gap: 8px; overflow-x: auto; }
.gi2-tabs a { flex: none; padding: 9px 16px; border-radius: 9px; border: 1px solid #E6E1D6; color: #1F2421 !important; font-weight: 600; font-size: 14px; text-decoration: none; }
.gi2-tabs a.is-active, .gi2-tabs a:hover { background: #1B4D2E; border-color: #1B4D2E; color: #fff !important; }
.gi2-bbody { max-width: 1180px; margin: 0 auto; padding: 36px 24px 24px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; align-items: start; }
.gi2-bmain > section { scroll-margin-top: 80px; }
[id^="gi2-"] { scroll-margin-top: 80px; }
.gi2-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 20px 0; }
.gi2-gallery img { width: 100%; height: 170px; object-fit: cover; border-radius: 12px; display: block; }
.gi2-benefits { background: #EEF4EE; border-radius: 14px; padding: 20px 22px; margin: 8px 0 24px; }
.gi2-benefits h3 { margin: 0 0 12px; font-family: 'Poppins', sans-serif; font-size: 19px; color: #123B24; }
.gi2-benefits ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px 22px; }
.gi2-benefits li { position: relative; padding-left: 28px; font-size: 15px; line-height: 1.45; color: #1F2421; }
.gi2-benefits li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #1B4D2E url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.gi2-baside { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 76px; }
.gi2-glance { background: #fff; border: 1px solid #E6E1D6; border-radius: 16px; padding: 20px 22px; }
.gi2-glance h2 { margin: 0 0 12px !important; font-family: 'Poppins', sans-serif !important; font-size: 18px !important; color: #123B24 !important; }
.gi2-glance dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0; font-size: 14px; }
.gi2-glance dt { color: #57605A; padding: 9px 12px 9px 0; border-bottom: 1px solid #F1EEE4; }
.gi2-glance dd { margin: 0; padding: 9px 0; font-weight: 700; text-align: right; color: #1F2421; border-bottom: 1px solid #F1EEE4; }
.gi2-btn { display: flex !important; justify-content: center; align-items: center; margin-top: 16px; min-height: 44px; background: #B35500; color: #fff !important; font-weight: 700; border-radius: 10px; text-decoration: none; }
.gi2-btn:hover { background: #934600; }
@media (max-width: 960px) {
  .gi2-bhero-in { grid-template-columns: minmax(0, 1fr); }
  .gi2-bhero-copy { padding-bottom: 0; }
  .gi2-bhero-img img { height: 240px; border-radius: 16px; margin-bottom: 20px; }
  .gi2-bbody { grid-template-columns: minmax(0, 1fr); }
  .gi2-bmain, .gi2-baside { min-width: 0; max-width: 100%; }
  .gi2-bmain table { display: block; max-width: 100%; overflow-x: auto; }
  .gi2-baside { position: static; }
  .gi2-h1 { font-size: 34px !important; }
}

/* ===== Inner pages: article layout ===== */
.gi2-post { background: #FAF7F0; }
.gi2-phead { background: #FAF7F0; }
.gi2-phead-in { max-width: 1180px; margin: 0 auto; padding: 22px 24px 8px; }
.gi2-cat { display: inline-block; background: #1B4D2E; color: #fff; font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px; margin-bottom: 12px; }
.gi2-post .gi2-h1 { max-width: 900px; font-size: 42px !important; }
.gi2-pmeta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 4px; font-size: 14px; color: #57605A; max-width: 900px; }
.gi2-pmeta-l { display: flex; flex-wrap: wrap; gap: 16px; }
.gi2-review { color: #8A3F00; font-weight: 600; }
.gi2-pmeta-r { display: flex; align-items: center; gap: 8px; }
.gi2-share { width: 36px; height: 36px; border-radius: 50%; display: inline-flex !important; align-items: center; justify-content: center; color: #fff !important; }
.gi2-pwrap { max-width: 1180px; margin: 0 auto; padding: 18px 24px 40px; }
.gi2-pimg { display: block; width: 100%; max-width: 900px; height: 400px; object-fit: cover; border-radius: 16px; margin: 0 0 22px; }
.gi2-pintro { max-width: 852px; background: #EEF4EE; border-radius: 12px; padding: 16px 24px; font-size: 16px; line-height: 1.65; color: #1F2421; margin-bottom: 30px; }
.gi2-pgrid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 36px; align-items: start; }
.gi2-toc { position: sticky; top: 20px; background: #fff; border: 1px solid #E6E1D6; border-radius: 14px; padding: 18px 20px; }
.gi2-toc-h { font-weight: 700; color: #123B24; margin-bottom: 10px; }
.gi2-toc ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.gi2-toc a { color: #1F2421 !important; }
.gi2-toc a:hover { color: #B35500 !important; }
.gi2-pbody { min-width: 0; max-width: 780px; }
.gi2-pbody h2 { scroll-margin-top: 24px; font-family: 'Poppins', 'Inter', sans-serif !important; font-weight: 700 !important; color: #123B24 !important; }
.gi2-pgrid > aside > div:has(.gi-toc) { display: none !important; }
.gi2-pgrid > aside { grid-column: 1 / -1; position: static !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 12px; align-items: start; }
@media (max-width: 960px) {
  .gi2-pgrid { grid-template-columns: 1fr; }
  .gi2-toc { position: static; }
  .gi2-pimg { height: 240px; }
  .gi2-post .gi2-h1 { font-size: 30px !important; }
}

.gi2-pbody table { display: block; max-width: 100%; overflow-x: auto; }
.gi2-pbody img { max-width: 100%; height: auto; }

/* ===== Inner pages: calculators (CSS-only restyle; calculator code untouched) ===== */
:is(#gi-calc-cost, #gi-calc-emi, #gi-calc-feed, #gi-calc-nlm, #gi-calc-via, #gi-rpt) { background: #FAF7F0; }
:is(#gi-calc-cost, #gi-calc-emi, #gi-calc-feed, #gi-calc-nlm, #gi-calc-via, #gi-rpt) .gi-hero {
  background: linear-gradient(90deg, rgba(18,59,36,.97) 0%, rgba(18,59,36,.9) 58%, rgba(18,59,36,.25) 100%), url('https://goatindia.com/wp-content/uploads/2026/07/goatindia-business-planning-hero.webp') center right / cover no-repeat !important;
  border-radius: 18px !important; box-shadow: none !important; position: relative; padding-left: 112px !important;
}
:is(#gi-calc-cost, #gi-calc-emi, #gi-calc-feed, #gi-calc-nlm, #gi-calc-via, #gi-rpt) .gi-hero::before {
  content: ""; position: absolute; left: 30px; top: 50%; transform: translateY(-50%); width: 62px; height: 62px; border-radius: 14px;
  background: rgba(255,255,255,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='16' height='20' x='4' y='2' rx='2'/%3E%3Cline x1='8' x2='16' y1='6' y2='6'/%3E%3Cpath d='M16 14v4M8 10h.01M12 10h.01M16 10h.01M8 14h.01M12 14h.01M8 18h.01M12 18h.01'/%3E%3C/svg%3E") center / 32px no-repeat;
}
:is(#gi-calc-cost, #gi-calc-emi, #gi-calc-feed, #gi-calc-nlm, #gi-calc-via, #gi-rpt) .gi-eyebrow { background: rgba(245,130,32,.22) !important; color: #FFE3C8 !important; }
:is(#gi-calc-cost, #gi-calc-emi, #gi-calc-feed, #gi-calc-nlm, #gi-calc-via, #gi-rpt) .gi-card { border-color: #E6E1D6 !important; }
:is(#gi-calc-cost, #gi-calc-emi, #gi-calc-feed, #gi-calc-nlm, #gi-calc-via, #gi-rpt) .gi-card h2 { color: #123B24 !important; }
:is(#gi-calc-cost, #gi-calc-emi, #gi-calc-feed, #gi-calc-nlm, #gi-calc-via, #gi-rpt) .gi-res { background: #123B24 !important; }
:is(#gi-calc-cost, #gi-calc-emi, #gi-calc-feed, #gi-calc-nlm, #gi-calc-via, #gi-rpt) input:focus,
:is(#gi-calc-cost, #gi-calc-emi, #gi-calc-feed, #gi-calc-nlm, #gi-calc-via, #gi-rpt) select:focus { outline: 2px solid #B35500 !important; outline-offset: 1px; border-color: #B35500 !important; }
:is(#gi-calc-cost, #gi-calc-emi, #gi-calc-feed, #gi-calc-nlm, #gi-calc-via, #gi-rpt) table { display: block; max-width: 100%; overflow-x: auto; }
@media (max-width: 960px) {
  :is(#gi-calc-cost, #gi-calc-emi, #gi-calc-feed, #gi-calc-nlm, #gi-calc-via, #gi-rpt) .gi-grid { grid-template-columns: minmax(0, 1fr) !important; }
  :is(#gi-calc-cost, #gi-calc-emi, #gi-calc-feed, #gi-calc-nlm, #gi-calc-via, #gi-rpt) .gi-grid > *,
  :is(#gi-calc-cost, #gi-calc-emi, #gi-calc-feed, #gi-calc-nlm, #gi-calc-via, #gi-rpt) .gi-frow > * { min-width: 0; }
  :is(#gi-calc-cost, #gi-calc-emi, #gi-calc-feed, #gi-calc-nlm, #gi-calc-via, #gi-rpt) label { white-space: normal !important; }
  :is(#gi-calc-cost, #gi-calc-emi, #gi-calc-feed, #gi-calc-nlm, #gi-calc-via, #gi-rpt) input,
  :is(#gi-calc-cost, #gi-calc-emi, #gi-calc-feed, #gi-calc-nlm, #gi-calc-via, #gi-rpt) select { max-width: 100%; min-width: 0; }
}
@media (max-width: 640px) {
  :is(#gi-calc-cost, #gi-calc-emi, #gi-calc-feed, #gi-calc-nlm, #gi-calc-via, #gi-rpt) .gi-frow { grid-template-columns: minmax(0, 1fr) !important; }
  :is(#gi-calc-cost, #gi-calc-emi, #gi-calc-feed, #gi-calc-nlm, #gi-calc-via, #gi-rpt) .gi-hero { padding-left: 26px !important; padding-top: 96px !important; }
  :is(#gi-calc-cost, #gi-calc-emi, #gi-calc-feed, #gi-calc-nlm, #gi-calc-via, #gi-rpt) .gi-hero::before { top: 22px; left: 26px; transform: none; width: 54px; height: 54px; }
}

/* Pages built with width:100vw sections overflow by the scrollbar width; clip sideways overflow */
#gi-tp, #gi-contact, #gi-adv { overflow-x: clip; }
html, body { overflow-x: clip; }

/* ===== Inner pages: Training Programs hero (CSS restyle; directory app untouched) ===== */
#gi-tp > section:first-of-type { background: #FAF7F0 !important; min-height: 440px !important; }
#gi-tp > section:first-of-type > div:nth-child(1) { left: 50% !important; background: url('https://goatindia.com/wp-content/uploads/2026/07/goatindia-training-education-hero.webp') center / cover no-repeat; }
#gi-tp > section:first-of-type > div:nth-child(1) img { opacity: 0; }
#gi-tp > section:first-of-type > div:nth-child(2) { background: linear-gradient(90deg, #FAF7F0 0%, #FAF7F0 50%, rgba(250,247,240,.55) 62%, rgba(250,247,240,0) 80%) !important; }
#gi-tp > section:first-of-type .gi-crumb, #gi-tp > section:first-of-type .gi-crumb a { color: #57605A !important; }
#gi-tp > section:first-of-type .gi-crumb span[style*="color:#fff"] { color: #1F2421 !important; }
#gi-tp > section:first-of-type h1 { color: #123B24 !important; }
#gi-tp > section:first-of-type p { color: #3B423E !important; }
#gi-tp > section:first-of-type > div:nth-child(3) > span { background: #B35500 !important; }
#gi-tp > section:first-of-type > div:nth-child(3) > div:first-of-type { box-shadow: 0 10px 28px rgba(18,59,36,.12) !important; border: 1px solid #E6E1D6; max-width: 640px; }
#gi-tp > section:first-of-type .gi-select { border: 1px solid #CFC8B8 !important; }
@media (max-width: 960px) {
  #gi-tp > section:first-of-type > div:nth-child(1) { left: 0 !important; opacity: .18; }
}
@media (max-width: 640px) {
  #gi-tp > section:first-of-type > div:nth-child(3) > div:first-of-type { flex-wrap: wrap !important; padding: 8px !important; }
  #gi-tp > section:first-of-type > div:nth-child(3) > div:first-of-type > input { min-width: 0; flex: 1 1 60% !important; }
  #gi-tp > section:first-of-type > div:nth-child(3) > div:first-of-type > a { flex: 1 1 100%; text-align: center; }
  #gi-tp .gi-herofilters { grid-template-columns: minmax(0, 1fr) !important; }
}

/* Tablet and below: collapsed menu takes only its button's width; header row may wrap instead of overflowing */
@media (max-width: 1024px) {
  .gi-mainbar, .gi-mainbar > .e-con-inner { flex-wrap: nowrap !important; position: relative; }
  .gi-nav { flex: 0 0 auto !important; width: auto !important; order: 3; position: static !important; }
  .gi-nav .elementor-widget-container { position: static; }
  .gi-nav nav.hfe-nav-menu__layout-horizontal { position: absolute !important; left: 0; right: 0; top: 100%; width: 100% !important; z-index: 99; background: #fff; box-shadow: 0 10px 24px rgba(18,59,36,.12); }
  .gi-header-cta { margin-left: auto; }
  .gi-header-cta .elementor-button { padding: 10px 14px !important; }
}
@media (max-width: 420px) {
  .gi-header-cta .elementor-button-text { display: none; }
}

/* Phone width */
@media (max-width: 767px) {
  .gi-prod-card { flex-direction: column !important; }
  .gi-prod-img img { width: 100%; height: 200px; }
  .gi-steps-img img { min-height: 220px; }
  .gi-breed-card .elementor-image-box-img img { height: 130px; }
}
