/* ===== CSS VARIABLES (Root) ===== */
:root {
  --primary: #1B4F72;
  --primary-dark: #0E2F44;
  --primary-light: #2980B9;
  --gold: #F39C12;
  --gold-light: #F5B041;
  --gold-dark: #D4880F;
  --red: #E74C3C;
  --bg-light: #F8F9FA;
  --bg-dark: #0C1926;
  --text-dark: #2C3E50;
  --text-mid: #5D6D7E;
  --text-light: #95A5A6;
  --white: #FFFFFF;
  --border: #E5E8EB;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  background: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
}

h1 {
  font-size: 48px;
}

h2 {
  font-size: 36px;
}

h3 {
  font-size: 24px;
}

h4 {
  font-size: 18px;
}

p {
  line-height: 1.7;
}

/* ===== COMMON COMPONENTS ===== */

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

/* Section Label */
.section-label {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--white);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

/* Section Title */
.section-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 16px;
}

.section-title span {
  color: var(--primary);
}

/* Section Description */
.section-desc {
  font-size: 16px;
  color: var(--text-mid);
  max-width: 600px;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(27,79,114,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(27,79,114,0.4);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(243,156,18,0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(243,156,18,0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 14px;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.badge-primary {
  background: rgba(27,79,114,0.08);
  color: var(--primary);
}

.badge-gold {
  background: rgba(243,156,18,0.1);
  color: var(--gold);
}

.badge-red {
  background: var(--red);
  color: var(--white);
}

.badge-new {
  background: var(--red);
  color: var(--white);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 10px;
}

.badge-hot {
  background: var(--gold);
  color: var(--white);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 10px;
}

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--bg-dark);
  color: var(--text-light);
  font-size: 13px;
  padding: 8px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar a {
  color: var(--text-light);
  margin-left: 20px;
}

.top-bar a:hover {
  color: var(--gold);
}

.top-bar .phone {
  color: var(--gold);
  font-weight: 600;
}

.top-bar .phone i {
  margin-right: 4px;
}

/* ===== HEADER / GNB ===== */
.header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 900;
}

.logo .logo-img {
  height: 48px;
  width: auto;
  border-radius: 8px;
}

.logo .logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 18px;
  font-weight: 900;
}

.logo .logo-text {
  color: var(--primary);
}

.logo .logo-num {
  color: var(--gold);
}

.footer-logo-img {
  height: 60px;
  width: auto;
  border-radius: 8px;
}

/* GNB (Global Navigation Bar) */
.gnb {
  display: flex;
  gap: 8px;
}

.gnb > li {
  position: relative;
}

.gnb > li > a {
  display: block;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  border-radius: 8px;
}

.gnb > li > a:hover,
.gnb > li > a.active {
  color: var(--primary);
  background: rgba(27,79,114,0.06);
}

/* Dropdown Menu */
.gnb .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 200px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
}

.gnb > li:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.gnb .sub-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  color: var(--text-mid);
}

.gnb .sub-menu a:hover {
  background: var(--bg-light);
  color: var(--primary);
}

/* Header Right */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-right .btn-login {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-mid);
  padding: 8px 16px;
}

.header-right .btn-login:hover {
  color: var(--primary);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-dark);
  cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 999;
  padding: 20px;
  overflow-y: auto;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border);
}

.mobile-menu a:hover {
  color: var(--primary);
  background: var(--bg-light);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.5);
  padding: 60px 0 30px;
}

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

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand .logo .logo-text {
  color: var(--white);
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
}

.footer-brand .social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-brand .social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 16px;
}

.footer-brand .social a:hover {
  background: var(--primary);
  color: var(--white);
}

.footer-col h4 {
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
  margin-left: 20px;
}

.footer-bottom a:hover {
  color: var(--gold);
}

/* ===== FLOATING BANNER ===== */
.floating-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  padding: 14px 0;
  z-index: 999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}

.floating-banner .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.floating-banner p {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
}

.floating-banner .btn-sm {
  background: var(--primary);
  color: var(--white);
  border: none;
}

