/**
 * Earth 프로젝트 메인 스타일
 * 중국 전통 색상 테마 (차이나 레드 & 골드)
 */

/* Import local fonts (for China hosting) */
@import url('fonts.css');

/* ==========================================================================
   Base Styles
   ========================================================================== */
:root {
    --primary-color: #C8102E;      /* 차이나 레드 */
    --secondary-color: #B8860B;    /* 다크 골드 */
    --gold-color: #FFD700;         /* 골드 */
    --dark-red: #8B0000;           /* 다크 레드 */
    --dark-color: #1f2937;
    --light-color: #FFF8DC;        /* 코른실크 (따뜻한 느낌) */
    --text-color: #374151;
    --border-color: #F4E4C1;       /* 연한 골드 */
    --success-color: #10b981;
    --danger-color: #C8102E;       /* 레드 사용 */
    --warning-color: #FFD700;      /* 골드 사용 */
}

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

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

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

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.transparent {
    background: transparent;
    box-shadow: none;
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color) !important;
}

.navbar-nav .nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

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

.btn-login {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    margin-left: 1rem;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    padding: 150px 0 100px;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,112C1248,107,1344,117,1392,122.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 5px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: var(--dark-red) !important;
    color: #fff !important;
    border-color: var(--dark-red) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(200, 16, 46, 0.4);
}

/* Bootstrap button overrides */
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle {
    background: var(--dark-red) !important;
    border-color: var(--dark-red) !important;
    color: #fff !important;
}

/* Light variant for use on colored backgrounds */
.btn-primary-light {
    background: #fff;
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    border-radius: 5px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary-light:hover,
.btn-primary-light:focus,
.btn-primary-light:active {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #5a6268;
    color: #fff;
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--primary-color);
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: var(--dark-red);
    color: #fff;
    transform: translateY(-2px);
}

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

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   Feature Cards
   ========================================================================== */
.feature-card {
    padding: 2rem;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--border-color);
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: #fff;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.feature-card p {
    color: var(--text-color);
    line-height: 1.7;
}

/* ==========================================================================
   Board List
   ========================================================================== */
.board-item {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.board-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.board-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

.board-badge.notice {
    background: #FFE5E5;
    color: #C8102E;
}

.board-badge.event {
    background: #FFF8DC;
    color: #B8860B;
}

.board-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0.5rem 0;
}

.board-meta {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* ==========================================================================
   Form Styles
   ========================================================================== */
.form-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 3rem;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.form-title {
    text-align: center;
    margin-bottom: 2rem;
}

.form-title h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

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

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: linear-gradient(135deg, var(--dark-red), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(200, 16, 46, 0.4);
}

/* ==========================================================================
   Statistics Section
   ========================================================================== */
.statistics-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
}

.stat-item {
    padding: 2rem 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   Value Proposition
   ========================================================================== */
.value-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.value-item h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.value-item p {
    color: var(--text-color);
    line-height: 1.7;
}

/* ==========================================================================
   Skills Section
   ========================================================================== */
.skill-item {
    padding: 1.5rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.skill-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* ==========================================================================
   Parallax Section
   ========================================================================== */
.parallax-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-red) 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.parallax-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,112C1248,107,1344,117,1392,122.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat center;
    background-size: cover;
    pointer-events: none; /* Allow clicks to pass through */
}

/* ==========================================================================
   Clients Section
   ========================================================================== */
.client-logo {
    padding: 1.5rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    transition: all 0.3s ease;
}

.client-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.client-logo img {
    max-height: 60px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.client-logo:hover img {
    opacity: 1;
}

/* ==========================================================================
   Country Selector & Phone Input
   ========================================================================== */
.iti {
    width: 100%;
}

.iti__flag-container {
    border-radius: 8px 0 0 8px;
}

.iti__selected-flag {
    border-radius: 8px 0 0 8px;
    padding: 0 8px;
}

.iti input {
    border-radius: 0 8px 8px 0;
}

/* Custom Country Selector */
.custom-country-selector {
    position: relative;
    width: 100%;
}

.country-selector-selected {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px;
}

.country-selector-selected:hover {
    border-color: var(--primary-color);
}

.country-selector-selected .iti__flag {
    margin-right: 8px;
}

.country-selector-selected .country-name {
    flex: 1;
}

.country-selector-arrow {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #555;
    margin-left: auto;
}

.country-selector-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    display: none;
    max-height: 300px;
    overflow: hidden;
}

