/* Main page specific styles - Not in external CSS */
.partners-section {
    padding: 5rem 2rem;
    background: #f8f9fa;
}

/* Achievements Section - Main page specific */
.achievements-preview {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    position: relative;
    overflow: hidden;
}

.achievements-preview::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 100 100"><defs><pattern id="achievements-dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23achievements-dots)"/></svg>');
    opacity: 0.3;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto 0;
    position: relative;
    z-index: 2;
}

.achievement-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.achievement-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(78, 205, 196, 0.1));
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 20px;
}

.achievement-item:hover {
    transform: translateY(-10px);
    border-color: rgba(78, 205, 196, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.achievement-item:hover::before {
    opacity: 1;
}

.achievements-preview .section-title-light {
    color: white;
    position: relative;
    z-index: 2;
}

/* Achievement Numbers Style - Override external CSS */
.achievement-number {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5) !important;
    background: none !important;
    background-image: none !important;
    background-color: transparent !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: white !important;
    background-clip: initial !important;
}

/* Service Background Images for Main Page - Override external CSS */
.service-item {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.3));
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.service-overlay .service-title {
    color: white !important;
    font-size: 1.5rem;
    margin: 1rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 700;
}

.service-overlay .service-description {
    color: rgba(255, 255, 255, 0.95) !important;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    font-weight: 500;
}

.service-overlay .detail-tag {
    background: rgba(255, 255, 255, 0.6) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.4);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 1);
    font-weight: 500;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .achievements-preview {
        padding: 3rem 1rem;
    }
    
    .achievements-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .achievement-item {
        padding: 2rem 1.5rem;
    }
    
    .service-item {
        height: 350px;
    }
    
    .service-overlay {
        padding: 1.5rem;
    }
    
    .service-overlay .service-title {
        font-size: 1.3rem;
    }
    
    .service-overlay .service-description {
        font-size: 0.9rem;
    }
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    align-items: center;
    justify-content: center;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 100px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

/* Navigation Focus Fix - Remove Square Border */
.navbar-custom .nav-link:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Navigation Underline Fix */
.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;  /* 텍스트 아래 적절한 간격 */
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after {
    width: 80%;  /* 텍스트 너비의 80% 정도로 적절한 크기 */
}

@media (max-width: 1200px) {
    .partner-logo {
        width: 180px;
        height: 85px;
    }
}

@media (max-width: 992px) {
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    .partner-logo {
        width: 180px;
        height: 75px;
    }
}

@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .partner-logo {
        width: 100%;
        height: 100px;
        max-width: 180px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .partner-logo {
        height: 80px;
    }
}

.news-image img {
    width: 100%;
    height: auto;
}