* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Malgun Gothic', '맑은 고딕', Arial, sans-serif;
    line-height: 1.7;
    color: #333;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header */
header {
    background-color: #1a1a1a;
    color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    text-decoration: none;
    color: #fff;
}

.logo h1 {
    font-size: 24px;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #d4af37;
}

/* 햄버거 메뉴 버튼 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu-close {
    display: none;
}

/* Main */
main {
    min-height: calc(100vh - 200px);
    padding-top: 80px;
}

html {
    scroll-behavior: smooth;
}

.hero {
    position: relative;
    color: #fff;
    text-align: center;
    overflow: hidden !important;
    height: 90vh !important;
    max-height: 90vh !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 90vh !important;
    max-height: 90vh !important;
    min-height: 90vh;
    object-fit: cover;
    z-index: 0;
    display: block;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 90vh !important;
    max-height: 90vh !important;
    background: rgba(26, 26, 26, 0.5);
    z-index: 1;
    box-sizing: border-box;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-height: 100%;
    padding: 80px 20px 100px 20px;
    box-sizing: border-box;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    text-align: center;
}

.hero-content {
    text-align: center;
    animation: fadeInUp 1s ease-out;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-size: 48px;
    margin: 0 auto 20px auto;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease-out;
    text-align: center;
}

.hero-subtitle {
    font-size: 24px;
    margin: 15px auto 0 auto;
    opacity: 0.95;
    font-weight: 600;
    color: #d4af37;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out 0.2s both;
    text-align: center;
}

.hero-description {
    font-size: 18px;
    opacity: 0.9;
    margin: 0 auto 30px auto;
    animation: fadeInUp 1s ease-out 0.4s both;
    text-align: center;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: #d4af37;
    color: #1a1a1a;
    border-color: #d4af37;
}

.btn-primary:hover {
    background-color: #b8941f;
    border-color: #b8941f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-secondary:hover {
    background-color: #fff;
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    opacity: 0.8;
    animation: bounce 2s infinite;
    z-index: 3;
    flex: 0 0 auto;
}

.scroll-indicator span {
    display: block;
    font-size: 14px;
    margin-bottom: 10px;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    margin: 0 auto;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Section */
.section {
    padding: 80px 0;
}

.section:nth-child(even) {
    background-color: #f8f8f8;
}

.section h2 {
    font-size: 36px;
    margin-bottom: 30px;
    text-align: center;
    color: #1a1a1a;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 20px;
}

/* Divorce Hero Section */
.divorce-hero-section {
    position: relative;
    background-image: url('img/div.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 120px 0;
    overflow: hidden;
}

.divorce-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.6);
    z-index: 0;
}

.divorce-hero-section .container {
    position: relative;
    z-index: 1;
}

