/* Modern & Minimalist Design */

:root {
  --primary: #1a1a1a;
  --primary-light: #2d2d2d;
  --primary-lighter: #4a4a4a;
  --accent: #0066cc;
  --accent-light: #e6f0ff;
  --accent-hover: #0052a3;
  --bg: #ffffff;
  --bg-light: #f8f9fa;
  --text: #333333;
  --text-secondary: #666666;
  --border: #e0e0e0;
  --spacing: 1rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  font-weight: 400;
}

.site_container {
  max-width: 1400px;
  margin: 0 auto;
  background-color: var(--bg);
}

/* ===== HEADER & NAVIGATION ===== */

.header_container {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  gap: 2rem;
}

.header_left a {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  border: none;
}

.header_left img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.header_left img:hover {
  transform: scale(1.05);
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 1.2rem;
}

.logo p {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-secondary);
  padding: 0;
  margin: 0;
}

/* Navigation */
.header_right {
  display: flex;
  list-style: none;
  gap: 0;
}

.header_right li {
  position: relative;
}

.header_right a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--text);
  text-decoration: none;
  border: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
}

.header_right a:after {
  content: '';
  position: absolute;
  bottom: 0.5rem;
  left: 1.5rem;
  right: 1.5rem;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.header_right a:hover {
  color: var(--accent);
}

.header_right a:hover:after {
  transform: scaleX(1);
}

.header_right li.selected > a,
.header_right li.selected > a:after {
  color: var(--accent);
  transform: scaleX(1);
}

.header_right li.submenu > a:after {
  content: '▼';
  position: static;
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.7rem;
  transform: none;
  background: none;
}

/* Submenu */
.header_right ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  list-style: none;
  min-width: 250px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 0 0 8px 8px;
}

.header_right li.submenu:hover > ul {
  display: block;
  animation: slideDown 0.3s ease;
}

.header_right ul li a {
  padding: 0.75rem 1.5rem;
  border: none;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 400;
}

.header_right ul li a:hover {
  background-color: var(--accent-light);
  color: var(--accent);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Menu */
.mobile_menu {
  display: none;
}

.mobile_menu select {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 1rem;
  background: var(--bg);
  cursor: pointer;
}

/* ===== SLIDER ===== */

.slider {
  list-style: none;
  position: relative;
  width: 100%;
  height: 500px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.slider li {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  list-style: none;
}

.slider li:first-child {
  opacity: 1;
}

/* Slider Navigation Dots */
.slider-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 20;
}

.slider-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.slider-dot.active {
  background: white;
  border-color: white;
  transform: scale(1.2);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.slider-dot:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: white;
}

/* ===== SLIDER CONTENT ===== */

.slider_content_box {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 500px;
  margin: 0;
  padding: 0;
  z-index: 5;
  pointer-events: none;
}

.slider_content {
  display: none;
  padding: 3rem 2rem;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 100%);
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  animation: none;
}

.slider_content a {
  pointer-events: auto;
}

