/*
Theme Name: BOGO Theme
Theme URI:
Author: BOGO ENG CORP
Description: 보고이엔지 기업 홈페이지 커스텀 테마
Version: 1.0.0
Text Domain: bogo-theme
*/

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

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

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

/* ==================== Header ==================== */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 햄버거 메뉴 */
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #333;
    transition: transform 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* 로고 */
.site-logo {
    flex: 1;
    text-align: center;
}

.site-logo a {
    display: inline-flex;
    align-items: center;
}

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

/* 우측 메뉴 */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #555;
    padding: 4px;
}

.search-btn:hover {
    color: #000;
}

.login-btn {
    padding: 5px 14px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 13px;
    color: #555;
    transition: all 0.2s;
}

.login-btn:hover {
    border-color: #333;
    color: #333;
}

/* 모바일 네비게이션 */
.mobile-nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
}

.mobile-nav.active {
    max-height: 400px;
}

.mobile-menu {
    padding: 10px 20px;
}

.mobile-menu li {
    border-bottom: 1px solid #eee;
}

.mobile-menu li a {
    display: block;
    padding: 12px 0;
    color: #333;
    font-size: 15px;
}

.mobile-menu li a:hover {
    color: #c0392b;
}

/* ==================== Hero Slider ==================== */
.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #111;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    flex: 0 0 100%;
}

.slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* 슬라이더 화살표 */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    font-size: 24px;
    padding: 12px 16px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}

.slider-arrow:hover {
    background: rgba(0, 0, 0, 0.7);
}

.slider-prev {
    left: 10px;
}

.slider-next {
    right: 10px;
}

/* 슬라이더 인디케이터 점 */
.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s;
}

.dot.active,
.dot:hover {
    background: #fff;
}

/* ==================== Product Cards ==================== */
.product-cards {
    padding: 30px 20px;
    background: #f5f5f5;
}

.product-cards-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.product-card {
    padding: 25px 20px 20px;
    color: #fff;
}

.product-card h3 {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 15px;
}

.card-logo {
    background: #fff;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
}

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

.card-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    border-radius: 3px;
    font-size: 13px;
    transition: background 0.2s;
}

.card-btn:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* 카드 색상 */
.card-red {
    background: #c0392b;
}

.card-black {
    background: #2c3e50;
}

.card-blue {
    background: #2980b9;
}

.card-olive {
    background: #7d8a2e;
}

/* ==================== Info Section (News / Download / Q&A) ==================== */
.info-section {
    padding: 30px 20px;
    background: #fff;
}

.info-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 20px;
}

.info-box {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 25px;
}

/* News Box */
.info-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.news-title {
    color: #c0392b;
    border-bottom-color: #c0392b;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-more {
    font-size: 12px;
    font-weight: 400;
    color: #999;
}

.news-more:hover {
    color: #c0392b;
}

.news-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.news-list li:last-child {
    border-bottom: none;
}

.news-list li a {
    color: #333;
    font-size: 13px;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 10px;
}

.news-list li a:hover {
    color: #c0392b;
}

.news-date {
    color: #999;
    font-size: 12px;
    white-space: nowrap;
}

/* Download Box */
.download-title {
    color: #fff;
    background: #2980b9;
    margin: -25px -25px 20px -25px;
    padding: 15px 25px;
    border-radius: 4px 4px 0 0;
    border-bottom: none;
}

.info-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.8;
}

.info-btn {
    display: inline-block;
    padding: 8px 24px;
    background: #2980b9;
    color: #fff;
    border-radius: 3px;
    font-size: 13px;
    transition: background 0.2s;
}

.info-btn:hover {
    background: #2471a3;
}

.info-btn-dark {
    background: #555;
}

.info-btn-dark:hover {
    background: #333;
}

/* Q&A Box */
.qna-title {
    color: #fff;
    background: #555;
    margin: -25px -25px 20px -25px;
    padding: 15px 25px;
    border-radius: 4px 4px 0 0;
    border-bottom: none;
}

/* ==================== Map Section ==================== */
.map-section {
    padding: 50px 20px;
    background: #f9f9f9;
}

.section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin-bottom: 30px;
}

.map-info {
    max-width: 1200px;
    margin: 0 auto 20px;
    font-size: 14px;
    color: #555;
}

.map-label {
    color: #333;
    font-weight: 500;
    text-decoration: underline;
}

