/* Single Project Page Styles */

/* Popravi 3D animaciju solarnih panela na single stranicama - isključi brze animacije za nju */
.single .futura-sci-fi-bg,
.single .futura-sci-fi-bg * {
  transition-duration: unset !important;
  animation-duration: unset !important;
}

.single .futura-sci-fi-bg .solar-floor {
  animation: move-solar-array 20s linear infinite !important;
}

.single .futura-sci-fi-bg .solar-sweep {
  animation: sweep-light 10s ease-in-out infinite !important;
}

/* Keyframes za solar animacije */
@keyframes move-solar-array {
  0% { background-position: 0px 0px, 0px 0px, 0px 0px, 0px 0px; }
  100% { background-position: 0px 240px, 0px 240px, 0px 240px, 0px 240px; }
}

@keyframes sweep-light {
  0% { top: -20%; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 120%; opacity: 0; }
}

/* Brze animacije i transitions - ali ne za solar animaciju */
.single *:not(.futura-sci-fi-bg):not(.futura-sci-fi-bg *) {
  transition-duration: 0.1s !important;
  animation-duration: 0.1s !important;
}

/* Hero Section - Page Title */
.single .page-title {
  position: relative;
  padding: 140px 0 100px;
  background: linear-gradient(135deg, var(--futura-primary) 0%, var(--futura-accent) 50%, var(--futura-primary) 100%);
  overflow: hidden;
  margin-top: 0;
}

/* Dark overlay preko background slike za bolji kontrast */
.single .page-title::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
  pointer-events: none;
}

/* Hide decorative white shapes/dots */
.single .page-title::before,
.single .page-title::after,
.single .page-title .container::before,
.single .page-title .container::after,
.single .theme-breadcrumb-box::before,
.single .theme-breadcrumb-box::after,
.single .page-breadcrumb::before,
.single .page-breadcrumb::after,
.single .breadcrumb::before,
.single .breadcrumb::after {
  display: none !important;
  content: none !important;
}

/* Hide any decorative elements in breadcrumb */
.single .breadcrumb-item i.bi-house-door {
  display: none !important;
}

/* Main Content Layout - 2 columns */
.single .elementor-element-ddeb78b .row {
  align-items: flex-start;
}

/* Sidebar - Project Details */
.single .portfolio-meta-info {
  position: sticky;
  top: 100px;
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 0;
}

.single .portfolio-meta-info h4 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 25px;
  color: #141111;
}

.single .portfolio-meta-info .list-unstyled li {
  display: flex;
  align-items: flex-start;
  padding: 10px 0;
}

.single .portfolio-meta-info .list-unstyled li:last-child {
  border-bottom: none;
}

.single .portfolio-meta-info .list-unstyled li i {
  font-size: 20px;
  color: var(--futura-primary);
  margin-right: 15px;
  margin-top: 2px;
  flex-shrink: 0;
}

.single .portfolio-meta-info .info-inner-text {
  flex: 1;
}

.single .portfolio-meta-info .sub-title {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #666;
  margin-bottom: 5px;
}

.single .portfolio-meta-info .title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #141111;
  line-height: 1.5;
}

/* Main Content Styling */
.single .elementor-element-cfea21b {
  padding-right: 40px;
}

.single .theme-title.style-1 {
  margin-bottom: 30px;
}

.single .theme-title.style-1 .ht-subtitle h6 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--futura-primary);
  margin-bottom: 15px;
  font-weight: 600;
}

.single .theme-title.style-1 h2 {
  font-size: 42px;
  line-height: 1.2;
  font-weight: 700;
  color: #ffffff !important;
  margin-bottom: 30px;
}

/* Remove text animation - remove word divs and display text normally */
.single .theme-title.style-1 h2 .word {
  display: inline !important;
  opacity: 1 !important;
  clip-path: none !important;
  animation: none !important;
  transform: none !important;
}

.single .theme-title.style-1 h2.text-anime-style {
  display: block !important;
}

.single .theme-title.style-1 h2.text-anime-style .word {
  display: inline !important;
  position: static !important;
  opacity: 1 !important;
  clip-path: none !important;
  animation: none !important;
  transform: none !important;
}

.single .elementor-drop-cap {
  float: left;
  margin-right: 10px;
  margin-top: 5px;
}

.single .elementor-drop-cap-letter {
  font-size: 72px;
  line-height: 1;
  font-weight: 700;
  color: var(--futura-primary);
  display: block;
}

.single .elementor-widget-text-editor p {
  font-size: 18px !important;
  line-height: 1.8 !important;
  color: #ffffff !important;
  margin-bottom: 1.5em !important;
  font-family: inherit !important;
}

