/* ==========================================================================
   HUB DACIA - Exact 1:1 Visual & Layout CSS Architecture
   Replicating original Commander theme & Bootstrap grid 1:1
   ========================================================================== */

/* 1. Reset & Global Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 12px !important;
  line-height: 20px !important;
  color: #000000 !important;
  background-color: #ffffff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Open Sans', Arial, sans-serif !important;
  color: #252461 !important;
  margin-top: 10px;
  margin-bottom: 10px;
  font-weight: bold;
  line-height: 1.25;
}

h1 { font-size: 36px !important; line-height: 40px !important; }
h2 { font-size: 30px !important; line-height: 36px !important; }
h3 { font-size: 24px !important; line-height: 30px !important; }
h4 { font-size: 18px !important; line-height: 22px !important; }
h5 { font-size: 14px !important; line-height: 20px !important; }
h6 { font-size: 12px !important; line-height: 18px !important; }

p {
  margin: 0 0 15px 0;
}

ul {
  list-style: square;
  color: #e55324;
  margin: 0 0 15px 0;
  padding-left: 20px;
}

ul li {
  color: #000000;
  margin-bottom: 5px;
}

ol {
  margin: 0 0 15px 0;
  padding-left: 20px;
}

a {
  color: #e55324;
  text-decoration: none;
}

a:hover {
  color: #000000;
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}

.colored {
  color: #e55324 !important;
}

/* 2. Grid System (Original 960px 12-Column Grid) */
.container {
  width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

.row {
  margin-left: -20px;
}

.row:before, .row:after,
.container:before, .container:after,
.page_head:before, .page_head:after,
.tag_line:before, .tag_line:after,
.footer:before, .footer:after {
  display: table;
  content: "";
  line-height: 0;
}

.row:after,
.container:after,
.page_head:after,
.tag_line:after,
.footer:after {
  clear: both;
}

[class*="span"] {
  float: left;
  min-height: 1px;
  margin-left: 20px;
}

.span12 { width: 960px; }
.span11 { width: 878px; }
.span10 { width: 796px; }
.span9  { width: 715px; }
.span8  { width: 633px; }
.span7  { width: 551px; }
.span6  { width: 470px; }
.span5  { width: 388px; }
.span4  { width: 306px; }
.span3  { width: 225px; }
.span2  { width: 143px; }
.span1  { width: 61px; }

/* 3. Header & Navigation (.page_head) */
.page_head {
  padding-top: 15px;
  padding-bottom: 15px;
  background-color: #f9f9f9;
  border-bottom: 1px solid #ededed;
}

.logo {
  padding-top: 5px;
}

.logo img {
  max-height: 48px;
  width: auto;
}

/* Menu */
.menu-meniu-principal-container {
  float: right;
  margin-top: 8px;
}

.page_head ul.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  float: right;
}

.page_head ul.menu li {
  float: left;
  position: relative;
  margin-left: 8px;
  background: #f9f9f9;
  border-radius: 4px;
}

.page_head ul.menu li a {
  display: block;
  padding: 8px 12px;
  color: #666666;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.page_head ul.menu li:hover {
  background: #252461;
}

.page_head ul.menu li:hover > a {
  color: #ffffff;
  text-decoration: none;
}

.page_head ul.menu li.current-menu-item {
  background: #e55324 !important;
}

.page_head ul.menu li.current-menu-item > a {
  color: #ffffff !important;
  text-decoration: none;
}

/* Dropdown Menu */
.page_head ul.menu ul {
  list-style: none;
  position: absolute;
  top: 36px;
  left: 0;
  z-index: 9999;
  background-color: #252461;
  padding: 0;
  margin: 0;
  min-width: 170px;
  border-radius: 4px;
  display: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.page_head ul.menu li:hover > ul {
  display: block;
}

.page_head ul.menu ul li {
  float: none;
  margin: 0;
  background: transparent;
  border-radius: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page_head ul.menu ul li:last-child {
  border-bottom: none;
}

.page_head ul.menu ul li a {
  padding: 7px 12px;
  color: #ffffff !important;
  font-size: 11px;
}

.page_head ul.menu ul li:hover a {
  background: #e55324;
  color: #ffffff !important;
}

/* 4. Tag Line (.tag_line) */
.tag_line {
  background-color: #ffffff;
  border-top: 1px solid #ededed;
  border-bottom: 1px solid #ededed;
  margin-bottom: 20px;
}

.welcome {
  padding: 16px 0;
  position: relative;
}

.welcome h3 {
  margin: 0 !important;
  font-size: 20px !important;
  font-family: 'Open Sans', Arial, sans-serif !important;
  color: #252461 !important;
  font-weight: 600;
  display: inline-block;
  line-height: 28px;
}

#langselector {
  float: right;
  margin-top: 2px;
}

#lang_sel {
  display: inline-block;
}

