:root {
  --sidebar-width: 280px;
  --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --dark: #1a1a1a;
  --primary: #e31b23;
  --primary-dark: #b3131a;
  --text-light: #e5e7eb;
  --text-gray: #9ca3af;
}

* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #fff;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ================= HEADER ================= */
header {
    position: fixed;
    /* top: 0; */
    left: 0;
    /* width: 100%; */
    height: 70px;
    background: #fff0;
    /* border-bottom: 1px solid #e31b23; */
    z-index: 1200;
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); */
}

/* Desktop header - starts after sidebar */
@media (min-width: 1024px) {
  header {
    left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
  }
}

.header-container {
  max-width: 1400px;
  height: 100%;
  margin: auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  text-decoration: none;
  color: #1a1a1a;
  letter-spacing: -0.5px;
}

.logo span { 
  color: var(--primary); 
  font-weight: 700;
}

.logo small {
  font-size: 12px;
  display: block;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
}

.mobile-toggle {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: none;
    align-items: center;
    justify-content: center;
    border: 1px solid #c00e0e6b;
    cursor: pointer;
    transition: background 0.2s ease;
    background: #f8f9fa;
}

.mobile-toggle:hover {
  background: #f1f5f9;
}

.hamburger {
  width: 28px;
  height: 28px;
}

.hamburger path {
  stroke: #1a1a1a;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transition: all var(--transition);
}

/* morph to X */
body.nav-open .hamburger .top {
  transform: translateY(8px) rotate(45deg);
  stroke: var(--primary);
}
body.nav-open .hamburger .middle {
  opacity: 0;
  transform: scale(0);
}
body.nav-open .hamburger .bottom {
  transform: translateY(-8px) rotate(-45deg);
  stroke: var(--primary);
}

/* ================= SIDEBAR (VIENAS VISIEMS EKRANAMS) ================= */
.sidebar {

     border-left-color: var(--primary);


    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: #010101;
    z-index: 1100;
    /* padding: 24px 0; */
    overflow-y: auto;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
    transition: transform var(--transition);
}

/* Desktop - always visible */
@media (min-width: 1024px) {
  .sidebar {
    transform: translateX(0);
  }
}

/* Mobile - hidden by default */
@media (max-width: 1023px) {
  .sidebar {
    transform: translateX(-100%);
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
}

.sidebar .nav-section {
  margin-bottom: 24px;
}

.sidebar .nav-section-title {
  padding: 12px 24px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-gray);
  font-weight: 600;
}

.sidebar a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 5px 24px;
  color: var(--text-light);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.sidebar a:hover {
  background: rgba(227, 27, 35, 0.15);
  border-left-color: var(--primary);
  color: #fff;
}

.sidebar svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.has-submenu {
  margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 !important;
}



.submenu a:hover {
  color: #fff;
  background: rgba(227, 27, 35, 0.15);
}




.submenu-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 24px;
    cursor: pointer;
    color: #6c757d;
}

.submenu {
  width: 100%;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(0, 0, 0, 0.2);
}

.submenu.open {
  max-height: 300px;
}

.submenu a {
  padding-left: 58px;
  font-size: 14px;
}

.submenu a:hover {
  color: #fff;
  background: rgba(227, 27, 35, 0.15);
}

/* ================= OVERLAY ================= */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 1050;
  backdrop-filter: blur(2px);
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ================= PAGE ================= */
/* main {
  padding-top: 70px;
  transition: padding-left var(--transition);
  min-height: 100vh;
} */

@media (min-width: 1024px) {
  main {
    padding-left: var(--sidebar-width);
  }
}

@media (max-width: 1023px) {
  body.nav-open main {
    transform: translateX(var(--sidebar-width));
  }
}

.content {
  max-width: 1200px;
  margin: 0 auto;
  /* padding: 40px; */
}

/* Footer Styles */
.footer {
  background: var(--dark);
  color: #fff;
  padding: 60px 0 20px;
  position: relative;
  transition: margin-left var(--transition);
}

@media (min-width: 1024px) {
  .footer {
    margin-left: var(--sidebar-width);
  }
}

@media (max-width: 1023px) {
  body.nav-open .footer {
    transform: translateX(var(--sidebar-width));
  }
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), transparent);
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col:first-child {
  grid-column: span 1;
}

.footer-logo {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 15px;
  line-height: 1;
}

.footer-logo span {
  color: var(--primary);
  font-size: 1rem;
  display: block;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 5px;
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 1.2rem;
}

.social-icon:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-col h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  color: #fff;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.footer-links i {
  margin-right: 8px;
  color: var(--primary);
  font-size: 0.9rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact-item i {
  color: var(--primary);
  font-size: 1.2rem;
  min-width: 20px;
  margin-top: 3px;
}

.footer-contact-item p {
  line-height: 1.5;
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-contact-item a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-bottom-links {
  display: flex;
  gap: 30px;
}

.logooo img {
    width: 100%;
    object-fit: cover;
    margin-bottom: -5px;
    height: 208px;
    border-bottom: 1px solid #ffffff66;
    object-fit: cover;
    /* border-radius: 20px; */

}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-bottom-links a:hover {
  color: var(--primary);
}
.sidebar .logooo_aoljisfjsdkf{
    padding: 10px;
}









/* ================= RESPONSIVE ================= */
@media (max-width: 1023px) {
  .mobile-toggle { 
    display: flex; 
  }
  
  header {
    left: 0;
    width: 100%;
  }
}

@media (min-width: 1024px) {
  .mobile-toggle { 
    display: none !important; 
  }
  .overlay { 
    display: none; 
  }
}

@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-col:first-child {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .footer-col:first-child {
    grid-column: span 1;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-bottom-links {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .footer-bottom-links {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  
  .content {
    padding: 5px;
  }

}