.single .elementor-widget-text-editor p:last-child {
  margin-bottom: 0 !important;
}

/* Remove inline styles from CMS content */
.single .elementor-widget-text-editor p[style],
.single .elementor-widget-text-editor span[style],
.single .elementor-widget-container p[style],
.single .elementor-widget-container span[style] {
  font-size: 18px !important;
  font-family: inherit !important;
  color: #ffffff !important;
  line-height: 1.8 !important;
  background-color: transparent !important;
}

/* Ukloni background-color iz svih paragrafa i span-ova */
.single .elementor-widget-text-editor p,
.single .elementor-widget-text-editor span,
.single .elementor-widget-container p,
.single .elementor-widget-container span,
.single .page-content p,
.single .page-content span {
  background-color: transparent !important;
  background: transparent !important;
}

.single .elementor-widget-text-editor span {
  font-size: inherit !important;
  font-family: inherit !important;
  color: inherit !important;
}

/* Boldovani span-ovi sa inline stilovima - plava boja */
.single .elementor-widget-text-editor span[style*="font-weight: bold"],
.single .elementor-widget-text-editor span[style*="font-weight:bold"],
.single .elementor-widget-text-editor span[style*="font-weight: 700"],
.single .elementor-widget-text-editor span[style*="font-weight:700"],
.single .elementor-widget-container span[style*="font-weight: bold"],
.single .elementor-widget-container span[style*="font-weight:bold"],
.single .elementor-widget-container span[style*="font-weight: 700"],
.single .elementor-widget-container span[style*="font-weight:700"],
.single .page-content span[style*="font-weight: bold"],
.single .page-content span[style*="font-weight:bold"],
.single .page-content span[style*="font-weight: 700"],
.single .page-content span[style*="font-weight:700"],
.single .page-content p span[style*="font-weight: bold"],
.single .page-content p span[style*="font-weight:bold"],
.single .page-content p span[style*="font-weight: 700"],
.single .page-content p span[style*="font-weight:700"] {
  color: #3572C2 !important;
  font-weight: 700 !important;
}

/* Bold formatting - must be visible and blue */
.single .elementor-widget-text-editor strong,
.single .elementor-widget-text-editor b,
.single .elementor-widget-container strong,
.single .elementor-widget-container b,
.single .elementor-element-b839d95 strong,
.single .elementor-element-b839d95 b,
.single .elementor-element-b839d95 .elementor-widget-container strong,
.single .elementor-element-b839d95 .elementor-widget-container b,
.single .elementor-element-b839d95 p strong,
.single .elementor-element-b839d95 p b,
.single .elementor-element-b839d95 span strong,
.single .elementor-element-b839d95 span b,
.single .page-content strong,
.single .page-content b,
.single .page-content .elementor-widget-text-editor strong,
.single .page-content .elementor-widget-text-editor b,
.single .page-content .elementor-widget-container strong,
.single .page-content .elementor-widget-container b,
.single .elementor-widget-text-editor span[style*="font-weight: bold"],
.single .elementor-widget-text-editor span[style*="font-weight:bold"],
.single .elementor-widget-container span[style*="font-weight: bold"],
.single .elementor-widget-container span[style*="font-weight:bold"],
.single .page-content span[style*="font-weight: bold"],
.single .page-content span[style*="font-weight:bold"],
.single .page-content p span[style*="font-weight: bold"],
.single .page-content p span[style*="font-weight:bold"] {
  font-weight: 700 !important;
  font-size: 1.15em !important;
  color: #3572C2 !important;
  display: inline !important;
}

/* Override inline styles for bold */
.single .elementor-widget-text-editor strong[style],
.single .elementor-widget-text-editor b[style],
.single .elementor-widget-container strong[style],
.single .elementor-widget-container b[style],
.single .page-content strong[style],
.single .page-content b[style],
.single .elementor-widget-text-editor span[style*="font-weight: bold"],
.single .elementor-widget-text-editor span[style*="font-weight:bold"],
.single .elementor-widget-container span[style*="font-weight: bold"],
.single .elementor-widget-container span[style*="font-weight:bold"],
.single .page-content span[style*="font-weight: bold"],
.single .page-content span[style*="font-weight:bold"],
.single .page-content p span[style*="font-weight: bold"],
.single .page-content p span[style*="font-weight:bold"] {
  color: #3572C2 !important;
}

/* Gallery Images in Content */
.single .row .col-md-6 {
  margin-bottom: 20px;
}

