/* ================================================
   Overrides for Next.js (no owl-carousel JS)
   ================================================ */

/* Slider visibility (hero-modern handles its own sizing via home.css) */
#slider.inspiro-slider {
  position: relative !important;
  overflow: hidden !important;
  width: 100% !important;
  opacity: 1 !important;
  visibility: visible !important;
  background-color: #0b1410 !important;
  z-index: 0;
  padding: 0 !important;
}

/* Container inside slide - keep relative for z-index stacking */
#slider .slide > .container,
#slider.hero-modern .hero-content-wrap {
  position: relative !important;
  z-index: 3 !important;
}

/* Banner CTA buttons - original CSS handles styling via .banner-link class */
/* No overrides needed - custom.css defines border/padding/font */

/* Notification bar — styled by .hero-modern .hero-notifications rules in home.css */

/* Hero title — fluid size so long names like
   "Climate-Resilient Agriculture and Food Systems" stay on one line.
   white-space:nowrap keeps line 2 together; the <br> still breaks lines. */
.hero-modern .hero-content-wrap {
  max-width: 1400px !important;
  width: 100% !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.hero-modern .hero-captions {
  max-width: 100% !important;
  text-align: center !important;
  margin: 0 auto !important;
}
.hero-modern .hero-captions h1.hero-title,
.hero-modern .hero-captions h2.hero-title {
  font-size: clamp(26px, 3.5vw, 60px) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.4px !important;
  white-space: nowrap;
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
@media (max-width: 575px) {
  .hero-modern .hero-captions h1.hero-title,
  .hero-modern .hero-captions h2.hero-title {
    font-size: 24px !important;
    white-space: normal;
  }
}

/* Schedule item titles: visual parity after h4 -> h3 swap (semantic hierarchy fix) */
.schedule-item h3 {
  font-size: 16px !important;
  font-weight: 600;
  color: #3d3d3d;
  margin: 0;
}

/* Footer section labels: paragraphs styled like the old h3/h4 to preserve UI */
.footer-section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin: 0 0 14px;
  line-height: 1.3;
}
.footer-social .footer-section-title {
  color: #fff;
  text-align: center;
}
.footer-organizer-sec .footer-org-name {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
  line-height: 1.4;
}
.footer-organizer-sec .footer-org-name a {
  color: inherit;
  text-decoration: none;
}

/* X (Twitter) icon swap — preserve sizing of surrounding social icons */
.footer-social .x-icon,
.icon-bar .x-icon {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}
.footer-social .x-icon { font-size: 18px; }
.icon-bar .x-icon { font-size: 18px; color: #fff; }

/* Registration page — preserve old h4 visual look on new h2/h3 tags */
.new_registration .reg-section-heading,
.accom-sec .reg-section-heading,
.RegSummary .reg-section-heading {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #252525;
  line-height: 1.35;
}
.new_registration .reg-section-heading .reg-section-suffix,
.accom-sec .reg-section-heading .reg-section-suffix {
  font-weight: 500;
  font-size: 15px;
  color: #555;
}
.new_registration .reg-col-label {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #252525;
}
.new_registration .reg-deadline-heading {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  line-height: 1.4;
  color: #252525;
}
.new_registration .reg-deadline-heading span {
  display: block;
  font-weight: 500;
  font-size: 12px;
  color: #6a6a6a;
}

/* Registration Summary card */
.reg-summary-card {
  background: #fff;
  border: 1px solid #e5e8e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}
.reg-summary-card__head {
  padding: 14px 20px;
  background: linear-gradient(135deg, #f4fbe9 0%, #eef6df 100%);
  border-bottom: 1px solid #e5e8e0;
}
.reg-summary-card__title {
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  color: #1a2a14;
  line-height: 1.3;
  letter-spacing: 0.2px;
}
.reg-summary-card__body {
  padding: 14px 20px 0;
}
.reg-summary-section {
  padding: 4px 0 12px;
}
.reg-summary-section--bordered {
  border-top: 1px dashed #e5e8e0;
  padding-top: 12px;
}
.reg-summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  font-size: 14px;
  color: #3d3d3d;
  line-height: 1.45;
}
.reg-summary-row__label {
  font-weight: 500;
  color: #444;
  flex: 1 1 auto;
}
.reg-summary-row__label small {
  color: #888;
  font-weight: 400;
  margin-left: 4px;
}
.reg-summary-row__value {
  font-weight: 600;
  color: #1a2a14;
  white-space: nowrap;
  text-align: right;
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}
.reg-summary-row--subtotal {
  margin-top: 4px;
  padding: 10px 12px;
  background: #f7faf0;
  border-radius: 6px;
  border-left: 3px solid #b7e766;
}
.reg-summary-row--subtotal .reg-summary-row__label,
.reg-summary-row--subtotal .reg-summary-row__value {
  font-weight: 700;
  color: #1a2a14;
}
.reg-summary-card__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: #6fa130;
  color: #fff;
}
.reg-summary-card__total-label {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.reg-summary-card__total-value {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.2px;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 575px) {
  .reg-summary-card__head,
  .reg-summary-card__body,
  .reg-summary-card__total { padding-left: 14px; padding-right: 14px; }
  .reg-summary-card__total-value { font-size: 19px; }
  .reg-summary-row { font-size: 13px; }
}

/* Home page Quick Contact (in the .inquiry-box-1 next to the schedule) —
   compact so the panel doesn't overrun the Conference Schedule column. */
.inquiry-box-1 .widget-subscribe-form .form-group {
  margin-bottom: 8px;
}
.inquiry-box-1 .widget-subscribe-form .row {
  margin-left: -6px;
  margin-right: -6px;
}
.inquiry-box-1 .widget-subscribe-form .row > [class^="col-"] {
  padding-left: 6px;
  padding-right: 6px;
}
.inquiry-box-1 .widget-subscribe-form label.upper {
  font-size: 11px;
  margin-bottom: 2px;
  line-height: 1.2;
}
.inquiry-box-1 .widget-subscribe-form .form-control,
.inquiry-box-1 .widget-subscribe-form select {
  height: 34px;
  padding: 4px 10px;
  font-size: 13px;
}
.inquiry-box-1 .widget-subscribe-form textarea.form-control {
  height: 76px;
  padding: 6px 10px;
}
.inquiry-box-1 .widget-subscribe-form .m-t-20 {
  margin-top: 8px !important;
}
.inquiry-box-1 .widget-subscribe-form .btn {
  padding: 10px 24px;
  font-size: 14px;
}

/* Keep hero flash notifications visible on mobile.
   responsive.css force-hides .top_notification at <=768px assuming a
   separate .mobile_notification block. Our hero uses .hero-notifications
   as the only carrier so re-show it. */
@media (max-width: 768px) {
  .hero-modern .hero-notifications.top_notification {
    display: block !important;
  }
}

/* Solid CTA used by homepage "View Full Gallery" / "View All Videos".
   The base .btn.btn-dark.btn-outline-1 is transparent + white text, which is
   invisible on light sections. Force a solid black background by default and
   swap to the brand green on hover. */
.btn.home-cta-solid {
  background-color: #1a2a14 !important;
  border-color: #1a2a14 !important;
  color: #fff !important;
}
.btn.home-cta-solid:hover,
.btn.home-cta-solid:focus,
.btn.home-cta-solid:active {
  background-color: #6fa130 !important;
  border-color: #6fa130 !important;
  color: #fff !important;
}

/* Registration submit overlay */
.reg-submit-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 25, 11, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: regOverlayIn 0.18s ease-out;
}
@keyframes regOverlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.reg-submit-overlay__card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 36px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 90%;
  min-width: 280px;
}
.reg-submit-spinner {
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  border: 4px solid #e5e8e0;
  border-top-color: #6fa130;
  border-radius: 50%;
  animation: regSpin 0.8s linear infinite;
}
@keyframes regSpin {
  to { transform: rotate(360deg); }
}
.reg-submit-overlay__title {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #1a2a14;
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}
.reg-submit-overlay__sub {
  font-size: 13px;
  color: #5a6650;
  line-height: 1.4;
}

/* Testimonials page subheads — visual parity with existing layout */
.testimonials-subhead {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 14px;
  color: #252525;
  line-height: 1.3;
}
.video-box .video__info h3.video__title {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
  color: inherit;
}

/* ================================================
   Header: logo + menu vertically centered side by side
   ================================================ */
#header #header-wrap > .container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 100px !important;
}

