/*
Theme Name: CoolPower Theme (Dinámico v2)
Theme URI: https://coolpower.cl
Author: Cool Power Team
Author URI: https://coolpower.cl
Description: Versión 2.0 Dinámica. Incluye soporte para Proyectos, Slides, Noticias y Widgets en el pie de página. Migrado desde HTML estático.
Version: 2.0
Text Domain: coolpower-theme
*/

/* Importar estilos originales */
@import url("css/styles.css");

/* ==========================================================================
   WordPress Menu Compatibility
   ========================================================================== */

/* Ensure parent item positioning */
.nav .menu .menu-item-has-children {
  position: relative;
}

/* Sub-menu styles (replicating .dropdown) */
.nav .menu .sub-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  display: none;
  flex-direction: column;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px;
  z-index: 100;
}

.nav .menu .sub-menu li {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav .menu .sub-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.nav .menu .sub-menu a:hover {
  background: var(--bg-alt);
  color: var(--brand);
}

/* Open state via JS class */
.nav .menu .menu-item-has-children.open>.sub-menu {
  display: flex;
}

/* Hover state for desktop */
@media (min-width: 641px) {
  .nav .menu .menu-item-has-children:hover>.sub-menu {
    display: flex;
  }
}

/* Dropdown toggle arrow for WP parent items */
.nav .menu .menu-item-has-children>a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav .menu .menu-item-has-children>a::after {
  content: "▾";
  font-size: 0.9em;
  line-height: 1;
  opacity: 0.8;
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .nav .menu .sub-menu {
    position: static;
    border: none;
    box-shadow: none;
    padding: 6px 0 0 14px;
  }
}

/* ==========================================================================
   Projects Gallery (Horizontal Scroll)
   ========================================================================== */
.projects-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-bottom: 32px;
}

@media (max-width: 1024px) {
  .projects-preview-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .projects-preview-grid {
    grid-template-columns: 1fr !important;
  }
}

.news-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 32px;
}

@media (max-width: 1024px) {
  .news-preview-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .news-preview-grid {
    grid-template-columns: 1fr !important;
  }
}

.project-preview-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: transform 0.3s ease;
}

.project-preview-card:hover .project-preview-image img {
  transform: scale(1.05);
}

.project-preview-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-preview-content h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--brand-ink);
  text-wrap: balance;
}

.project-preview-content .project-meta {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.project-preview-content .btn-link {
  margin-top: auto;
  color: var(--brand);
  font-weight: 600;
  font-size: 14px;
}

/* Scrollbar styling */
.projects-preview-grid::-webkit-scrollbar {
  height: 8px;
}

.projects-preview-grid::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.projects-preview-grid::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.projects-preview-grid::-webkit-scrollbar-thumb:hover {
  background: #bbb;
}

/* ==========================================================================
   Responsive Utilities
   ========================================================================== */
.desktop-only {
  display: inline;
}

.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: inline;
  }
}

/* ==========================================================================
   Language Selector
   ========================================================================== */
.language-selector {
  position: relative;
  margin-left: 16px;
  display: inline-block;
}

.language-toggle {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.language-toggle:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.language-toggle img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.language-arrow {
  font-size: 10px;
  color: #6b7280;
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  /* Align right */
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 8px;
  min-width: 160px;
  display: none;
  flex-direction: column;
  z-index: 100;
  list-style: none;
}

.language-dropdown.open {
  display: flex;
}

.language-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  text-decoration: none;
  color: #374151;
  border-radius: 8px;
  transition: background 0.2s;
  font-size: 14px;
  font-weight: 500;
}

.language-option:hover {
  background: #f3f4f6;
}

.language-option.active {
  background: #fff7ed;
  /* Light orange bg */
  color: #ea580c;
  /* Orange text */
}

.language-option img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

/* ==========================================================================
   Mobile Fixes for About Section
   ========================================================================== */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .about-image {
    margin: 0 auto;
  }

  .about-image img {
    width: 280px;
    height: 280px;
  }
}

/* ==========================================================================
   Single Post Styles (News)
   ========================================================================== */
/* ==========================================================================
   Single Post Styles (News Redesign)
   ========================================================================== */

/* --- Header Split Layout --- */
.article-header-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 4rem 1rem;
  align-items: center;
  margin-bottom: 2rem;
}

@media (max-width: 900px) {
  .article-header-split {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
}

/* Header Content (Left) */
.header-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.header-meta-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: #6b7280;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .header-meta-top {
    justify-content: center;
  }
}

.category-tag {
  background-color: #fff7ed;
  color: #ea580c;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.entry-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.2;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.header-excerpt {
  font-size: 1.25rem;
  color: #4b5563;
  line-height: 1.6;
  text-align: justify;
}

/* Author Box */
.author-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

@media (max-width: 900px) {
  .author-box {
    justify-content: center;
  }
}

