/* 
Template name: Alhead applanding website template
Version:1.0
author: Barca Theme
Description: 
url:
*/

/* 색상 변수 정의 */
:root {
  /* 주 색상 */
  --primary-gold: #B8860B;     /* 어두운 금색 */
  --primary-bronze: #8B4513;   /* 구리색 */
  
  /* 보조 색상 */
  --secondary-green: #013220;  /* 짙은 녹색 */
  
  /* 강조 색상 */
  --accent-wine: #800020;      /* 와인색 */
  --accent-silver: #C0C0C0;    /* 은색 */
  
  /* 중립 색상 */
  --neutral-cream: #FFF8DC;    /* 크림색 */
  
  /* 기본 텍스트 생상 */
  --text-dark: #333333;
  --text-medium: #666666;
  --text-light: #888888;
}

/* 모바일 표준화 */
@media (max-width: 768px) {
    .subscribe_form form {
        display: flex;
        flex-direction: column;
    }
    
    .subscribe_form input {
        margin-bottom: 10px;
        width: 100%;
    }
    
    .subscribe_form .submit_btn {
        width: 100%;
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    .cta_area .heading h1 {
        font-size: 24px;
    }
    
    .subscribe_form input {
        padding: 12px 15px;
        font-size: 16px; /* iOS에서의 자동 확대 방지 */
    }
    
    .subscribe_form .submit_btn {
        padding: 12px;
        font-size: 16px;
    }
}

/* 성공 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 0 auto;
    padding: 30px;
    border-radius: 10px;
    width: 80%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.circle {
    stroke-dasharray: 1194;
    stroke-dashoffset: 1194;
}

.modal input[type="checkbox"]:checked ~ h2 {
    animation: .6s title ease-in-out;
    animation-delay: 1.2s;
    animation-fill-mode: forwards;
}

.modal input[type="checkbox"]:checked + div svg .circle {
    animation: circle 1s ease-in-out;
    animation-fill-mode: forwards;
}

.tick {
    stroke-dasharray: 350;
    stroke-dashoffset: 350;
}

.modal input[type="checkbox"]:checked + div svg .tick {
    animation: tick .8s ease-out;
    animation-fill-mode: forwards;
    animation-delay: .95s;
}

@keyframes circle {
    from {
        stroke-dashoffset: 1194;
    }
    to {
        stroke-dashoffset: 2388;
    }
}

@keyframes tick {
    from {
        stroke-dashoffset: 350;
    }
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes title {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.close-modal {
    background-color: var(--primary-gold);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    margin-top: 20px;
}

.close-modal:hover {
    background-color: var(--primary-bronze);
}

.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

/* 모바일 모달 조정 */
@media (max-width: 576px) {
    .success-modal-content {
        width: 90%;
        padding: 20px;
        margin: 0 auto;
    }
    
    .success-title {
        font-size: 18px;
    }
    
    .success-checkmark {
        width: 80px;
        height: 80px;
    }
}

/* 메인 히어로 섹션 */
.main-hero-section {
    padding: 100px 0;
    background: linear-gradient(rgba(184, 134, 11, 0.7), rgba(139, 69, 19, 0.7)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    color: var(--neutral-cream);
    position: relative;
    overflow: hidden;
}

.main-hero-section::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(30deg);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-right: 30px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    gap: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

/* 프로필 이미지 */
.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.3);
    margin: 0 auto 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.profile-img:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* 폼 컨테이너 스타일 */
.form-container {
    background: var(--neutral-cream);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.form-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.form-title {
    color: var(--text-dark);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}

.form-subtitle {
    color: var(--text-medium);
    font-size: 1rem;
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    box-sizing: border-box;
    background-color: white;
}

.form-input:focus {
    border-color: var(--primary-gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
    transform: translateY(-2px);
}

.hero-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-bronze) 100%);
    color: var(--neutral-cream);
    border: none;
    padding: 16px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 69, 19, 0.3);
}

.form-footer {
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 20px;
}

/* 특징 섹션 */
.feature-section {
    background: var(--neutral-cream);
    padding: 100px 0;
}