#lang_sel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#lang_sel ul li {
  display: inline-block;
  margin-left: 10px;
}

#lang_sel a {
  color: #666666;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

#lang_sel a:hover {
  color: #000000;
}

#lang_sel a.active {
  color: #e55324;
}

#lang_sel img.iclflag {
  width: 18px;
  height: 12px;
  vertical-align: middle;
}

/* 5. Main Content Area */
.main_content_area {
  padding-bottom: 30px;
}

/* Homepage Slider (Pure Native 1:1, Zero Bloat) */
/* Native 1:1 Slider (Matching Revolution Slider Dimensions & Effects) */
.native-slider-container {
  width: 960px;
  margin: 0 auto 25px auto;
  position: relative;
  background: #252461;
  overflow: hidden;
  height: 450px;
}

.native-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  overflow: hidden;
  z-index: 1;
}

.native-slide.active {
  opacity: 1;
  z-index: 2;
}

.native-slide .slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Circular Navigation Buttons (Matching Live Site) */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 40px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
}

.slider-btn:hover {
  background: #000000;
  transform: translateY(-50%) scale(1.05);
}

.slider-btn-prev { left: 20px; }
.slider-btn-next { right: 20px; }

/* Slide Text Layers with Delayed Appear (~1 sec delay matching RevSlider) */
.slide-layer {
  position: absolute;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  color: #ffffff;
  z-index: 5;
  pointer-events: none;
}

.native-slide.active .slide-layer {
  opacity: 1;
  transform: translateY(0);
}

.native-slide.active .slide-delay-1 { transition-delay: 0.6s; }
.native-slide.active .slide-delay-2 { transition-delay: 0.8s; }
.native-slide.active .slide-delay-3 { transition-delay: 1.0s; }
.native-slide.active .slide-delay-4 { transition-delay: 1.2s; }

/* Exact 1:1 Typography from Revolution Slider Source */
.very_large_text {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
  font-size: 60px !important;
  line-height: 60px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  letter-spacing: -2px !important;
  text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.5) !important;
  white-space: nowrap !important;
  margin: 0 !important;
  padding: 0 !important;
}

.medium_text {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
  font-size: 20px !important;
  line-height: 26px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.5) !important;
  white-space: nowrap !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Slide 2: Containers Wall (Exact 1:1 Coordinates from Source) */
.slide-containers-wall {
  position: absolute;
  left: 0;
  top: 0;
  width: 540px;
  height: 450px;
  z-index: 2;
  overflow: hidden;
}

.slide-containers-wall img {
  position: absolute;
}

/* Right-side Homepage Widgets (Transport HUB & HubDacia) */
.home-widget {
  border-radius: 4px;
  padding: 16px 20px;
  margin-bottom: 20px;
  color: #ffffff;
}

.home-widget-blue {
  background-color: #252461;
}

.home-widget-orange {
  background-color: #e55324;
}

.home-widget-title {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 12px 0;
  padding-bottom: 6px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-widget-content {
  font-size: 13px;
  line-height: 24px;
  color: #ffffff;
}

.home-widget-content a {
  color: #ffffff;
  text-decoration: none;
  display: block;
  padding: 2px 0;
  transition: padding-left 0.15s ease;
}

.home-widget-content a:hover {
  color: #ffffff;
  text-decoration: underline;
  padding-left: 4px;
}

/* Side Tab "Container Tracing" (Exact 1:1) */
#rum_sst_tab {
  font-family: "Helvetica Neue", Helvetica, sans-serif;
  top: 350px;
  background-color: #e55324;
  color: #FFFFFF;
  border-style: solid;
  border-width: 1px;
  border-color: #e55324;
  position: fixed;
  display: block;
  z-index: 100000;
  text-align: center;
  font-size: 14px;
  font-weight: normal;
  left: -2px;
  cursor: pointer;
  transform-origin: 0 0;
  transform: rotate(270deg);
  border-bottom-right-radius: 8px;
  border-bottom-left-radius: 8px;
  transition: background 0.2s;
}

#rum_sst_tab a {
  color: #FFFFFF !important;
  text-decoration: none !important;
  padding: 6px 14px;
  display: block;
}

#rum_sst_tab:hover {
  background-color: #252461;
  border-color: #252461;
}

/* Tables (Wagons and Ports) */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 12px;
}

table th, table td {
  border: 1px solid #d5d5d5;
  padding: 8px 10px;
  vertical-align: top;
}

table th {
  background-color: #f2f2f2;
  color: #252461;
  font-weight: bold;
}

table tr:nth-child(even) td {
  background-color: #fafafa;
}

/* Contact Form (Exact original 1:1 styles) */
.contact-form-wrapper {
  margin-top: 15px;
}