.divorce-hero-section .section-header h2 {
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.divorce-hero-section .section-subtitle {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.section-subtitle {
    font-size: 18px;
    color: #666;
    margin-top: 15px;
    line-height: 1.7;
    letter-spacing: -0.2px;
    font-weight: 400;
}

.content {
    max-width: 800px;
    margin: 0 auto;
}

.content p {
    font-size: 16px;
    margin-bottom: 18px;
    line-height: 1.9;
    color: #444;
    letter-spacing: -0.2px;
}

.intro-section {
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e0e0e0;
}

.intro-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.intro-section h3 {
    font-size: 26px;
    margin-bottom: 24px;
    color: #1a1a1a;
    font-weight: 700;
    letter-spacing: -0.3px;
    line-height: 1.4;
}

/* Firm Page Styles */
.firm-intro-section {
    animation: fadeInUp 0.8s ease-out;
    opacity: 0;
    animation-fill-mode: forwards;
}

.firm-intro-section:nth-child(1) {
    animation-delay: 0.1s;
}

.firm-intro-section:nth-child(2) {
    animation-delay: 0.3s;
}

.firm-intro-section:nth-child(3) {
    animation-delay: 0.5s;
}

.firm-section-title {
    font-size: 28px;
    margin-bottom: 25px;
    color: #1a1a1a;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

.firm-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #b8941f);
    animation: underlineExpand 1s ease-out 0.5s forwards;
}

@keyframes underlineExpand {
    to {
        width: 100%;
    }
}

.firm-philosophy-list {
    list-style: none;
    padding: 0;
}

.firm-philosophy-list li {
    padding: 18px 20px 18px 30px !important;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.8;
    transition: all 0.3s ease;
    animation: fadeInLeft 0.6s ease-out;
    animation-fill-mode: forwards;
    opacity: 0;
    border-bottom: none !important;
}

.firm-philosophy-list li:nth-child(1) {
    animation-delay: 0.7s;
}

.firm-philosophy-list li:nth-child(2) {
    animation-delay: 0.8s;
}

.firm-philosophy-list li:nth-child(3) {
    animation-delay: 0.9s;
}

.firm-philosophy-list li:nth-child(4) {
    animation-delay: 1.0s;
}

.firm-philosophy-list li:nth-child(5) {
    animation-delay: 1.1s;
}

.firm-philosophy-list li:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.firm-philosophy-list li strong {
    color: #d4af37;
    font-weight: 700;
    margin-right: 8px;
}

.firm-lawyer-item {
    animation: fadeInUp 0.8s ease-out 1.2s both;
    margin-top: 60px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 50px 40px;
}

.firm-lawyer-item .lawyer-image {
    margin-bottom: 30px;
}

.firm-lawyer-item .lawyer-image img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #1a1a1a;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.firm-lawyer-item:hover .lawyer-image img {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.firm-lawyer-item .lawyer-info {
    max-width: 700px;
    text-align: left;
}

.firm-lawyer-item .lawyer-info h3 {
    text-align: center;
    margin-bottom: 15px;
}

.firm-lawyer-item .lawyer-title {
    text-align: center !important;
    margin-bottom: 25px;
}

.firm-lawyer-item .lawyer-info p {
    text-align: left;
}

.firm-career-section {
    animation: fadeInUp 0.8s ease-out 1.4s both;
    margin-top: 60px;
}

.firm-career-section .career-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.firm-career-section .career-group {
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: forwards;
    opacity: 0;
}

.firm-career-section .career-group:nth-child(1) {
    animation-delay: 1.6s;
}

.firm-career-section .career-group:nth-child(2) {
    animation-delay: 1.7s;
}

.firm-career-section .career-group:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.firm-career-section .career-group h4 {
    border-bottom: 2px solid #d4af37;
    position: relative;
}

.firm-career-section .career-group h4::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #d4af37, #b8941f);
    transition: width 0.3s ease;
}

.firm-career-section .career-group:hover h4::after {
    width: 100%;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 스크롤 애니메이션 클래스 */
.scroll-animate {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.animate-fadeInUp {
    transform: translateY(40px);
}

.scroll-animate.animate-fadeInLeft {
    transform: translateX(-40px);
}

.scroll-animate.animate-fadeInRight {
    transform: translateX(40px);
}

.scroll-animate.animate-fadeIn {
    transform: none;
}

.scroll-animate.animate-scaleIn {
    transform: scale(0.95);
}

.scroll-animate.animated {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

.philosophy-list {
    list-style: none;
    padding: 0;
}

.philosophy-list li:not(.firm-philosophy-list li) {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
    line-height: 1.8;
}

.philosophy-list li:last-child {
    border-bottom: none;
}

.philosophy-list li strong {
    color: #1a1a1a;
    display: inline-block;
    min-width: 100px;
    margin-right: 10px;
}

.lawyer-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    display: flex;
    gap: 30px;
    align-items: center;
}

.lawyer-image {
    flex-shrink: 0;
}

.lawyer-image img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #1a1a1a;
}

.lawyer-info {
    flex: 1;
}

.lawyer-item h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.lawyer-title {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
    font-weight: normal;
}

.career-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid #e0e0e0;
}

.career-section h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #1a1a1a;
    font-weight: bold;
}

.career-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.career-group {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.career-group:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.career-group h4 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #1a1a1a;
    font-weight: bold;
    padding-bottom: 10px;
    border-bottom: 2px solid #1a1a1a;
}

.career-group ul {
    list-style: none;
    padding: 0;
}

.career-group li {
    padding: 12px 0;
    font-size: 15px;
    line-height: 1.8;
    border-bottom: 1px solid #f0f0f0;
}

.career-group li:last-child {
    border-bottom: none;
}