#header #header-wrap #logo {
  float: none !important;
  position: relative !important;
  height: auto !important;
  width: auto !important;
  text-align: left !important;
  display: flex !important;
  align-items: center !important;
}

#header #header-wrap #logo a > img {
  width: 220px !important;
  height: 70px !important;
  max-width: 100% !important;
  object-fit: contain !important;
  margin-top: 0 !important;
  display: block !important;
}

#header #mainMenu {
  float: none !important;
  display: flex !important;
  align-items: center !important;
}

#header #mainMenu nav {
  float: none !important;
  margin-top: 0 !important;
  display: flex !important;
  align-items: center !important;
}

#header #mainMenu nav > ul {
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

#header #mainMenu nav > ul > li > a {
  font-size: 13px !important;
  padding: 8px 8px !important;
  display: inline-flex !important;
  align-items: center !important;
}

@media (max-width: 991px) {
  #header #header-wrap > .container {
    min-height: 80px !important;
  }
  #header #header-wrap #logo a > img {
    width: 176px !important;
    height: 56px !important;
  }
}

/* ================================================
   Carousel: flex row without owl-carousel
   ================================================ */
/* Force any remaining raw .carousel elements visible */
.carousel {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Hide scrollbar on Carousel component track */
.carousel-track::-webkit-scrollbar { display: none; }

/* ================================================
   Other fixes
   ================================================ */

/* Parallax background fallback */
[data-parallax-image] {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* Tab content */
.tabs-content .tab-pane { display: none; }
.tabs-content .tab-pane.active { display: block; }
.tabs .tabs-navigation li.active a { background: rgba(255,255,255,0.2); border-radius: 4px; }

/* Blink animation */
@keyframes blinker { 50% { opacity: 0.5; } }
.blink { animation: blinker 1.5s linear infinite; }

/* ================================================
   Homepage testimonials cards
   Theme CSS sets padding:0!important and text-align:left.
   Override to get the clean centered card per reference.
   ================================================ */
.testimonial.testimonial-box .testimonial-item,
.testimonial .testimonial-item {
  background: #fff !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  border-radius: 10px !important;
  padding: 30px 24px !important;
  text-align: center !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08) !important;
  height: 100%;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
}
.testimonial .testimonial-item img {
  width: 72px !important;
  height: 72px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  margin: 0 auto 14px !important;
  display: block !important;
}
.testimonial .testimonial-item > div:not(.img) {
  color: #333 !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  margin-bottom: 14px !important;
  width: 100% !important;
}
.testimonial .testimonial-item > div p {
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  color: #333 !important;
}
.testimonial .testimonial-item > span {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  float: none !important;
}
.testimonial .testimonial-item > span:nth-of-type(1) {
  color: #6fa130 !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  margin-top: auto !important;
  padding-top: 6px !important;
}
.testimonial .testimonial-item > span:nth-of-type(2) {
  color: #555 !important;
  font-size: 13px !important;
  margin-top: 2px !important;
}

/* ================================================
   WhatsApp floating button (bottom-left)
   ================================================ */
.wa-float {
  position: fixed;
  left: 18px;
  bottom: 18px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}
.wa-float:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  color: #fff;
}
.wa-float svg { display: block; }
@media (max-width: 767px) {
  .wa-float { left: 12px; bottom: 12px; width: 48px; height: 48px; }
}

