/**
 * 아리랑 USA 공동체 - 메인 스타일시트
 * 한국적 감성과 현대적 디자인의 조화
 */

/* CSS Variables */
:root {
    /* Primary Colors - 한국적 색상 */
    --primary: #C41E3A;        /* 단청 빨강 */
    --primary-dark: #8B1428;
    --primary-light: #E85A6F;
    --secondary: #1B365D;      /* 청색 */
    --secondary-light: #2D5A8E;
    
    /* Accent Colors */
    --gold: #D4AF37;           /* 금색 */
    --gold-light: #F0D78C;
    --teal: #008080;           /* 청록 */
    
    /* Neutral Colors */
    --dark: #1a1a1a;
    --gray-900: #2d2d2d;
    --gray-800: #3d3d3d;
    --gray-700: #555555;
    --gray-600: #666666;
    --gray-500: #888888;
    --gray-400: #aaaaaa;
    --gray-300: #cccccc;
    --gray-200: #e5e5e5;
    --gray-100: #f5f5f5;
    --white: #ffffff;
    
    /* Typography */
    --font-korean: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    --font-english: 'Poppins', 'Segoe UI', sans-serif;
    --font-display: 'Nanum Myeongjo', serif;
    
    /* Spacing */
    --section-padding: 80px;
    --container-width: 1200px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.16);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.2);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: var(--font-korean);
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-800);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

/* Prevent any child from causing horizontal overflow */
main, .footer, section, .hero {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Header needs overflow visible for dropdowns */
.header {
    max-width: 100vw;
    overflow: visible;
}

/* Facebook Plugin */

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-gold { color: var(--gold); }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding) 0;
    overflow-x: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    border-radius: 2px;
}

.section-subtitle {
    color: var(--gray-600);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 20px auto 0;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-top {
    background: var(--secondary);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.9rem;
}

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

.header-contact {
    display: flex;
    gap: 20px;
}

.header-contact a {
    color: var(--white);
    opacity: 0.9;
}

.header-contact a:hover {
    opacity: 1;
}

.header-social {
    display: flex;
    gap: 15px;
}

.header-social a {
    color: var(--white);
    font-size: 1.1rem;
}

.header-main {
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text-ko {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

.logo-text-en {
    font-family: var(--font-english);
    font-size: 0.75rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Navigation */
.nav-menu {
    display: flex;
    gap: 5px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 12px 20px;
    font-weight: 500;
    color: var(--gray-800);
    transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-item.active .nav-link {
    color: var(--primary);
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-normal);
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: var(--gray-700);
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--gray-100);
    color: var(--primary);
    padding-left: 25px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--gray-800);
    transition: all var(--transition-fast);
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    margin-top: 120px;
    overflow: hidden;
}

.hero-slider {
    height: 100%;
}

.hero-slide {
    position: relative;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(27, 54, 93, 0.85), rgba(196, 30, 58, 0.7));
}

.hero-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    max-width: 700px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--secondary-light);
}

.btn-gold {
    background: var(--gold);
    color: var(--dark);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* About Section */
.about-section {
    background: var(--gray-100);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    border-top: 4px solid var(--primary);
    border-left: 4px solid var(--primary);
}

.about-image::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    border-bottom: 4px solid var(--gold);
    border-right: 4px solid var(--gold);
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-content h2 span {
    color: var(--primary);
}

.about-content p {
    color: var(--gray-700);
    margin-bottom: 20px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.about-feature i {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border-radius: 50%;
    font-size: 1.2rem;
}

/* Core Business Section */
.business-section {
    background: url('../images/business-section-bg.jpg') center center / cover no-repeat fixed;
    position: relative;
}
.business-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.88);
    z-index: 0;
}
.business-section > .container {
    position: relative;
    z-index: 1;
}

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

.business-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.business-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.business-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

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

.business-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: var(--white);
    border-radius: 50%;
    font-size: 2rem;
}

.business-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.business-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
}

.business-card .btn {
    margin-top: 20px;
}

/* News Section */
.news-section {
    background: var(--white);
}

.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.news-main {
    display: grid;
    gap: 30px;
}

.news-card {
    display: flex;
    gap: 25px;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.news-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.news-card-image {
    width: 250px;
    flex-shrink: 0;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-content {
    padding: 25px 25px 25px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.8rem;
    border-radius: 20px;
    margin-bottom: 12px;
}

.news-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    transition: color var(--transition-fast);
}

.news-card:hover h3 {
    color: var(--primary);
}

.news-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.news-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--gray-500);
}