.author-avatar img {
  border-radius: 50%;
  width: 50px;
  height: 50px;
  object-fit: cover;
}

.author-info {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
}

.author-info strong {
  color: #111;
}

.author-info span {
  color: #ea580c;
  /* Brand Color */
}

/* Header Image (Right) */
.header-image {
  position: relative;
}

.header-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.image-caption {
  text-align: right;
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: 0.5rem;
  font-style: italic;
}

/* --- Article Body --- */
.article-content-wrapper {
  display: grid;
  grid-template-columns: 60px 1fr;
  /* Social share + Content */
  gap: 2rem;
  max-width: 900px;
  /* Constrain width */
  margin: 0 auto;
}

@media (max-width: 768px) {
  .article-content-wrapper {
    grid-template-columns: 1fr;
  }
}

/* Sticky Social Share */
.social-share-sticky {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 100px;
  height: fit-content;
}

@media (max-width: 768px) {
  .social-share-sticky {
    flex-direction: row;
    justify-content: center;
    margin-bottom: 2rem;
    position: static;
  }
}

.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  transition: all 0.2s;
  text-decoration: none;
}

.share-btn:hover {
  background-color: #f3f4f6;
  color: #ea580c;
  border-color: #ea580c;
}

/* Content Typography */
.article-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #374151;
  text-align: justify;
}

/* Drop Cap */
.article-content>p:first-of-type::first-letter {
  float: left;
  font-size: 3.5rem;
  line-height: 0.8;
  font-weight: 800;
  color: #ea580c;
  margin-right: 0.75rem;
  margin-top: 0.25rem;
}

.article-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #111;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Decorative dash before H2 */
.article-content h2::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 4px;
  background-color: #ea580c;
  border-radius: 2px;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content ul {
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.75rem;
  position: relative;
  list-style: none;
}

.article-content li::before {
  content: "•";
  color: #ea580c;
  font-weight: bold;
  position: absolute;
  left: -1.2rem;
}

/* Blockquote */
.article-content blockquote {
  border-left: 4px solid #ea580c;
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: #fff7ed;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #4b5563;
}

/* Tags */
.article-tags {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.article-tags a {
  background: #f3f4f6;
  color: #4b5563;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.2s;
}

.article-tags a:hover {
  background: #e5e7eb;
  color: #111;
}

/* --- Related News Grid --- */
.related-news-block {
  margin-top: 4rem;
  padding-top: 4rem;
  border-top: 1px solid #e5e7eb;
}

.related-news-block h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.related-news-block h3 i {
  color: #ea580c;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}

.related-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.related-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-cat-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #fff;
  color: #ea580c;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.related-content {
  padding: 1.5rem;
}

.related-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.related-content h4 a {
  color: #111;
  text-decoration: none;
}

.related-content p {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0;
  text-align: justify;
}

/* News Excerpt Justification */
.news-excerpt {
  text-align: justify;
}

/* News Card Excerpt (Home) */
.news-card p {
  text-align: justify;
}

/* ==========================================================================
   Comments Section Styles
   ========================================================================== */

.comments-area {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid #e5e7eb;
}

.comments-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #111;
  display: flex;
  align-items: center;
  gap: 10px;
}

.comments-title::before {
  content: "\f101";
  /* Dashicon speech bubble */
  font-family: "dashicons";
  color: #ea580c;
}

/* Comment List */
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 3rem 0;
}

.comment-list li.comment {
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s;
}

.comment-list li.comment:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.comment-body {
  display: block;
  position: relative;
  padding-left: 80px;
  /* Space for avatar */
}

.comment-author .avatar {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 2px solid #fff7ed;
}

@media (max-width: 600px) {
  .comment-body {
    padding-left: 0;
  }

  .comment-author .avatar {
    position: static;
    margin-bottom: 10px;
  }
}

.comment-meta {
  margin-bottom: 0.5rem;
}

.comment-meta .fn {
  font-style: normal;
  font-weight: 700;
  font-size: 1.1rem;
  color: #111;
  margin-right: 0.5rem;
}

.comment-metadata {
  font-size: 0.85rem;
  color: #9ca3af;
  display: inline-block;
}

.comment-metadata a {
  color: inherit;
  text-decoration: none;
}

.comment-content p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #4b5563;
}

.reply {
  text-align: right;
}

.comment-reply-link {
  display: inline-block;
  padding: 6px 16px;
  background: #fff7ed;
  color: #ea580c;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.comment-reply-link:hover {
  background: #ea580c;
  color: #fff;
}

/* Comment Form */
.comment-form-wrapper {
  background: #f9fafb;
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
}

.comment-reply-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #111;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.comment-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 600px) {
  .comment-form-row {
    grid-template-columns: 1fr;
  }
}

.comment-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.comment-form-field label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #374151;
}

.comment-form-field input,
.comment-form-field textarea {
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  background: #fff;
}