.slider_content.active {
  display: flex;
  animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slider_content .title {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.slider_content .subtitle {
  font-size: 1.2rem;
  color: white;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.slider_content a {
  color: white;
  text-decoration: none;
  border: 2px solid white;
  padding: 0.75rem 2rem;
  display: inline-block;
  margin-top: 1.5rem;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.slider_content a:hover {
  background: white;
  color: #1a1a1a;
}

/* ===== HOME BOXES ===== */

.home_box_container {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 3rem 2rem;
  background: var(--bg-light);
}

.home_box {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 4px solid var(--accent);
}

.home_box:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.home_box h2 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  font-weight: 600;
}

.home_box a {
  color: var(--accent);
  text-decoration: none;
  border: none;
  transition: color 0.3s ease;
}

.home_box a:hover {
  color: var(--accent-hover);
}

.home_box .news {
  margin-top: 1rem;
}

.home_box .text {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.95rem;
}

.home_box.light_blue {
  border-left-color: #3b82f6;
}

.home_box.blue {
  border-left-color: #0066cc;
}

.home_box.dark_blue {
  border-left-color: #1e3a8a;
}

.items_list {
  list-style: none;
  gap: 0.5rem;
  display: flex;
  flex-direction: column;
}

.items_list li {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.items_list li:last-child {
  border-bottom: none;
}

.items_list li span {
  color: var(--text-secondary);
}

.items_list li .value {
  color: var(--accent);
  font-weight: 600;
}

/* ===== MAIN CONTENT SECTIONS ===== */

.page {
  padding: 3rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.column_left,
.column_right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.item_content {
  display: grid;
  grid-template-columns: 0.5fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.item_content:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.item_content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.item_content h2 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.item_content p {
  color: var(--text-secondary);
  line-height: 1.8;
  padding: 0;
  margin: 0;
}

.item_footer {
  margin-top: 1.5rem;
}

.item_footer a {
  color: var(--accent);
  text-decoration: none;
  border: none;
  font-weight: 600;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.item_footer a:hover {
  color: var(--accent-hover);
}

/* ===== GALLERY / CAROUSEL ===== */

.gallery {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 150px));
  gap: 1.5rem;
  padding: 2rem 0;
  justify-content: center;
}

.gallery_box {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  width: 150px;
  height: 110px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gallery_box:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.gallery_box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery_box:hover img {
  transform: scale(1.08);
}

.gallery_box .description {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0.5));
  padding: 0.75rem 0.5rem;
  color: white;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.gallery_box:hover .description {
  transform: translateY(0);
}

.gallery_box h3 {
  font-size: 0.8rem;
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
}

.gallery_box h3 a {
  color: white;
  text-decoration: none;
  border: none;
  transition: color 0.3s ease;
}

.gallery_box h3 a:hover {
  color: var(--accent-light);
}

/* ===== MODAL ===== */

.modal {
  display: flex;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  align-items: center;
  justify-content: center;
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: white;
  padding: 0;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
  color: white;
  padding: 2rem;
  text-align: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.modal-body {
  padding: 2rem;
  text-align: center;
}

.modal-body img {
  max-width: 100%;
  height: auto;
}

.modal-footer {
  padding: 1.5rem 2rem;
  text-align: center;
  border-top: 1px solid #e0e0e0;
  background: #f8f9fa;
}

.modal-footer .btn-close {
  background: #0066cc;
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-footer .btn-close:hover {
  background: #0052a3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.close {
  position: absolute;
  right: 2rem;
  top: 1rem;
  font-size: 2rem;
  font-weight: bold;
  color: white;
  cursor: pointer;
  transition: transform 0.3s ease;
  z-index: 10;
}

.close:hover {
  transform: scale(1.2);
  color: #ff6b6b;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== FOOTER ===== */

.footer_container {
  background: var(--primary);
  color: white;
  margin-top: 4rem;
  padding: 3rem 2rem 1rem;
  border-top: 4px solid var(--accent);
}

.footer {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer_column h4 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  color: white;
}

.footer_column p,
.footer_column li {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  font-size: 0.95rem;
}

.footer_column ul {
  list-style: none;
}

.footer_column ul li {
  padding: 0.5rem 0;
}

.footer_column a {
  color: var(--accent-light);
  text-decoration: none;
  border: none;
  transition: color 0.3s ease;
}

.footer_column a:hover {
  color: white;
}

.footer_bottom {
  text-align: center;
  padding: 1.5rem 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
  .header {
    flex-direction: row;
    padding: 1rem;
    gap: 1rem;
    justify-content: space-between;
  }

  .header_left {
    flex: 1;
  }

  .header_right {
    display: none;
  }

  .mobile_menu {
    display: block;
    width: auto;
  }

  .slider {
    height: 350px;
  }

  .slider_content_box {
    height: 350px;
  }

  .slider_content {
    padding: 2rem;
    align-items: flex-start;
    text-align: left;
    height: 350px;
  }

  .slider_content .title {
    font-size: 1.8rem;
  }

  .slider_content .subtitle {
    font-size: 0.95rem;
  }

  .slider-dots {
    bottom: 1.5rem;
    gap: 0.5rem;
  }

  .slider-dot {
    width: 10px;
    height: 10px;
  }

  .home_box_container {
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
  }

  .item_content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(120px, 140px));
    gap: 1rem;
    padding: 1.5rem 0;
    justify-content: center;
  }

  .gallery_box {
    width: 140px;
    height: 105px;
  }

  .page {
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .header {
    padding: 0.75rem;
    gap: 0.5rem;
  }

  .header_left a {
    gap: 0.5rem;
  }

  .header_left img {
    width: 40px;
    height: 40px;
  }

  .logo {
    font-size: 0.95rem;
  }

  .logo p {
    font-size: 0.7rem;
    display: none;
  }

  .mobile_menu select {
    font-size: 0.9rem;
    padding: 0.4rem 0.75rem;
  }

  .slider {
    height: 280px;
  }

  .slider_content_box {
    height: 280px;
  }

  .slider_content {
    padding: 1.5rem 1rem;
    height: 280px;
  }

  .slider_content .title {
    font-size: 1.4rem;
  }

  .slider_content .subtitle {
    font-size: 0.85rem;
  }

  .slider_content a {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }

  .slider-dots {
    bottom: 1rem;
    gap: 0.4rem;
  }

  .slider-dot {
    width: 9px;
    height: 9px;
  }

  .home_box {
    padding: 1.5rem;
  }

  .home_box h2 {
    font-size: 1.1rem;
  }

  .gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    padding: 0.75rem 0;
  }

  .gallery_box {
    width: 100%;
    height: 90px;
  }

  .item_content {
    padding: 1rem;
    gap: 0.75rem;
  }

  .page {
    padding: 1rem;
  }
}

/* ===== ANIMATIONS ===== */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animated_element {
  animation: fadeIn 0.6s ease forwards;
  opacity: 0;
}

.animation-fadeIn { animation-name: fadeIn; }

/* Delay animations */
@for $i from 1 through 5 {
  .delay-#{$i * 100} {
    animation-delay: $i * 100ms;
  }
}

/* Hide scrollbars */
.horizontal_carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
}

.horizontal_carousel::-webkit-scrollbar {
  height: 4px;
}

.horizontal_carousel::-webkit-scrollbar-track {
  background: var(--bg-light);
}

.horizontal_carousel::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 2px;
}

.horizontal_carousel::-webkit-scrollbar-thumb:hover {
  background: var(--accent-hover);
}