.single .row .col-md-6 img {
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Challenge, Solutions, Results Sections */
.single .ht-heading.text-theme {
  font-size: 36px;
  font-weight: 700;
  color: var(--futura-primary);
  margin-bottom: 20px;
}

.single .elementor-element-1158feb,
.single .elementor-element-c86890b,
.single .elementor-element-9035b5e {
  margin-bottom: 20px;
}

.single .elementor-element-1158feb p,
.single .elementor-element-c86890b p,
.single .elementor-element-9035b5e p {
  font-size: 18px;
  line-height: 1.8;
  color: #ffffff;
}

/* Responsive */
@media (max-width: 991px) {
  .single .elementor-element-cfea21b {
    padding-right: 0;
    margin-bottom: 40px;
  }
  
  .single .portfolio-meta-info {
    position: relative;
    top: 0;
  }
  
  .single .theme-title.style-1 h2 {
    font-size: 36px;
  }
}

.single .page-title-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.3;
  z-index: 0;
}

.single .page-title .container {
  position: relative;
  z-index: 3;
  max-width: var(--futura-container, 1320px);
  margin: 0 auto;
  padding-left: var(--futura-container-pad, clamp(16px, 3vw, 28px));
  padding-right: var(--futura-container-pad, clamp(16px, 3vw, 28px));
}

.single .theme-breadcrumb-box h1 {
  color: #ffffff;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.2;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  width: 100% !important;
  max-width: 100% !important;
}

.single .theme-breadcrumb-box {
  width: 100% !important;
  max-width: 100% !important;
}

.single .col-lg-6 {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
}

.single .page-breadcrumb,
.single .breadcrumb,
.single .breadcrumb-item,
.single nav[aria-label="breadcrumb"] {
  display: none !important;
}

.single .breadcrumb-item {
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 500;
}

.single .breadcrumb-item a {
  color: #ffffff !important;
  text-decoration: none;
  transition: color 0.1s ease;
}

.single .breadcrumb-item a:hover {
  color: #ffffff !important;
}

.single .breadcrumb-item.active {
  color: #ffffff !important;
}

.single .breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.6);
}

/* Back button */
.futura-back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #ffffff !important;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 24px;
  transition: all 0.1s ease;
  font-family: 'Exo', sans-serif;
}

.futura-back-button:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff !important;
  transform: translateX(-4px);
}

.futura-back-button i {
  font-size: 18px;
  color: #ffffff !important;
}

/* Page Content */
.single .page-content {
  background: var(--futura-dark) !important;
  padding-top: 0;
  padding-bottom: 80px;
}

/* Project Meta Box - Improved Design */
.single .portfolio-meta-info {
  background: #ffffff;
  border: 2px solid var(--futura-primary);
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 60px;
  box-shadow: 0 8px 30px rgba(53, 114, 194, 0.12);
  transition: all 0.1s ease;
}

.single .portfolio-meta-info:hover {
  box-shadow: 0 12px 40px rgba(53, 114, 194, 0.18);
  transform: translateY(-2px);
}

.single .portfolio-meta-info h4 {
  color: #141111 !important;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid rgba(53, 114, 194, 0.1);
}

.single .portfolio-meta-info ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.single .portfolio-meta-info ul li {
  display: flex;
  align-items: flex-start;
  padding: 10px 0;
}

.single .portfolio-meta-info ul li:last-child {
  border-bottom: none;
}

.single .portfolio-meta-info ul li i {
  color: var(--futura-primary);
  font-size: 24px;
  margin-top: 2px;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}

.single .portfolio-meta-info .info-inner-text {
  flex: 1;
}

.single .portfolio-meta-info .sub-title {
  display: block;
  color: #666;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.single .portfolio-meta-info .title {
  display: block;
  color: var(--futura-dark);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
}

/* Content Sections */

/* Challenge, Solutions, Results sections - reduce spacing */
.single .elementor-element-1bd19c2,
.single .elementor-element-2832b6c,
.single .elementor-element-7b86d84 {
  padding: 20px 0 !important;
}

.single .elementor-element-1bd19c2 .e-con-inner,
.single .elementor-element-2832b6c .e-con-inner,
.single .elementor-element-7b86d84 .e-con-inner {
  padding: 0 !important;
}

/* Hide dividers */
.single .elementor-element-4b898f1,
.single .elementor-element-9add970 {
  display: none !important;
}

.single .page-content .e-con-inner {
  max-width: var(--futura-container, 1320px);
  margin: 0 auto;
  padding-left: var(--futura-container-pad, clamp(16px, 3vw, 28px));
  padding-right: var(--futura-container-pad, clamp(16px, 3vw, 28px));
}