.news-meta i {
    margin-right: 5px;
}

/* News Sidebar */
.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-sm);
}

.sidebar-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gray-200);
    position: relative;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary);
}

.notice-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.notice-item {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-200);
}

.notice-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.notice-date {
    flex-shrink: 0;
    text-align: center;
    padding: 10px;
    background: var(--secondary);
    color: var(--white);
    border-radius: var(--radius-sm);
    line-height: 1.2;
}

.notice-date .day {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
}

.notice-date .month {
    display: block;
    font-size: 0.75rem;
}

.notice-content h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    transition: color var(--transition-fast);
}

.notice-item:hover .notice-content h4 {
    color: var(--primary);
}

.notice-content span {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* Gallery Section */
.gallery-section {
    background: url('../images/cherry-blossom-bg.avif') center center / cover no-repeat fixed;
    position: relative;
}
.gallery-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(245, 245, 245, 0.9);
    z-index: 0;
}
.gallery-section > .container {
    position: relative;
    z-index: 1;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius-lg);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: var(--white);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 5px;
}

.gallery-overlay span {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Partners Section */
.partners-section {
    background: var(--white);
    padding: 60px 0;
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 60px;
}

.partner-logo {
    height: 120px;
    width: auto;
    opacity: 1;
    transition: all var(--transition-normal);
}

.partner-logo:hover {
    transform: scale(1.08);
}

/* Footer */
.footer {
    background: var(--secondary);
    color: var(--white);
}

.footer-main {
    padding: 60px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-about .logo-text-ko {
    color: var(--white);
}

.footer-about p {
    margin-top: 20px;
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--white);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gold);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    transition: all var(--transition-fast);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.8);
}

.footer-contact i {
    color: var(--gold);
    width: 16px;
    flex-shrink: 0;
    margin-top: 4px;
    text-align: center;
}

.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin: 0;
}

/* Page Header */
.page-header {
    margin-top: 120px;
    padding: 80px 0;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: var(--white);
    text-align: center;
    position: relative;
}

.page-header[style*="background-image"]::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 0;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 0.95rem;
}

.breadcrumb a {
    color: rgba(255,255,255,0.8);
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb span {
    color: var(--gold);
}

/* News List Page */
.news-list-page {
    padding: 60px 0;
}

.news-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background: var(--gray-200);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: var(--white);
}

.news-list {
    display: grid;
    gap: 30px;
}

/* Gallery List Page */
.gallery-list-page {
    padding: 60px 0;
}

.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.gallery-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.gallery-card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.gallery-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-card:hover .gallery-card-image img {
    transform: scale(1.1);
}

.gallery-card-content {
    padding: 25px;
}

.gallery-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.gallery-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* Detail Page */
.detail-page {
    padding: 60px 0;
}

.detail-container {
    max-width: 900px;
    margin: 0 auto;
}

.detail-header {
    margin-bottom: 40px;
}

.detail-header h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.detail-meta {
    display: flex;
    gap: 20px;
    color: var(--gray-600);
    font-size: 0.95rem;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-200);
}

.detail-content {
    line-height: 1.9;
    font-size: 1.05rem;
}

.detail-content img {
    border-radius: var(--radius-md);
    margin: 30px 0;
}

.detail-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 40px;
}

.detail-gallery img {
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.detail-gallery img:hover {
    transform: scale(1.05);
}

.detail-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--gray-200);
}

.detail-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-700);
    font-weight: 500;
}

.detail-nav a:hover {
    color: var(--primary);
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.pagination {
    display: flex;
    gap: 5px;
}

.pagination li a,
.pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    color: var(--gray-700);
    transition: all var(--transition-fast);
}

