/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles - Responsive */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 10000 !important;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10001 !important;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-links a {
    color: #27ae60;
    font-size: 1.2rem;
    transition: color 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    color: #2ecc71;
}

/* Logo */
.logo-container {
    flex-grow: 1;
    text-align: center;
}

.logo-container a {
    display: inline-block;
}

.logo {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-icon {
    color: #27ae60;
    font-size: 1.2rem;
    transition: color 0.3s ease;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 50%;
    position: relative;
}

.cart-icon:hover {
    color: #2ecc71;
    background: rgba(39, 174, 96, 0.1);
}

.contact-btn {
    background: #27ae60;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.contact-btn:hover {
    background: #2ecc71;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

/* User Profile Section Styles */
.user-profile-section {
    position: relative;
    display: none;
    align-items: center;
    z-index: 999999 !important;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    background: rgba(39, 174, 96, 0.1);
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.user-info:hover {
    background: rgba(39, 174, 96, 0.15);
    border-color: rgba(39, 174, 96, 0.3);
    transform: translateY(-1px);
}

.user-email {
    color: #27ae60;
    font-weight: 600;
    font-size: 0.9rem;
}

.user-dropdown-arrow {
    color: #27ae60;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.user-dropdown-menu.active .user-dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    min-width: 200px;
    z-index: 999999 !important;
    overflow: hidden;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.user-dropdown-menu.active {
    opacity: 1;
    transform: translateY(0);
    z-index: 999999 !important;
}

.user-dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.user-dropdown-menu .dropdown-item:hover {
    background: #f8f9fa;
    color: #27ae60;
    padding-left: 1.25rem;
}

.user-dropdown-menu .dropdown-item i {
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

.user-dropdown-menu .logout-item {
    color: #e74c3c;
}

.user-dropdown-menu .logout-item:hover {
    background: #fdf2f2;
    color: #c0392b;
}

.user-dropdown-menu .dropdown-divider {
    height: 1px;
    background: #e9ecef;
    margin: 0.5rem 0;
}

.user-dropdown-menu .dropdown-item:last-child {
    border-bottom: none;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    background: none;
    border: none;
    z-index: 1001;
    position: relative;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: #27ae60;
    margin: 2px 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
    border-radius: 1px;
    display: block;
    position: relative;
}

/* 활성화 상태의 X 모양 */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: #e74c3c;
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: #e74c3c;
}

/* 호버 효과 */
.mobile-menu-btn:hover span {
    background: #2ecc71;
}

.mobile-menu-btn.active:hover span:nth-child(1),
.mobile-menu-btn.active:hover span:nth-child(3) {
    background: #c0392b;
}

/* Mobile User Button */
.mobile-user-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #27ae60;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
    border-radius: 50%;
    background: transparent;
    border: none;
}

.mobile-user-btn:hover {
    color: #2ecc71;
    background: rgba(39, 174, 96, 0.1);
}

/* Desktop Only 클래스 */
.desktop-only {
    display: block;
}

/* Main Navigation - 축소된 버전 */
.main-nav {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    position: relative;
    z-index: 100 !important;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0.7rem 0;
    gap: 2rem;
    margin: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #27ae60;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.7rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.8rem;
}

.nav-link:hover {
    color: #2ecc71;
    background: rgba(39, 174, 96, 0.1);
    transform: translateY(-1px);
}

.dropdown-icon {
    font-size: 0.64rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 0.7rem;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.3s ease;
    font-size: 0.72rem;
    position: relative;
}

.dropdown-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: #27ae60;
    transition: width 0.3s ease;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
    color: #27ae60;
    padding-left: 1.5rem;
}

.dropdown-menu a:hover::before {
    width: 3px;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

/* Junior Golf Programs 드롭다운은 더 넓게 */
.nav-item:nth-child(2) .dropdown-menu {
    min-width: 224px;
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: white;
    z-index: 99999 !important;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav-header {
    padding: 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
}

.mobile-nav-close {
    width: 40px;
    height: 40px;
    background: #e9ecef;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-nav-close:hover {
    background: #27ae60;
    color: white;
}

.mobile-nav-content {
    padding: 1rem 0;
}

.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-item {
    border-bottom: 1px solid #f1f3f4;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    background: #f8f9fa;
    color: #27ae60;
}

.mobile-nav-link.contact-link {
    background: #27ae60;
    color: white;
    margin: 1rem;
    border-radius: 8px;
}

.mobile-nav-link.contact-link:hover {
    background: #2ecc71;
}

.mobile-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f8f9fa;
}

.mobile-submenu.active {
    max-height: 300px;
}

.mobile-submenu li {
    border-bottom: 1px solid #e9ecef;
}

.mobile-submenu a {
    display: block;
    padding: 0.75rem 2rem;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-submenu a:hover {
    background: white;
    color: #27ae60;
    padding-left: 2.5rem;
}

.mobile-user-section {
    border-top: 2px solid #e9ecef;
    padding: 1.5rem;
    background: #f8f9fa;
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
}

.mobile-user-info i {
    font-size: 2rem;
    color: #27ae60;
}

.mobile-user-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-user-menu li {
    margin-bottom: 0.5rem;
}

.mobile-user-menu a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-user-menu a:hover {
    background: #27ae60;
    color: white;
}

.mobile-social {
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.mobile-social h4 {
    margin-bottom: 1rem;
    color: #333;
    text-align: center;
}

.mobile-social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-social-links a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-social-links a:hover {
    background: #27ae60;
    color: white;
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 99998 !important;
}

/* 기존 mobile-main-nav, user-nav 등은 모두 숨김 */
.mobile-main-nav,
.user-nav,
.mobile-user-overlay {
    display: none !important;
}

/* Header Scroll Effect */
.header-scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.header-scrolled .logo {
    height: 50px;
}

/* SVG 스타일 통일 */
.social-links svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: fill 0.3s ease;
}

/* 메시지 스타일 개선 - 그린 톤에서 구분되도록 */
.message,
.temp-message {
    position: fixed !important;
    top: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    padding: 15px 25px !important;
    border-radius: 8px !important;
    z-index: 999999 !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25) !important;
    max-width: 90vw !important;
    text-align: center !important;
    border: 2px solid !important;
    font-size: 0.95rem !important;
}

/* 성공 메시지 */
.message.success,
.temp-message.success {
    background: #ffffff !important;
    color: #27ae60 !important;
    border-color: #27ae60 !important;
    box-shadow: 0 4px 20px rgba(39, 174, 96, 0.3) !important;
}

/* 에러 메시지 */
.message.error,
.temp-message.error {
    background: #ffffff !important;
    color: #e74c3c !important;
    border-color: #e74c3c !important;
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.3) !important;
}

/* 정보 메시지 */
.message.info,
.temp-message.info {
    background: #ffffff !important;
    color: #3498db !important;
    border-color: #3498db !important;
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.3) !important;
}

/* 경고 메시지 */
.message.warning,
.temp-message.warning {
    background: #ffffff !important;
    color: #f39c12 !important;
    border-color: #f39c12 !important;
    box-shadow: 0 4px 20px rgba(243, 156, 18, 0.3) !important;
}

/* 메시지 아이콘 스타일 */
.message::before,
.temp-message::before {
    font-size: 1.1rem !important;
    margin-right: 8px !important;
    font-weight: bold !important;
}

/* 모바일에서 메시지 조정 */
@media (max-width: 768px) {
    .message,
    .temp-message {
        top: 10px !important;
        max-width: 95vw !important;
        padding: 12px 20px !important;
        font-size: 0.9rem !important;
    }
}

/* Hero Video Section */
.hero-video {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
    margin-top: 140px; /* Account for fixed header */
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-container video,
.video-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

/* Main Intro Section */
.main-intro {
    padding: 60px 0;
    background: white;
    text-align: center;
}

.intro-header h1 {
    font-size: 3rem;
    color: #27ae60;
    margin-bottom: 2rem;
    font-weight: bold;
}

/* Certifications */
.certifications {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    padding: 0 2rem;
}

.certifications-image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.certifications-image:hover {
    transform: scale(1.05);
}

/* Who We Are Section */
.who-we-are {
    padding: 80px 0;
    background: #e8e8e8;
}

.who-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.who-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

.who-text h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.who-text p {
    margin-bottom: 1.5rem;
    color: #5a6c7d;
    line-height: 1.8;
    font-size: 1.1rem;
}

.learn-more-btn {
    background: #27ae60;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.learn-more-btn:hover {
    background: #2ecc71;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

/* Our Locations Maps Section */
.our-locations-maps {
    padding: 80px 0;
    background: white;
}

.our-locations-maps .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.our-locations-maps .section-header h2 {
    font-size: 2.5rem;
    color: #27ae60;
    margin-bottom: 1rem;
    font-weight: bold;
}

.locations-maps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.location-map-item {
    text-align: center;
}

.location-map-item h3 {
    font-size: 2rem;
    color: #27ae60;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.location-map-item .location-address {
    color: #27ae60;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.map-container {
    margin-bottom: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.map-container img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.directions-btn {
    background: transparent;
    color: #27ae60;
    border: 2px solid #27ae60;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.directions-btn:hover {
    background: #27ae60;
    color: white;
    transform: translateY(-2px);
}

/* Stay Connected Section */
.stay-connected {
    position: relative;
    background: #27ae60;
    padding: 80px 0;
    color: white;
}

.wave-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 80%);
}

.stay-connected .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.stay-connected .section-header h2 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.follow-btn {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.follow-btn:hover {
    background: white;
    color: #27ae60;
    transform: translateY(-2px);
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.instagram-post {
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.instagram-post:hover {
    transform: scale(1.05);
}

.instagram-post img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: white;
}

.contact .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact .section-header h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.contact .section-header p {
    font-size: 1.1rem;
    color: #7f8c8d;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.contact-info p {
    color: #7f8c8d;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 5px;
}

.contact-method i {
    color: #27ae60;
    font-size: 1.5rem;
    width: 30px;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.contact-method h4 {
    margin-bottom: 0.25rem;
    color: #2c3e50;
}

.contact-method p {
    color: #5a6c7d;
    margin: 0.2rem 0;
}

/* Form Styles */
.contact-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #27ae60;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    font-size: 1rem;
    position: relative !important;
    z-index: 51 !important;
}

.btn-primary {
    background: #27ae60;
    color: white;
}

.btn-primary:hover {
    background: #2ecc71;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.3);
}

/* Footer 모바일 최적화 */
footer {
    background: white;
    padding: 1.5rem 0;
    border-top: 1px solid #e9ecef;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.footer-logo-section {
    text-align: center;
}

.footer-logo img {
    height: 50px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.footer-social-links a {
    color: #27ae60;
    font-size: 1.3rem;
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-social-links a:hover {
    color: #2ecc71;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: #27ae60;
    font-weight: bold;
}

.footer-locations p,
.footer-contact p {
    margin: 0.3rem 0;
    color: #5a6c7d;
    font-size: 0.9rem;
    line-height: 1.4;
}

.footer-contact a {
    color: #27ae60;
    text-decoration: none;
}

.footer-contact a:hover {
    color: #2ecc71;
    text-decoration: underline;
}

/* SVG 아이콘 스타일 */
.footer-social-links svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: fill 0.3s ease;
}

/* 메인 콘텐츠 마진 개선 */
.main-intro,
.who-we-are,
.our-locations-maps,
.stay-connected,
.contact {
    padding-left: 0;
    padding-right: 0;
}

.main-intro .container,
.who-we-are .container,
.our-locations-maps .container,
.stay-connected .container,
.contact .container {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* 애니메이션 효과 */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 접근성 개선 */
.nav-link:focus,
.cart-icon:focus,
.contact-btn:focus {
    outline: 2px solid #27ae60;
    outline-offset: 2px;
}

.mobile-menu-btn:focus {
    outline: 2px solid #27ae60;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Order Page - Hide Main Navigation */
.order-page .main-nav {
    display: none !important;
}

/* Order Page - Adjust content margin */
.order-page .hero-video,
.order-page main,
.order-page .main-content {
    margin-top: 80px !important;
}

/* 카테고리 탭 상단 마진 추가 */
.category-tabs,
.filter-tabs,
.tab-container,
.category-filter {
    margin-top: 100px !important;
    padding-top: 1rem;
}

/* 주문 페이지 전용 마진 조정 */
.order-page .category-tabs,
.order-page .filter-tabs,
.order-page .tab-container,
.order-page .category-filter {
    margin-top: 80px !important;
}

/* 모바일 헤더 레이아웃 수정 */
@media (max-width: 768px) {
    /* 헤더 z-index 낮추기 */
    header {
        z-index: 5000 !important;
    }
    
    .header-container {
        z-index: 5001 !important;
    }
    
    /* 모바일 메뉴들을 헤더보다 위에 */
    .mobile-nav {
        z-index: 10000 !important;
    }
    
    .mobile-nav-overlay {
        z-index: 9999 !important;
    }
    
    .mobile-user-nav {
        z-index: 10000 !important;
    }
    
    .mobile-user-nav-overlay {
        z-index: 9999 !important;
    }
    
    /* 모바일 메뉴 버튼들은 헤더와 같은 레벨 */
    .mobile-menu-btn,
    .mobile-user-btn {
        z-index: 5002 !important;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    .header-container {
        display: grid !important;
        grid-template-columns: auto 1fr auto !important;
        align-items: center;
        gap: 1rem;
        padding: 0.75rem 1rem;
    }
    
    .mobile-menu-btn {
        grid-column: 1;
        display: flex !important;
    }
    
    .social-links {
        display: none !important;
    }
    
    .logo-container {
        grid-column: 2;
        text-align: center;
    }
    
    .header-actions {
        grid-column: 3;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .main-nav {
        display: none !important;
    }
    
    .mobile-user-btn {
        display: none;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        color: #27ae60;
        font-size: 1.5rem;
        cursor: pointer;
    }
    
    .cart-icon {
        font-size: 1rem;
        padding: 0.25rem;
    }
    
    .logo {
        height: 40px;
        max-width: 100%;
    }
    
    .main-intro .container,
    .who-we-are .container,
    .our-locations-maps .container,
    .stay-connected .container,
    .contact .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .hero-video {
        margin-top: 80px;
    }
    
    /* 모바일에서 카테고리 탭 마진 조정 */
    .category-tabs,
    .filter-tabs,
    .tab-container,
    .category-filter {
        margin-top: 80px !important;
        padding-top: 1rem;
    }
    
    .order-page .category-tabs,
    .order-page .filter-tabs,
    .order-page .tab-container,
    .order-page .category-filter {
        margin-top: 70px !important;
    }
    
    /* Footer 모바일 최적화 */
    footer {
        padding: 1rem 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-logo img {
        height: 40px;
        margin-bottom: 0.75rem;
    }
    
    .footer-social-links {
        margin-bottom: 0.5rem;
    }
    
    .footer-social-links a {
        font-size: 1.2rem;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .footer-locations p,
    .footer-contact p {
        margin: 0.2rem 0;
        font-size: 0.85rem;
    }
    
    .location-info {
        margin-bottom: 0.75rem;
    }
    
    .contact-info p {
        margin: 0.15rem 0;
    }
    
    /* Other responsive adjustments */
    .who-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .locations-maps-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .location-map-item {
        margin: 0;
    }
    
    .instagram-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .header-container {
        padding: 0.5rem 0.75rem;
    }
    
    .logo {
        height: 35px;
    }
    
    .mobile-menu-btn {
        width: 36px;
        height: 36px;
        padding: 0.5rem;
    }
    
    .mobile-menu-btn span {
        width: 20px;
        height: 2px;
        margin: 1.5px 0;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .mobile-nav {
        width: 260px;
    }
    
    .main-intro .container,
    .who-we-are .container,
    .our-locations-maps .container,
    .stay-connected .container,
    .contact .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .intro-header h1 {
        font-size: 2rem;
        padding: 0 1rem;
    }
    
    .who-text h2 {
        font-size: 1.8rem;
    }
    
    .certifications {
        padding: 0 0.5rem;
    }
    
    .instagram-grid {
        grid-template-columns: 1fr;
    }
    
    .stay-connected .section-header h2 {
        font-size: 2.2rem;
    }
    
    .our-locations-maps .section-header h2,
    .contact .section-header h2 {
        font-size: 2rem;
    }
    
    .user-info {
        padding: 0.4rem 0.75rem;
    }
    
    .user-email {
        font-size: 0.8rem;
    }
    
    .user-dropdown-menu {
        min-width: 180px;
        right: -10px;
    }
    
    /* Footer 모바일 최적화 */
    footer {
        padding: 0.75rem 0;
    }
    
    .footer-content {
        gap: 0.75rem;
    }
    
    .footer-logo img {
        height: 35px;
        margin-bottom: 0.5rem;
    }
    
    .footer-social-links {
        gap: 0.75rem;
        margin-bottom: 0.25rem;
    }
    
    .footer-social-links a {
        font-size: 1.1rem;
    }
    
    .footer-social-links svg {
        width: 18px;
        height: 18px;
    }
    
    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }
    
    .footer-locations p,
    .footer-contact p {
        font-size: 0.8rem;
        margin: 0.1rem 0;
    }
    
    .location-info {
        margin-bottom: 0.5rem;
    }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 1.2rem;
        padding: 0.5rem 0;
    }
    
    .nav-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .dropdown-menu a {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
    }
}

/* 데스크톱에서 모바일 요소 숨김 */
@media (min-width: 769px) {
    .mobile-nav {
        display: none !important;
    }
    
    .mobile-menu-btn {
        display: none !important;
    }
    
    .mobile-user-btn {
        display: none !important;
    }
    
    .main-nav {
        display: block !important;
    }
    
    .social-links {
        display: flex !important;
    }
}

/* 터치 디바이스를 위한 더 큰 터치 영역 */
@media (hover: none) and (pointer: coarse) {
    .mobile-menu-btn {
        width: 44px;
        height: 44px;
        padding: 0.75rem;
    }
    
    .mobile-menu-btn span {
        width: 22px;
    }
    
    .nav-link:hover {
        background: none;
        transform: none;
    }
    
    .dropdown-menu a:hover {
        padding-left: 1rem;
    }
    
    .dropdown-menu a:hover::before {
        width: 0;
    }
}

/* 초소형 디바이스 (Galaxy Fold 등) */
@media (max-width: 320px) {
    .header-container {
        padding: 0.5rem;
    }
    
    .logo {
        height: 32px;
    }
    
    .mobile-nav {
        width: 100vw;
        left: -100vw;
    }
    
    .cart-icon {
        font-size: 1rem;
    }
    
    footer {
        padding: 0.5rem 0;
    }
    
    .footer-content {
        gap: 0.5rem;
    }
    
    .footer-logo img {
        height: 32px;
    }
    
    .footer-social-links {
        gap: 0.5rem;
    }
    
    .footer-section h4 {
        font-size: 0.95rem;
        margin-bottom: 0.3rem;
    }
    
    .footer-locations p,
    .footer-contact p {
        font-size: 0.75rem;
    }
}

/* 고해상도 디스플레이 */
@media (-webkit-min-device-pixel-ratio: 2) {
    .logo {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* 다크 모드 지원 */
@media (prefers-color-scheme: dark) {
    header {
        background: #1a1a1a;
        border-bottom: 1px solid #333;
    }
    
    .main-nav {
        background: #2a2a2a;
        border-top-color: #333;
    }
    
    .nav-link {
        color: #4ade80;
    }
    
    .dropdown-menu {
        background: #1a1a1a;
        border-color: #333;
    }
    
    .dropdown-menu a {
        color: #e5e5e5;
        border-bottom-color: #333;
    }
    
    .dropdown-menu a:hover {
        background: #333;
        color: #4ade80;
    }
}

/* 고대비 모드 지원 */
@media (prefers-contrast: high) {
    .nav-link {
        border: 1px solid transparent;
    }
    
    .nav-link:hover,
    .nav-link:focus {
        border-color: #27ae60;
    }
}

/* 애니메이션 줄이기 */
@media (prefers-reduced-motion: reduce) {
    .logo,
    .nav-link,
    .dropdown-menu,
    .mobile-menu-btn span,
    .mobile-nav {
        transition: none;
    }
}

@media (max-width: 768px) {
    /* 데스크톱 전용 요소들 강제 숨김 */
    .desktop-only,
    .user-profile-section {
        display: none !important;
    }
    
    /* 모바일 사용자 버튼 표시 (로그인시에만) */
    .mobile-user-btn.show {
        display: flex !important;
    }
    
    /* 헤더 액션 영역 수정 */
    .header-actions {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    /* Contact 버튼 모바일에서 숨김 */
    .contact-btn {
        display: none !important;
    }
}

/* 사용자 전용 사이드 메뉴 스타일 */
.mobile-user-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 280px;
    height: 100vh;
    background: white;
    z-index: 10000 !important;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
}

.mobile-user-nav.active {
    right: 0;
}

.mobile-user-nav-header {
    padding: 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-start;
}

.mobile-user-nav-close {
    width: 40px;
    height: 40px;
    background: #e9ecef;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-user-nav-close:hover {
    background: #27ae60;
    color: white;
}

.mobile-user-nav-content {
    padding: 0;
}

/* 사용자 프로필 섹션 */
.mobile-user-profile {
    padding: 1.5rem;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    text-align: center;
}

.user-details h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.user-details p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.9;
}

/* 사용자 메뉴 */
.mobile-user-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
}

.mobile-user-nav-menu li {
    border-bottom: 1px solid #f1f3f4;
}

.mobile-user-nav-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.mobile-user-nav-menu a:hover {
    background: #f8f9fa;
    color: #27ae60;
    padding-left: 1.5rem;
}

.mobile-user-nav-menu a i:first-child {
    width: 20px;
    color: #27ae60;
    margin-right: 0.8rem;
}

.mobile-user-nav-menu a span {
    flex: 1;
    font-weight: 500;
}

.mobile-user-nav-menu a i:last-child {
    color: #ccc;
    font-size: 0.75rem;
}

/* 로그아웃 섹션 */
.mobile-logout-section {
    padding: 1.5rem 1rem;
    border-top: 2px solid #f1f3f4;
    margin-top: 1rem;
}

.mobile-logout-btn {
    width: 100%;
    padding: 0.8rem;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.mobile-logout-btn:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

/* 사용자 메뉴 오버레이 */
.mobile-user-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999 !important;
}

/* 더 작은 화면에서는 더 좁게 */
@media (max-width: 480px) {
    .mobile-user-nav {
        max-width: 260px;
    }
}

/* 카테고리 및 탭 요소들의 z-index 강제 조정 */
.category-tabs,
.filter-tabs,
.tab-container,
.nav-tabs,
.lesson-tabs,
.product-tabs,
.category-filter,
.lesson-categories,
.product-categories,
.tab-content,
.category-buttons,
.filter-buttons,
.btn-group,
.button-group {
    position: relative !important;
    z-index: 50 !important;
}

/* 모든 버튼들의 z-index 조정 */
button,
.category-btn,
.filter-btn {
    position: relative !important;
    z-index: 51 !important;
}

/* 사용자 드롭다운이 최상위에 오도록 강제 */
.user-dropdown-menu.active {
    z-index: 999999 !important;
    position: absolute !important;
}

/* 추가 안전장치 */
*[class*="category"],
*[class*="tab"],
*[class*="filter"] {
    z-index: 100 !important;
}
/* Login Icon (비로그인 상태) */
.login-icon {
    color: #27ae60;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 50%;
    position: relative;
}

.login-icon:hover {
    color: #2ecc71;
    background: rgba(39, 174, 96, 0.1);
    transform: scale(1.1);
}

/* Login Button (비로그인 상태) */
.login-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #27ae60;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.9rem;
}

.login-btn:hover {
    background: #2ecc71;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.login-btn i {
    font-size: 1rem;
}

/* Cart Button with Text (로그인 상태) */
.cart-btn-with-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #27ae60;
    border: 2px solid #27ae60;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.9rem;
}

.cart-btn-with-text:hover {
    background: #27ae60;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.cart-btn-with-text i {
    font-size: 1rem;
}

/* 모바일에서 텍스트 숨기기 옵션 (필요시) */
@media (max-width: 480px) {
    .login-btn span,
    .cart-btn-with-text span {
        display: none; /* 작은 화면에서는 아이콘만 표시 */
    }
    
    .login-btn,
    .cart-btn-with-text {
        padding: 0.5rem 0.75rem;
        border-radius: 50%;
    }
}