.contact-form-wrapper input[type="text"],
.contact-form-wrapper input[type="email"],
.contact-form-wrapper textarea {
  background: #ffffff !important;
  box-shadow: none !important;
  font-size: 11px !important;
  border-radius: 0px !important;
  border: 1px solid #252461;
  color: #252461;
  width: 100%;
  max-width: 380px;
  padding: 6px 8px;
  margin-bottom: 10px;
  font-family: Arial, sans-serif;
  display: block;
}

.contact-form-wrapper textarea {
  height: 100px;
}

.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus {
  border-color: #e55324;
  color: #e55324;
  outline: none;
}

.contact-form-wrapper button[type="submit"] {
  padding: 8px 18px;
  font-weight: bold;
  text-align: center;
  border: 1px solid #252461;
  background-color: #252461;
  color: #ffffff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s ease;
}

.contact-form-wrapper button[type="submit"]:hover {
  background-color: #e55324;
  border-color: #e55324;
  color: #ffffff;
}

.captcha-row {
  margin-bottom: 10px;
}

.captcha-label {
  font-weight: bold;
  color: #252461;
  display: block;
  margin-bottom: 4px;
}

.form-status-msg {
  display: none;
  padding: 10px;
  border-radius: 4px;
  margin-top: 10px;
  font-weight: bold;
}

.form-status-msg.success {
  background-color: #7ad33f;
  color: #ffffff;
  display: block;
}

.form-status-msg.error {
  background-color: #cf2d38;
  color: #ffffff;
  display: block;
}

/* 6. Footer (.footer & .bottom_line) - 1:1 match with original theme */
.footer {
  padding: 45px 0 25px 0;
  background-color: #252461;
  font-size: 12px;
  color: #ffffff;
  line-height: 18px;
}

.footer h5 {
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: normal;
  margin: 0 0 6px 0;
}

.footer hr {
  border: 0;
  border-top: 1px solid #36346b;
  margin: 6px 0 15px 0;
}

.footer a {
  color: #9fe4e6;
  text-decoration: none;
}

.footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer .textwidget p {
  color: #ffffff;
  margin: 0 0 10px 0;
  line-height: 18px;
  font-size: 12px;
}

.footer .textwidget a {
  color: #ffffff;
  text-decoration: none;
}

.footer .textwidget a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer ul,
.footer ul.menu {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}

.footer ul li,
.footer ul.menu li {
  float: none !important;
  margin: 0 0 5px 0 !important;
  line-height: 18px !important;
  color: #ffffff !important;
  background: transparent !important;
  border-radius: 0 !important;
  display: block !important;
}

.footer ul li a,
.footer ul.menu li a {
  display: inline !important;
  padding: 0 !important;
  color: #9fe4e6 !important;
  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: normal !important;
  text-decoration: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  line-height: 18px !important;
}

.footer ul li a:hover,
.footer ul.menu li a:hover {
  color: #ffffff !important;
  background: transparent !important;
  text-decoration: underline !important;
}

/* 5th column: Cautare (Search) wraps directly under Contact */
.footer .footer-search-col {
  clear: left;
  margin-left: 0 !important;
  margin-top: 25px;
}

.footer .footer-search-col h5 {
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: normal;
  margin: 0 0 6px 0;
}

.footer #searchform label.screen-reader-text {
  display: none !important;
}

.footer #searchform input#s {
  background: #ffffff !important;
  border: 1px solid #ffffff !important;
  border-radius: 0px !important;
  width: 175px !important;
  height: 28px !important;
  padding: 4px 6px !important;
  font-size: 12px !important;
  box-sizing: border-box !important;
  color: #333333 !important;
  display: block;
  outline: none;
}

.footer #searchsubmit {
  display: none !important;
  visibility: hidden !important;
}

/* Bottom Line */
.bottom_line {
  background-color: #252461;
  padding: 20px 0 35px 0;
  text-align: center;
  color: #ffffff;
  font-size: 11px;
}

.bottom_line span {
  color: #ffffff;
  font-size: 11px;
}

.bottom_line a {
  color: #ffffff;
  text-decoration: underline;
}

.bottom_line a:hover {
  text-decoration: none;
}

/* Floating Cookie Preferences Button */
.floating-cookie-btn {
  position: fixed !important;
  bottom: 20px !important;
  left: 20px !important;
  z-index: 99998 !important;
  background: #252461 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 20px !important;
  padding: 6px 14px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
  transition: background 0.2s, transform 0.15s !important;
}

.floating-cookie-btn:hover {
  background: #e55324 !important;
  transform: translateY(-2px) !important;
}

/* Cookie Banner (Fixed at Bottom) */
.cookie-banner {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  background: #252461 !important;
  color: #ffffff !important;
  padding: 14px 20px !important;
  z-index: 99999 !important;
  display: none;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.35) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
  font-size: 12px !important;
  line-height: 18px !important;
}