.floating-banner .btn-close-float {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 20px;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* ===== PAGE BANNER (Sub-pages) ===== */
.page-banner {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-dark) 50%, var(--primary) 100%);
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(243,156,18,0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.page-banner h1 {
  font-size: 40px;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.page-banner h1 span {
  color: var(--gold);
}

.page-banner .breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  position: relative;
  z-index: 1;
}

.page-banner .breadcrumb a {
  color: rgba(255,255,255,0.5);
}

.page-banner .breadcrumb a:hover {
  color: var(--gold);
}

.page-banner .breadcrumb .sep {
  color: rgba(255,255,255,0.3);
}

/* ===== CONTENT AREA ===== */
.content-area {
  padding: 80px 0;
}

.content-area.alt {
  background: var(--bg-light);
}

/* ===== TABS ===== */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--text-mid);
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Info Box */
.info-box {
  background: linear-gradient(135deg, rgba(27,79,114,0.05), rgba(41,128,185,0.08));
  border-left: 4px solid var(--primary);
  padding: 24px 28px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 20px 0;
}

.info-box h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.info-box p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
}

.pagination a,
.pagination span {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text-mid);
  background: var(--white);
  transition: var(--transition);
}

.pagination a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pagination .active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* ===== FORM STYLES ===== */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: 'Noto Sans KR', sans-serif;
  transition: var(--transition);
  background: var(--white);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27,79,114,0.1);
}

textarea.form-input {
  min-height: 150px;
  resize: vertical;
}

.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: 'Noto Sans KR', sans-serif;
  background: var(--white);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235D6D7E' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

/* ===== SIDEBAR ===== */
.sidebar-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.sidebar-card h3 {
  font-size: 18px;
  font-weight: 700;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--primary);
  margin-bottom: 16px;
}

/* ===== TWO COLUMN LAYOUT ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
}

/* ===== TABLE STYLES ===== */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  background: var(--primary);
  color: var(--white);
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}

.data-table td {
  padding: 14px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

.data-table tr:hover {
  background: var(--bg-light);
}

.data-table tr:nth-child(even) {
  background: rgba(27,79,114,0.02);
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* Large Devices (1024px and below) */
@media (max-width: 1024px) {
  .two-col {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .container {
    padding: 0 20px;
  }
}

/* Tablets (768px and below) */
@media (max-width: 768px) {
  .top-bar {
    display: none;
  }

  .gnb {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .section-title {
    font-size: 28px;
  }

  .section-desc {
    font-size: 15px;
  }

  .product-grid,
  .media-grid {
    grid-template-columns: 1fr;
  }

  .community-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer-bottom a {
    margin-left: 0;
  }

  .btn {
    padding: 12px 24px;
    font-size: 14px;
  }

  .page-banner {
    padding: 60px 0 40px;
  }

  .page-banner h1 {
    font-size: 28px;
  }

  .content-area {
    padding: 60px 0;
  }
}

/* Small Devices (480px and below) */
@media (max-width: 480px) {
  .section-title {
    font-size: 24px;
  }

  .section-label {
    font-size: 12px;
    padding: 5px 12px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 13px;
  }

  .btn-sm {
    padding: 8px 16px;
    font-size: 13px;
  }

  .container {
    padding: 0 15px;
  }

  .page-banner {
    padding: 40px 0 30px;
  }

  .page-banner h1 {
    font-size: 22px;
  }

  .page-banner .breadcrumb {
    font-size: 12px;
    flex-wrap: wrap;
  }

  .content-area {
    padding: 40px 0;
  }

  .tabs {
    gap: 6px;
  }

  .tab-btn {
    padding: 8px 16px;
    font-size: 12px;
  }

  .header .container {
    height: 60px;
  }

  .header-right {
    gap: 8px;
  }

  .form-input,
  .form-select {
    padding: 10px 12px;
    font-size: 14px;
  }

  .sidebar-card {
    padding: 20px;
  }

  .two-col {
    gap: 20px;
  }

  .pagination a,
  .pagination span {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }

  .data-table th,
  .data-table td {
    padding: 10px 12px;
    font-size: 13px;
  }

  .floating-banner {
    padding: 10px 0;
  }

  .floating-banner p {
    font-size: 12px;
  }

  .floating-banner .btn-sm {
    padding: 8px 16px;
    font-size: 12px;
  }

  .floating-banner .btn-close-float {
    right: 15px;
  }
}
