﻿/* Mobile Responsive Fixes - Added for phone compatibility */

/* Prevent horizontal scrolling on all devices */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

/* Mobile-first approach for phones (up to 640px) */
@media (max-width: 640px) {
  body {
    padding: 0;
    margin: 0;
    font-size: 14px;
  }

  /* Container padding fixes */
  .container {
    padding-left: 12px;
    padding-right: 12px;
    max-width: 100% !important;
    width: 100%;
  }

  .container-fluid {
    padding-left: 12px;
    padding-right: 12px;
  }

  /* Navbar fixes */
  #mainNav {
    padding: 0.4rem 0 !important;
    background: linear-gradient(135deg, #b50444, #f9056c) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
  }

  #mainNav.navbar-shrink {
    background: linear-gradient(135deg, #94003f, #f9056c) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
  }

  .navbar-brand {
    padding: 0.3rem 0;
  }

  .logo-img,
  #mainNav .navbar-brand img {
    max-width: 250px;
    height: 6.2rem !important;
    transition: none;
  }

  .morph-menu-links {
    width: 100%;
    gap: 8px;
  }

  #mainNav .morph-menu-panel {
    width: 100%;
  }

  /* Navbar Toggler */
  .navbar-toggler {
    padding: 0.5rem 0.75rem !important;
    border: none !important;
    background: transparent !important;
    transition: all 0.3s ease;
  }

  .navbar-toggler:hover {
    transform: scale(1.1);
  }

  .navbar-toggler:focus {
    box-shadow: none !important;
    background: rgba(249, 5, 108, 0.1) !important;
    border-radius: 8px;
  }

  .navbar-toggler-icon {
    width: 1.5rem;
    height: 1.5rem;
  }

  .navbar-collapse {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    padding: 0 !important;
  }

  .navbar-collapse.show {
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(249, 5, 108, 0.3);
    border-radius: 12px;
    margin-top: 0.8rem;
    padding: 1.2rem !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  }

  .navbar-nav {
    flex-direction: column;
    align-items: center;
  }

  .navbar-nav .nav-item {
    margin: 0.4rem 0;
    width: 100%;
  }

  .navbar-nav .nav-link {
    color: white !important;
    font-weight: 600;
    padding: 0.62rem 0.78rem !important;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link.active {
    background: rgba(249, 5, 108, 0.2) !important;
    color: #f9056c !important;
    transform: scale(1.05);
  }

  /* ===================================================
     HERO INTRO (index.html) - aspect similar cu desktop
     =================================================== */
  .masthead {
    padding: 0;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  /* Video de fundal - acopera tot ecranul ca pe desktop */
  .masthead-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
  }

  .masthead .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 6rem;
    /* offset navbar */
    padding-bottom: 3rem;
    gap: 1.2rem;
    text-align: center;
  }

  /* SVG logo "ROLERBOT" — MARE, vizibil ca pe desktop */
  .hero-handwrite-logo {
    width: min(98vw, 760px) !important;
    height: auto !important;
    margin: 0 auto;
    display: block;
  }

  /* Textul SVG din logo — font marit */
  .hero-handwrite-logo text {
    font-size: clamp(7.4rem, 28vw, 15rem) !important;
    fill: transparent !important;
    stroke: #f9056c !important;
    stroke-width: 3.8 !important;
    paint-order: stroke fill !important;
    letter-spacing: 0.02em !important;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.85)) drop-shadow(0 8px 20px rgba(0, 0, 0, 0.55)) !important;
  }

  body.intro-writing-complete .hero-handwrite-logo text {
    fill: #f9056c !important;
    transition: fill 0.28s ease;
  }

  /* Buton "Află mai multe" - identic ca stil desktop, dar centrat */
  .hero-actions,
  .hero-under-video-cta {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .btn-start-hero {
    font-size: 1rem !important;
    padding: 0.85rem 2.2rem !important;
    border-radius: 999px !important;
    box-shadow: 0 6px 24px rgba(249, 5, 108, 0.45) !important;
    letter-spacing: 0.08em;
    min-width: 180px;
    justify-content: center;
  }

  /* Scroll indicator centrat */
  .hero-scroll-indicator {
    bottom: 18px;
  }

  /* Buton sunet — mai mic pe telefon */
  .hero-sound-toggle {
    width: 44px !important;
    height: 44px !important;
    font-size: 0.88rem !important;
    right: 12px !important;
    bottom: 14px !important;
  }

  /* ===================================================
     BLOG HERO INTRO - aspect similar cu desktop
     =================================================== */
  .masthead-blog {
    min-height: 82svh;
    position: relative;
    overflow: hidden;
  }

  /* Container: stiva verticala ca pe PC, dar pe o coloana */
  .masthead-blog .hero-intro-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 82svh;
    padding-top: 5rem;
    padding-bottom: 3rem;
    gap: 2rem;
  }

  .blog-page .hero-intro-copy {
    width: 100%;
    align-items: center;
    text-align: center;
    margin: 0 auto;
    gap: 1.4rem;
    padding: 0 16px;
    order: 1;
  }

  /* Logo "BLOG" animat — mare, vizibil */
  .blog-page .blog-handwrite-logo {
    width: clamp(280px, 98vw, 560px) !important;
    height: auto;
    margin: 0 auto;
  }

  .blog-page .blog-handwrite-logo text {
    font-size: clamp(6.6rem, 28vw, 10.5rem) !important;
    stroke-width: 2.5;
    letter-spacing: 0.05em;
    text-anchor: middle !important;
  }

  .blog-page #blogHandText {
    x: 43% !important;
    y: 52% !important;
  }

  /* Buton "Citeste blogul" — identic cu desktop */
  .blog-page #blogReadBtn {
    font-size: 1rem !important;
    padding: 0.9rem 2.2rem !important;
    border-radius: 999px !important;
    box-shadow: 0 6px 20px rgba(249, 5, 108, 0.4) !important;
    letter-spacing: 0.05em;
    min-width: 180px;
    justify-content: center;
  }

  /* Ziarul animat — mai mic, centrat, deasupra textului */
  .blog-page .blog-newspaper {
    position: absolute;
    left: auto !important;
    right: 50% !important;
    top: 58% !important;
    width: min(75vw, 320px);
    margin: 0;
    order: unset;
    transform: translate(50%, calc(-185% + (var(--blog-intro-progress) * 132%))) rotate(calc(-15deg + (var(--blog-intro-progress) * 8deg))) !important;
    opacity: var(--blog-intro-progress) !important;
  }

  /* pastreaza animatia intro pe mobil */
  .masthead-blog.intro-playing .blog-newspaper,
  .masthead-blog .blog-newspaper {
    transform: translate(50%, calc(-185% + (var(--blog-intro-progress) * 132%))) rotate(calc(-15deg + (var(--blog-intro-progress) * 8deg))) !important;
    opacity: var(--blog-intro-progress) !important;
  }

  /* Page sections */
  .page-section {
    padding: 3.5rem 0;
  }

  .section-heading {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
  }

  .section-subheading {
    font-size: 0.9rem;
    margin-bottom: 2rem;
  }

  /* Text content */
  p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  h4 {
    font-size: 1.1rem;
  }

  /* Portfolio & Grid items */
  .portfolio-item {
    margin-bottom: 1.5rem;
  }

  .col-lg-4,
  .col-md-6,
  .col-sm-6 {
    padding: 0.75rem 0;
  }

  .portfolio-caption-heading {
    font-size: 0.9rem;
  }

  /* ===== TIMELINE MOBIL — fix prin flexbox ===== */
  .timeline {
    padding-left: 0;
    list-style: none;
  }

  /* Fiecare item = coloana centrata */
  .timeline>li {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    float: none !important;
    margin-bottom: 2.5rem !important;
    min-height: auto !important;
    width: 100% !important;
  }

  /* Imaginea circulara — centrata natural prin flexbox, fara left */
  .timeline>li .timeline-image {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    margin: 0 auto 1.2rem auto !important;
    width: 130px !important;
    height: 130px !important;
    float: none !important;
  }

  /* Card text sub imagine */
  .timeline>li .timeline-panel {
    position: relative !important;
    float: none !important;
    width: 100% !important;
    padding: 1.2rem 1rem !important;
    margin: 0 auto !important;
    text-align: center !important;
  }

  /* Ascunde linia centrala si conectorii */
  .timeline:before,
  .timeline>li .timeline-panel:before {
    display: none !important;
  }

  .timeline-heading h4,
  .timeline>li:nth-child(odd) .timeline-heading h4,
  .timeline>li:nth-child(even) .timeline-heading h4 {
    font-size: 1rem;
    text-align: center !important;
  }

  .timeline-heading .subheading {
    text-align: center !important;
  }

  .timeline-heading .subheading:after,
  .timeline>li:nth-child(odd) .timeline-heading .subheading:after {
    margin: 8px auto 0 auto !important;
  }

  .timeline-body .text-muted,
  .timeline-body p {
    font-size: 0.88rem;
    line-height: 1.55;
    text-align: center;
  }

  /* Echipa Image */
  .team-image {
    margin-top: 2rem;
    text-align: center;
  }

  .team-image img {
    max-width: 90%;
    margin: 0 auto;
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  }

  /* Sponsori Grid - 1 coloana pe mobil */
  #portfolio .row {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #portfolio .col-lg-4,
  #portfolio .col-sm-6 {
    width: 85% !important;
    max-width: 360px;
    padding: 10px 0;
  }

  #portfolio .portfolio-item {
    margin-bottom: 0.5rem;
  }

  #portfolio .portfolio-item img {
    border-radius: 12px;
    max-height: 120px;
    object-fit: contain;
    width: 100%;
  }

  /* Blog carousel */
  .blog-carousel-container {
    padding: 0 12px;
    max-width: 100%;
  }

  .blog-cards-wrapper {
    gap: 8px;
  }

  .blog-card {
    min-width: 85vw;
    max-width: calc(100vw - 32px);
    height: auto;
    flex-shrink: 0;
    left: 50%;
    transform: translateX(-50%);
  }

  .blog-carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
    border-width: 2px;
  }

  .blog-carousel-btn.prev-btn {
    left: 5px;
  }

  .blog-carousel-btn.next-btn {
    right: 5px;
  }

  .blog-card-image {
    height: 180px;
  }

  .blog-card-content {
    padding: 16px 18px !important;
  }

  .blog-card-title {
    font-size: 0.95rem;
    line-height: 1.3;
  }

  .blog-card-description {
    font-size: 0.82rem;
    line-height: 1.4;
  }

  .blog-carousel-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  /* Buttons */
  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    display: inline-block;
    width: auto;
  }

  .btn-xl {
    padding: 0.8rem 1.6rem;
    font-size: 0.95rem;
  }

  .btn-primary {
    width: auto;
  }

  /* Images */
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  .img-fluid {
    max-width: 100%;
    height: auto;
  }

  /* Footer */
  .footer-section {
    margin-bottom: 1.5rem;
    text-align: center;
  }

  .footer-title {
    font-size: 1rem;
  }

  .footer-heading {
    font-size: 0.95rem;
  }

  .footer-links,
  .footer-contact {
    text-align: center;
  }

  .footer-links li,
  .footer-contact li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
  }

  .footer-social {
    justify-content: center;
    gap: 1rem;
  }

  .footer-bottom {
    text-align: center;
  }

  /* Remove tap highlight */
  button,
  a {
    -webkit-tap-highlight-color: transparent;
  }

  /* Flexbox adjustments */
  .d-flex {
    flex-wrap: wrap;
  }

  .row {
    margin-left: 0;
    margin-right: 0;
  }

  /* Blog page: hero + carousel + modal */
  .blog-page .hero-intro-shell,
  .blog-page .masthead-blog .container.hero-intro-shell {
    min-height: 100vh;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .blog-page .hero-intro-copy {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    gap: 1rem !important;
    align-items: center !important;
    text-align: center !important;
  }

  .blog-page #blogReadBtn {
    width: auto;
    max-width: 90vw;
    white-space: normal;
    text-align: center;
  }

  .team-members-section .team-carousel-container {
    margin: 20px auto !important;
    max-width: 100% !important;
  }

  .team-members-section .carousel-cards-wrapper {
    padding: 24px 8px !important;
  }

  .team-members-section .carousel-btn {
    width: 38px !important;
    height: 38px !important;
    font-size: 1rem !important;
  }

  .team-members-section .prev-btn {
    left: 0 !important;
  }

  .team-members-section .next-btn {
    right: 0 !important;
  }

  .season-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    padding: 6px !important;
  }

  .folder-wrapper {
    width: min(92vw, 320px) !important;
    height: auto !important;
    aspect-ratio: 14 / 11;
  }

  .modal-window {
    width: calc(100vw - 16px) !important;
    max-height: 92vh !important;
    border-radius: 14px !important;
  }

  .modal-tabs {
    padding: 8px 10px 0 !important;
    overflow-x: auto;
    white-space: nowrap;
    gap: 6px;
  }

  .tab-btn {
    padding: 10px 12px !important;
    font-size: 0.88rem !important;
    margin-right: 0 !important;
  }

  .modal-body {
    padding: 16px !important;
  }

  .activity-grid {
    grid-template-columns: 1fr !important;
  }

  .language-switcher {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 420px) {
  #mainNav .navbar-brand img {
    height: 5.2rem !important;
    max-width: 235px;
  }

  .navbar-nav .nav-link {
    font-size: 0.9rem;
    padding: 0.56rem 0.66rem !important;
  }

  .btn-start-hero,
  .blog-page #blogReadBtn {
    font-size: 0.86rem !important;
    padding: 0.68rem 1rem !important;
    letter-spacing: 0.4px !important;
  }

  .section-heading {
    font-size: 1.2rem;
  }
}

