/* ==========================================================================
   Jungtop (주)정탑농산 - Custom CSS Styles
   Matching original Miso-Company theme design with Tailwind CSS
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Nanum+Gothic:wght@400;700;800&family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap');

:root {
  --primary-red: #cd2122;
  --hover-red: #e91b23;
  --dark-black: #1a1a1a;
  --light-gray: #f5f5f5;
  --text-muted: #777777;
  --border-color: #dddddd;
}

body {
  font-family: 'Inter', 'Nanum Gothic', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #333333;
  background-color: #ffffff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-red);
}

/* Title Underbar - Signature Miso-Company Style */
.div-title-underbar {
  position: relative;
  font-size: 24px;
  font-weight: 700;
  color: #222;
  margin-bottom: 25px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e0e0e0;
}
.div-title-underbar-bold {
  position: relative;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--primary-red);
  margin-bottom: -1px;
  display: inline-block;
}

/* Raster overlay effect from original site */
.img-raster1 {
  background-image: radial-gradient(rgba(0,0,0,0.15) 15%, transparent 16%);
  background-size: 4px 4px;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
}

.img-opa10 {
  background: rgba(0, 0, 0, 0.08);
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
}

/* Feature Box Hover animations */
.op-box {
  background: #ffffff;
  border: 1px solid #eaeaea;
  padding: 40px 25px;
  border-radius: 4px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 2px 5px rgba(0,0,0,0.04);
}
.op-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.1);
  border-color: var(--primary-red);
}
.op-box .icon-circle {
  width: 72px;
  height: 72px;
  line-height: 72px;
  border-radius: 50%;
  background: #fdf2f2;
  color: var(--primary-red);
  margin: 0 auto 20px;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.op-box:hover .icon-circle {
  background: var(--primary-red);
  color: #ffffff;
}

/* Hero Carousel */
.hero-slider {
  position: relative;
  width: 100%;
  height: 760px;
  overflow: hidden;
}
@media (max-width: 1200px) {
  .hero-slider { height: 600px; }
}
@media (max-width: 991px) {
  .hero-slider { height: 480px; }
}
@media (max-width: 767px) {
  .hero-slider { height: 380px; }
}
@media (max-width: 480px) {
  .hero-slider { height: 280px; }
}

.slide-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}
.slide-item.active {
  opacity: 1;
  visibility: visible;
}

/* Slider Pagination Dots */
.slider-dots {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 20;
}
.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}
.slider-dot.active {
  background: var(--primary-red);
  transform: scale(1.25);
}

/* Sticky Header styling */
.header-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

/* Dropdown Menu */
.nav-item-dropdown {
  position: relative;
}
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 170px;
  background: #ffffff;
  border-top: 2px solid var(--primary-red);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
}
.nav-item-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Floating Navigation Tools */
.go-btn {
  position: fixed;
  bottom: 30px;
  right: 25px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.go-btn span {
  width: 42px;
  height: 42px;
  background: rgba(34, 34, 34, 0.85);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  transition: all 0.2s ease;
}
.go-btn span:hover {
  background: var(--primary-red);
  transform: scale(1.08);
}

/* Mobile Sidebar Drawer */
.sidebar-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}
.sidebar-drawer {
  position: fixed;
  top: 0;
  right: -340px;
  width: 320px;
  height: 100%;
  background: #ffffff;
  z-index: 1100;
  transition: right 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: -4px 0 20px rgba(0,0,0,0.25);
  overflow-y: auto;
}
.sidebar-drawer.active {
  right: 0;
}

/* SVG Mask Divider */
.mask-svg-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

/* Subpage Tab Pills */
.subpage-tab-item {
  padding: 10px 18px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  transition: all 0.2s;
}
.subpage-tab-item.active, .subpage-tab-item:hover {
  background: var(--primary-red);
  color: #fff;
  border-color: var(--primary-red);
}

/* Board Table */
.board-table th {
  background-color: #f7f7f7;
  color: #333;
  font-weight: 600;
  border-top: 2px solid #333;
  border-bottom: 1px solid #ddd;
}
.board-table td {
  border-bottom: 1px solid #eee;
  padding: 12px 10px;
  font-size: 14px;
}
.board-table tr:hover td {
  background-color: #fafafa;
}

/* Language Switcher Button Styles */
.lang-btn-vi, .lang-btn-en {
  cursor: pointer;
  user-select: none;
  font-size: 11px;
  line-height: 1;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.lang-btn-vi:hover, .lang-btn-en:hover {
  opacity: 0.9;
}