.cookie-banner.show {
  display: block !important;
}

.cookie-banner-container {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.cookie-banner-text {
  flex: 1 1 500px;
}

.cookie-banner-text p {
  margin: 0 !important;
  color: #ffffff !important;
  font-size: 12px !important;
  line-height: 18px !important;
}

.cookie-banner-text a {
  color: #9fe4e6 !important;
  text-decoration: underline !important;
  margin-left: 4px;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cookie-btn {
  border-radius: 4px !important;
  padding: 6px 14px !important;
  font-size: 11px !important;
  font-weight: bold !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  white-space: nowrap !important;
  display: inline-block !important;
  line-height: 1.4 !important;
}

.cookie-btn-accept {
  background: #e55324 !important;
  color: #ffffff !important;
  border: none !important;
}

.cookie-btn-accept:hover {
  background: #cf4519 !important;
}

.cookie-btn-reject {
  background: transparent !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
}

.cookie-btn-reject:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: #ffffff !important;
}

.cookie-btn-customize {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.cookie-btn-customize:hover {
  background: rgba(255, 255, 255, 0.25) !important;
}

/* Modal Dialog (Strictly Hidden Unless .show) */
.cookie-modal-backdrop {
  display: none !important;
}

.cookie-modal-backdrop.show {
  display: flex !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.65) !important;
  z-index: 100002 !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  box-sizing: border-box !important;
}

.cookie-modal {
  background: #ffffff !important;
  color: #333333 !important;
  border-radius: 8px !important;
  max-width: 520px !important;
  width: 100% !important;
  padding: 24px 28px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
  font-family: Arial, sans-serif !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  position: relative !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
}

.cookie-modal-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 12px !important;
}

.cookie-modal-header h3 {
  font-size: 18px !important;
  font-weight: bold !important;
  color: #252461 !important;
  margin: 0 !important;
}

.cookie-modal-close {
  background: none !important;
  border: none !important;
  font-size: 24px !important;
  line-height: 1 !important;
  color: #888888 !important;
  cursor: pointer !important;
  padding: 0 !important;
  transition: color 0.15s !important;
}

.cookie-modal-close:hover {
  color: #252461 !important;
}

.cookie-modal-desc {
  color: #666666 !important;
  font-size: 12px !important;
  margin-bottom: 16px !important;
}

.cookie-category {
  background: #f8f9fa !important;
  border: 1px solid #e9ecef !important;
  border-radius: 6px !important;
  padding: 12px 14px !important;
  margin-bottom: 12px !important;
}

.cookie-category-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 4px !important;
}

.cookie-category-header strong,
.cookie-category-header label {
  font-size: 13px !important;
  color: #252461 !important;
  font-weight: bold !important;
  margin: 0 !important;
}

.cookie-category p {
  color: #666666 !important;
  font-size: 11px !important;
  line-height: 16px !important;
  margin: 0 !important;
}

.cookie-modal-footer {
  display: flex !important;
  justify-content: flex-end !important;
  margin-top: 18px !important;
}

.cookie-modal-footer .cookie-btn-save {
  background: #e55324 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 4px !important;
  padding: 8px 18px !important;
  font-size: 12px !important;
  font-weight: bold !important;
  cursor: pointer !important;
  transition: background 0.15s !important;
}

.cookie-modal-footer .cookie-btn-save:hover {
  background: #cf4519 !important;
}

/* Responsive Media Queries (Exact Bootstrap 2 Breakpoints) */
@media (min-width: 768px) and (max-width: 979px) {
  .container {
    width: 724px;
  }
  .span12 { width: 724px; }
  .span9  { width: 538px; }
  .span8  { width: 476px; }
  .span6  { width: 352px; }
  .span4  { width: 228px; }
  .span3  { width: 166px; }

  ul.menu li a {
    padding: 6px 7px !important;
  }
  .native-slider-container {
    width: 724px;
    height: 270px;
  }
}

@media (max-width: 767px) {
  body {
    padding-left: 0;
    padding-right: 0;
  }
  .container {
    width: auto;
    padding-left: 15px;
    padding-right: 15px;
  }
  .row {
    margin-left: 0;
  }
  [class*="span"] {
    float: none;
    display: block;
    width: 100% !important;
    margin-left: 0 !important;
    margin-bottom: 15px;
  }
  .menu-meniu-principal-container {
    float: none;
    margin-top: 15px;
  }
  ul.menu {
    float: none;
  }
  ul.menu li {
    float: none;
    margin-left: 0;
    margin-bottom: 4px;
  }
  .native-slider-container {
    width: 100%;
    height: 200px;
  }
  #rum_sst_tab {
    display: none; /* Hide side tab on mobile to avoid covering content */
  }
}