.pagination li a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.pagination li.active span {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* Contact Page */
.contact-section {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-info-item {
    display: flex;
    gap: 20px;
}

.contact-info-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border-radius: 50%;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-info-text h4 {
    margin-bottom: 8px;
}

.contact-info-text p {
    color: var(--gray-600);
    margin: 0;
}

.contact-form {
    background: var(--gray-100);
    padding: 40px;
    border-radius: var(--radius-lg);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.contact-map {
    margin-top: 60px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.contact-map iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lightbox-close:hover {
    background: var(--primary);
}

/* Popup */
.popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 90%;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--gray-200);
}

.popup-body {
    padding: 20px;
}

.popup-body img {
    width: 100%;
    border-radius: var(--radius-md);
}

.popup-footer {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    background: var(--gray-100);
}

.popup-footer label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-menu {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .business-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 50px;
    }
    
    .hero {
        height: 500px;
        margin-top: 80px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .business-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-masonry {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }
    
    .news-card {
        flex-direction: column;
    }
    
    .news-card-image {
        width: 100%;
        height: 200px;
    }
    
    .news-card-content {
        padding: 20px;
    }
    
    .gallery-grid,
    .gallery-masonry {
        grid-template-columns: 1fr;
    }
    
    .detail-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.animate-slide-left {
    animation: slideInLeft 0.6s ease forwards;
}

.animate-slide-right {
    animation: slideInRight 0.6s ease forwards;
}

/* Utility Classes */
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 50px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
.mb-5 { margin-bottom: 50px; }

.pt-1 { padding-top: 10px; }
.pt-2 { padding-top: 20px; }
.pt-3 { padding-top: 30px; }
.pt-4 { padding-top: 40px; }
.pt-5 { padding-top: 50px; }

.pb-1 { padding-bottom: 10px; }
.pb-2 { padding-bottom: 20px; }
.pb-3 { padding-bottom: 30px; }
.pb-4 { padding-bottom: 40px; }
.pb-5 { padding-bottom: 50px; }

.d-flex { display: flex; }
.d-grid { display: grid; }
.d-block { display: block; }
.d-none { display: none; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.bg-white { background-color: var(--white); }
.bg-gray { background-color: var(--gray-100); }
.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }

/* ==============================
   FACEBOOK SWIPER SECTION
   ============================== */
.social-feed-section {
    background: url('../images/cherry-blossom-bg.avif') center center / cover no-repeat fixed;
    position: relative;
}
.social-feed-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(245, 245, 245, 0.88);
    z-index: 0;
}
.social-feed-section > .container {
    position: relative;
    z-index: 1;
}
.fb-swiper-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}
.fb-swiper {
    overflow: hidden;
    flex: 1;
}
.fb-swiper-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
    cursor: grab;
}
.fb-swiper-track:active {
    cursor: grabbing;
}
.fb-swiper-slide {
    flex: 0 0 370px;
    min-width: 370px;
}
.fb-embed-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.06);
}
.fb-embed-card iframe {
    display: block;
    width: 100%;
    min-height: 480px;
}
.fb-embed-title {
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-700);
    border-top: 1px solid var(--gray-200);
}
.swiper-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-600);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}
.swiper-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ==============================
   YOUTUBE SECTION
   ============================== */
.youtube-section {
    background: var(--white);
}
.youtube-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.youtube-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.06);
    transition: all var(--transition-normal);
}
.youtube-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}
.youtube-video {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}
.youtube-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.youtube-title {
    padding: 14px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.4;
}

/* Responsive - Social Sections */
@media (max-width: 1024px) {
    .youtube-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .fb-swiper-slide {
        flex: 0 0 320px;
        min-width: 320px;
    }
}
@media (max-width: 768px) {
    .youtube-grid {
        grid-template-columns: 1fr;
    }
    .fb-swiper-slide {
        flex: 0 0 300px;
        min-width: 300px;
    }
    .swiper-btn {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
}

/* ==============================
   FACEBOOK AUTO-SYNC CARDS
   ============================== */
.fb-auto-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.fb-auto-image {
    height: 220px;
    overflow: hidden;
}
.fb-auto-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.fb-auto-card:hover .fb-auto-image img {
    transform: scale(1.05);
}
.fb-auto-body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.fb-auto-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.fb-auto-date {
    font-size: 0.82rem;
    color: var(--gray-500);
}
.fb-auto-text {
    font-size: 0.9rem;
    color: var(--gray-700);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 14px;
}
.fb-auto-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1877f2;
    text-decoration: none;
    transition: opacity var(--transition-fast);
}
.fb-auto-link:hover {
    opacity: 0.7;
    color: #1877f2;
}

/* ==============================
   FACEBOOK PAGE PLUGIN LAYOUT
   ============================== */
.fb-plugin-layout {
    max-width: 500px;
    margin: 0 auto;
}
.fb-page-plugin {
    width: 100%;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.06);
    margin: 0 auto;
}
.fb-manual-feeds {
    width: 100%;
    margin-top: 30px;
}

