/* 리셋 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: sans-serif;
    line-height: 1.5;
    color: #333;
  }
  
  /* 공통 컨테이너 크기 제한 (필요 시 사용)
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
  } */
  
  /* 헤더 */
  .header {
    width: 100%;
    background-color: #000;
    color: #fff;
    position: relative;
  }
  .header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .logo a {
    font-size: 1.2rem;
    text-decoration: none;
    color: #ff5722;
    font-weight: bold;
  }
  
  /* GNB(메뉴) */
  .gnb ul {
    display: flex;
    gap: 1rem;
    list-style: none;
  }
  .gnb ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
  }
  
  /* 모바일 햄버거 버튼 */
  .hamburger-btn {
    display: none; /* 기본적으로 숨겨두고, 모바일에서만 표시 */
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
  }
    .hamburger-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    margin: 4px 0;
    transition: all 0.3s ease;
  }

  /* 모바일 메뉴 기본 스타일 */
  .mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: #000;
    z-index: 9999;
    transition: right 0.3s ease;
    padding-top: 60px;
  }

  .mobile-menu.active {
    right: 0;
  }

  .mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-menu-links {
    display: flex;
    flex-direction: column;
    padding: 20px;
  }

  .mobile-menu-links a {
    color: #fff;
    text-decoration: none;
    padding: 15px 0;
    border-bottom: 1px solid #333;
    font-size: 16px;
    transition: color 0.3s ease;
  }

  .mobile-menu-links a:hover {
    color: #ff5722;
  }

  .mobile-menu-links a:last-child {
    border-bottom: none;
  }

  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }
   
  /* 메인 비주얼 */
  .visual-section {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f3f3f3;
    padding: 2rem 1rem;
  }
  .visual-text {
    position: relative;
    max-width: 600px;
    margin-right: 2rem;
  }
  .visual-text h2 {
    font-size: 2rem;
    color: #333;
    line-height: 1.4;
  }
  .visual-text h2 span {
    color: #ff5722;
  }
  .subtitle {
    font-size: 1.2rem;
    margin-top: 1rem;
    color: #555;
  }
  .highlight-badge {
    position: absolute;
    top: 0;
    right: -150px;
    background: #ff5722;
    color: #fff;
    padding: 0.5rem 1rem;
    text-align: center;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    font-size: 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1.4;
  }
  .play-btn {
    margin-top: 2rem;
    display: inline-block;
    font-size: 1.2rem;
    background: #ff5722;
    color: #fff;
    padding: 0.8rem 1rem;
    border-radius: 50px;
    cursor: pointer;
  }
  .play-btn span {
    font-weight: bold;
  }
  .visual-img img {
    max-width: 350px;
    height: auto;
    border: 2px solid #ddd;
  }
  
  /* 슬라이드 섹션 */
  .slider-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;
  }
  .slider-section h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
  }
  .slider-section h3 strong {
    color: #ff5722;
  }
  .slider {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .prev-btn,
  .next-btn {
    background-color: #ff5722;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    cursor: pointer;
    margin: 0 0.5rem;
    border-radius: 50%;
  }
  .slide-container {
    display: flex;
    overflow: hidden;
    width: 700px;
  }
  .slide-item {
    min-width: 230px;
    margin: 0 0.5rem;
    text-align: center;
  }
  .slide-image {
    width: 100%;
    height: 150px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 0.5rem;
  }
  
  /* 강의 소개 섹션 */
  .course-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;
    background-color: #f9f9f9;
  }
  .course-section h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.3rem;
  }
  .course-section h3 span {
    color: #ff5722;
  }
  .best-badge {
    background-color: #ff5722;
    color: #fff;
    display: inline-block;
    padding: 0.3rem 0.8rem;
    margin-left: 1rem;
    border-radius: 20px;
  }
  .course-content {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 2rem;
  }
  .preview {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .instructor-illust img {
    width: 80px; /* 임의 크기 */
    margin-bottom: 1rem;
  }
  .video-box {
    width: 300px;
    height: 170px;
    background-color: #333;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .video-placeholder {
    font-size: 1rem;
  }
  .course-info {
    text-align: center;
  }
  .apply-btn {
    background-color: #ff5722;
    color: #fff;
    border: none;
    font-size: 1rem;
    padding: 0.7rem 1.2rem;
    cursor: pointer;
    margin-bottom: 1rem;
    border-radius: 4px;
  }
  .course-detail img {
    max-width: 150px;
    margin-bottom: 0.5rem;
  }
  .course-detail p {
    font-weight: bold;
    font-size: 1rem;
    color: #555;
  }
  
  /* 푸터 */
  .footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
  }

  /* 모의고사 배너 스타일 */
  .mock-exam-section {
    margin-top: 20px;
    padding: 0 20px;
    margin-bottom: 20px;
  }

  .mock-exam-banner {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border-radius: 20px;
    padding: 25px 35px;
    text-decoration: none;
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 12px 40px rgba(255, 107, 53, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }

  .mock-exam-bg-pattern {
    position: absolute;
    top: 10%;
    left: 0;
    right: 0;
    bottom: -12%;
    opacity: 0.1;
  }

  .mock-exam-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
    z-index: 1;
  }

  .mock-exam-banner:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 20px 50px rgba(255, 107, 53, 0.3),
        0 8px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
  }

  .mock-exam-banner:hover::before {
    left: 100%;
  }

  .mock-exam-content {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 2;
  }

  .mock-exam-icon {
    font-size: 50px;
    margin-right: 25px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
  }

  .mock-exam-banner:hover .mock-exam-icon {
    transform: scale(1.1) rotate(5deg);
  }

  .mock-exam-text {
    flex: 1;
  }

  .mock-exam-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
  }

  .mock-exam-desc {
    font-size: 18px;
    line-height: 1.4;
    opacity: 0.95;
    font-weight: 400;
  }

  .mock-exam-arrow {
    font-size: 24px;
    font-weight: bold;
    margin-left: 20px;
    transition: transform 0.3s ease;
  }

  .mock-exam-banner:hover .mock-exam-arrow {
    transform: translateX(5px);
  }
  
  /* ================== 반응형 미디어 쿼리 ================== */
  /* 예: 가로폭이 1024px 이하일 때 */
  @media (max-width: 1024px) {
    .visual-text h2 {
      font-size: 1.8rem;
    }
    .highlight-badge {
      top: -10px;
      right: -120px;
      width: 80px;
      height: 80px;
      font-size: 0.7rem;
    }
    .visual-img img {
      max-width: 300px;
    }
    .slide-container {
      width: 600px;
    }
  }
  
  /* 예: 가로폭이 768px 이하일 때 */
  @media (max-width: 768px) {
    body {
      font-size: 0.95rem;
      line-height: 1.6;
    }

    h1 {
      font-size: 2rem;
      line-height: 1.3;
    }

    h2 {
      font-size: 1.7rem;
      line-height: 1.35;
    }

    h3 {
      font-size: 1.35rem;
      line-height: 1.35;
    }

    h4 {
      font-size: 1.15rem;
    }

    .header-inner {
      flex-direction: column;
      align-items: flex-start;
      gap: 1rem;
      padding: 1rem 15px;
    }
    .gnb ul {
      display: none; /* 모바일에서 메인 메뉴 숨김(햄버거 버튼으로 열기) */
      flex-direction: column;
      gap: 0.5rem;
      background-color: #000;
      padding: 0.5rem 1rem;
    }
    /* 햄버거 버튼 노출 */
    .hamburger-btn {
      display: flex !important;
    }
  
    /* 메인 비주얼: 이미지와 텍스트 수직 배치 */
    .visual-section {
      flex-direction: column;
      padding: 1.5rem 15px;
    }
    .visual-text {
      margin-right: 0;
      max-width: 100%;
      margin-bottom: 1.5rem;
      text-align: center;
    }
    .visual-text h2 {
      font-size: 1.6rem;
      line-height: 1.3;
      word-break: keep-all;
    }
    .subtitle {
      font-size: 1.1rem;
      line-height: 1.5;
      word-break: keep-all;
    }
    .highlight-badge {
      position: static;
      margin: 1rem auto 0;
      border-radius: 50px; 
      width: auto;
      height: auto;
      padding: 0.8rem 1.5rem;
    }
  
    /* 슬라이드 섹션 크기 조절 */
    .slide-container {
      width: 100%;
    }
    .slider-section {
      padding: 1rem 15px;
    }
    .slider-section h3 {
      font-size: 1.1rem;
      line-height: 1.4;
      word-break: keep-all;
    }
  
    /* 강의 소개 섹션 */
    .course-content {
      flex-direction: column;
      padding: 0 15px;
    }
    .course-section h3 {
      font-size: 1.2rem;
      line-height: 1.4;
      word-break: keep-all;
    }
    .video-box {
      width: 100%;
      max-width: 100%;
      height: 200px;
    }

    /* 모의고사 배너 모바일 스타일 */
    .mock-exam-section {
      margin-top: 25px;
      padding: 0 15px;
    }

    .mock-exam-banner {
      padding: 22px 20px;
      border-radius: 14px;
    }

    .mock-exam-content {
      flex-direction: column;
      text-align: center;
    }

    .mock-exam-icon {
      font-size: 36px;
      margin-right: 0;
      margin-bottom: 12px;
    }

    .mock-exam-title {
      font-size: 20px;
      margin-bottom: 8px;
      line-height: 1.3;
      word-break: keep-all;
    }

    .mock-exam-desc {
      font-size: 15px;
      margin-bottom: 10px;
      line-height: 1.4;
      word-break: keep-all;
    }

    .mock-exam-arrow {
      margin-left: 0;
      font-size: 18px;
    }
  }
  
  /* 소형 모바일 폰트 최적화 (480px 이하) */
  @media (max-width: 480px) {
    /* 기본 폰트 크기 조정 */
    html {
      font-size: 14px;
    }
    
    body {
      font-size: 14px;
      line-height: 1.6;
    }
    
    /* 제목 폰트 크기 조정 */
    h1 { font-size: 1.55rem; line-height: 1.3; }
    h2 { font-size: 1.35rem; line-height: 1.35; }
    h3 { font-size: 1.15rem; line-height: 1.35; }
    h4 { font-size: 1.05rem; line-height: 1.45; }
    
    /* 본문 텍스트 */
    p {
      font-size: 14px;
      line-height: 1.6;
      margin-bottom: 1rem;
    }
    
    /* 버튼 및 링크 */
    button, .btn, .apply-btn {
      font-size: 14px !important;
      padding: 11px 16px;
      min-height: 44px;
    }
    
    /* 입력 필드 */
    input, textarea, select {
      font-size: 16px !important; /* iOS 줌 방지를 위해 16px 유지 */
      padding: 10px;
    }
    
    /* 비주얼 섹션 */
    .visual-text h2 {
      font-size: 1.5rem;
      line-height: 1.3;
    }
    
    .subtitle {
      font-size: 1rem;
      line-height: 1.5;
    }
    
    .visual-section {
      padding: 1rem 0.75rem;
    }
    
    .video-box {
      max-width: 100%;
      height: 200px;
    }
    
    /* 강의 섹션 */
    .course-section h3 {
      font-size: 1.25rem;
      line-height: 1.4;
    }
    
    .slider-section h3 {
      font-size: 1.125rem;
      line-height: 1.4;
    }
    
    /* 네비게이션 */
    .gnb ul li a {
      font-size: 15px;
      padding: 10px 14px;
    }

    /* 모의고사 배너 소형 모바일 스타일 */
    .mock-exam-section {
      margin-top: 20px;
      padding: 0 12px;
    }

    .mock-exam-banner {
      padding: 18px 20px;
      border-radius: 12px;
    }

    .mock-exam-icon {
      font-size: 36px;
      margin-bottom: 12px;
    }

    .mock-exam-title {
      font-size: 20px;
      margin-bottom: 5px;
    }

    .mock-exam-desc {
      font-size: 14px;
      margin-bottom: 8px;
    }

    .mock-exam-arrow {
      font-size: 18px;
    }
  }
  
