/* Dark Theme Override - Background #1A2A33 with White Text */

/* Root Variables */
:root {
  --dark-bg: #1A2A33;
  --light-text: #ffffff;
  --dark-cyan: #30998c;
  --accent-color: #30998c;
}

/* Body and Main Background */
body,
.body {
  background-color: var(--dark-bg) !important;
  color: var(--light-text) !important;
}

/* All text elements to white */
p,
h1, h2, h3, h4, h5, h6,
.heading,
.heading-220,
.heading-227,
.heading-228,
.paragraph,
.text-block,
.text-block-38,
.text-block-39,
div,
span {
  color: var(--light-text) !important;
}

/* Navbar and Header */
.navbar-2 {
  background-color: transparent !important;
  position: relative;
  z-index: 10;
}

.restrictor,
.restrictor.blog,
.restrictor.bbpush {
  background-color: transparent !important;
}

.navlink {
  color: var(--light-text) !important;
}

.navlink:hover {
  opacity: 0.8;
}

/* Logo/Brand visibility */
.brand img {
  filter: brightness(1.1);
}

/* Sections */
section,
section.restrictor {
  background-color: transparent !important;
}

/* Hero Section */
.herowrap,
.herowrap.blog {
  background-color: transparent !important;
}

.herotext {
  color: var(--light-text) !important;
}

/* Article Cards */
.link-block-4,
.div-block-238 {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border-radius: 8px;
}

.link-block-4:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Collection Lists */
.collection-list,
.w-dyn-items,
.w-dyn-item {
  background-color: transparent !important;
}

/* Article Metadata Badges */
.article-excerpt {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Rich Text Content */
.w-richtext,
.w-richtext p,
.w-richtext h1,
.w-richtext h2,
.w-richtext h3,
.w-richtext h4,
.w-richtext h5,
.w-richtext h6,
.w-richtext div,
.w-richtext span {
  color: var(--light-text) !important;
}

/* Footer */
.footer {
  background-color: rgba(0, 0, 0, 0.3) !important;
  color: var(--light-text) !important;
}

.footwrap {
  background-color: transparent !important;
}

.footer .link,
.footer a {
  color: var(--light-text) !important;
}

/* Newsletter Section */
.newsletter-signupo {
  background-color: rgba(0, 0, 0, 0.2) !important;
}

/* Client Section */
.container-3,
.clients-wrapper-two,
.clients-card {
  background-color: transparent !important;
}

.clients-quote {
  color: var(--light-text) !important;
}

.clients-info div {
  color: var(--light-text) !important;
}

/* Slider Section */
.slider_wrap,
.slider_left,
.slider_right {
  background-color: transparent !important;
}

.slider_tagline-2 {
  color: var(--light-text) !important;
}

.slider_title-text {
  color: var(--light-text) !important;
}

/* Page Wrapper */
.page-wrapper,
.main-wrapper {
  background-color: transparent !important;
}

/* Container */
.container-2,
.container-3 {
  background-color: transparent !important;
}

/* Keep accent colors for headings if needed */
.heading.newsletter {
  color: var(--light-text) !important;
}

/* Buttons - keep their original styling but ensure text is visible */
.submit-button,
.arrow {
  color: var(--light-text) !important;
}

/* Links */
a {
  color: var(--accent-color) !important;
}

a:hover {
  color: var(--light-text) !important;
}

/* Ensure all divs have dark background */
.div-block,
.div-block-230,
.div-block-235,
.div-block-236,
.div-block-237,
.div-block-238,
.div-block-239,
.div-block-240,
.div-block-241,
.div-block-242 {
  background-color: transparent !important;
  color: var(--light-text) !important;
}

/* Article Detail Page Specific Styles */
.article-metadata {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.article-metadata p,
.article-metadata strong {
  color: var(--light-text) !important;
}

.article-body {
  color: var(--light-text) !important;
}

/* Tags */
.article-metadata span {
  background: rgba(255, 255, 255, 0.1) !important;
  color: var(--light-text) !important;
}

/* Article Header Badges (Time + Location Count) */
.article-badges,
.article-card-badges {
  display: flex;
  gap: 10px;
  margin-bottom: 0;
  flex-wrap: wrap;
  order: 1;
}

.article-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 14px !important;
  background: #ffffff !important;
  border-radius: 50px !important;
  font-size: 14px !important;
  color: #2D867D !important;
  backdrop-filter: blur(10px) !important;
  font-weight: 500 !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
}

.article-badge span {
  color: #2D867D !important;
}

.article-badge:hover {
  background: #2D867D !important;
  color: #ffffff !important;
  border-color: #2D867D !important;
}

.article-badge:hover span {
  color: #ffffff !important;
}

.article-badge svg,
.article-badge img {
  width: 16px;
  height: 16px;
  opacity: 1;
  stroke: #2D867D;
  transition: stroke 0.3s ease;
}

.article-badge:hover svg,
.article-badge:hover img {
  stroke: #ffffff;
}

@media screen and (max-width: 767px) {
  .article-badge {
    font-size: 13px;
    padding: 6px 12px;
  }
  
  .article-badge svg,
  .article-badge img {
    width: 14px;
    height: 14px;
  }
}

/* Location Card Badges (Smaller version for mentioned locations) */
.location-badge {
  display: inline-flex !important;
  align-items: center !important;
  background: #ffffff !important;
  color: #2D867D !important;
  padding: 4px 10px !important;
  border-radius: 50px !important;
  font-size: 0.7em !important;
  font-weight: 500 !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
}

.location-badge:hover {
  background: #2D867D !important;
  color: #ffffff !important;
  border-color: #2D867D !important;
}

/* Hero Image Overlay for Better Text Visibility */
.herowrap.blog {
  position: relative !important;
  background-color: transparent !important;
  min-height: 520px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-end !important;
  padding: 40px !important;
  overflow: hidden !important;
  border-radius: 16px !important;
  margin: 20px !important;
}

/* Background image styling */
.herowrap.blog .image-240 {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  z-index: 0;
  border-radius: 16px;
}

/* Dark overlay on background image */
.herowrap.blog::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg, 
    rgba(26, 42, 51, 0.4) 0%, 
    rgba(26, 42, 51, 0.75) 60%,
    rgba(26, 42, 51, 0.9) 100%
  );
  pointer-events: none;
  z-index: 1;
  border-radius: 16px;
}

