/* ===================================
   Subpage Header Styles
   =================================== */

.subpage-header {
    position: relative;
    padding: 180px 0 120px;
    overflow: hidden;
    background: linear-gradient(135deg, #1976D2 0%, #42A5F5 50%, #64B5F6 100%);
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.header-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(30deg, rgba(255,255,255,0.05) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.05) 87.5%, rgba(255,255,255,0.05)),
        linear-gradient(150deg, rgba(255,255,255,0.05) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.05) 87.5%, rgba(255,255,255,0.05)),
        linear-gradient(30deg, rgba(255,255,255,0.05) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.05) 87.5%, rgba(255,255,255,0.05)),
        linear-gradient(150deg, rgba(255,255,255,0.05) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.05) 87.5%, rgba(255,255,255,0.05));
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px;
    animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
    0% {
        background-position: 0 0, 0 0, 40px 70px, 40px 70px;
    }
    100% {
        background-position: 80px 140px, 80px 140px, 120px 210px, 120px 210px;
    }
}

.header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
}

.header-category {
    display: inline-block;
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.header-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-description {
    font-size: 20px;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 30px;
}

.subpage-header .breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    font-size: 14px;
}

.subpage-header .breadcrumb a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
}

.subpage-header .breadcrumb a:hover {
    opacity: 1;
}

.subpage-header .breadcrumb i.fa-chevron-right {
    font-size: 10px;
    opacity: 0.6;
}

.subpage-header .breadcrumb span {
    font-weight: 600;
}

/* ===================================
   Submenu Navigation
   =================================== */

.submenu-nav {
    background: var(--white);
    border-bottom: 2px solid var(--light-bg);
    box-shadow: 0 2px 10px rgba(33, 150, 243, 0.08);
    position: sticky;
    top: 70px;
    z-index: 100;
}

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

.submenu-list {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.submenu-item {
    position: relative;
}

.submenu-link {
    display: block;
    padding: 20px 30px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.submenu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.submenu-link:hover {
    color: var(--primary-color);
}

.submenu-link:hover::after {
    width: 80%;
}

.submenu-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.submenu-link.active::after {
    width: 80%;
}

/* ===================================
   Content Section
   =================================== */

.content-section {
    padding: 100px 0;
    background: var(--white);
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.section-intro h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.section-intro p {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.8;
}

/* ===================================
   Solution Grid
   =================================== */

.solution-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

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

.solution-item.reverse {
    grid-template-columns: 1fr 400px;
}

.solution-item.reverse .solution-image {
    order: 2;
}

.solution-image {
    position: relative;
    height: 320px;
    background: var(--light-bg);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.solution-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s ease;
    background: var(--white);
}

.solution-item:hover .solution-image img {
    transform: scale(1.05);
}

.solution-icon-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 80px;
    height: 80px;
    background: var(--gradient-1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--white);
    box-shadow: 0 10px 30px rgba(33, 150, 243, 0.4);
}

.solution-icon {
    width: 120px;
    height: 120px;
    background: var(--gradient-1);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: var(--white);
    box-shadow: 0 10px 40px rgba(33, 150, 243, 0.3);
    transition: transform 0.3s ease;
}

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

.solution-badge {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.3);
}

.solution-content h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.solution-content > p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 25px;
}

.solution-features {
    list-style: none;
    padding: 0;
}