.map-container {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.map-container iframe {
    display: block;
}

/* ==================== Footer ==================== */
.site-footer {
    background: #f0f0f0;
    font-size: 13px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-top {
    background: #e8e8e8;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.footer-stats {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    color: #666;
}

.footer-stats strong {
    color: #333;
}

.stat-badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 10px;
    color: #fff;
    font-size: 11px;
    font-style: normal;
}

.stat-badge.blue {
    background: #3498db;
}

.stat-badge.green {
    background: #27ae60;
}

.stat-badge.dark {
    background: #555;
}

.footer-bottom {
    padding: 20px 0;
}

.footer-links {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.footer-links a {
    color: #555;
    font-weight: 500;
}

.footer-links a:hover {
    color: #333;
}

.footer-info p {
    color: #888;
    font-size: 12px;
    line-height: 1.8;
}

.footer-info a {
    color: #666;
}

/* Footer Bottom Bar */
.footer-bottom-bar {
    background: #333;
    padding: 8px 0;
}

.footer-bottom-bar .footer-inner {
    display: flex;
    gap: 0;
}

.quick-menu {
    flex: 1;
    text-align: center;
    color: #ccc;
    font-size: 12px;
    padding: 5px 0;
    border-right: 1px solid #555;
    cursor: pointer;
}

.quick-menu:last-child {
    border-right: none;
}

.quick-menu:hover {
    color: #fff;
    background: #444;
}

/* ==================== WordPress Admin Bar 보정 ==================== */
.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

/* ==================== Archive (글 목록) ==================== */
.archive-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.archive-title {
    font-size: 24px;
    font-weight: 700;
    color: #c0392b;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #c0392b;
}

.post-table {
    width: 100%;
    border-collapse: collapse;
}

.post-table th {
    background: #f5f5f5;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #ddd;
    text-align: left;
}

.post-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.col-num { width: 60px; text-align: center; }
.col-date { width: 100px; color: #999; }
.col-title a { color: #333; }
.col-title a:hover { color: #c0392b; }

.pagination {
    margin-top: 30px;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    color: #555;
    font-size: 13px;
}

.pagination .page-numbers.current {
    background: #c0392b;
    color: #fff;
    border-color: #c0392b;
}

.no-posts {
    color: #999;
    padding: 40px 0;
    text-align: center;
}

/* ==================== Single Post (글 상세) ==================== */
.single-post-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.single-title {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
}

.single-meta {
    color: #999;
    font-size: 13px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.single-content {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
}

.single-content p {
    margin-bottom: 15px;
}

.single-nav {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.back-to-list {
    color: #555;
    font-size: 14px;
}

.back-to-list:hover {
    color: #c0392b;
}

/* News title link */
.news-title a {
    color: #c0392b;
}

.news-title a:hover {
    text-decoration: underline;
}

/* ==================== Resource (자료실) ==================== */
.archive-title-blue {
    color: #2980b9;
    border-bottom-color: #2980b9;
}

/* ==================== Q&A ==================== */
.archive-title-dark {
    color: #555;
    border-bottom-color: #555;
}

/* ==================== Q&A Form ==================== */
.qna-form {
    max-width: 700px;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 6px;
}

.form-group .required {
    color: #c0392b;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #555;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.qna-submit-success {
    text-align: center;
    padding: 60px 20px;
    color: #333;
    font-size: 16px;
}

.qna-submit-success .info-btn {
    margin-top: 20px;
}

/* ==================== Utility ====================*/
.text-muted { color: #999; }

.content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.info-btn-cancel {
    background: #ccc;
    color: #333;
}

.info-btn-cancel:hover {
    background: #bbb;
    color: #222;
}

/* ==================== Responsive ==================== */
@media screen and (max-width: 1024px) {
    .product-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .slide img {
        height: 300px;
    }
}

@media screen and (max-width: 768px) {
    .product-cards-grid {
        grid-template-columns: 1fr;
    }

    .header-inner {
        padding: 8px 15px;
    }

    .logo-text-en {
        font-size: 18px;
    }

    .logo-text-kr {
        font-size: 16px;
    }

    .slide img {
        height: 200px;
    }

    .slider-arrow {
        font-size: 18px;
        padding: 8px 12px;
    }

    .section-title {
        font-size: 22px;
    }

    .footer-stats {
        font-size: 11px;
        gap: 8px;
    }
}