.country-selector-dropdown.open {
    display: flex;
    flex-direction: column;
}

.country-selector-search {
    padding: 10px 12px;
    border: none;
    border-bottom: 1px solid #ccc;
    border-radius: 8px 8px 0 0;
    outline: none;
    font-size: 0.95rem;
}

.country-selector-search:focus {
    border-bottom-color: var(--primary-color);
}

.country-selector-list {
    overflow-y: auto;
    max-height: 250px;
}

.country-selector-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.country-selector-item:hover {
    background-color: rgba(200, 16, 46, 0.1);
}

.country-selector-item .iti__flag {
    flex-shrink: 0;
}

.country-selector-item .country-name {
    flex: 1;
}

/* Improve intl-tel-input country dropdown styling */
.iti__country-list {
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    max-height: 250px;
}

.iti__country {
    padding: 8px 12px;
    transition: background-color 0.2s ease;
}

.iti__country:hover {
    background-color: rgba(200, 16, 46, 0.1);
}

.iti__selected-flag:hover,
.iti__selected-flag:focus {
    background-color: rgba(200, 16, 46, 0.05);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--dark-color);
    color: #fff;
    padding: 60px 0 30px;
    margin-top: 0;
}

.footer h5 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

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

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer a {
    color: #d1d5db;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af;
}

/* ==========================================================================
   Loading Spinner
   ========================================================================== */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Board Search Section
   ========================================================================== */
/* Search input and button 고정 높이 및 정렬 */
#searchKeyword {
    height: 56px;
    padding: 1rem 1.5rem;
}

#searchBtn {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 0.75rem 1rem;
}

#searchBtn i {
    margin-right: 0.5rem;
}

/* 작은 화면에서는 Search 텍스트 숨기고 아이콘만 표시 */
@media (max-width: 991px) and (min-width: 769px) {
    #searchBtn {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }

    #searchBtn i {
        margin-right: 0.3rem;
    }
}

@media (max-width: 768px) {
    /* 모바일에서는 버튼이 전체 너비로 표시되므로 텍스트 유지 */
    #searchKeyword,
    #searchBtn {
        height: 56px;
    }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .form-container {
        padding: 2rem 1.5rem;
    }
}

/* ==========================================================================
   Custom Alert & Notification
   ========================================================================== */
#custom-alert-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.custom-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-left: 4px solid;
    min-width: 300px;
    transition: all 0.3s ease;
}

.custom-alert-enter {
    opacity: 0;
    transform: translateX(100%);
}

.custom-alert-exit {
    opacity: 0;
    transform: translateX(100%);
}

.custom-alert-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.custom-alert-content i {
    font-size: 1.25rem;
}

.custom-alert-message {
    font-size: 0.95rem;
    color: #374151;
}

.custom-alert-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    font-size: 1rem;
    padding: 0;
    margin-left: 12px;
    transition: color 0.2s ease;
}

.custom-alert-close:hover {
    color: #374151;
}

/* Alert Types */
.custom-alert-success {
    border-left-color: var(--success-color);
}

.custom-alert-success .custom-alert-content i {
    color: var(--success-color);
}

.custom-alert-error {
    border-left-color: var(--danger-color);
}

.custom-alert-error .custom-alert-content i {
    color: var(--danger-color);
}

.custom-alert-warning {
    border-left-color: var(--warning-color);
}

.custom-alert-warning .custom-alert-content i {
    color: var(--warning-color);
}

.custom-alert-info {
    border-left-color: #3b82f6;
}

