/* Notice Page Specific Styles */

/* Notice Hero Section */
.notice-hero-section {
    background: linear-gradient(135deg, rgba(43, 77, 160, 0.8), rgba(0, 10, 85, 0.7)), 
                url('../img/community-hero.png') center/cover no-repeat;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: visible;
    margin-bottom: 0;
}

.notice-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(245, 158, 11, 0.1) 50%, transparent 70%);
    animation: heroShine 3s ease-in-out infinite;
}

.notice-hero-overlay {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    align-items: center;
    padding: 100px 0 50px;
}

.notice-hero-content {
    animation: fadeInUp 1s ease-out;
}

/* About Hero Text Styles */
.about-hero-title {
    color: white;
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 8px;
}

.about-hero-subtitle {
    color: white;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 2px;
}

.about-hero-desc {
    color: white;
    font-size: 1.5rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    line-height: 1.6;
    font-weight: 400;
}

/* Responsive Hero Text */
@media (max-width: 768px) {
    .about-hero-title {
        font-size: 1.5rem;
        letter-spacing: 4px;
    }
    
    .about-hero-subtitle {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }
    
    .about-hero-desc {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .about-hero-title {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }
    
    .about-hero-subtitle {
        font-size: 2rem;
        letter-spacing: 0px;
    }
    
    .about-hero-desc {
        font-size: 1rem;
    }
}

.notice-hero-title {
    color: var(--secondary-color);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 3px;
}

.notice-hero-subtitle {
    color: white;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.notice-hero-desc {
    color: white;
    font-size: 1.3rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    line-height: 1.6;
}

/* Community Tabs Container */
.community-tabs-container {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 10;
    background: transparent;
    margin-bottom: 0;
}

/* Community Tabs */
.community-tabs {
    border: none;
    margin-bottom: 0;
    background: transparent;
    box-shadow: none;
    display: flex;
    justify-content: center;
}

.community-tabs .nav-item {
    margin: 0;
}

.community-tabs .nav-link {
    background: var(--primary-color);
    border: none;
    color: white !important;
    font-weight: 600;
    font-size: 1.2rem;
    padding: 1rem 3rem !important;
    margin: 0;
    border-radius: 0;
    transition: all 0.3s ease;
    position: relative;
    min-width: 220px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

/* 첫 번째 탭 - 왼쪽 위 모서리만 둥글게 */
.community-tabs .nav-item:first-child .nav-link {
    border-top-left-radius: 15px;
}

/* 마지막 탭 - 오른쪽 위 모서리만 둥글게 */
.community-tabs .nav-item:last-child .nav-link {
    border-top-right-radius: 15px;
}

.community-tabs .nav-link:hover {
    color: white !important;
    background: rgba(43, 77, 160, 0.8);
}

.community-tabs .nav-link.active {
    background: white;
    color: var(--primary-color) !important;
}

/* Community Content Section */
.community-content-section {
    background: #f8fafc;
    min-height: 70vh;
    padding-top: 3rem !important;
    margin-top: 0;
}

.section-title {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    padding-left: 20px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.community-tab-content {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    min-height: 500px;
}

/* Notice List */
.notice-list {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.notice-item {
    padding: 2rem;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

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

.notice-item:hover {
    background: #f8fafc;
    cursor: pointer;
}

.notice-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notice-preview {
    color: #666;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Downloads List */
.downloads-list {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.download-item {
    padding: 2rem;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.download-item:last-child {
    border-bottom: none;
}

.download-item:hover {
    background: #f8fafc;
    cursor: pointer;
}

.download-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.download-preview {
    color: #666;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-wrap: break-word !important;
    max-height: 3.2em !important;
}

.notice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.notice-title {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.notice-date {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

.notice-preview {
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
}

/* Consultation Form */
.consultation-form-container {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

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

.form-control {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(43, 77, 160, 0.25);
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: rgba(43, 77, 160, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(43, 77, 160, 0.3);
}

/* Consultation Info Box */
.consultation-info-box {
    background: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.consultation-info-box h4 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

.consultation-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.consultation-info-item i {
    font-size: 1.5rem;
    margin-top: 0.2rem;
    width: 30px;
    flex-shrink: 0;
}

.consultation-info-item h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.consultation-info-item p {
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
}

/* Animations */
@keyframes heroShine {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .notice-hero-title {
        font-size: 2.5rem;
    }
    
    .notice-hero-subtitle {
        font-size: 2rem;
    }
    
    .notice-hero-desc {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .community-tabs-container {
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .community-tabs-container .container {
        padding: 0 10px;
        margin: 0;
        max-width: 100%;
        width: 100%;
    }
    
    .community-tabs-container .row {
        margin: 0;
        padding: 0;
    }
    
    .community-tabs-container .col-lg-12 {
        padding: 0;
    }
    
    .community-tabs {
        flex-wrap: nowrap;
        width: 100%;
        display: flex;
        margin: 0 auto;
        padding: 0;
        justify-content: center;
        max-width: fit-content;
    }
    
    .community-tabs .nav-link {
        padding: 0.8rem 1.5rem !important;
        font-size: 1rem !important;
        min-width: 140px !important;
        flex: none;
        margin: 0 !important;
        border-radius: 0;
        white-space: nowrap;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .community-tabs .nav-item {
        margin: 0 !important;
        padding: 0 !important;
        flex: none;
    }
    
    .community-tabs .nav-item:first-child .nav-link {
        border-top-left-radius: 15px !important;
    }
    
    .community-tabs .nav-item:last-child .nav-link {
        border-top-right-radius: 15px !important;
    }
    
    .notice-item {
        padding: 1.5rem;
    }
    
    .notice-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .notice-date {
        margin-top: 0.5rem;
    }
    
    .consultation-form-container {
        padding: 2rem;
    }
    
    .consultation-info-box {
        padding: 2rem 1.5rem;
        position: static;
        margin-top: 2rem;
    }
}

@media (max-width: 576px) {
    .notice-hero-title {
        font-size: 2rem;
    }
    
    .notice-hero-subtitle {
        font-size: 1.5rem;
    }
    
    .notice-hero-desc {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .community-tabs .nav-link {
        padding: 0.6rem 0.5rem !important;
        font-size: 0.9rem !important;
        min-width: 100px !important;
        flex: 1;
        margin: 0 !important;
    }
    
    .community-tabs .nav-item {
        margin: 0 !important;
        padding: 0 !important;
        flex: 1;
    }
    
    .notice-item {
        padding: 1rem;
    }
    
    .consultation-form-container {
        padding: 1.5rem;
    }
    
    .consultation-info-box {
        padding: 1.5rem;
    }
}

/* Form Validation Styles */
.form-control.is-valid {
    border-color: #28a745;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='m2.3 6.73.7-.7 1.8 1.8 2.8-2.8.7.7-3.5 3.5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.5 5.5 1 1 1-1'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-valid:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Notice Detail Page Styles */
.notice-detail-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.notice-detail-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.notice-detail-meta {
    color: #666;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.meta-item {
    color: #666;
}

.notice-detail-content {
    padding: 2rem;
    line-height: 1.8;
    font-size: 1rem;
    color: #333;
    min-height: 200px;
}

.notice-navigation {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.notice-navigation .nav-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
}

.notice-navigation .nav-item:last-child {
    border-bottom: none;
}

.nav-label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.nav-title {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.nav-title:hover {
    color: #2b4da0;
    text-decoration: underline;
}

.breadcrumb {
    background: none;
    padding: 0;
}

.breadcrumb-item a {
    color: #666;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #2b4da0;
}

/* Download Detail Page Styles */
.download-detail-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.download-detail-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.download-detail-meta {
    color: #666;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.download-detail-content {
    padding: 2rem;
    line-height: 1.8;
    font-size: 1rem;
    color: #333;
    border-bottom: 1px solid #eee;
}

.download-files-section {
    padding: 2rem;
}

.files-title {
    color: #333;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.files-list {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
    background: #fff;
    transition: background-color 0.2s;
}

.file-item:last-child {
    border-bottom: none;
}

.file-item:hover {
    background: #f8f9fa;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.25rem;
}

.file-meta {
    font-size: 0.85rem;
    color: #666;
}

.download-btn {
    white-space: nowrap;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.download-navigation {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.download-navigation .nav-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
}

.download-navigation .nav-item:last-child {
    border-bottom: none;
}