/* Content above overlay */
.herowrap.blog > * {
  position: relative;
  z-index: 2;
}

.herowrap.blog .herotext {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-self: flex-end !important;
}

/* Article Title Styling */
.herowrap.blog .heading {
  color: var(--light-text) !important;
  font-size: 52px !important;
  line-height: 1.1 !important;
  margin-bottom: 16px !important;
  margin-top: 12px !important;
  font-weight: 700 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  order: 2;
}

.herowrap.blog .paragraph {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 17px !important;
  line-height: 1.5 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  order: 3;
  max-width: 90%;
}

/* Responsive title sizing */
@media screen and (max-width: 991px) {
  .herowrap.blog .heading {
    font-size: 42px !important;
  }
}

@media screen and (max-width: 767px) {
  .herowrap.blog .heading {
    font-size: 32px !important;
  }
  
  .herowrap.blog {
    min-height: 400px !important;
    margin: 10px !important;
    padding: 30px 20px !important;
    justify-content: flex-end !important;
  }
  
  .herowrap.blog .paragraph {
    font-size: 16px !important;
    max-width: 100% !important;
  }
}

/* Back to Journal Link - Header Style */
.restrictor.blog {
  position: relative;
  padding-top: 10px;
}

.back-to-journal-link {
  color: var(--light-text) !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 400;
  transition: opacity 0.2s ease;
  margin-bottom: 10px;
}

.back-to-journal-link:hover {
  opacity: 0.7;
}

/* Add back arrow before "Back to Journal" text */
.back-to-journal-link::before {
  content: "←";
  font-size: 20px;
  font-weight: 300;
}

/* Ensure form elements are visible */
input,
textarea,
.text-field {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: var(--light-text) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

/* Empty state messages */
.w-dyn-empty,
.w-dyn-empty div {
  color: var(--light-text) !important;
}

/* Image containers */
.image-240,
.image-239 {
  border-radius: 8px;
}

/* Ensure hover states work properly */
.link-block-4:hover .heading-228,
.link-block-4:hover .text-block-39 {
  color: var(--light-text) !important;
}

/* Additional text color overrides for deep nested elements */
* {
  scrollbar-color: rgba(255, 255, 255, 0.3) var(--dark-bg);
}

::-webkit-scrollbar {
  width: 12px;
  background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Make sure all section backgrounds are dark */
.section {
  background-color: transparent !important;
}

/* Client/testimonial section specific */
.clients-wrapper-two {
  color: var(--light-text) !important;
}

/* Swiper/slider backgrounds */
.swiper-slide,
.swiper-wrapper {
  background-color: transparent !important;
}

/* Ensure visibility animations don't affect color */
[style*="opacity:0"] {
  color: var(--light-text) !important;
}

/* Newsletter section text */
.heading.newsletter,
.paragraph.nl {
  color: var(--light-text) !important;
}

/* Straight line dividers */
.straightline {
  background-color: rgba(255, 255, 255, 0.2) !important;
}

/* Menu button for mobile */
.menu-button,
.w-nav-button {
  color: var(--light-text) !important;
}

.w-icon-nav-menu {
  color: var(--light-text) !important;
}

.w-icon-nav-menu::before,
.w-icon-nav-menu::after {
  background-color: var(--light-text) !important;
}