.custom-alert-info .custom-alert-content i {
    color: #3b82f6;
}

/* Confirmation Dialog */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-alert-overlay.show {
    opacity: 1;
}

.custom-alert-dialog {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.custom-alert-overlay.show .custom-alert-dialog {
    transform: scale(1);
}

.custom-alert-dialog-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-red) 100%);
    color: #fff;
}

.custom-alert-dialog-header i {
    font-size: 1.5rem;
}

.custom-alert-dialog-header h4 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.custom-alert-dialog-body {
    padding: 2rem 1.5rem;
}

.custom-alert-dialog-body p {
    margin: 0;
    color: #374151;
    font-size: 1rem;
    line-height: 1.6;
}

.custom-alert-dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.custom-alert-dialog-footer .btn {
    min-width: 80px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #custom-alert-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: 100%;
    }

    .custom-alert {
        min-width: auto;
    }

    .custom-alert-dialog {
        width: 95%;
    }
}

/* ==========================================================================
   Error Pages
   ========================================================================== */
.error-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 100px 0 80px;
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.03) 0%, rgba(184, 134, 11, 0.03) 100%);
}

.error-content {
    padding: 40px 20px;
}

.error-code {
    font-size: 10rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 10px 30px rgba(200, 16, 46, 0.2);
}

.error-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.error-message {
    font-size: 1.15rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.error-actions {
    margin: 3rem 0;
}

.error-actions .btn {
    padding: 0.875rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.error-actions .btn-primary {
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.3);
}

.error-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 16, 46, 0.4);
}

.error-actions .btn-secondary {
    background: #6b7280;
    border-color: #6b7280;
}

.error-actions .btn-secondary:hover {
    background: #4b5563;
    border-color: #4b5563;
    transform: translateY(-2px);
}

.error-search {
    max-width: 500px;
    margin: 0 auto;
}

.error-search p {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 500;
}

.error-search .input-group {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.error-search .form-control {
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
}

.error-search .form-control:focus {
    box-shadow: none;
}

.error-search .btn {
    padding: 0 2rem;
    border: none;
}

.error-help {
    margin-top: 3rem;
}

.error-help p {
    font-size: 0.95rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .error-code {
        font-size: 6rem;
    }

    .error-title {
        font-size: 1.75rem;
    }

    .error-message {
        font-size: 1rem;
    }

    .error-actions .btn {
        width: 100%;
        margin-bottom: 0.75rem;
    }

    .error-actions .btn.me-3 {
        margin-right: 0 !important;
    }
}

/* ==========================================================================
   Animations
   ========================================================================== */

/* Hero Section Animation - Sequential */
.hero-content h1,
.hero-content p,
.hero-content a {
    opacity: 0;
    transform: translateY(30px);
}

.hero-content.animate-slide-up h1 {
    animation: slideUpFadeIn 0.8s ease-out forwards;
    animation-delay: 0.1s;
}

.hero-content.animate-slide-up p {
    animation: slideUpFadeIn 0.8s ease-out forwards;
    animation-delay: 0.4s;
}

.hero-content.animate-slide-up a {
    animation: slideUpFadeIn 0.8s ease-out forwards;
    animation-delay: 0.7s;
}

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

/* Statistics Section Animation */
.statistics-section {
    opacity: 1;
    transition: opacity 0.5s ease;
}

.stat-number {
    transition: all 0.3s ease;
}

/* Smooth number transition during counter animation */
.stat-number.counting {
    color: rgba(255, 255, 255, 0.9);
}

/* Partners Section - Rolling Animation */
.partners-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 20px 0;
}

.partners-track {
    display: flex;
    gap: 40px;
    align-items: center;
}

.partners-track.rolling {
    animation: scroll-left 15s linear infinite;
}

.partner-logo-item {
    flex-shrink: 0;
    width: 150px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-logo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.partner-logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Rolling animation */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.partners-container:hover .partners-track.rolling {
    animation-play-state: paused;
}