.service-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.service-list li {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    font-size: 16px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.service-card {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #d4af37, #b8941f);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    border-color: rgba(212, 175, 55, 0.2);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 18px;
    color: #1a1a1a;
    font-weight: 700;
    letter-spacing: -0.3px;
    line-height: 1.4;
}

.service-badge {
    display: inline-block;
    background-color: #1a1a1a;
    color: #fff;
    padding: 5px 12px;
    border-radius: 3px;
    font-size: 13px;
    margin-bottom: 15px;
    font-weight: normal;
}

.service-card p {
    font-size: 15px;
    line-height: 1.85;
    color: #555;
    letter-spacing: -0.1px;
}

.contact-info {
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 16px;
}

.contact-info strong {
    color: #1a1a1a;
    margin-right: 10px;
}

/* Contact Page Styles */
.contact-grid {
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.contact-section-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 40px 35px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(233, 236, 239, 0.8);
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: forwards;
    opacity: 0;
}

.contact-info-section.contact-section-card {
    animation-delay: 0.2s;
}

.location-info-section.contact-section-card {
    animation-delay: 0.4s;
}

.contact-section-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 35px rgba(0,0,0,0.12);
    border-color: rgba(212, 175, 55, 0.2);
}

.contact-section-title {
    font-size: 24px;
    margin-bottom: 30px;
    color: #1a1a1a;
    font-weight: 700;
    padding-bottom: 15px;
    border-bottom: 3px solid #d4af37;
    position: relative;
    display: inline-block;
    width: 100%;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    transition: all 0.3s ease;
    animation: fadeInLeft 0.6s ease-out;
    animation-fill-mode: forwards;
    opacity: 0;
}

.contact-detail-item:nth-child(1) {
    animation-delay: 0.4s;
}

.contact-detail-item:nth-child(2) {
    animation-delay: 0.5s;
}

.contact-detail-item:nth-child(3) {
    animation-delay: 0.6s;
}

.contact-detail-item:nth-child(4) {
    animation-delay: 0.7s;
}

.contact-detail-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contact-icon {
    font-size: 32px;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #d4af37, #b8941f);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.contact-detail-content {
    flex: 1;
}

.contact-detail-content strong {
    display: block;
    font-size: 16px;
    color: #d4af37;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-detail-content p {
    font-size: 15px;
    line-height: 1.8;
    color: #495057;
    margin: 0;
    letter-spacing: -0.1px;
}

#map {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.contact-info-section,
.location-info-section {
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.contact-info-section h3,
.location-info-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #1a1a1a;
    font-weight: bold;
    padding-bottom: 10px;
    border-bottom: 2px solid #1a1a1a;
}

.contact-details p,
.location-details p {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.8;
}

.contact-details strong,
.location-details strong {
    color: #1a1a1a;
    margin-right: 10px;
    min-width: 80px;
    display: inline-block;
}

.kakao-talk-button-wrapper {
    margin-top: 30px;
    text-align: center;
}

.kakao-talk-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #FEE500;
    color: #3C1E1E;
    padding: 16px 35px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(254, 229, 0, 0.3);
}

.kakao-talk-btn:hover {
    background-color: #FDD835;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(254, 229, 0, 0.4);
    color: #3C1E1E;
}

.kakao-talk-icon {
    font-size: 20px;
}

/* Contact Form */
.contact-form {
    background-color: #fff;
    padding: 40px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.contact-form-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 50px 45px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    animation: fadeInUp 0.8s ease-out 0.8s both;
    border: 1px solid #e9ecef;
}