/* When both exist, side by side on desktop */
@media (min-width: 1025px) {
    .fb-plugin-layout {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 30px;
        max-width: 100%;
    }
    .fb-page-plugin {
        flex: 0 0 500px;
    }
    .fb-manual-feeds {
        flex: 1;
        min-width: 0;
        margin-top: 0;
    }
}

/* When only manual feeds (no page plugin) */
.fb-plugin-layout .fb-manual-feeds:only-child {
    flex: 1;
}

/* ======================================================
   COMPREHENSIVE MOBILE OPTIMIZATION
   ====================================================== */

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    background: var(--white);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.12);
    border-top: 1px solid var(--gray-200);
    padding: 6px 0;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
}
.mobile-bottom-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}
.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 12px;
    text-decoration: none;
    color: var(--gray-500);
    font-size: 0.65rem;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}
.bottom-nav-item i {
    font-size: 1.2rem;
    transition: transform 0.2s;
}
.bottom-nav-item.active,
.bottom-nav-item:hover {
    color: var(--primary);
}
.bottom-nav-item.active i {
    transform: scale(1.1);
}
.bottom-nav-item.nav-call {
    color: var(--primary);
}
.bottom-nav-item.nav-call i {
    width: 38px;
    height: 38px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-top: -18px;
    box-shadow: 0 2px 8px rgba(196,30,58,0.35);
}

@media (max-width: 1024px) {
    .mobile-bottom-nav { display: block; }
    body { padding-bottom: 70px; }
    .footer { padding-bottom: 0; }
    
    /* Header top bar: hide contact details */
    .header-top .header-contact { display: none; }
    .header-top-content { justify-content: flex-end; }
    
    /* Logo smaller */
    .logo-img { height: 40px; }
    .header-main { padding: 10px 0; }
}

/* ---- TABLET (max-width: 768px) ---- */
@media (max-width: 768px) {
    :root {
        --section-padding: 40px;
    }
    
    body {
        font-size: 15px;
        padding-bottom: 65px;
    }
    
    .container { padding: 0 16px; }
    
    /* Header */
    .header-top { padding: 6px 0; font-size: 0.8rem; }
    .header-main { padding: 8px 0; }
    .logo-img { height: 36px; }
    
    /* Hero */
    .hero { 
        height: 400px; 
        margin-top: 85px; 
    }
    .hero-title { 
        font-size: 1.7rem; 
        margin-bottom: 12px; 
    }
    .hero-subtitle { 
        font-size: 1rem; 
        margin-bottom: 20px; 
    }
    .hero-badge { 
        font-size: 0.8rem; 
        padding: 6px 14px; 
        margin-bottom: 12px; 
    }
    .hero-buttons { gap: 10px; }
    .hero-buttons .btn { 
        padding: 12px 24px; 
        font-size: 0.9rem; 
    }
    
    /* Section Headers */
    .section-title { font-size: 1.8rem; }
    .section-subtitle { font-size: 0.95rem; }
    .section-header { margin-bottom: 30px; }
    
    /* Page Headers */
    .page-header { padding: 50px 0; margin-top: 85px; }
    .page-header h1 { font-size: 1.8rem; }
    .breadcrumb { font-size: 0.85rem; }
    
    /* Typography */
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }
    h4 { font-size: 1.05rem; }
    
    /* About Section */
    .about-grid { gap: 30px; }
    .about-content h2 { font-size: 1.8rem; }
    .about-features { grid-template-columns: 1fr; gap: 12px; }
    .about-feature { padding: 12px; }
    .about-image::before,
    .about-image::after { display: none; }
    
    /* Business Cards */
    .business-card { padding: 30px 20px; }
    .business-icon { width: 60px; height: 60px; font-size: 1.5rem; margin-bottom: 18px; }
    .business-card h3 { font-size: 1.1rem; }
    .business-card p { font-size: 0.88rem; }
    
    /* Business Detail */
    .detail-grid { grid-template-columns: 1fr !important; gap: 20px; }
    .detail-header h2 { font-size: 1.4rem; }
    .detail-sidebar { order: -1; }
    .info-box { padding: 15px; }
    .timeline-list li { font-size: 0.9rem; }
    
    /* News Cards */
    .news-card { flex-direction: column; }
    .news-card-image { width: 100%; height: 180px; }
    .news-card-content { padding: 18px; }
    .news-card h3 { font-size: 1.05rem; }
    .news-card p { font-size: 0.88rem; }
    .news-filter { gap: 6px; }
    .filter-btn { padding: 8px 16px; font-size: 0.85rem; }
    
    /* Gallery */
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .gallery-masonry { grid-template-columns: 1fr; gap: 15px; }
    .gallery-card-content { padding: 15px; }
    .gallery-card h3 { font-size: 1rem; }
    
    /* Contact */
    .contact-grid { gap: 30px; }
    .contact-form { padding: 25px; }
    .contact-info-icon { width: 48px; height: 48px; font-size: 1.1rem; }
    .faq-question span { font-size: 0.95rem; }
    .faq-answer p { font-size: 0.9rem; }
    
    /* Detail page */
    .detail-header h1 { font-size: 1.5rem; }
    .detail-content { font-size: 0.95rem; }
    .detail-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .detail-nav { flex-direction: column; gap: 12px; }
    
    /* Partners */
    .partners-grid { gap: 25px; }
    .partner-logo { height: 70px; }
    
    /* Footer */
    .footer-main { padding: 40px 0; }
    .footer-grid { gap: 25px; }
    .footer-about p { font-size: 0.88rem; }
    .footer-title { font-size: 1.05rem; margin-bottom: 18px; padding-bottom: 12px; }
    .footer-links a { font-size: 0.9rem; }
    .footer-contact li { font-size: 0.88rem; }
    .footer-bottom { padding: 15px 0; }
    .footer-bottom p { font-size: 0.82rem; }
    
    /* Buttons */
    .btn { padding: 12px 24px; font-size: 0.9rem; }
    .btn-lg { padding: 14px 28px; font-size: 1rem; }
    .btn-sm { padding: 7px 14px; font-size: 0.82rem; }
    
    /* Pagination */
    .pagination li a,
    .pagination li span { min-width: 36px; height: 36px; font-size: 0.88rem; }
    
    /* YouTube */
    .youtube-grid { grid-template-columns: 1fr; gap: 16px; }
    .youtube-title { font-size: 0.88rem; padding: 12px 14px; }
    
    /* Facebook */
    .fb-swiper-slide { flex: 0 0 280px; min-width: 280px; }
    
    /* CTA Section */
    .cta-section h2 { font-size: 1.5rem; }
    .cta-section p { font-size: 0.9rem; }
    .cta-buttons { flex-direction: column; gap: 10px; align-items: center; }
}

