/* ================================================================= *
   TERRA INITIATIVE GLOBAL NAV STYLES (ti_ prefixed)
 * ================================================================= */

:root {
  --ti-header-bg: #12161a;
  --ti-header-text: #f0f4f8;
  --ti-header-accent: #3b82f6;
  --ti-header-border: #2d3748;
  --ti-badge-bg: #1e293b;
}

.ti_site_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--ti-header-bg);
  color: var(--ti-header-text);
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--ti-header-border);
  position: relative;
  z-index: 1000;
  font-family: system-ui, -apple-system, sans-serif;
}

/* Logo & Project Badge */
.ti_site_header .ti_logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.15rem;
}

.ti_site_header .ti_logo a {
  color: var(--ti-header-text);
  text-decoration: none;
}

.ti_site_header .ti_logo a:hover {
  color: var(--ti-header-accent);
}

.ti_site_header .ti_nav_divider {
  color: #64748b;
}

.ti_site_header .ti_project_badge {
  background-color: var(--ti-badge-bg);
  color: #94a3b8;
  font-size: 0.85rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-weight: 500;
}

/* Desktop Navigation List */
.ti_site_nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.ti_site_nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.ti_site_nav a:hover {
  color: var(--ti-header-text);
}

/* Dropdown Switcher Container */
.ti_dropdown_container {
  position: relative;
}

.ti_dropdown_container .ti_dropbtn {
  background: transparent;
  border: 1px solid var(--ti-header-border);
  color: #cbd5e1;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s ease;
}

.ti_dropdown_container .ti_dropbtn:hover {
  background-color: var(--ti-badge-bg);
  color: var(--ti-header-text);
  border-color: #475569;
}

/* Dropdown Menu Panel */
.ti_dropdown_menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  background-color: var(--ti-header-bg);
  border: 1px solid var(--ti-header-border);
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  min-width: 240px;
  padding: 0.5rem 0;
  z-index: 1001;
}

.ti_dropdown_menu.show {
  display: block;
}

.ti_dropdown_menu a {
  display: block;
  padding: 0.6rem 1rem;
  color: #cbd5e1;
  white-space: nowrap;
}

.ti_dropdown_menu a:hover {
  background-color: var(--ti-badge-bg);
  color: var(--ti-header-text);
}

.ti_dropdown_divider {
  height: 1px;
  background-color: var(--ti-header-border);
  margin: 0.4rem 0;
}

/* Mobile Hamburger Toggle Button */
.ti_menu_toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--ti-header-text);
  cursor: pointer;
  padding: 0.5rem;
}

.ti_hamburger_icon {
  font-size: 1.5rem;
  line-height: 1;
}

/* ================================================================= *
   RESPONSIVE MEDIA QUERIES (Mobile Drawer)
 * ================================================================= */

@media (max-width: 768px) {
  .ti_menu_toggle {
    display: block;
  }

  /* Transform Desktop Nav into Mobile Drawer Overlay */
  .ti_site_nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--ti-header-bg);
    border-bottom: 1px solid var(--ti-header-border);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    padding: 1.5rem;
    box-sizing: border-box;
  }

  .ti_site_nav.mobile-active {
    display: block;
  }

  .ti_site_nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .ti_site_nav ul li {
    width: 100%;
  }

  .ti_site_nav a {
    display: block;
    width: 100%;
    padding: 0.4rem 0;
    font-size: 1.1rem;
  }

  /* Adjust Dropdown for Mobile View */
  .ti_dropdown_container {
    width: 100%;
  }

  .ti_dropdown_container .ti_dropbtn {
    width: 100%;
    justify-content: space-between;
    padding: 0.6rem 0.8rem;
  }

  .ti_dropdown_menu {
    position: static;
    box-shadow: none;
    border: none;
    background-color: transparent;
    padding-left: 1rem;
    min-width: 100%;
  }
}

/* ================================================================= *
   SPLIT HERO SECTION STYLES (Definitive 50/50 Desktop Split)
 * ================================================================= */