.contact-form-card .contact-section-title {
    margin-bottom: 35px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #1a1a1a;
    font-size: 16px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Malgun Gothic', '맑은 고딕', Arial, sans-serif;
    transition: all 0.3s ease;
    background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(135deg, #d4af37, #b8941f);
    color: #fff;
    padding: 16px 50px;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #b8941f, #9a7a17);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* Auth Form */
.auth-form {
    background-color: #fff;
    padding: 40px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-top: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #666;
}

.form-footer {
    margin-top: 20px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.form-footer p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.form-footer a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: bold;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Alert */
.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-error {
    background-color: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.alert-success {
    background-color: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

.user-name {
    color: #d4af37;
    font-weight: bold;
}

/* Admin Pages */
.admin-dashboard {
    margin-top: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.admin-dashboard .stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 30px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.stat-card {
    background-color: #fff;
    padding: 40px 35px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    min-width: 250px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.stat-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #666;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.stat-card a {
    display: inline-block;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 20px;
    border: 1px solid #1a1a1a;
    border-radius: 4px;
    transition: all 0.3s;
}

.stat-card a:hover {
    background-color: #1a1a1a;
    color: #fff;
}

.admin-table-wrapper {
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-top: 30px;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table thead {
    background-color: #1a1a1a;
    color: #fff;
}

.admin-table th {
    padding: 12px;
    text-align: left;
    font-weight: bold;
}

.admin-table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.admin-table tbody tr:hover {
    background-color: #f8f8f8;
}

.text-center {
    text-align: center;
}

.content-cell {
    max-width: 300px;
}

.content-preview {
    max-height: 60px;
    overflow: hidden;
}

.filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-tab {
    padding: 10px 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.filter-tab:hover {
    background-color: #f8f8f8;
}

.filter-tab.active {
    background-color: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-processing {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status-completed {
    background-color: #d4edda;
    color: #155724;
}

.admin-table select {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
}

.page-link {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    background-color: #fff;
    transition: all 0.3s;
}

.page-link:hover {
    background-color: #f8f8f8;
}

.page-link.active {
    background-color: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

.admin-actions {
    margin-top: 30px;
    text-align: center;
}

.admin-action-btn {
    display: inline-block;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 16px;
    padding: 12px 30px;
    border: 2px solid #1a1a1a;
    border-radius: 4px;
    transition: all 0.3s;
    font-weight: 600;
}

.admin-action-btn:hover {
    background-color: #1a1a1a;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-back {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1a1a1a;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn-back:hover {
    background-color: #2d2d2d;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 40px 0;
    margin-top: 50px;
    text-align: center;
}

footer p {
    margin: 10px 0;
    font-size: 14px;
    opacity: 0.8;
}

.footer-auth {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.footer-user-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-user-name {
    color: #d4af37;
    font-weight: bold;
    font-size: 14px;
}

.footer-login-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.footer-login-btn,
.footer-logout-btn,
.footer-admin-btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.footer-login-btn {
    background-color: #d4af37;
    color: #1a1a1a;
    border: 1px solid #d4af37;
}

.footer-login-btn:hover {
    background-color: #b8941f;
    border-color: #b8941f;
}

.footer-logout-btn {
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
}

.footer-logout-btn:hover {
    background-color: #fff;
    color: #1a1a1a;
}

.footer-admin-btn {
    background-color: #d4af37;
    color: #1a1a1a;
    border: 1px solid #d4af37;
}

.footer-admin-btn:hover {
    background-color: #b8941f;
    border-color: #b8941f;
}

/* Responsive */
@media (max-width: 768px) {
    header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: #1a1a1a;
        transition: right 0.3s ease;
        z-index: 1001;
        padding-top: 80px;
        box-shadow: -2px 0 10px rgba(0,0,0,0.3);
    }
    
    .mobile-menu-close {
        display: flex;
        position: absolute;
        top: 20px;
        right: 20px;
        background: transparent;
        border: none;
        color: #fff;
        font-size: 32px;
        cursor: pointer;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        z-index: 1002;
        transition: color 0.3s;
    }
    
    .mobile-menu-close:hover {
        color: #d4af37;
    }
    
    /* ul 안에 있는 닫기 버튼 숨기기 */
    .main-nav ul .mobile-menu-close,
    .main-nav ul li .mobile-menu-close {
        display: none !important;
    }
    
    /* ul 안에 있는 다른 버튼들 숨기기 (닫기 버튼 제외) */
    .main-nav ul button,
    .main-nav ul li button {
        display: none !important;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 20px;
        text-align: left;
        margin-top: 0;
    }
    
    .main-nav ul li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .main-nav ul li a {
        display: block;
        padding: 15px 0;
        font-size: 18px;
    }
    
    .main-nav ul li:last-child {
        border-bottom: none;
    }
    
    .main-nav {
        z-index: 1001;
        pointer-events: auto;
    }
    
    .main-nav.active {
        pointer-events: auto;
        z-index: 1001;
    }
    
    .main-nav ul {
        position: relative;
        z-index: 1001;
    }
    
    .main-nav ul li {
        position: relative;
        z-index: 1002;
    }
    
    .main-nav ul li a {
        position: relative;
        z-index: 1003;
        pointer-events: auto !important;
        cursor: pointer;
        display: block;
        width: 100%;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section h2 {
        font-size: 28px;
    }
    
    .service-list {
        grid-template-columns: 1fr;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .admin-dashboard .stats-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 100%;
    }
    
    .stat-card {
        min-width: auto;
        padding: 30px 25px;
    }
    
    .firm-philosophy-list li strong {
        display: inline;
        min-width: auto;
        margin-right: 8px;
    }
    
    .firm-career-section .career-list {
        grid-template-columns: 1fr;
    }
}

/* 데스크톱에서 메뉴 정상 표시 */
@media (min-width: 769px) {
    .main-nav {
        position: static;
        width: auto;
        height: auto;
        padding-top: 0;
        box-shadow: none;
    }
    
    .main-nav ul {
        flex-direction: row;
        gap: 30px;
        padding: 0;
        text-align: center;
    }
    
    .main-nav ul li {
        border-bottom: none;
    }
    
    .main-nav ul li a {
        display: inline;
        padding: 0;
        font-size: 16px;
    }
}
    
    .admin-table-wrapper {
        overflow-x: auto;
    }
    
    .admin-table {
        font-size: 12px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 8px;
    }
    
    .footer-user-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-login-btn,
    .footer-logout-btn,
    .footer-admin-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .lawyer-item {
        flex-direction: column;
        text-align: center;
    }
    
    .lawyer-image img {
        width: 150px;
        height: 150px;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .contact-section-card {
        padding: 30px 25px;
    }
    
    .contact-form-card {
        padding: 35px 25px;
    }
    
    .kakao-talk-btn {
        width: 100%;
        justify-content: center;
        padding: 18px 35px;
    }
    
    .contact-detail-item {
        padding: 15px;
        gap: 15px;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 28px;
    }
    
    .career-list {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Features Section */
.features-section {
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background-color: #fff;
    padding: 45px 35px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 4px solid transparent;
    border: 1px solid rgba(0,0,0,0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    border-top-color: #d4af37;
    border-color: rgba(212, 175, 55, 0.2);
}

.feature-icon {
    font-size: 56px;
    margin-bottom: 20px;
    display: block;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 18px;
    color: #1a1a1a;
    font-weight: 700;
    letter-spacing: -0.3px;
    line-height: 1.4;
}

.feature-card p {
    font-size: 15px;
    line-height: 1.85;
    color: #555;
    letter-spacing: -0.1px;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 30px 20px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 52px;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 12px;
    line-height: 1;
    letter-spacing: -1px;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
    color: #FDD835;
}

.stat-label {
    font-size: 16px;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .feature-icon {
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Divorce Process Steps */
.divorce-process-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 60px 40px;
    border-radius: 20px;
    margin-top: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.divorce-process-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
}

.divorce-process-step {
    width: 100%;
    max-width: 600px;
    background: #fff;
    padding: 40px 35px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 2px solid transparent;
}

.divorce-process-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: #d4af37;
}

.divorce-step-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    justify-content: center;
}

.divorce-step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #d4af37, #b8941f);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    flex-shrink: 0;
}

.divorce-step-header h3 {
    font-size: 24px;
    margin: 0;
    color: #1a1a1a;
    font-weight: 600;
}

.divorce-step-content p {
    font-size: 15px;
    line-height: 1.85;
    color: #555;
    margin: 0;
    letter-spacing: -0.1px;
}

.divorce-process-arrow {
    font-size: 32px;
    color: #d4af37;
    font-weight: bold;
    flex-shrink: 0;
    margin: 5px 0;
    animation: pulse 2s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: rotate(90deg) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: rotate(90deg) scale(1.1);
    }
}

/* Divorce Caution List */
.divorce-caution-grid {
    max-width: 800px;
    margin: 40px auto 0;
}

.divorce-caution-card {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    padding: 30px 0;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.divorce-caution-card:last-child {
    border-bottom: none;
}

.divorce-caution-card:hover {
    padding-left: 10px;
}

.caution-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    color: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 2px;
}

.divorce-caution-card-content {
    flex: 1;
}

.divorce-caution-card h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #1a1a1a;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.divorce-caution-card p {
    font-size: 15px;
    line-height: 1.85;
    color: #495057;
    margin: 0;
    letter-spacing: -0.1px;
}

@media (max-width: 768px) {
    .divorce-process-steps {
        gap: 15px;
    }
    
    .divorce-process-step {
        padding: 30px 25px;
    }
    
    .divorce-step-header {
        gap: 15px;
    }
    
    .divorce-step-number {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .divorce-step-header h3 {
        font-size: 20px;
    }
    
    .divorce-step-content p {
        font-size: 14px;
    }
    
    .divorce-process-arrow {
        font-size: 28px;
        width: 35px;
        height: 35px;
    }
    
    .divorce-process-container {
        padding: 40px 20px;
    }
    
    .divorce-caution-card {
        padding: 25px 0;
        gap: 20px;
    }
    
    .caution-icon {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
    
    .divorce-caution-card h4 {
        font-size: 18px;
    }
    
    .divorce-caution-card p {
        font-size: 14px;
    }
}

