/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
    z-index: 1001;
  }

  .nav-menu {
    position: fixed;
    right: -100%;
    top: 70px;
    flex-direction: column;
    background: white;
    width: 100%;
    text-align: center;
    transition: 0.3s ease;
    box-shadow: -10px 10px 27px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    z-index: 1000;
    border-top: 1px solid #e9ecef;
    height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu li {
    margin: 0.5rem 0;
  }

  .nav-menu li a {
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
  }

  .nav-menu li a:hover {
    background: #f8f9fa;
    color: #dda0dd;
  }

  /* Mobile Programs Dropdown - Override PC styles with higher specificity */
  .nav-menu .dropdown {
    position: relative;
  }

  /* Override PC dropdown styles for mobile */
  .nav-menu .dropdown .dropdown-content {
    position: static;
    display: none;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(221, 160, 221, 0.2);
    border-radius: 8px;
    padding: 1rem;
    min-width: auto;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    flex-direction: column;
    gap: 0;
    margin: 0.5rem 1rem;
    width: calc(100% - 2rem);
    max-height: none;
    overflow-y: visible;
    transition: none;
  }

  /* Active state for mobile dropdown */
  .nav-menu .dropdown.active .dropdown-content {
    display: flex;
  }

  .nav-menu .dropdown-section {
    flex: none;
    min-width: auto;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #f0f0f0;
  }

  .nav-menu .dropdown-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }

  .nav-menu .dropdown-section h4 {
    color: #dda0dd;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.7rem;
    padding: 0.4rem 0.8rem;
    background: rgba(221, 160, 221, 0.08);
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
  }

  .nav-menu .dropdown-section > a,
  .nav-menu .sub-dropdown > a {
    display: block;
    color: #555;
    text-decoration: none;
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 6px;
    margin-bottom: 0.3rem;
    background: transparent;
  }

  .nav-menu .dropdown-section > a:hover,
  .nav-menu .sub-dropdown > a:hover {
    color: #dda0dd;
    background: rgba(221, 160, 221, 0.12);
    transform: translateX(4px);
  }

  .nav-menu .dropdown-section > a:last-child {
    margin-bottom: 0;
  }

  .nav-menu .sub-dropdown {
    position: relative;
    margin-bottom: 0.6rem;
    background: rgba(248, 249, 250, 0.5);
    border-radius: 6px;
    padding: 0.5rem;
  }

  .nav-menu .sub-dropdown:last-child {
    margin-bottom: 0;
  }

  .nav-menu .nav-link-disabled {
    cursor: default;
    font-weight: 600;
    color: #777;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.4rem;
    display: block;
    padding: 0.3rem 0.5rem;
  }

  .nav-menu .sub-dropdown-content {
    display: block;
    margin-top: 0.2rem;
    padding-left: 0.5rem;
  }

  .nav-menu .sub-dropdown-content a {
    display: block;
    color: #666;
    text-decoration: none;
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 4px;
    margin-bottom: 0.2rem;
    background: transparent;
  }

  .nav-menu .sub-dropdown-content a:hover {
    color: #dda0dd;
    background: rgba(221, 160, 221, 0.1);
    transform: translateX(3px);
  }

  .nav-menu .sub-dropdown-content a:last-child {
    margin-bottom: 0;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .hero-content h1 {
    display: none;
  }

  .hero-content p {
    display: none;
  }

  .hero-content {
    padding-bottom: 4rem;
  }

  .hero-content .cta-button {
    position: absolute;
    bottom: 7rem;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    line-height: 1.2;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .programs-grid-compact {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .program-image {
    height: 150px;
  }

  .year-title {
    font-size: 1.2rem;
    padding: 1rem;
  }

  .subjects-compact {
    padding: 1rem;
  }

  .testimonial-track {
    flex-direction: column;
    gap: 1rem;
  }

  .testimonial-card {
    flex: 0 0 auto;
  }

  section {
    padding: 50px 0;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  /* Popup mobile adjustments */
  .popup-overlay, .modal-overlay {
    padding-top: 120px;
    padding-bottom: 120px;
    padding-left: 20px;
    padding-right: 20px;
    align-items: flex-start;
    box-sizing: border-box;
  }

  .popup-content, .modal-content {
    width: 100%;
    padding: 3rem 1.5rem 5rem 1.5rem;
    margin: 0;
    max-height: 600px;
    position: relative;
    box-sizing: border-box;
  }

  .popup-close, .modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.5rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border: 2px solid white;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    display: none;
  }

  .hero-content p {
    display: none;
  }

  .cta-button {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .programs-grid-compact {
    gap: 1rem;
  }

  .program-image {
    height: 120px;
  }

  .year-title {
    font-size: 1.1rem;
    padding: 0.8rem;
  }

  .subjects-compact {
    padding: 0.8rem;
  }

  .subject-link {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    margin: 0.2rem;
  }

  .subject-link.small {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }

  .container {
    padding: 0 15px;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .section-header p {
    font-size: 0.9rem;
  }

  .about-content {
    padding: 1rem 0;
  }

  .features-grid {
    gap: 1rem;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .feature-card h3 {
    font-size: 1.2rem;
  }

  .testimonials-section {
    padding: 3rem 0;
    overflow-x: hidden;
  }

  .testimonials-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .testimonials-container {
    gap: 1.5rem;
  }

  .testimonials-row {
    animation-duration: 20s;
  }

  .testimonial-card {
    min-width: 250px;
    max-width: 280px;
  }

  .youtube-video {
    padding-bottom: 56.25%; /* 16:9 비율 */
    max-width: 100%;
  }

  .testimonial-content {
    padding: 1.2rem;
  }

  .testimonial-content p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 1.8rem 0 0.8rem 0;
  }

  .quote-icon {
    font-size: 2rem;
    top: 0.3rem;
    left: 1rem;
  }

  .testimonial-content p {
    font-size: 1rem;
    margin: 2rem 0 1rem 0;
  }

  .testimonial-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .testimonial-author h4 {
    font-size: 1rem;
  }

  .testimonial-author span {
    font-size: 0.85rem;
  }

  .google-verified {
    font-size: 0.8rem;
    align-self: flex-end;
  }

  .contact-content {
    gap: 1.5rem;
  }

  .contact-info {
    padding: 1.5rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 12px;
    font-size: 0.9rem;
  }

  .submit-btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .results-section h2 {
    font-size: 1.8rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.9rem;
  }

  .journey-section h2 {
    font-size: 1.8rem;
  }

  .journey-slider {
    height: 350px;
  }

  .journey-slide {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
  }

  .slide-number {
    font-size: 3rem;
    min-width: auto;
  }

  .slide-content {
    padding: 1.5rem;
  }

  .step-content h3 {
    font-size: 1rem;
  }

  .step-content p {
    font-size: 0.85rem;
  }

  .footer-content {
    gap: 1rem;
  }

  .footer-section h3,
  .footer-section h4 {
    font-size: 1.1rem;
  }

  .chatbot-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .testimonials-section {
    padding: 2.5rem 0;
  }

  .testimonials-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

  .testimonials-container {
    gap: 1rem;
  }

  .testimonials-row {
    animation-duration: 15s;
  }

  .testimonial-card {
    min-width: 220px;
    max-width: 250px;
  }

  .testimonial-content {
    padding: 1rem;
  }

  .testimonial-content p {
    font-size: 0.85rem;
    line-height: 1.3;
    margin: 1.5rem 0 0.6rem 0;
  }

  .quote-icon {
    font-size: 1.8rem;
    top: 0.2rem;
  }

  .testimonial-author h4 {
    font-size: 0.9rem;
  }

  .testimonial-author span {
    font-size: 0.8rem;
  }

  .youtube-video {
    padding-bottom: 56.25%; /* 16:9 비율로 높이 증가 */
    max-width: 100%;
  }

  .testimonial-content p {
    font-size: 0.9rem;
    margin: 1.5rem 0 1rem 0;
    line-height: 1.5;
  }

  .testimonial-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding-top: 0.75rem;
  }

  .testimonial-author h4 {
    font-size: 0.95rem;
  }

  .testimonial-author span {
    font-size: 0.8rem;
  }

  .google-verified {
    font-size: 0.75rem;
    align-self: flex-start;
    margin-top: 0.25rem;
  }
}

/* Social Media Links Mobile */
@media (max-width: 768px) {
  .social-links {
    gap: 0.5rem;
    justify-content: center;
  }

  .social-links a {
    padding: 0.5rem 1rem;
    min-width: 90px;
    font-size: 0.85rem;
  }
}

/* Results & Timeline Mobile Responsive */
@media (max-width: 768px) {
  .results-section {
    padding: 3rem 0;
  }

  .results-section h2 {
    font-size: 2rem;
  }

  .results-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .results-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stat-card {
    padding: 1.5rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .destinations-chart {
    padding: 1.5rem;
  }

  .uni-bar {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .uni-name {
    min-width: auto;
    text-align: center;
    font-size: 0.9rem;
  }

  .bar-container {
    height: 25px;
  }

  .journey-section {
    padding: 3rem 0;
  }

  .journey-section h2 {
    font-size: 2rem;
  }

  .journey-slider {
    height: 400px;
  }

  .journey-slide {
    flex-direction: column;
    gap: 2rem;
    padding: 1.5rem;
    text-align: center;
  }

  .slide-number {
    font-size: 2.5rem;
    min-width: auto;
  }

  .slide-content {
    padding: 2rem;
  }

  .slide-content h3 {
    font-size: 1.5rem;
  }

  .slide-content p {
    font-size: 1rem;
  }
}
