/* ==========================================================================
   GARC – Modern UI layer
   Loaded AFTER the legacy theme (main.css). Presentation only – no markup
   or behaviour is changed; remove this file + its <link> to revert.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap");

:root {
  --m-primary: #1f9d63;
  --m-primary-2: #4cc38a;
  --m-primary-soft: #e6f6ee;
  --m-accent: #1f9d63;
  --m-ink: #08231a;
  --m-ink-2: #334155;
  --m-muted: #64748b;
  --m-line: #e5e9f0;
  --m-bg: #f4f9f6;
  --m-card: #ffffff;
  --m-radius: 18px;
  --m-radius-sm: 12px;
  --m-shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 2px 8px rgba(15, 23, 42, .05);
  --m-shadow: 0 10px 30px -10px rgba(15, 23, 42, .18);
  --m-shadow-lg: 0 24px 60px -20px rgba(15, 23, 42, .28);
  --m-grad: linear-gradient(135deg, var(--m-primary) 0%, var(--m-primary-2) 100%);
  --m-ease: cubic-bezier(.22, .61, .36, 1);
  --m-header-h: 76px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--m-ink-2);
  background: var(--m-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6, .font2, .special-heading {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  color: var(--m-ink);
  letter-spacing: -.02em;
  line-height: 1.2;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
h4 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); }
h5 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
h6 { font-size: 1.05rem; }
p { color: var(--m-ink-2); }
a { color: var(--m-ink); transition: color .2s var(--m-ease), background .2s var(--m-ease), transform .2s var(--m-ease), box-shadow .2s var(--m-ease); }
a:hover { color: var(--m-primary); }
::selection { background: var(--m-primary); color: #fff; }
img { max-width: 100%; height: auto; }

/* Slim scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; border: 2px solid var(--m-bg); }
::-webkit-scrollbar-thumb:hover { background: var(--m-primary); }

/* ---------- Section surfaces (legacy ls / ds / cs / ms) ---------- */
.ls, .ls.texture-1 { background: var(--m-bg); color: var(--m-ink-2); }
.ls.ms, .ls.ms-bg, .ms { background: #fff; }
.ds {
  background: radial-gradient(1200px 500px at 85% -10%, rgba(31, 157, 99, .25), transparent 60%),
              linear-gradient(160deg, #06231a 0%, #0d3b2a 100%);
  color: #cbd5e1;
}
.ds h1, .ds h2, .ds h3, .ds h4, .ds h5, .ds h6, .ds a:not(.btn) { color: #fff; }
.ds p { color: #cbd5e1; }
.cs { background: var(--m-grad); color: #fff; }
.texture-1 { background-image: none; }
section.ls[class*="s-py"], section.ds[class*="s-py"] { position: relative; }

/* ---------- Top strip ---------- */
.page_topline {
  background: var(--m-ink) !important;
  border: 0;
  padding: 6px 0;
}
.page_topline .container-fluid {
  display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center;
  gap: 4px 6px; max-width: 1320px; margin: 0 auto;
}
.page_topline .meta-item a,
.page_topline a { color: #cbd5e1 !important; font-size: 13px; font-weight: 500; letter-spacing: .02em; padding: 4px 12px; border-radius: 999px; }
.page_topline .meta-item a:hover { color: #fff !important; background: rgba(255, 255, 255, .1); }

/* ---------- Header / navigation ---------- */
.page_header {
  background: rgba(255, 255, 255, .97) !important;
  border-bottom: 1px solid var(--m-line) !important;
  box-shadow: 0 4px 24px -12px rgba(15, 23, 42, .15);
  position: sticky !important;
  top: 0;
  z-index: 1000;
}
.page_header .logo img { max-height: 56px; width: auto; transition: transform .3s var(--m-ease); }
.page_header .logo:hover img { transform: scale(1.04); }
.page_header .row { min-height: var(--m-header-h); }

.sf-menu { padding: 0 !important; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px; }
.affix .sf-menu { padding: 0 !important; }
.sf-menu > li > a,
.top-nav .nav-link {
  font-family: "Inter", sans-serif;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: .01em;
  color: var(--m-ink) !important;
  padding: 10px 12px !important;
  border-radius: 10px;
  position: relative;
}
.sf-menu > li > a:hover,
.sf-menu > li.sfHover > a,
.sf-menu > li.active > a { color: var(--m-primary) !important; background: var(--m-primary-soft); }
.sf-menu > li > a::after, .sf-menu > li > a::before { display: none !important; }

/* dropdown */
.sf-menu ul {
  background: #fff !important;
  border: 1px solid var(--m-line) !important;
  border-radius: var(--m-radius-sm) !important;
  box-shadow: var(--m-shadow-lg) !important;
  padding: 8px !important;
  min-width: 250px;
  margin-top: 6px;
  animation: m-drop .22s var(--m-ease);
}
.sf-menu ul li a {
  color: var(--m-ink-2) !important;
  font-size: 14px !important;
  font-weight: 500;
  padding: 10px 14px !important;
  border-radius: 8px;
  display: block;
  white-space: normal;
}
.sf-menu ul li a:hover { background: var(--m-primary-soft); color: var(--m-primary) !important; padding-left: 18px !important; }
@keyframes m-drop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.top-includes { margin: 0; padding: 0; list-style: none; }

/* Mobile toggle */
.toggle_menu { border-radius: 12px; background: var(--m-primary-soft) !important; width: 48px !important; height: 48px !important; margin-top: -24px !important; right: 12px !important; }
.toggle_menu span, .toggle_menu span::before, .toggle_menu span::after { background-color: var(--m-primary) !important; }
.toggle_menu.mobile-active { background: var(--m-primary) !important; border-radius: 0 0 0 16px; }
.toggle_menu.mobile-active span, .toggle_menu.mobile-active:before { background-color: #fff !important; }

@media (max-width: 1199px) {
  .page_header .row { min-height: 68px; }
  .page_header { position: relative !important; }
  .mobile-active .top-nav { background: rgba(11, 18, 32, .97); overflow-y: auto; padding: 84px 22px 40px; }
  .sf-menu { display: block; max-width: 520px; margin: 0 auto; }
  .sf-menu > li > a, .top-nav .nav-link { padding: 14px 6px !important; font-size: 17px !important; border-radius: 0; color: #fff !important; border-bottom: 1px solid rgba(255, 255, 255, .12); background: transparent !important; display: block; }
  .sf-menu > li > a:hover { color: var(--m-primary-2) !important; }
  .sf-menu ul { box-shadow: none !important; border: 0 !important; animation: none; background: transparent !important; padding: 0 0 0 14px !important; margin: 0; }
  .sf-menu ul li a { color: #cbd5e1 !important; font-size: 15px !important; }
  .sf-menu ul li a:hover { background: transparent; color: var(--m-primary-2) !important; padding-left: 14px !important; }
}

/* ---------- Buttons ---------- */
.btn, a.btn, button.btn, input[type="submit"].btn {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .01em;
  text-transform: none;
  border-radius: 999px !important;
  padding: 12px 26px;
  min-width: 0;
  border: 0;
  line-height: 1.3;
  box-shadow: 0 6px 16px -6px rgba(15, 23, 42, .3);
  transition: transform .2s var(--m-ease), box-shadow .2s var(--m-ease), filter .2s var(--m-ease);
}
.btn::before, .btn::after { display: none !important; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 24px -10px rgba(15, 23, 42, .35); filter: brightness(1.05); }
.btn:active { transform: translateY(0); }
.btn-maincolor, .btn-primary, .btn-info, .btn-success {
  background: var(--m-grad) !important;
  color: #fff !important;
  box-shadow: 0 10px 22px -8px rgba(31, 157, 99, .25);
}
.btn-maincolor:hover, .btn-primary:hover, .btn-info:hover, .btn-success:hover { color: #fff !important; box-shadow: 0 16px 28px -10px rgba(31, 157, 99, .25); }
.btn-outline-maincolor, .btn-outline-primary, .btn-default, .btn-light {
  background: #fff !important; color: var(--m-ink) !important; border: 1.5px solid var(--m-line) !important; box-shadow: none;
}
.btn-outline-maincolor:hover { border-color: var(--m-primary) !important; color: var(--m-primary) !important; }
.btn-danger { background: linear-gradient(135deg, #17855a, #3ec28a) !important; color: #fff !important; }
.btn_cus { background: var(--m-accent) !important; color: #fff !important; border: 0 !important; }
.btn-sm, .btn-small { padding: 8px 18px; font-size: 13px; }

/* ---------- Forms ---------- */
.form-control, .form-select, input[type="text"], input[type="email"], input[type="password"],
input[type="tel"], input[type="number"], input[type="date"], input[type="url"], select, textarea {
  background: #fff;
  border: 1.5px solid var(--m-line);
  border-radius: var(--m-radius-sm) !important;
  padding: 12px 16px;
  height: auto;
  min-height: 48px;
  font-size: 15px;
  color: var(--m-ink);
  box-shadow: none;
  transition: border-color .2s var(--m-ease), box-shadow .2s var(--m-ease);
}
.form-control:focus, .form-select:focus, input:focus, select:focus, textarea:focus {
  border-color: var(--m-primary) !important;
  box-shadow: 0 0 0 4px rgba(31, 157, 99, .25) !important;
  outline: none;
}
textarea { min-height: 120px; }
label { color: var(--m-ink); font-weight: 600; font-size: 14px; }
.form-group, .form-floating { margin-bottom: 18px; }
input[type="radio"] + label:before { border: 2px solid var(--m-primary) !important; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--m-primary); }

/* ---------- Cards / items ---------- */
.vertical-item, .item-card, .card, .box-shadow, .with_background, .bordered, .teaser, .event-item, .team-item {
  border-radius: var(--m-radius) !important;
}
.vertical-item, .card, .teaser, .event-item {
  background: var(--m-card);
  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);
}
.vertical-item:hover, .card:hover, .teaser:hover, .event-item:hover { transform: translateY(-6px); box-shadow: var(--m-shadow); }
.vertical-item .item-media img, .item-media img { transition: transform .6s var(--m-ease); }
.vertical-item:hover .item-media img { transform: scale(1.06); }
.item-media { overflow: hidden; border-radius: var(--m-radius) var(--m-radius) 0 0; }
.item-content { padding: 22px; }

/* Home quick-link tiles (inline bordered boxes) */
section .row > [class*="col-"] > div[style*="border: 1px solid #1f9d63"] {
  background: #fff;
  border: 1px solid var(--m-line) !important;
  border-radius: var(--m-radius) !important;
  box-shadow: var(--m-shadow-sm);
  padding: 20px 14px;
  min-height: 130px;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--m-ease), box-shadow .3s var(--m-ease), border-color .3s;
}
section .row > [class*="col-"] > div[style*="border: 1px solid #1f9d63"]::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--m-grad);
}
section .row > [class*="col-"] > div[style*="border: 1px solid #1f9d63"]:hover {
  transform: translateY(-6px); box-shadow: var(--m-shadow); border-color: rgba(31, 157, 99, .25) !important;
}
section .row > [class*="col-"] > div[style*="border: 1px solid #1f9d63"] h6 a { color: var(--m-ink); font-weight: 700; font-size: 1.05rem; }
section .row > [class*="col-"] > div[style*="border: 1px solid #1f9d63"] p { font-size: 13px !important; color: var(--m-muted) !important; }
.row > [class*="col-"]:has(> div[style*="border: 1px solid #1f9d63"]) { margin-bottom: 20px !important; }

/* Heading accent */
.special-heading { position: relative; }
.special-heading::after { /* subtle underline accent only for centered headings */
  content: none;
}
.text-center.special-heading::after, .special-heading.text-center::after {
  content: ""; display: block; width: 56px; height: 4px; border-radius: 4px; background: var(--m-grad); margin: 14px auto 0;
}
.color-main, .color-main2 { color: var(--m-primary) !important; }
.highlight, .color-darkgrey { color: var(--m-muted) !important; }

/* ---------- Page title banners ---------- */
.page-title, .bg-title {
  position: relative;
  padding: clamp(56px, 8vw, 110px) 0 !important;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.overlay-dark:before, .bg-title.overlay-dark:before {
  background: linear-gradient(135deg, rgba(6, 35, 26, .93), rgba(31, 157, 99, .82)) !important;
  opacity: 1 !important;
  z-index: -1;
}
.page-title h1, .page-title h2, .page-title h3 { color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .3); }
.breadcrumb, .breadcrumbs { background: transparent; justify-content: center; }
.breadcrumb a, .breadcrumb li, .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .85); }

/* ---------- Tables ---------- */
table { border-collapse: separate; border-spacing: 0; }
.table, table.table, .scroll-table table {
  background: #fff;
  border-radius: var(--m-radius-sm);
  overflow: hidden;
  box-shadow: var(--m-shadow-sm);
  border: 1px solid var(--m-line);
}
.table > :not(caption) > * > *, .scroll-table td, .scroll-table th { padding: 14px 16px; border-color: var(--m-line); }
.table thead th, .scientific th { background: var(--m-ink); color: #fff; border: 0; font-weight: 600; }
.table-striped > tbody > tr:nth-of-type(odd) > *, .scientific tr:nth-child(even) { background: #f2faf5; }
.table-hover tbody tr:hover { background: var(--m-primary-soft); }
.scientific tr.heading { background: var(--m-grad); }
.scientific tr.heading-1 { background: #fff3cc; }
.scientific tr.sub_heading { background: var(--m-accent); }
.table-responsive, .scroll-table, .scroll-box { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--m-radius-sm); }

/* ---------- Tabs / accordion ---------- */
.nav-tabs { border-bottom: 1px solid var(--m-line); gap: 6px; }
.nav-tabs .nav-link { border: 0 !important; border-radius: 999px !important; color: var(--m-ink-2); font-weight: 600; padding: 9px 20px !important; }
.nav-tabs .nav-link.active, .nav-tabs .nav-link:hover { background: var(--m-grad) !important; color: #fff !important; }
.accordion-item, .panel { border: 1px solid var(--m-line) !important; border-radius: var(--m-radius-sm) !important; margin-bottom: 12px; overflow: hidden; background: #fff; }
.accordion-button:not(.collapsed) { background: var(--m-primary-soft); color: var(--m-primary); box-shadow: none; }

/* ---------- Modal ---------- */
.modal-content { border: 0; border-radius: 24px; box-shadow: var(--m-shadow-lg); overflow: hidden; }
.modal-header { border-bottom: 1px solid var(--m-line); background: var(--m-bg); padding: 18px 26px; }
.modal-title { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 700; color: var(--m-ink); }
.modal-body { padding: 24px 26px; }
.modal-backdrop.show { opacity: .6; backdrop-filter: blur(4px); }
.modal .btn-close { border-radius: 50%; background-color: #fff; opacity: 1; padding: 10px; box-shadow: var(--m-shadow-sm); }

/* ---------- Carousels / images ---------- */
.owl-carousel .owl-item img { border-radius: var(--m-radius-sm); }
.owl-dots .owl-dot span { background: #cbd5e1 !important; transition: all .25s; }
.owl-dots .owl-dot.active span { background: var(--m-primary) !important; width: 26px; border-radius: 10px; }
.owl-nav [class*="owl-"] { border-radius: 50% !important; background: #fff !important; color: var(--m-ink) !important; box-shadow: var(--m-shadow-sm); }
.owl-nav [class*="owl-"]:hover { background: var(--m-primary) !important; color: #fff !important; }
.slider-accordion img, .round-shape img { object-fit: cover; }
.p_img, .rounded-img { border-radius: var(--m-radius); }
.isotope-wrapper img, .gallery-item img { border-radius: var(--m-radius-sm); }

/* ---------- Alerts / badges ---------- */
.alert { border: 0; border-radius: var(--m-radius-sm); box-shadow: var(--m-shadow-sm); padding: 14px 18px; }
.alert-success { background: #e8f8f0; color: #0b6b43; }
.alert-danger { background: #fdecec; color: #a12525; }
.badge { border-radius: 999px; padding: .45em .9em; font-weight: 600; }

/* ---------- Counters / steps ---------- */
.counter-wrap .counter, .counter-wrap h3 { font-family: "Plus Jakarta Sans", sans-serif; }
.counter { background: var(--m-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-weight: 800; }

/* ---------- Footer ---------- */
.page_copyright {
  background: linear-gradient(160deg, #06231a, #0d3b2a) !important;
  color: #94a3b8 !important;
  height: auto !important;
  padding: 36px 0 !important;
  border-top: 4px solid var(--m-primary);
}
.page_copyright p, .page_copyright a { color: #cbd5e1 !important; font-size: 14px; }
.page_copyright a:hover { color: var(--m-primary-2) !important; }
.page_copyright img { max-height: 56px; width: auto; background: #fff; padding: 6px 12px; border-radius: 12px; }
.page_copyright .menu { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: flex-end; }
.page_copyright .menu li { margin: 0; }
@media (max-width: 991px) { .page_copyright .menu { justify-content: center; margin-top: 12px; } }

/* back to top */
#toTop { background: var(--m-grad) !important; border-radius: 50% !important; width: 46px; height: 46px; line-height: 46px; box-shadow: var(--m-shadow); }

/* ---------- Reveal animations (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .animate { will-change: transform, opacity; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Responsive polish ---------- */
.container, .container-fluid { padding-left: 18px; padding-right: 18px; }
.s-py-90, .s-py-xl-150 { padding-top: clamp(48px, 7vw, 110px) !important; padding-bottom: clamp(48px, 7vw, 110px) !important; }
iframe, video { max-width: 100%; border-radius: var(--m-radius-sm); }
.table-wrap, .scientific { max-width: 100%; }

@media (max-width: 991px) {
  body { font-size: 15.5px; }
  .page_topline { display: none; }
  .item-content { padding: 18px; }
  .btn { padding: 11px 22px; }
  .page_header .logo img { max-height: 46px; }
}
@media (max-width: 575px) {
  .container, .container-fluid { padding-left: 14px; padding-right: 14px; }
  .modal-dialog { margin: 12px; }
  .modal-body, .modal-header { padding-left: 18px; padding-right: 18px; }
  section .row > [class*="col-"] > div[style*="border: 1px solid #1f9d63"] { min-height: 0; }
  table { font-size: 14px; }
  .scientific, .scroll-table { overflow-x: auto; display: block; }
}

/* ---------- Header grid: give the menu all the free room ---------- */
@media (min-width: 1200px) {
  .page_header > .container-fluid { max-width: 1480px; margin: 0 auto; }
  .page_header .row.align-items-center { flex-wrap: nowrap; }
  .page_header .row > .col-xl-1 { flex: 0 0 auto; width: auto; }
  .page_header .row > .col-xl-7 { flex: 1 1 auto; width: auto; min-width: 0; }
  .page_header .row > .col-xl-4 { flex: 0 0 auto; width: auto; }
  .sf-menu { flex-wrap: nowrap; }
  .sf-menu > li > a, .top-nav .nav-link { white-space: nowrap; padding: 10px 9px !important; font-size: 13px !important; }
}

@media (max-width: 1199px) {
  .top-nav, .top-nav .sf-menu, .top-nav .sf-menu li, .top-nav .nav { background: transparent; }
  .mobile-active .top-nav { background: rgba(11, 18, 32, .97) !important; }
  .top-nav .sf-menu > li > a, .top-nav .nav-link { color: #fff !important; }
  .top-nav .sf-menu ul li a { color: #cbd5e1 !important; }
}
@media (max-width: 1199px) {
  .mobile-active .top-nav { padding: 84px 28px 40px !important; }
}
