/* =============================================
   UNIWELLSYS - Subpage Common Styles
   ============================================= */

/* === Page Banner === */
.page-banner {
    position: relative;
    height: 300px;
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-banner-content {
    text-align: center;
    z-index: 1;
    position: relative;
}

.page-banner h1 {
    font-size: 38px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.page-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

.page-breadcrumb a {
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}

.page-breadcrumb a:hover {
    color: var(--primary-light);
}

.page-breadcrumb .separator {
    font-size: 10px;
}

.page-breadcrumb .current {
    color: var(--primary-light);
}

/* === Subpage Content === */
.subpage-content {
    padding: 80px 0;
}

.content-section {
    margin-bottom: 80px;
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary-dark);
    margin-bottom: 12px;
    padding-left: 16px;
    border-left: 4px solid var(--primary);
}

.content-section-desc {
    font-size: 15px;
    color: var(--gray);
    margin-bottom: 30px;
    padding-left: 20px;
}

/* === CEO Message === */
.ceo-section {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.ceo-image {
    width: 300px;
    min-width: 300px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.ceo-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.ceo-text h3 {
    font-size: 24px;
    color: var(--secondary-dark);
    margin-bottom: 24px;
    line-height: 1.5;
}

.ceo-text p {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.9;
    margin-bottom: 16px;
}

.ceo-signature {
    margin-top: 30px;
    text-align: right;
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary-dark);
}

.ceo-signature span {
    font-size: 14px;
    font-weight: 400;
    color: var(--gray);
    display: block;
    margin-bottom: 4px;
}

/* === Vision / Mission === */
.vision-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.vision-card {
    padding: 40px;
    border-radius: 16px;
    text-align: center;
}

.vision-card.primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
}

.vision-card.secondary {
    background: var(--bg-light);
    border: 1px solid var(--border);
}

.vision-card i {
    font-size: 48px;
    margin-bottom: 20px;
}

.vision-card.primary i {
    color: rgba(255,255,255,0.9);
}

.vision-card.secondary i {
    color: var(--primary);
}

.vision-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
}

.vision-card.secondary h3 {
    color: var(--secondary-dark);
}

.vision-card p {
    font-size: 15px;
    line-height: 1.8;
}

.vision-card.primary p {
    color: rgba(255,255,255,0.85);
}

.vision-card.secondary p {
    color: var(--gray);
}

/* === History Timeline === */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

.timeline-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -40px;
    top: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--primary);
    z-index: 1;
}

.timeline-year {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.timeline-events li {
    font-size: 14px;
    color: var(--gray);
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
}

.timeline-events li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* === Business Cards === */
.biz-card {
    display: flex;
    gap: 40px;
    align-items: center;
    padding: 40px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    margin-bottom: 30px;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.biz-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 157, 220, 0.2);
}

.biz-card:nth-child(even) {
    flex-direction: row-reverse;
}

.biz-card-image {
    width: 45%;
    min-width: 45%;
    border-radius: 12px;
    overflow: hidden;
}

.biz-card-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.biz-card-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-dark);
    margin-bottom: 12px;
}

.biz-card-content p {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 16px;
}

.biz-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.biz-tag {
    font-size: 12px;
    padding: 5px 14px;
    background: rgba(0, 157, 220, 0.08);
    color: var(--primary);
    border-radius: 20px;
    font-weight: 500;
}

/* === Product Grid (subpage) === */
.sub-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.sub-product-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.sub-product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.sub-product-card .product-image {
    height: 220px;
    overflow: hidden;
}

.sub-product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.sub-product-card:hover .product-image img {
    transform: scale(1.08);
}

.sub-product-card .product-info {
    padding: 24px;
}

.sub-product-card .product-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary-dark);
    margin-bottom: 8px;
}

.sub-product-card .product-info p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
}

/* === Support Page === */
.notice-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 2px solid var(--secondary-dark);
}

.notice-table th, .notice-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.notice-table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--secondary-dark);
    text-align: center;
}

.notice-table td {
    color: var(--gray);
}

.notice-table td.title {
    text-align: left;
}

.notice-table td.title a {
    color: var(--dark-gray);
    transition: var(--transition);
}

.notice-table td.title a:hover {
    color: var(--primary);
}

.notice-table td.center {
    text-align: center;
}

/* FAQ */
.faq-list {
    border-top: 2px solid var(--secondary-dark);
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 16px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--dark-gray);
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question .q-mark {
    font-weight: 700;
    color: var(--primary);
    margin-right: 12px;
    font-size: 17px;
}

.faq-question i {
    transition: var(--transition);
    color: var(--light-gray);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--bg-light);
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer-inner {
    padding: 20px 16px 20px 44px;
    font-size: 14px;
    color: var(--gray);
    line-height: 1.8;
}

/* === Contact Form === */
.contact-form-section {
    max-width: 700px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 8px;
}

.form-group label .required {
    color: #ff4757;
    margin-left: 2px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--font-family);
    color: var(--dark-gray);
    transition: var(--transition);
    background: var(--white);
}

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

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

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

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 20px;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 157, 220, 0.3);
}

/* === Map Section === */
.map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

.direction-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.direction-card {
    padding: 24px;
    background: var(--bg-light);
    border-radius: 12px;
    text-align: center;
}

.direction-card i {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 12px;
}

.direction-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--secondary-dark);
    margin-bottom: 8px;
}

.direction-card p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
}

/* === CI Section === */
.ci-showcase {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background: var(--bg-light);
    border-radius: 16px;
    margin-bottom: 30px;
}

.ci-showcase img {
    max-width: 350px;
}

.ci-colors {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.color-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.color-swatch {
    width: 48px;
    height: 48px;
    border-radius: 8px;
}

.color-info strong {
    display: block;
    font-size: 14px;
    color: var(--dark-gray);
    margin-bottom: 4px;
}

.color-info span {
    font-size: 12px;
    color: var(--light-gray);
}

/* === Responsive for Subpages === */
@media (max-width: 1023px) {
    .page-banner {
        height: 240px;
    }
    .page-banner h1 {
        font-size: 30px;
    }
    .ceo-section {
        flex-direction: column;
    }
    .ceo-image {
        width: 100%;
        min-width: auto;
    }
    .ceo-image img {
        height: 300px;
    }
    .biz-card, .biz-card:nth-child(even) {
        flex-direction: column;
    }
    .biz-card-image {
        width: 100%;
        min-width: auto;
    }
    .sub-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .vision-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .page-banner {
        height: 200px;
    }
    .page-banner h1 {
        font-size: 24px;
    }
    .subpage-content {
        padding: 50px 0;
    }
    .content-section {
        margin-bottom: 50px;
    }
    .content-section-title {
        font-size: 22px;
    }
    .sub-product-grid {
        grid-template-columns: 1fr;
    }
    .direction-info {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .biz-card {
        padding: 24px;
    }
    .biz-card-image img {
        height: 200px;
    }
    .notice-table {
        font-size: 13px;
    }
    .ci-showcase {
        padding: 30px;
    }
    .ci-showcase img {
        max-width: 200px;
    }
    .ci-colors {
        flex-direction: column;
    }
}