/* ---- PHONE (max-width: 480px) ---- */
@media (max-width: 480px) {
    body { 
        font-size: 14px; 
        padding-bottom: 62px; 
    }
    
    .container { padding: 0 14px; }
    
    /* Header */
    .header-top { font-size: 0.75rem; padding: 5px 0; }
    .header-main { padding: 7px 0; }
    .logo-img { height: 32px; }
    
    /* Hero */
    .hero { 
        height: 340px; 
        margin-top: 75px; 
    }
    .hero-title { font-size: 1.4rem; }
    .hero-subtitle { font-size: 0.88rem; }
    .hero-buttons { flex-direction: column; width: 100%; padding: 0 20px; }
    .hero-buttons .btn { width: 100%; justify-content: center; }
    
    /* Section */
    .section { padding: 35px 0; }
    .section-title { font-size: 1.5rem; }
    .section-subtitle { font-size: 0.88rem; }
    
    /* Page Header */
    .page-header { padding: 35px 0; margin-top: 75px; }
    .page-header h1 { font-size: 1.5rem; }
    
    /* Typography */
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }
    h3 { font-size: 1.1rem; }
    
    /* About */
    .about-content h2 { font-size: 1.5rem; }
    
    /* Business */
    .business-card { padding: 25px 16px; }
    .business-icon { width: 55px; height: 55px; font-size: 1.3rem; }
    
    /* Gallery */
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .gallery-item { border-radius: 8px; }
    
    /* Contact */
    .contact-form { padding: 18px; }
    .form-control { padding: 12px 14px; font-size: 0.9rem; }
    
    /* Detail */
    .detail-container { padding: 0; }
    .detail-header h1 { font-size: 1.3rem; }
    .detail-gallery { grid-template-columns: repeat(2, 1fr); }
    
    /* Partners */
    .partners-grid { gap: 18px; }
    .partner-logo { height: 55px; }
    .partner-name { font-size: 0.82rem; }
    
    /* Footer */
    .footer-main { padding: 30px 0; }
    .footer-about p { font-size: 0.82rem; }
    
    /* Swiper buttons */
    .swiper-btn { width: 32px; height: 32px; font-size: 0.75rem; }
    
    /* Facebook */
    .fb-swiper-slide { flex: 0 0 260px; min-width: 260px; }
    .fb-embed-card iframe { min-height: 380px; }
    
    /* Mobile Menu improvements */
    .mobile-menu { width: 85vw; max-width: 320px; }
    .mobile-nav a { padding: 14px 12px; font-size: 1rem; }
}

