:root {
      --blue: #087fae;
      --ink: #20303c;
      --line: #e5ebef;
      --max: 1200px;
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      color: var(--ink);
      font-family: "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
      line-height: 1.55;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    .wrap {
      width: min(var(--max), calc(100% - 40px));
      margin: auto;
    }

    /* 유틸리티 영역 */
    .utility {
      background: #f3f5f7;
      border-bottom: 1px solid var(--line);
      font-size: 13px;
    }

    .utility .wrap {
      height: 36px;
      display: flex;
      justify-content: flex-end;
      align-items: center;
      gap: 22px;
    }

    /* 헤더 영역 */
    .head .wrap {
      min-height: 105px;
      display: grid;
      grid-template-columns: 210px 1fr 230px;
      align-items: center;
      gap: 20px;
      padding: 15px 0;
    }

    /* 로고 영역 */
    .brand {
      display: inline-flex;
      flex-direction: column;
      align-items: flex-start;
      text-decoration: none;
    }

    .brand small {
      font-size: 11px;
      letter-spacing: 3px;
      color: #71808a;
      line-height: 1.2;
      margin-bottom: 3px;
      font-weight: bold;
    }

    .brand img {
      max-height: 44px;
      width: auto;
      height: auto;
      display: block;
    }

    /* 검색창 및 실시간 자동완성 영역 */
    .search {
      position: relative;
      max-width: 560px;
      width: 100%;
      margin: auto;
    }

    .search input {
      width: 100%;
      height: 45px;
      border: 1px solid #d9e1e6;
      border-radius: 7px;
      padding: 0 55px 0 15px;
      font-size: 15px;
    }

    .search button {
      position: absolute;
      right: 5px;
      top: 4px;
      height: 37px;
      width: 40px;
      border: 0;
      border-radius: 5px;
      background: var(--blue);
      color: white;
      font-size: 20px;
      cursor: pointer;
    }

    /* 실시간 검색 결과 드롭다운 박스 */
    .search-autocomplete-box {
      display: none;
      position: absolute;
      top: 50px;
      left: 0;
      right: 0;
      background: #fff;
      border: 1px solid #d9e1e6;
      border-radius: 8px;
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
      z-index: 100;
      max-height: 300px;
      overflow-y: auto;
    }

    .search-autocomplete-box.show {
      display: block;
    }

    .autocomplete-item {
      padding: 12px 16px;
      font-size: 14px;
      border-bottom: 1px solid #f1f5f9;
      cursor: pointer;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .autocomplete-item:last-child {
      border-bottom: none;
    }

    .autocomplete-item:hover {
      background: #f0f9ff;
      color: var(--blue);
    }

    .autocomplete-item span.category {
      font-size: 12px;
      color: #8898a4;
      background: #f1f5f9;
      padding: 2px 6px;
      border-radius: 4px;
    }

    .account {
      display: flex;
      justify-content: flex-end;
      gap: 12px;
      font-size: 13px;
      white-space: nowrap;
    }

    .account a:last-child {
      border: 1px solid var(--line);
      padding: 8px 12px;
      border-radius: 5px;
    }

    /* 네비게이션 영역 */
    .navbox {
      position: sticky;
      top: 0;
      background: white;
      border-block: 1px solid var(--line);
      z-index: 10;
    }

    .nav {
      display: flex;
      align-items: center;
      min-height: 58px;
      gap: 0;
    }

    .nav > a,
    .navitem > a {
      padding: 17px 15px;
      font-weight: 750;
      white-space: nowrap;
    }

    .nav a:hover { color: var(--blue); }

    .nav .short {
      background: var(--blue);
      color: #fff;
      border-radius: 6px;
      padding: 8px 17px;
      margin-right: 10px;
      position: relative;
    }

    .short:after {
      content: "NEW";
      position: absolute;
      right: -13px;
      top: -8px;
      background: #ef4444;
      color: #fff;
      font-size: 9px;
      padding: 2px 5px;
      border-radius: 3px;
    }

    .navitem { position: relative; }

    .drop {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      min-width: 205px;
      padding: 9px;
      background: #fff;
      border: 1px solid var(--line);
      box-shadow: 0 10px 25px #1232;
      border-radius: 0 0 8px 8px;
    }

    .navitem:hover .drop,
    .navitem:focus-within .drop { display: grid; }

    .drop a { padding: 8px 10px; font-size: 14px; border-radius: 4px; }
    .drop a:hover { background: #eef7fa; }

    .push { flex: 1; }
    .nav .mypage { background: #203747; color: #fff; border-radius: 5px; padding: 9px 14px; }

    .menu-btn {
      display: none;
      border: 1px solid var(--line);
      background: #fff;
      border-radius: 6px;
      padding: 9px 12px;
      cursor: pointer;
    }

    .drawer {
      display: none;
      position: absolute;
      top: 100%; left: 0; right: 0;
      background: #fff;
      padding: 12px 18px;
      max-height: 75vh;
      overflow: auto;
      box-shadow: 0 10px 20px #1232;
    }

    .drawer.open { display: block; }
    .drawer details { padding: 10px 0; border-bottom: 1px solid var(--line); }
    .drawer summary { font-weight: bold; cursor: pointer; }
    .drawer a { display: block; padding: 7px 12px; font-size: 14px; }

    /* 메인 히어로 배너 영역 */
    .heroarea {
      padding: 25px 0 12px;
      background: linear-gradient(#f1f7f9, #fff);
    }

    .hero-slider {
      position: relative;
      min-height: 340px;
      border-radius: 15px;
      overflow: hidden;
      background: #111d26;
      touch-action: pan-y;
      user-select: none;
    }

    .hero-container {
      display: flex;
      transition: transform 0.5s ease-in-out;
      height: 100%;
      cursor: grab;
    }

    .hero-container:active { cursor: grabbing; }

    .hero {
      min-width: 100%;
      min-height: 340px;
      display: flex;
      align-items: center;
      position: relative;
      color: #fff;
      box-sizing: border-box;
      text-decoration: none;
      overflow: hidden;
    }

    .hero-bg-layer {
      position: absolute;
      top: 0; right: 0;
      width: 100%; max-width: 580px; 
      height: 100%; max-height: 340px;
      background-size: contain;
      background-position: center right;
      background-repeat: no-repeat;
      z-index: 1;
    }

    .hero::before {
      content: "";
      position: absolute;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: linear-gradient(
        90deg, 
        rgba(17, 29, 38, 1) 0%, 
        rgba(17, 29, 38, 0.94) 42%, 
        rgba(17, 29, 38, 0.35) 72%, 
        rgba(17, 29, 38, 0) 100%
      );
      z-index: 2;
    }

    .hero article {
      position: relative;
      z-index: 3;
      padding: 40px 0 40px 6%;
      max-width: 580px;
    }

    .hero h1 {
      font-size: clamp(28px, 3.8vw, 42px);
      line-height: 1.25;
      letter-spacing: -1.5px;
      margin: 0 0 20px 0;
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
      word-break: keep-all;
    }

    .cta {
      display: inline-block;
      background: white;
      color: #15394c;
      padding: 10px 22px;
      border-radius: 6px;
      font-size: 15px;
      font-weight: bold;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
      transition: transform 0.2s, background 0.2s;
    }

    .hero:hover .cta { background: #eef7fa; transform: translateY(-2px); }

    /* 슬라이더 컨트롤 */
    .slider-btn {
      position: absolute;
      top: 50%; transform: translateY(-50%);
      background: rgba(0, 0, 0, 0.35);
      color: white; border: none;
      width: 40px; height: 40px;
      border-radius: 50%; font-size: 18px;
      cursor: pointer; z-index: 5;
      display: flex; align-items: center; justify-content: center;
      transition: background 0.3s;
    }

    .slider-btn:hover { background: rgba(0, 0, 0, 0.75); }
    .slider-btn.prev { left: 15px; }
    .slider-btn.next { right: 15px; }

    .slider-dots {
      position: absolute;
      bottom: 14px; left: 50%;
      transform: translateX(-50%);
      display: flex; gap: 8px; z-index: 5;
    }

    .dot {
      width: 9px; height: 9px;
      background: rgba(255, 255, 255, 0.45);
      border-radius: 50%; cursor: pointer;
      transition: background 0.3s, width 0.3s;
    }

    .dot.active { background: #fff; width: 24px; border-radius: 5px; }

    /* ==========================================
       철학쇼츠 & 이벤트 영역
       ========================================== */
    .promo-section-container {
      width: 100%;
      margin: 15px auto 25px;
      display: flex;
      flex-direction: row !important;
      align-items: stretch;
      gap: 12px;
      background-color: #f2f2f2;
      padding: 12px;
      border-radius: 10px;
    }

    .promo-block.shorts-block {
      width: 60% !important;
      display: flex;
      flex-direction: column;
      align-items: center;
      min-width: 0;
    }

    .promo-block.event-block {
      width: 40% !important;
      display: flex;
      flex-direction: column;
      align-items: center;
      min-width: 0;
    }

    .promo-title-badge {
      display: inline-block;
      padding: 3px 10px;
      background-color: #6799FF;
      color: #fff;
      font-weight: bold;
      font-size: 12px;
      border-radius: 3px;
      margin-bottom: 6px;
    }

    .custom-roller {
      position: relative;
      overflow: hidden;
      width: 100%;
      border-radius: 6px;
      touch-action: pan-y;
      user-select: none;
      padding: 0; 
    }

    .custom-roller-track {
      display: flex;
      transition: transform 0.4s ease-in-out;
      width: 100%;
      cursor: grab;
    }
    .custom-roller-track:active {
      cursor: grabbing;
    }

    .custom-roller-slide {
      min-width: 100%;
      box-sizing: border-box;
      text-align: center;
      padding: 0 10%;
    }

    .custom-roller-slide img {
      width: 100%;
      max-width: 100%;
      height: auto;
      border-radius: 5px;
      display: block;
      pointer-events: auto;
      box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    }

    .roller-dots {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 5px;
      margin-top: 6px;
    }

    .roller-dot {
      width: 6px;
      height: 6px;
      background: #cbd5e1;
      border-radius: 50%;
      cursor: pointer;
      transition: background 0.3s, width 0.3s;
    }

    .roller-dot.active {
      background: var(--blue);
      width: 15px;
      border-radius: 3px;
    }

    /* 퀵 링크 */
    .quick {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 12px;
      padding: 18px 0 25px;
    }

    .quick a {
      padding: 15px 17px;
      border: 1px solid var(--line);
      border-radius: 8px;
      font-weight: bold;
      display: flex;
      justify-content: space-between;
      background: #fff;
    }

    .quick span { color: var(--blue); }

    /* 콘텐츠 섹션 */
    section.content { padding: 32px 0; }

    .secthead {
		display: flex;
		justify-content: space-between;
		align-items: end;
		margin-bottom: 18px;
		width: 100%;
		min-width: 0;
	}

	/* 제목 영역 */
	.secthead > div {
		flex: 1 1 0%;
		min-width: 0;
		overflow: hidden;
	}

	/* 매대 제목 */
	.secthead h2 {
		margin: 0;
		font-size: 25px;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	/* 설명 */
	.secthead p {
		margin: 4px 0 0;
		color: #71808a;
		font-size: 14px;
	}

	/* 전체보기 */
	.secthead > a.more {
		flex-shrink: 0;
		white-space: nowrap;
	}

    .more { color: var(--blue); font-size: 13px; font-weight: bold; }

    .cards {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 17px;
    }

    .card {
      border: 1px solid var(--line);
      border-radius: 10px;
      overflow: hidden;
      background: #fff;
    }

    .thumb {
      height: 160px;
      padding: 15px;
      display: flex;
      align-items: end;
      color: white;
      font-weight: bold;
      font-size: 12px;
      letter-spacing: 2px;
      background: linear-gradient(135deg, #294b60, #7daaba);
    }

    .card:nth-child(2) .thumb { background: linear-gradient(135deg, #624c64, #c28f9d); }
    .card:nth-child(3) .thumb { background: linear-gradient(135deg, #536348, #aab88b); }
    .card:nth-child(4) .thumb { background: linear-gradient(135deg, #5d4c37, #c2a16a); }

    .info { padding: 15px; }
    .info small { color: var(--blue); font-weight: bold; }
    .info h3 { font-size: 17px; line-height: 1.4; margin: 7px 0; min-height: 48px; }
    .info p { margin: 0; color: #71808a; font-size: 13px; }

    .promos {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 15px;
      padding: 10px 0 42px;
    }

    .promo {
      padding: 25px;
      border-radius: 10px;
      background: #edf5f8;
    }
    .promo:nth-child(2) { background: #f6f1eb; }
    .promo small { color: var(--blue); font-weight: bold; }
    .promo h3 { margin: 7px 0; font-size: 21px; }
    .promo p { margin: 0; color: #71808a; font-size: 13px; }

    /* 푸터 */
    footer {
      background: #192f3e;
      color: #c5d0d7;
      padding: 30px 0;
      font-size: 13px;
    }

    footer .links {
      display: flex;
      gap: 18px;
      flex-wrap: wrap;
      color: #fff;
    }

    footer p { color: #9eabb5; margin: 6px 0; }

    /* 팝업 모달 스타일 */
    .popup-overlay {
      display: none;
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0, 0, 0, 0.6);
      z-index: 1000;
      justify-content: center;
      align-items: center;
      padding: 20px;
    }

    .popup-overlay.show { display: flex; }

    .popup-card {
      background: white;
      width: 100%;
      max-width: 420px;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
      animation: popIn 0.3s ease-out;
    }

    @keyframes popIn {
      from { opacity: 0; transform: scale(0.9); }
      to { opacity: 1; transform: scale(1); }
    }

    .popup-body {
      padding: 28px 24px;
      text-align: center;
      background: linear-gradient(135deg, #15394c, #087fae);
      color: white;
    }

    .popup-body .badge {
      display: inline-block;
      background: rgba(255, 255, 255, 0.2);
      padding: 4px 10px;
      border-radius: 20px;
      font-size: 12px;
      font-weight: bold;
      margin-bottom: 12px;
      letter-spacing: 1px;
    }

    .popup-body h3 { font-size: 22px; margin: 0 0 10px 0; line-height: 1.3; }
    .popup-body p { font-size: 14px; color: #e4f3f7; margin: 0 0 18px 0; }
    .popup-btn {
      display: inline-block;
      background: white;
      color: #15394c;
      padding: 10px 20px;
      border-radius: 6px;
      font-weight: bold;
      font-size: 14px;
    }

    .popup-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: #f8fafc;
      padding: 12px 18px;
      border-top: 1px solid var(--line);
      font-size: 13px;
      color: #64748b;
    }

	.search-all {
		margin-top:12px;
		padding:10px;
		background:#f5f5f5;
		color:#333;
		cursor:pointer;
		border-radius:5px;
		font-size:14px;
	}
	.search-all:hover {
		background:#eaeaea;
	}

    .popup-footer label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
    .popup-close-btn { border: none; background: transparent; font-weight: bold; color: #334155; cursor: pointer; font-size: 13px; }	
	
	@media (max-width: 1024px) {
	  .head .wrap {
		grid-template-columns: 160px 1fr auto;
		gap: 10px;
	  }
	  .account {
		gap: 8px;
		font-size: 12px;
	  }
	  .cards { 
		grid-template-columns: repeat(2, 1fr); 
	  }
	  
	  /* 여기에 추가하시면 됩니다! */
	  .navitem.touch-open .drop {
		display: grid !important;
	  }
	}

    @media (max-width: 700px) {
      .wrap { width: calc(100% - 20px); }
      .utility .wrap { height: 33px; gap: 14px; font-size: 12px; }
      .head .wrap { grid-template-columns: 1fr auto; gap: 10px; padding: 10px 0; }
      .brand small { font-size: 10px; letter-spacing: 2px; }
      .brand img { max-height: 32px; }
      .search { grid-column: 1 / -1; grid-row: 2; }
      .account { display: none; }
      .menu-btn { display: block; }
      .nav { display: none; }
      
      .custom-roller-slide {
        padding: 0 5% !important;
      }

      .heroarea { padding-top: 10px; }
      .hero-slider, .hero { min-height: 240px; }
      .quick { grid-template-columns: repeat(2, 1fr); gap: 8px; }
      .quick a { padding: 10px 12px; font-size: 12px; }
      .content { padding: 24px 0 !important; }
      .cards { gap: 10px; }
      .thumb { height: 120px; }
      .info { padding: 11px; }
      .info h3 { font-size: 15px; min-height: 42px; }
      .promos { grid-template-columns: 1fr; padding-bottom: 28px; }
      .promo { padding: 20px; }
      .slider-btn { width: 32px; height: 32px; font-size: 16px; }

	  .secthead {
			width: 100%;
			gap: 8px;
		}

		.secthead > div {
			flex: 1 1 0%;
			min-width: 0;
			overflow: hidden;
		}

		.secthead h2 {
			font-size: 21px;
			overflow: hidden;
			text-overflow: ellipsis;
			white-space: nowrap;
		}

		.secthead .more {
			flex-shrink: 0;
			white-space: nowrap;
		}
    }

	.top-banner {
		width: 70%;
		margin: 20px auto;
	}

	.top-banner img {
		display: block;
		width: 100%;
		height: auto;
	}

	/* 모바일 */
	@media (max-width: 700px) {
		.top-banner {
			width: 94%;
			margin: 10px auto;
		}
	}

	/* 모바일 메인 배너 텍스트 숨김 */
	/* 모바일 메인 배너 */
	@media (max-width: 768px) {

		.heroarea {
			padding: 10px 0;
			background: #fff;
		}

		.hero-slider {
			min-height: auto;
			background: transparent;
			border-radius: 15px;
		}

		.hero {
			min-height: 0;
			height: auto;
			display: block;
			background: transparent;
			border-radius: 15px;
		}

		/* 검은색 그라데이션 제거 */
		.hero::before {
			display: none;
		}

		/* 제목 및 CTA 숨김 */
		.hero article {
			display: none;
		}

		/* 배너 이미지 */
		.hero-bg-layer {
			position: relative;
			width: 100%;
			max-width: none;
			height: auto;
			max-height: none;
			aspect-ratio: 16 / 9;
			background-size: contain;
			background-position: center;
		}

		.hero-container {
			height: auto;
		}
	}