/* Title Styling */
.single .page-content .theme-title h2 {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff !important;
  margin-bottom: 30px;
  letter-spacing: -0.5px;
}

.single .page-content .ht-subtitle h6 {
  color: var(--futura-primary);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

/* Text Content */

.single .page-content .elementor-widget-text-editor p {
  font-size: 18px;
  line-height: 1.8;
  color: #ffffff;
  margin-bottom: 20px;
}

.single .page-content .elementor-widget-text-editor p:last-child {
  margin-bottom: 0;
}

/* Drop Cap */
.single .elementor-drop-cap {
  float: left;
  font-size: 5em;
  line-height: 0.9;
  margin-right: 15px;
  margin-top: 8px;
}

.single .elementor-drop-cap-letter {
  color: var(--futura-primary);
  font-weight: 800;
}

/* Gallery Images */
.single .page-content .row {
  margin-left: -15px;
  margin-right: -15px;
}

.single .page-content .row > [class*="col-"] {
  padding-left: 15px;
  padding-right: 15px;
  margin-bottom: 30px;
}

.single .page-content .elementor-widget-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.1s ease;
}

.single .page-content .elementor-widget-image:hover img {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

/* Challenge, Solutions, Results Sections */
.single .page-content .ht-heading {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  color: #ffffff !important;
  margin-bottom: 24px;
  line-height: 1.3;
}

.single .page-content .ht-heading.text-theme {
  color: var(--futura-primary);
}

/* Divider */
.single .page-content .elementor-divider {
  margin: 60px 0;
}

.single .page-content .elementor-divider-separator {
  border-top: 2px solid rgba(20, 17, 17, 0.1);
  width: 100%;
}

/* Responsive */
@media (max-width: 991px) {
  .single .page-title {
    padding: 120px 0 80px;
  }
  
  .single .portfolio-meta-info {
    padding: 30px;
    margin-bottom: 40px;
  }
}

@media (max-width: 767px) {
  .single .page-title {
    padding: 100px 0 60px;
  }
  
  .single .theme-breadcrumb-box h1 {
    font-size: 36px;
  }
  
  .single .page-breadcrumb {
    margin-top: 16px;
    display: block !important;
  }
  
  .single .breadcrumb {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }
  
  .single .breadcrumb-item {
    display: inline-block !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
  }
  
  .single .breadcrumb-item a {
    color: #ffffff !important;
    text-decoration: none !important;
  }
  
  .single .breadcrumb-item.active {
    color: #ffffff !important;
  }
  
  .single .breadcrumb-item + .breadcrumb-item::before {
    content: "/" !important;
    padding: 0 8px !important;
    color: rgba(255, 255, 255, 0.6) !important;
    display: inline-block !important;
  }
  
  .single .portfolio-meta-info {
    padding: 24px;
    margin-bottom: 30px;
  }
  
  .single .portfolio-meta-info h4 {
    font-size: 24px;
    margin-bottom: 20px;
  }
  
  .single .portfolio-meta-info ul li {
    padding: 10px 0;
  }
  
  .single .portfolio-meta-info .title {
    font-size: 16px;
  }
  
  .single .page-content .elementor-widget-text-editor p {
    font-size: 16px;
    line-height: 1.7;
  }
}

/* Bold highlight class for custom bold words - ensure it works everywhere */
.single .page-content .highlight-bold,
.single .page-content strong,
.single .page-content b,
.single .elementor-widget-text-editor strong,
.single .elementor-widget-text-editor b,
.single .elementor-widget-container strong,
.single .elementor-widget-container b,
.single .elementor-element-b839d95 strong,
.single .elementor-element-b839d95 b,
.single .elementor-element-b839d95 .elementor-widget-container strong,
.single .elementor-element-b839d95 .elementor-widget-container b,
.single .elementor-element-b839d95 p strong,
.single .elementor-element-b839d95 p b,
.single .elementor-widget-text-editor span[style*="font-weight: bold"],
.single .elementor-widget-text-editor span[style*="font-weight:bold"],
.single .elementor-widget-container span[style*="font-weight: bold"],
.single .elementor-widget-container span[style*="font-weight:bold"],
.single .page-content span[style*="font-weight: bold"],
.single .page-content span[style*="font-weight:bold"],
.single .page-content p span[style*="font-weight: bold"],
.single .page-content p span[style*="font-weight:bold"] {
  font-weight: 700 !important;
  font-size: 1.15em !important;
  color: #3572C2 !important;
  display: inline !important;
}

/* Alternative: just bold without color change */
.single .page-content .text-bold,
.single .elementor-widget-text-editor .text-bold {
  font-weight: 700 !important;
}