/* ---- SMALL PHONE (max-width: 360px) ---- */
@media (max-width: 360px) {
    .hero { height: 300px; }
    .hero-title { font-size: 1.2rem; }
    .hero-subtitle { font-size: 0.82rem; }
    .section-title { font-size: 1.3rem; }
    .gallery-grid { grid-template-columns: 1fr; }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .gallery-overlay { opacity: 1; background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%); }
    .news-card:hover { transform: none; }
    .business-card:hover { transform: none; box-shadow: var(--shadow-md); }
    .gallery-card:hover { transform: none; }
    .btn:hover { transform: none; }
}

/* Hide back-to-top when bottom nav is showing */
@media (max-width: 1024px) {
    .back-to-top { bottom: 80px; }
}


/* ============================================================
   모바일 최적화 패치 FINAL v3 (2026-03-15)
   적용: style.css에서 이전 패치 전부 삭제 후 맨 끝에 추가
   ============================================================ */

/* --- Go-to-top 버튼 --- */
@media (max-width: 1024px) {
    .back-to-top { bottom: 90px !important; }
}

/* --- 역점사업 카드 버튼 간격 --- */
.business-card .btn { margin-top: 25px; }

/* --- 모바일 768px --- */
@media (max-width: 768px) {
    .business-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .business-card {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        text-align: center;
        padding: 28px 20px;
    }
    .business-icon { margin: 0 auto 15px; }

    .gallery-grid { grid-template-columns: 1fr !important; gap: 12px; }
    .gallery-item { aspect-ratio: 16/10; width: 100%; }

    .social-feed-section .container { text-align: center; }
    .fb-plugin-layout {
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    .fb-page-plugin { width: 100% !important; max-width: 100% !important; }
    .fb-page-plugin .fb-page,
    .fb-page-plugin .fb-page > span,
    .fb-page-plugin .fb-page > span > iframe,
    .fb-page-plugin iframe { width: 100% !important; }
    .fb-swiper-slide { flex: 0 0 100% !important; min-width: 100% !important; }
    .fb-embed-card, .fb-embed-card iframe { width: 100% !important; }
    .swiper-btn { display: none; }

    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 30px;
    }
    .footer-about {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-about .logo { justify-content: center; }
    .footer-about .logo-text { align-items: center; }
    .footer-about p { text-align: center; }
    .footer-social { justify-content: center !important; }
    .footer-title { text-align: center; }
    .footer-title::after { left: 50% !important; transform: translateX(-50%) !important; }
    .footer-links, .footer-links li { text-align: center; }
    .footer-links a { display: inline-block; }
    .footer-links a:hover { transform: none; padding-left: 0; }
    .footer-contact li { justify-content: center; text-align: center; flex-wrap: wrap; }

    .about-content, .about-content h2, .about-content p { text-align: center; }
    .about-content .btn { margin: 10px auto 0; }
    .sidebar-title { text-align: center; }
    .sidebar-title::after { left: 50%; transform: translateX(-50%); }
    .notice-item { justify-content: center; }
}

/* ========================================
   협력단체 무한 루프 슬라이더
   ======================================== */
.partners-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.partners-slider-viewport {
    flex: 1;
    overflow: hidden;
}

.partners-slider-track {
    display: flex;
    gap: 50px;
    transition: transform 0.4s ease;
}

.partner-slide {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    min-width: 160px;
    transition: transform 0.2s ease;
}

.partner-slide:hover {
    transform: translateY(-3px);
}

.partner-slide .partner-logo {
    height: 120px !important;
    width: auto;
    display: block;
}

.partner-slide .partner-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-700);
    text-align: center;
}

.partner-slider-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-600);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.partner-slider-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

@media (max-width: 768px) {
    .partners-slider-track { gap: 30px; }
    .partner-slide { min-width: 120px; }
    .partner-slide .partner-logo { height: 80px !important; }
    .partner-slider-btn { width: 36px; height: 36px; font-size: 1rem; }
    .partner-slide .partner-name { font-size: 0.82rem; }
}