/* Tablet adjustments (640px to 1024px) */
@media (min-width: 641px) and (max-width: 1024px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .masthead {
    padding: 6rem 1.5rem 4rem;
  }

  .masthead-heading {
    font-size: 2.2rem;
  }

  .page-section {
    padding: 4rem 1.5rem;
  }

  .section-heading {
    font-size: 1.75rem;
  }

  .blog-card {
    min-width: 300px;
  }

  .season-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 26px;
  }
}

/* Ensure no overflow on all widths */
* {
  box-sizing: border-box;
}

/* Fix for potential overflow issues */
body {
  word-break: break-word;
  word-wrap: break-word;
}

table {
  table-layout: auto;
  max-width: 100%;
  overflow-x: auto;
  display: block;
}

@media (max-width: 991px) {
  #mainNav .navbar-brand img {
    height: 6rem !important;
    max-width: min(74vw, 300px) !important;
  }

  #mainNav .morph-menu-panel,
  #mainNav.menu-open .morph-menu-panel,
  #mainNav .navbar-collapse.show {
    width: min(95vw, 360px) !important;
    max-height: min(86vh, 690px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-right: 10px !important;
  }

  #mainNav .morph-menu-links,
  #mainNav .navbar-nav {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 8px !important;
  }

  #mainNav .morph-menu-links .nav-item,
  #mainNav .navbar-nav .nav-item {
    width: 100% !important;
    margin: 0 !important;
  }

  #mainNav .morph-menu-links .nav-link,
  #mainNav .navbar-nav .nav-link,
  #mainNav #rain-button.nav-link {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    transform: none !important;
  }
}