.section-heading {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-description {
    font-size: 1.2rem;
    color: var(--text-medium);
    max-width: 700px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
    margin-bottom: 30px;
    border: 1px solid rgba(184, 134, 11, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(184, 134, 11, 0.3);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(184, 134, 11, 0.1);
    border-radius: 50%;
}

.feature-icon img {
    max-width: 40px;
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.feature-description {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.6;
}

/* 혜택 섹션 */
.benefit-section {
    padding: 100px 0;
}

.benefit-item {
    display: flex;
    margin-bottom: 30px;
    align-items: flex-start;
}

.benefit-number {
    min-width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-bronze) 100%);
    color: var(--neutral-cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.benefit-content h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.benefit-content p {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.6;
}

.benefit-image {
    text-align: center;
}

.benefit-image img {
    max-width: 80%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.community-btn {
    display: inline-block;
    font-size: 1.1rem;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-bronze) 100%);
    color: var(--neutral-cream);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.community-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 69, 19, 0.3);
}

/* CTA 섹션 */
.cta-section {
    background: linear-gradient(rgba(184, 134, 11, 0.7), rgba(139, 69, 19, 0.7)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    padding: 100px 0;
    text-align: center;
    color: var(--neutral-cream);
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.cta-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-btn {
    font-size: 1.2rem;
    padding: 20px 50px;
    background: var(--neutral-cream);
    color: var(--primary-bronze);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: inline-block;
    text-decoration: none;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    background: white;
}

/* 버튼 스타일 */
.btn2 {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-bronze) 100%);
    color: var(--neutral-cream);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: inline-block;
    text-decoration: none;
}

.btn2:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 69, 19, 0.3);
}

@keyframes pulse {
    0% {
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
    }
    100% {
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    }
}

/* 참조 정보 스타일 */
.reference-info {
    background: rgba(184, 134, 11, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid var(--primary-gold);
}

.reference-info h4 {
    color: var(--primary-gold);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.reference-info p {
    color: var(--text-dark);
    margin-bottom: 5px;
    font-size: 0.9rem;
}

/* 부드러운 스크롤 애니메이션 */
html {
    scroll-behavior: smooth;
}

/* 반응형 디자인 */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .form-container {
        margin-top: 50px;
    }
    
    .benefit-image img {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .main-hero-section {
        padding: 60px 0;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .benefit-item {
        flex-direction: column;
    }
    
    .benefit-number {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-description {
        font-size: 1rem;
    }
    
    .profile-img {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .form-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .profile-img {
        width: 100px;
        height: 100px;
    }
}

/* Restricted content styles */
.restricted-content {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.restricted-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: all 0.5s ease;
    border-radius: 10px;
}

.login-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.overlay-text {
    color: #333;
    text-align: center;
    max-width: 80%;
    font-size: 16px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.restricted-content-inner {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* When user logs in, remove the overlay and show content */
.restricted-content:not(.restricted-content) .restricted-overlay {
    opacity: 0;
    visibility: hidden;
}

.restricted-content:not(.restricted-content) .restricted-content-inner {
    opacity: 1;
}

.benefits-list {
    margin: 30px 0;
}

.benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #333;
}

.benefit-item i {
    color: #68E534;
    margin-right: 10px;
    font-size: 20px;
}

.cta-section-inner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 10px;
    color: white;
    text-align: center;
}

.cta-section-inner h3 {
    margin-top: 0;
    color: white;
}

.cta-section-inner p {
    margin-bottom: 0;
}

/* Auth Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.auth-modal {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    max-width: 450px;
    width: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: modalAppear 0.4s ease-out;
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.modal-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
}

.modal-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}

.auth-modal form {
    padding: 30px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #764ba2;
}

.auth-modal .form-group input {
    padding: 15px 15px 15px 45px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    width: 100%;
    box-sizing: border-box;
}

.auth-modal .form-group input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.auth-modal .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.auth-modal .submit_btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.auth-modal .submit_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.auth-modal .modal-footer {
    text-align: center;
    padding: 0 30px 30px;
    margin-top: -10px;
}

.auth-modal .modal-footer a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
}

.auth-modal .modal-footer a:hover {
    text-decoration: underline;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Remove loader styles */
.loader {
    display: none !important;
}