.ti_split_hero {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 1.5rem;
  width: 100%;
  max-width: 1200px;
  margin: 1.5rem auto 3rem auto;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, sans-serif;
}

.ti_hero_col {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.05);
  position: relative;
  height: 460px; /* Locked equal height for both panes */
  min-height: 460px;
  box-sizing: border-box;
}

/* --- Left Column: Quotes --- */
.ti_hero_quotes {
  padding: 2.25rem;
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid #1e293b;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ti_col_badge {
  display: inline-block;
  background: #1e293b;
  color: #38bdf8;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  align-self: flex-start;
}

.ti_quote_container {
  position: relative;
  flex-grow: 1;
  overflow: hidden;
}

.ti_quote_slide {
  margin: 0;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: opacity 0.4s ease-in-out;
  display: none;
}

.ti_quote_slide.active {
  opacity: 1;
  display: block;
}

.ti_quote_text {
  font-size: 1.2rem;
  line-height: 1.6;
  font-style: italic;
  color: #e2e8f0;
  margin: 0 0 1rem 0;
}

.ti_quote_author {
  font-size: 0.95rem;
  font-style: normal;
  color: #94a3b8;
  font-weight: 600;
  display: block;
}

.ti_quote_controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
}

.ti_ctrl_btn {
  background: #1e293b;
  border: none;
  color: #f8fafc;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
}

.ti_ctrl_btn:hover {
  background: #334155;
}

.ti_quote_dots, .ti_car_indicators {
  display: flex;
  gap: 0.5rem;
}

.ti_dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #334155;
  cursor: pointer;
  transition: background 0.3s;
  display: inline-block;
}

.ti_dot.active {
  background: #38bdf8;
}

.ti_progress_track {
  width: 100%;
  height: 3px;
  background: #1e293b;
  margin-top: 0.75rem;
  overflow: hidden;
  border-radius: 2px;
}

.ti_progress_bar {
  width: 0%;
  height: 100%;
  background: #38bdf8;
  transition: width 0.1s linear;
}

/* --- Right Column: Carousel --- */
.ti_hero_carousel {
  position: relative;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.ti_carousel_wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.ti_carousel_slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  display: none;
  flex-direction: column;
  transition: opacity 0.3s ease-in-out;
  box-sizing: border-box;
}

.ti_carousel_slide.active {
  opacity: 1 !important;
  display: flex !important;
}

.ti_slide_media {
  height: 200px;
  min-height: 200px;
  display: flex;
  align-items: flex-start;
  padding: 1.25rem;
  box-sizing: border-box;
}

.ti_media_tag {
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ti_slide_content {
  padding: 1.25rem 1.75rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.ti_slide_content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.35rem;
  color: #0f172a;
}

.ti_slide_content p {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.45;
  margin: 0 0 1rem 0;
}

.ti_slide_btn {
  display: inline-block;
  align-self: flex-start;
  background: #0057d9;
  color: #ffffff;
  text-decoration: none;
  padding: 0.55rem 1.1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.ti_slide_btn:hover {
  background: #0043a8;
}

.ti_car_arrow {
  position: absolute;
  top: 100px;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  border: none;
  font-size: 1.25rem;
  padding: 0.6rem 0.9rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
  z-index: 10;
  line-height: 1;
}

.ti_car_arrow:hover {
  background: rgba(0, 0, 0, 0.85);
}

.ti_car_prev { left: 1rem; }
.ti_car_next { right: 1rem; }

.ti_car_indicators {
  position: absolute;
  bottom: 1.25rem;
  right: 1.5rem;
  z-index: 10;
}

.ti_car_indicators .ti_dot {
  background: #cbd5e1;
}

.ti_car_indicators .ti_dot.active {
  background: #0057d9;
}

/* Responsive collapse on small mobile viewports */
@media (max-width: 720px) {
  .ti_split_hero {
    grid-template-columns: 1fr !important;
  }
  .ti_hero_col {
    height: auto !important;
    min-height: 420px;
  }
}