/* ==========================================================================
   GARC – v2 layout components (home page + footer). Loaded after modern.css
   ========================================================================== */
.g-section { padding: clamp(56px, 8vw, 110px) 0; background: var(--m-bg); }
.g-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.g-head h2 { margin: 8px 0 0; }
.g-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--m-primary); background: var(--m-primary-soft); padding: 6px 14px; border-radius: 999px; margin-bottom: 12px;
}
.g-grid { display: grid; gap: 22px; }
.g-grid--4 { grid-template-columns: repeat(4, 1fr); }
.g-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 991px) { .g-grid--4 { grid-template-columns: repeat(2, 1fr); } .g-grid--3 { grid-template-columns: 1fr; } }
@media (max-width: 575px) { .g-grid--4 { grid-template-columns: 1fr; } }

/* Hero */
.g-hero {
  position: relative; overflow: visible; text-align: center; color: #fff;
  padding: clamp(64px, 9vw, 130px) 0 0;
  background:
    radial-gradient(700px 380px at 12% 8%, rgba(31, 157, 99, .55), transparent 60%),
    radial-gradient(640px 360px at 92% 20%, rgba(76, 195, 138, .35), transparent 60%),
    linear-gradient(180deg, #06231a 0%, #0d3b2a 100%);
}
.g-hero::before {
  content: ""; position: absolute; inset: 0; opacity: .25; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%);
}
.g-hero .container { position: relative; z-index: 1; }
.g-pill { display: inline-block; padding: 8px 18px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #e2e8f0; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); margin-bottom: 22px; }
.g-hero h1 { color: #fff; font-size: clamp(2.4rem, 6.4vw, 5rem); font-weight: 800; margin: 0 0 18px; line-height: 1.08; }
.g-hero h1 em { font-style: normal; background: linear-gradient(90deg, #7be3a8, #3ec28a, #1f9d63); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.g-hero__sub { color: #cbd5e1 !important; font-size: clamp(1rem, 2vw, 1.25rem); margin: 0 auto 30px; }
.g-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.g-cta--center { justify-content: center; margin-top: 0; }
.btn-glass { background: rgba(255,255,255,.1) !important; color: #fff !important; border: 1px solid rgba(255,255,255,.28) !important; box-shadow: none; }
.btn-glass:hover { background: rgba(255,255,255,.2) !important; color: #fff !important; }
.btn-outline-dark { background: #fff !important; color: var(--m-ink) !important; border: 1.5px solid var(--m-line) !important; box-shadow: none; }
.btn-outline-dark:hover { border-color: var(--m-primary) !important; color: var(--m-primary) !important; }
.btn-maincolor, .btn-primary, .btn-info, .btn-success { box-shadow: 0 12px 26px -10px rgba(31, 157, 99, .6); }
.g-hero__cards { margin-top: clamp(48px, 7vw, 84px); margin-bottom: -60px; text-align: left; position: relative; z-index: 2; }
.g-quick {
  display: block; padding: 22px; border-radius: 20px; background: #fff; color: var(--m-ink-2);
  box-shadow: var(--m-shadow); border: 1px solid var(--m-line); position: relative; overflow: hidden;
  transition: transform .3s var(--m-ease), box-shadow .3s var(--m-ease);
}
.g-quick::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--m-grad); }
.g-quick:hover { transform: translateY(-6px); box-shadow: var(--m-shadow-lg); color: var(--m-ink-2); }
.g-quick h6 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 700; color: var(--m-ink); }
.g-quick p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--m-muted) !important; }
.g-quick .btn { margin-top: 6px; }

/* Banner carousel */
.g-heroshow { background: var(--m-bg) !important; padding: 110px 0 40px; }
.g-heroshow .container-fluid { max-width: 1280px; margin: 0 auto; }
.g-heroshow .col-12 { background: transparent !important; padding: 0; }
.g-heroshow .carousel { border-radius: 28px; overflow: hidden; box-shadow: var(--m-shadow-lg); }
.g-heroshow .carousel-item { height: auto !important; aspect-ratio: 16 / 7; }
.g-heroshow .carousel-item .content, .g-heroshow .carousel-item img { height: 100% !important; object-fit: cover; }
@media (max-width: 991px) { .g-heroshow { padding-top: 60px; } .g-hero__cards { margin-bottom: 0; } }
@media (max-width: 767px) { .g-heroshow .carousel-item { aspect-ratio: 4 / 3; } .g-heroshow .carousel { border-radius: 18px; } .g-hero { padding-bottom: 28px; } }

/* About */
.g-about { background: #fff; }
.g-about .leaf, .g-about .icon-box, .g-about .scroll-icon { display: none !important; }
.g-about .img-shortcode { border-radius: 26px; overflow: hidden; box-shadow: var(--m-shadow-lg); }
.g-about .carousel img { width: 100%; display: block; }
.g-about__text h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); margin: 6px 0 24px; }
.g-about__text { padding-left: clamp(0px, 3vw, 48px); }
@media (max-width: 991px) { .g-about__text { padding: 36px 0 0; } }
.g-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.g-facts li { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 16px; background: var(--m-bg); border: 1px solid var(--m-line); }
.g-facts li > span { width: 46px; height: 46px; flex: none; display: grid; place-items: center; font-size: 22px; background: #fff; border-radius: 14px; box-shadow: var(--m-shadow-sm); }
.g-facts small { display: block; color: var(--m-muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.g-facts b { color: var(--m-ink); font-size: 1.05rem; }

/* Steps */
.g-steps { background: var(--m-bg); }
.g-step { position: relative; padding: 32px 28px; border-radius: 24px; background: #fff; border: 1px solid var(--m-line); box-shadow: var(--m-shadow-sm); overflow: hidden; transition: transform .3s var(--m-ease), box-shadow .3s var(--m-ease); }
.g-step:hover { transform: translateY(-8px); box-shadow: var(--m-shadow); }
.g-step__no { position: absolute; right: 18px; top: 6px; font-family: "Plus Jakarta Sans", sans-serif; font-size: 84px; font-weight: 800; line-height: 1; color: var(--m-primary-soft); }
.g-step h5 { position: relative; margin: 0 0 12px; }
.g-step p { position: relative; color: var(--m-muted); min-height: 52px; }
.g-step__link { position: relative; font-weight: 700; color: var(--m-primary); }
.g-step__link:hover { color: var(--m-primary-2); }

/* Explore */
.g-explore { background: #fff; }
.g-link-card { display: block; text-align: left; padding: 28px; border-radius: 22px; background: var(--m-bg); border: 1px solid var(--m-line); transition: all .3s var(--m-ease); }
.g-link-card:hover { background: var(--m-ink); transform: translateY(-6px); box-shadow: var(--m-shadow-lg); }
.g-link-card:hover h5 { color: #fff; }
.g-link-card__icon { display: grid; place-items: center; width: 54px; height: 54px; font-size: 26px; border-radius: 16px; background: #fff; box-shadow: var(--m-shadow-sm); margin-bottom: 40px; }
.g-link-card h5 { margin: 0 0 12px; }
.g-link-card__go { font-weight: 700; font-size: 14px; color: var(--m-primary); }
.g-link-card:hover .g-link-card__go { color: #3ec28a; }

/* Stats */
.g-stats { padding: clamp(56px, 7vw, 90px) 0; color: #fff; background: radial-gradient(600px 300px at 90% 0, rgba(76,195,138,.35), transparent 60%), linear-gradient(135deg, #0b4a32 0%, #1f9d63 100%); }
.g-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: center; }
.g-stat__num { margin: 0; font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; color: #fff; display: flex; justify-content: center; }
.g-stat__num .counter, .g-stat__num .counter-add { -webkit-text-fill-color: #fff; background: none; color: #fff; }
.g-stat__label { margin: 6px 0 0; color: #d6f5e5 !important; font-weight: 600; }
@media (max-width: 767px) { .g-stats__grid { grid-template-columns: repeat(2, 1fr); } }

/* Footer */
.g-footer { padding: clamp(44px, 6vw, 72px) 0 0 !important; border-top: 0 !important; background: #06231a !important; }
.g-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; }
.g-footer h6 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 16px; }
.g-footer__brand img { max-height: 54px; margin-bottom: 16px; }
.g-footer__brand p { max-width: 320px; }
.g-footer__links { list-style: none; padding: 0; margin: 0; display: grid !important; gap: 10px; justify-content: start !important; }
.g-footer__bar { margin-top: 44px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.1); text-align: center; }
.g-footer__bar p { margin: 0; font-size: 13px !important; color: #94a3b8 !important; }
@media (max-width: 767px) { .g-footer__grid { grid-template-columns: 1fr; text-align: center; } .g-footer__brand p { margin: 0 auto; } .g-footer__links { justify-content: center !important; } }

/* Header refresh */
.page_topline { padding: 4px 0; background: #06231a !important; }
.page_header { background: rgba(255,255,255,.97) !important; }
.g-heroshow .carousel-item { aspect-ratio: auto !important; }
.g-heroshow .carousel-item .content, .g-heroshow .carousel-item img { height: auto !important; object-fit: contain; width: 100%; display: block; }

/* ---- Fixes: legacy side-bar on ultra-wide screens + cropped banner ---- */
.page_topline.page_header_side_theme { position: relative !important; left: auto; top: auto; bottom: auto; width: 100%; z-index: 1001; }
.page_topline.page_header_side_theme .container-fluid {
  writing-mode: horizontal-tb !important; -ms-writing-mode: lr-tb !important; height: auto !important;
  padding: 0 24px !important; display: flex !important; flex-wrap: wrap; justify-content: flex-end;
}
.page_topline.page_header_side_theme .container-fluid > * { flex-basis: auto !important; }
.page_topline .meta-item { transform: none !important; display: inline-block; }
.toTopHeader#toTop, #toTop { left: auto !important; right: 24px !important; bottom: 24px !important; }
.page_header .container-fluid { padding-left: 24px !important; padding-right: 24px !important; }

.g-heroshow { margin-left: 0 !important; }
.g-heroshow .cover-image, .g-heroshow .content { position: relative !important; inset: auto !important; width: 100% !important; height: auto !important; display: block; }
.g-heroshow .carousel-item img { width: 100% !important; height: auto !important; max-height: none; object-fit: contain; }
.g-heroshow .carousel-item { height: auto !important; }
.g-about .carousel-item img { width: 100%; height: auto; object-fit: contain; }
.g-heroshow .carousel { background: #06231a; }
.g-heroshow .carousel-item { aspect-ratio: 3840 / 1760 !important; }
.g-heroshow .carousel-item .content, .g-heroshow .carousel-item img { height: 100% !important; }
.g-heroshow .carousel-item img { object-fit: contain; }
@media (max-width: 767px) { .g-heroshow .carousel-item { aspect-ratio: 3840 / 1760 !important; } }
/* theme JS copies <img> into a CSS background (shown zoomed); show the real <img> instead */
.g-heroshow .cover-image, .g-heroshow .content { background-image: none !important; background: transparent !important; }
.g-heroshow .carousel-item img { opacity: 1 !important; visibility: visible !important; display: block !important; }
/* keep the overlapping hero cards above the next section */
.g-hero { position: relative; z-index: 5; overflow: visible !important; }
.g-heroshow { position: relative; z-index: 1; }

/* ==========================================================================
   Leaf theme restored
   ========================================================================== */
.g-hero, .g-steps { position: relative; }
.g-leaf { position: absolute; z-index: 0; pointer-events: none; max-width: 24vw; opacity: .9; animation: g-sway 7s ease-in-out infinite alternate; transform-origin: bottom center; }
.g-leaf--l { left: -2%; top: 14%; width: 340px; opacity: .55; }
.g-leaf--r { right: -2%; top: 6%; width: 320px; opacity: .55; animation-delay: -3s; }
.g-leaf--steps { right: 2%; top: -40px; width: 260px; }
@keyframes g-sway { from { transform: rotate(-3deg) translateY(0); } to { transform: rotate(3deg) translateY(-10px); } }
@media (max-width: 767px) { .g-leaf--l, .g-leaf--r { width: 150px; opacity: .35; } .g-leaf--steps { width: 130px; } }
.g-hero .container { z-index: 2; }
.g-steps .container { position: relative; z-index: 1; }
.g-about .leaf { display: block !important; }
.g-about .leaf-wrap, .g-about .img-shortcode { overflow: visible; }
.g-about .img-shortcode .carousel { border-radius: 26px; overflow: hidden; box-shadow: var(--m-shadow-lg); }
.g-about .img-shortcode { box-shadow: none; }
.g-about .icon-box { display: none !important; }

/* Stats – old rotating-text counters on leaf-green band */
.g-stats { position: relative; overflow: hidden; }
.g-stats .container { position: relative; z-index: 1; }
.g-stats .leaf { position: absolute; left: auto; right: 4%; bottom: 0; z-index: 0; opacity: .25; }
.g-stats .leaf img { transform: none !important; max-width: 300px; }
.g-stats .iq-rotate-text, .g-stats .iq-rotate-text div { color: rgba(255, 255, 255, .85) !important; }
.g-stats .counter, .g-stats .counter-add { -webkit-text-fill-color: #fff !important; color: #fff !important; background: none !important; font-weight: 800; }
.g-stats h5 { color: #fff; font-size: 1.15rem; }
.g-stats .small-text { color: #bfeed6 !important; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }

/* ==========================================================================
   Header: highlight the "..." more item
   ========================================================================== */
.sf-menu > li.sf-more-li > a {
  display: inline-grid; place-items: center; min-width: 46px; height: 38px; padding: 0 14px !important;
  font-size: 18px !important; font-weight: 800 !important; letter-spacing: .12em; line-height: 1;
  color: #fff !important; background: var(--m-grad) !important; border-radius: 999px;
  box-shadow: 0 8px 18px -6px rgba(31, 157, 99, .7); animation: g-pulse 2.4s ease-in-out infinite;
}
.sf-menu > li.sf-more-li > a:hover { filter: brightness(1.08); transform: translateY(-1px); }
@keyframes g-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(31, 157, 99, .45), 0 8px 18px -6px rgba(31, 157, 99, .7); } 50% { box-shadow: 0 0 0 9px rgba(31, 157, 99, 0), 0 8px 18px -6px rgba(31, 157, 99, .7); } }
.sf-more-li > ul { min-width: 260px; }

/* ==========================================================================
   Quick links (Isha Yoga, Hall of fame...) – left side rail on wide screens
   ========================================================================== */
.page_topline .meta-item a { position: relative; transition: color .25s, transform .25s; }
.page_topline .meta-item a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; border-radius: 2px; background: var(--m-grad); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--m-ease); }
.page_topline .meta-item a:hover::after { transform: scaleX(1); }

@media (min-width: 1680px) {
  .page_topline.page_header_side_theme {
    position: fixed !important; left: 0; top: 0; bottom: 0; width: 58px; z-index: 1001;
    background: linear-gradient(180deg, #06231a, #0d3b2a) !important; padding: 0; box-shadow: 6px 0 26px -12px rgba(0, 0, 0, .4);
  }
  .page_topline.page_header_side_theme::before { /* animated accent line */
    content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 3px;
    background: linear-gradient(180deg, transparent, var(--m-primary-2), #7be3a8, transparent); background-size: 100% 300%;
    animation: g-rail 5s linear infinite;
  }
  @keyframes g-rail { from { background-position: 0 0; } to { background-position: 0 300%; } }
  .page_topline.page_header_side_theme .container-fluid {
    writing-mode: vertical-rl !important; -ms-writing-mode: tb-rl !important; height: 100% !important;
    padding: 150px 0 30px !important; display: flex !important; flex-wrap: nowrap; justify-content: center; align-items: center; gap: 8px;
  }
  .page_topline.page_header_side_theme .container-fluid > div { padding: 0 !important; }
  .page_topline .meta-item { transform: rotate(180deg) !important; }
  .page_topline .meta-item a {
    display: block; padding: 18px 10px !important; border-radius: 12px; font-size: 13.5px; font-weight: 600; letter-spacing: .06em;
    color: #cdeedd !important; animation: g-rail-in .7s var(--m-ease) both;
  }
  .page_topline .container-fluid > div:nth-child(2) .meta-item a { animation-delay: .1s; }
  .page_topline .container-fluid > div:nth-child(3) .meta-item a { animation-delay: .2s; }
  .page_topline .container-fluid > div:nth-child(4) .meta-item a { animation-delay: .3s; }
  @keyframes g-rail-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  .page_topline .meta-item a:hover { background: rgba(255, 255, 255, .1); color: #fff !important; padding-bottom: 26px !important; }
  .page_topline .meta-item a::after { left: auto; right: 4px; top: 12px; bottom: 12px; width: 3px; height: auto; transform: scaleY(0); transform-origin: top; }
  .page_topline .meta-item a:hover::after { transform: scaleY(1); }
  .page_topline .meta-item a::before { content: ""; position: absolute; left: 50%; top: 4px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--m-primary-2); animation: g-dot 2s ease-in-out infinite; }
  @keyframes g-dot { 0%, 100% { opacity: .35; transform: scale(1); } 50% { opacity: 1; transform: scale(1.6); } }
  #box_wrapper { padding-left: 58px; }
  .page_header { left: 58px !important; width: auto !important; }
  .page_header .container-fluid { padding-left: 24px !important; }
}
.g-hero, .g-steps, .g-about, .g-stats, .g-heroshow { overflow-x: clip !important; }
@media (min-width: 1680px) { .page_header { right: 0 !important; } }

/* ---- Header dropdowns: no hover gap, bigger hit area ---- */
.sf-menu ul { margin-top: 0 !important; top: 100% !important; }
.sf-menu > li { position: relative; }
.sf-menu > li > a { padding-top: 14px !important; padding-bottom: 14px !important; cursor: pointer; }
.sf-menu > li > ul::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.sf-menu > li:hover > ul, .sf-menu > li:focus-within > ul { display: block !important; opacity: 1 !important; visibility: visible !important; }
.sf-menu ul li a { padding: 12px 16px !important; }
.sf-menu ul { z-index: 1100; }
.page_header, .page_header .container-fluid, .page_header .row, .top-nav { overflow: visible !important; }

/* ---- Side rail: bigger text ---- */
@media (min-width: 1680px) {
  .page_topline.page_header_side_theme { width: 72px; }
  .page_topline .meta-item a { font-size: 17px !important; padding: 22px 14px !important; letter-spacing: .05em; }
  #box_wrapper { padding-left: 72px; }
  .page_header { left: 72px !important; }
}

/* leftover warm colours -> leaf green */
.bg-danger, .badge.bg-danger { background-color: #1f9d63 !important; color: #fff !important; }
tr.OddBg { background-color: #e6f6ee !important; }
.text-danger { color: #17855a !important; }

/* selects: same size, padding and text as inputs */
select, select.form-control, .form-select {
  display: block; width: 100%; height: 48px !important; min-height: 48px;
  padding: 0 44px 0 16px !important; font-size: 15px !important; line-height: 48px; color: var(--m-ink) !important;
  -webkit-appearance: none; appearance: none; text-indent: 0;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231f9d63' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center;
}
select option { font-size: 15px; color: var(--m-ink); }
input.form-control, input[type="text"], input[type="email"], input[type="password"], input[type="tel"] { height: 48px; padding: 0 16px; }
textarea.form-control { padding: 12px 16px; height: auto; }
.select_container::after, .select_container::before { display: none !important; content: none !important; }
.select_container { display: block; width: 100%; }