/* ================================================
   Clean gallery detail grid
   Avoids theme's .portfolio-item width overrides.
   ================================================ */
.gallery-grid-clean {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}
@media (max-width: 991px) {
  .gallery-grid-clean { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  .gallery-grid-clean { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

.gallery-card-clean {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.gallery-card-clean:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.gallery-card-clean__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f5f5f5;
}
.gallery-card-clean__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-card-clean__caption {
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: #2c8aa1;
  text-align: left;
  min-height: 52px;
}
.gallery-card-clean:hover .gallery-card-clean__caption { color: #1f6a7d; }

/* Pagination container spacing */
.gallery-pager { text-align: center; margin: 20px 0; }
.gallery-pager ul { display: inline-flex; gap: 6px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; justify-content: center; }

/* ================================================
   Select dropdown arrow
   Theme CSS strips the native arrow and expects
   /images/dropdown-arrow.png which doesn't ship.
   Replace with an inline SVG so no asset is needed.
   ================================================ */
select:not([multiple]) {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23666' d='M6 8L0 0h12z'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 12px 8px !important;
  padding-right: 32px !important;
}

/* ================================================
   Upcoming Events cards (About Organizer page)
   ================================================ */
.upcoming-events { display: flex; flex-wrap: wrap; }
.upcoming-events .col-md-6,
.upcoming-events .col-sm-12 { margin-bottom: 20px; display: flex; }
.upcoming-event-card {
  display: flex; align-items: stretch; background: #f3f3f3;
  border-radius: 4px; overflow: hidden;
  width: 100%; min-height: 100px;
}
.upcoming-event-card .event-date-badge {
  background: #6fa130; color: #fff; padding: 12px 14px; text-align: center;
  min-width: 70px; display: flex; flex-direction: column;
  justify-content: center; align-items: center; flex-shrink: 0;
}
.upcoming-event-card .event-date-badge .month {
  font-size: 12px; font-weight: 600; text-transform: capitalize; line-height: 1.2;
  padding-bottom: 4px; margin-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5); width: 100%; text-align: center;
}
.upcoming-event-card .event-date-badge .day { font-size: 22px; font-weight: 700; line-height: 1.2; }
.upcoming-event-card .event-info {
  padding: 14px 18px; flex: 1; display: flex; flex-direction: column; justify-content: center;
}
.upcoming-event-card .event-info .date-range { color: #6fa130; font-size: 14px; line-height: 1.4; margin-bottom: 6px; }
.upcoming-event-card .event-info .event-title { color: #1a1a1a; font-weight: 700; font-size: 16px; line-height: 1.4; text-decoration: none; }
.upcoming-event-card .event-info .event-title:hover { color: #6fa130; text-decoration: none; }