.solution-features li {
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.solution-features i {
    color: var(--primary-color);
    font-size: 14px;
}

/* ===================================
   CTA Section
   =================================== */

.cta-section {
    padding: 100px 0;
    background: var(--gradient-1);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 40px;
}

.btn-light-large {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: var(--white);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-light-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

/* ===================================
   Technology Page Styles
   =================================== */

.tech-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.tech-detail-card {
    background: var(--light-bg);
    padding: 50px;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.tech-detail-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(33, 150, 243, 0.15);
}

.tech-image-wrapper {
    width: 100%;
    height: 220px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 25px;
    margin-top: 20px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s ease;
}

.tech-detail-card:hover .tech-card-image {
    transform: scale(1.05);
}

.tech-number {
    font-size: 72px;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 20px;
}

.tech-detail-card h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.tech-detail-card p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 25px;
}

.tech-detail-card ul {
    list-style: none;
    padding: 0;
}

.tech-detail-card li {
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
}

.tech-detail-card li::before {
    content: '▪';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 18px;
}

.tech-detail-card li strong {
    color: var(--primary-color);
    font-weight: 600;
}

.tech-badge {
    margin-top: 25px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.tech-badge i {
    color: var(--primary-color);
    font-size: 20px;
}

.tech-badge span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

/* ===================================
   Responsive
   =================================== */

@media (max-width: 968px) {
    .subpage-header {
        padding: 140px 0 80px;
    }

    .header-title {
        font-size: 42px;
    }

    .header-description {
        font-size: 18px;
    }

    .solution-item,
    .solution-item.reverse {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .solution-item.reverse .solution-image {
        order: 0;
    }

    .tech-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .subpage-header {
        padding: 120px 0 60px;
    }

    .header-title {
        font-size: 36px;
    }

    .header-description {
        font-size: 16px;
    }

    .section-intro h2 {
        font-size: 32px;
    }

    .solution-content h3 {
        font-size: 26px;
    }

    .solution-image {
        height: 250px;
    }

    .solution-icon {
        width: 100px;
        height: 100px;
        font-size: 50px;
    }

    .cta-content h2 {
        font-size: 32px;
    }

    .tech-detail-card {
        padding: 40px 30px;
    }
}

/* ===================================
   Contact Page Styles
   =================================== */

.contact-page-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 80px;
}

.contact-info-section h2,
.contact-form-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.info-description,
.form-description {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.7;
}

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

.contact-info-card {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--light-bg);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    background: var(--white);
    box-shadow: 0 5px 20px rgba(33, 150, 243, 0.1);
    transform: translateX(5px);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon i {
    font-size: 22px;
    color: var(--white);
}

.info-details h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.info-details p {
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 5px;
    line-height: 1.6;
}

.info-details span {
    font-size: 13px;
    color: var(--text-light);
}

.contact-form-large {
    background: var(--light-bg);
    padding: 50px;
    border-radius: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.required {
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(33, 150, 243, 0.15);
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Noto Sans KR', sans-serif;
    background: var(--white);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.checkbox-group {
    margin-bottom: 30px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-dark);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.privacy-link {
    color: var(--primary-color);
    text-decoration: underline;
}

.btn-large-submit {
    width: 100%;
    padding: 18px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
}

@media (max-width: 968px) {
    .contact-page-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-large {
        padding: 40px 30px;
    }

    .submenu-list {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 5px;
    }

    .submenu-link {
        padding: 15px 20px;
        font-size: 14px;
    }
}

/* ===================================
   Board Styles (공지사항, 자료실, 보도자료)
   =================================== */

.board-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
}

.board-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
}

.board-header .count {
    font-size: 22px;
    color: var(--primary-color);
}

.search-box {
    display: flex;
    gap: 10px;
}

.search-box input {
    padding: 12px 20px;
    border: 2px solid rgba(33, 150, 243, 0.2);
    border-radius: 25px;
    width: 300px;
    font-size: 14px;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-box button {
    width: 45px;
    height: 45px;
    background: var(--gradient-1);
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
}

.board-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.board-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(33, 150, 243, 0.1);
    transition: all 0.3s ease;
}

.board-item:hover {
    background: var(--light-bg);
    padding-left: 35px;
}

.badge {
    flex-shrink: 0;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.badge-notice {
    background: var(--gradient-1);
    color: var(--white);
}

.badge-new {
    background: #FF5722;
    color: var(--white);
}

.board-content {
    flex: 1;
}

.board-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.board-content h3 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.board-content h3 a:hover {
    color: var(--primary-color);
}

.board-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-light);
}

.board-meta i {
    margin-right: 5px;
    color: var(--primary-color);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
}

.page-btn,
.page-num {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(33, 150, 243, 0.2);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-btn:hover,
.page-num:hover {
    background: var(--light-bg);
    border-color: var(--primary-color);
}

.page-num.active {
    background: var(--gradient-1);
    color: var(--white);
    border-color: var(--primary-color);
}

.page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-btn.disabled:hover {
    background: transparent;
    border-color: rgba(33, 150, 243, 0.2);
}

@media (max-width: 768px) {
    .board-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .search-box {
        width: 100%;
    }

    .search-box input {
        flex: 1;
        width: auto;
    }

    .board-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px;
    }

    .board-item:hover {
        padding-left: 20px;
    }
}

/* ===================================
   Board Modal Styles
   =================================== */

.post-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post-modal.show {
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.modal-content {
    position: relative;
    max-width: 800px;
    margin: 50px auto;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    transform: translateY(50px);
    transition: transform 0.3s ease;
}

.post-modal.show .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
    font-size: 20px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

.modal-header {
    padding: 40px 40px 30px;
    border-bottom: 1px solid rgba(33, 150, 243, 0.1);
}

.modal-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
    padding-right: 40px;
    line-height: 1.4;
}

.modal-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: var(--text-light);
}

.modal-meta i {
    margin-right: 5px;
    color: var(--primary-color);
}

.modal-body {
    padding: 40px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    min-height: 200px;
}

.file-download {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(33, 150, 243, 0.1);
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: var(--gradient-1);
    color: var(--white);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(33, 150, 243, 0.3);
}

.download-btn i {
    font-size: 18px;
}

/* Empty, Loading and Error Messages */
.empty-message,
.loading-message,
.error-message {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-light);
}

.empty-message i,
.loading-message i,
.error-message i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.loading-message i {
    color: var(--primary-color);
    opacity: 0.8;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message i {
    color: #f44336;
}

.empty-message p,
.loading-message p,
.error-message p {
    font-size: 18px;
}

@media (max-width: 768px) {
    .modal-content {
        margin: 20px;
        max-height: calc(100vh - 40px);
        border-radius: 15px;
    }

    .modal-header {
        padding: 30px 20px 20px;
    }

    .modal-header h2 {
        font-size: 22px;
        padding-right: 40px;
    }

    .modal-body {
        padding: 20px;
        font-size: 15px;
    }

    .modal-close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .download-btn {
        width: 100%;
        justify-content: center;
    }
}