/* Prevent images from overflowing */
img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

/* === BLOG.HTML SPECIFIC MOBILE FIXES === */

@media (max-width: 640px) {

  /* Fix member description box (pink box with member description) */
  .member-description-box {
    padding: 16px !important;
    min-height: 280px !important;
    border-radius: 16px !important;
  }

  .description-content {
    top: 16px !important;
    left: 16px !important;
    right: 16px !important;
  }

  .description-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }

  .description-content p {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  /* Fix team carousel on mobile */
  .team-carousel-container {
    padding: 0 8px;
  }

  .team-card {
    min-width: 180px;
    max-width: 200px;
  }

  .member-photo {
    width: 100px;
    height: 100px;
  }

  .member-name {
    font-size: 0.9rem;
  }

  .member-department {
    font-size: 0.75rem;
  }

  /* Fix season folders grid */
  .season-grid {
    grid-template-columns: 1fr !important;
    gap: 30px;
    padding: 10px;
  }

  .folder-item {
    width: 100%;
    max-width: 100%;
  }

  .folder-wrapper {
    width: 100%;
    max-width: 260px;
    height: 200px;
    margin: 0 auto;
  }

  .folder-year {
    font-size: 1.3rem;
  }

  .folder-icon {
    font-size: 2.5rem;
  }

  /* Fix modal (seasons popup) */
  .modal-window {
    width: 96%;
    height: 92vh;
    border-radius: 16px;
    max-width: none;
  }

  .modal-header {
    padding: 16px 14px;
  }

  .modal-title {
    font-size: 1.2rem;
  }

  .modal-close {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  /* Fix modal tabs (Proba, Robot, Activitati, Meeturi buttons) */
  .modal-tabs {
    padding: 8px 10px 0;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .modal-tabs::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    padding: 10px 14px;
    font-size: 0.85rem;
    white-space: nowrap;
    margin-right: 4px;
    flex-shrink: 0;
    min-width: fit-content;
  }

  .tab-btn.active {
    border: 1px solid #eee;
    border-bottom-color: white;
  }

  .modal-body {
    padding: 20px 14px;
  }

  /* Fix robot section layout */
  .robot-section {
    padding: 14px 16px;
    border-radius: 12px;
    gap: 16px;
  }

  .robot-media {
    width: 100%;
  }

  .robot-viewer,
  .robot-image {
    height: 280px;
    border-radius: 8px;
  }

  .robot-title {
    font-size: 1.1rem;
  }

  .robot-content p {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 10px;
  }

  /* Fix file grid (robot features cards) */
  .file-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  .file-card {
    padding: 18px;
    border-radius: 14px;
  }

  .file-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
  }

  .file-name {
    font-size: 0.95rem;
    margin-bottom: 6px;
  }

  .file-desc {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  /* Fix activity grid */
  .activity-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .activity-card {
    border-radius: 14px;
  }

  .activity-title {
    font-size: 0.95rem;
  }

  .activity-text,
  .activity-meta {
    font-size: 0.85rem;
  }

  .activity-body {
    padding: 12px 14px 14px;
  }

  /* Fix accordion/cards in meeturi section */
  .card {
    border-radius: 14px !important;
    margin-bottom: 12px;
  }

  .card-header {
    padding: 12px 14px !important;
  }

  .card-header h5 {
    font-size: 0.95rem;
  }

  .card-body {
    padding: 14px !important;
  }

  .card-body p {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 10px;
  }

  .badge {
    font-size: 0.75rem !important;
    padding: 6px 12px !important;
  }
}

/* Tablet fixes for blog elements */
@media (min-width: 641px) and (max-width: 1024px) {
  .member-description-box {
    padding: 30px !important;
    min-height: 380px !important;
  }

  .modal-window {
    width: 95%;
    max-width: 800px;
  }

  .modal-tabs {
    padding: 12px 20px 0;
  }

  .tab-btn {
    padding: 12px 22px;
    font-size: 0.95rem;
  }

  .season-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .robot-viewer {
    height: 350px;
  }

  .activity-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Small phone landscape fixes */
@media (max-width: 640px) and (orientation: landscape) {
  .modal-window {
    height: 96vh;
  }

  .robot-viewer,
  .robot-image {
    height: 220px;
  }

  .member-description-box {
    min-height: 200px !important;
  }
}

/* === FINAL MOBILE NAVBAR FIX (NO CROP / CLEAN LINKS) === */
@media (max-width: 991px) {
  #mainNav .morph-menu-panel,
  #mainNav .navbar-collapse.show {
    box-sizing: border-box;
    width: min(95vw, 360px) !important;
    max-width: 95vw !important;
    max-height: min(86vh, 700px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 10px !important;
  }

  #mainNav .morph-menu-links,
  #mainNav .navbar-nav {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #mainNav .morph-menu-links .nav-item,
  #mainNav .navbar-nav .nav-item {
    width: 100% !important;
    margin: 0 !important;
  }

  #mainNav .morph-menu-links .nav-link,
  #mainNav .navbar-nav .nav-link,
  #mainNav #rain-button.nav-link {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 44px !important;
    padding: 0.62rem 0.78rem !important;
    line-height: 1.25 !important;
    border-radius: 10px !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    transform: none !important;
  }

  #mainNav .morph-menu-links .nav-link:hover,
  #mainNav .navbar-nav .nav-link:hover,
  #mainNav #rain-button.nav-link:hover {
    transform: none !important;
  }

  #mainNav .language-switcher {
    width: 100% !important;
    justify-content: center !important;
    margin-top: 2px;
  }
}