.comment-form-field input:focus,
.comment-form-field textarea:focus {
  outline: none;
  border-color: #ea580c;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

.form-submit {
  margin-top: 1rem;
}

.submit.btn {
  background: #ea580c;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 1rem;
}

.submit.btn:hover {
  background: #c2410c;
}

.comment-notes,
.logged-in-as {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

/* ==========================================================================
   News Hub Redesign (Infinite Scroll & Modern Grid)
   ========================================================================== */

.news-grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.news-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: #fed7aa;
  /* Light orange border on hover */
}

/* Image Wrapper */
.news-card-image-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.news-card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card-modern:hover .news-card-image-wrapper img {
  transform: scale(1.05);
}

.news-category-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.95);
  color: #ea580c;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4px);
}

/* Card Body */
.news-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: #9ca3af;
  margin-bottom: 12px;
}

.news-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
  color: #111;
}

.news-title a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

.news-title a:hover {
  color: #ea580c;
}

.news-excerpt {
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
  text-align: justify;
  /* Justify excerpt */
}

/* Card Footer */
.news-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid #f3f4f6;
  margin-top: auto;
}

.news-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-author img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.news-author span {
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
}

.read-more-btn {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ea580c;
  text-decoration: none;
  transition: color 0.2s;
}

.read-more-btn:hover {
  color: #c2410c;
}

/* Spinner Animation */
.spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #ea580c;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Fade In Animation for new posts */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

/* ==========================================================================
   News Hero Banner (Custom Design)
   ========================================================================== */

.news-hero-banner {
  background-color: #0f172a;
  /* Dark Navy Blue */
  padding: 6rem 1rem;
  text-align: center;
  color: #fff;
}

.news-hero-title {
  font-family: var(--font-serif, "Merriweather", serif);
  /* Use theme serif font */
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  color: #fff;
  text-transform: uppercase;
}

.news-hero-underline {
  width: 80px;
  height: 6px;
  background-color: #ea580c;
  /* Orange */
  margin: 0 auto 2rem auto;
  border-radius: 3px;
}

.news-hero-subtitle {
  font-family: var(--font-sans, "Inter", sans-serif);
  /* Use theme sans font */
  font-size: 1.25rem;
  color: #cbd5e1;
  /* Light gray text */
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .news-hero-title {
    font-size: 2.5rem;
  }
}

/* ==========================================================================
   Nosotros Page Responsive Grid
   ========================================================================== */
.grid-2-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.grid-3-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 32px;
  text-align: center;
}


/* Mobile Responsiveness */
@media (max-width: 900px) {
  .grid-2-cols {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .grid-3-cols {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .grid-2-cols>div:first-child {
    order: 1;
    /* Text first */
  }

  .grid-2-cols>div:last-child {
    order: 2;
    /* Image second */
  }

  /* Timeline Mobile Fixes */
  .timeline-container {
    margin: 32px 0;
    padding-left: 16px;
    /* Space for icons */
  }

  .timeline-item {
    width: 100%;
    margin-top: 0;
    /* Remove negative margin */
    margin-bottom: 32px;
    padding: 0 0 0 50px;
    /* Space for icon on left */
    left: 0 !important;
    /* Reset left positioning */
    text-align: left !important;
    /* Reset text alignment */
    transform: none !important;
    /* Reset transform */
    opacity: 1 !important;
    /* Ensure visibility */
  }

  /* Reset odd/even specific styles */
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    left: 0;
    text-align: left;
  }

  /* Fix Icons */
  .timeline-icon,
  .timeline-item:nth-child(even) .timeline-icon {
    left: 0;
    right: auto;
    top: 0;
    transform: none;
    margin-left: 0;
  }

  /* Fix Connectors (Lines) */
  .timeline-item::before,
  .timeline-item::after,
  .timeline-item:nth-child(odd)::before,
  .timeline-item:nth-child(odd)::after,
  .timeline-item:nth-child(even)::before,
  .timeline-item:nth-child(even)::after {
    left: 19px;
    /* Center of 40px icon (approx) - adjusted for border */
    right: auto;
  }

  .timeline-item::before {
    height: 100%;
    /* Full height line */
    top: -32px;
    /* Connect to previous */
    bottom: auto;
  }

  .timeline-item:first-child::before {
    display: none;
  }

  .timeline-item::after {
    display: none;
    /* Simplify to single line */
  }

  .timeline-content {
    width: 100%;
  }
}

/* Fix navigation menu wrapping for German/English pages */
.nav .menu a,
.nav .menu .dropdown-toggle {
  white-space: nowrap;
  padding: 8px 8px;
}

.nav .menu {
  gap: 12px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .nav .menu {
    gap: 8px;
  }

  .nav .menu a,
  .nav .menu .dropdown-toggle {
    padding: 8px 6px;
    font-size: 0.95em;
  }
}