/*
Theme Name: Single Page Theme
Theme URI: https://sample.com
Author: None
Description: A professional single-page theme
Version: 1.0
License: None
*/

/* --- 0. Global Variables & Reset --- */
:root {
    --primary-dark: #004335;
    --accent-green: #81BC41;
    --bg-light: #f8f9fa;
    --text-main: #212529;
    --text-muted: #6c757d;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; transition: 0.3s; }

/* --- 1. Top Contact Bar --- */
.top-bar {
    background-color: var(--primary-dark);
    color: #fff;
    padding: 12px 0;
    font-size: 0.85rem;
}

.top-bar-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

@media (min-width: 992px) {
    .top-bar-content { justify-content: flex-end; gap: 35px; }
}

.top-bar strong {
    color: var(--accent-green);
    font-weight: 700;
    text-transform: uppercase;
    margin-right: 5px;
    letter-spacing: 0.5px;
}

.top-bar a {
    color: #fff;
    font-weight: 400;
}

.top-bar a:hover {
    color: var(--accent-green);
    text-decoration: underline;
}

/* --- 2. Navbar & Home Link --- */
.navbar {
    border-bottom: 3px solid var(--primary-dark);
    padding: 15px 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-home-link {
    color: var(--primary-dark);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-left: 25px;
    position: relative;
}

.nav-home-link:hover { color: var(--accent-green); }

.nav-home-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-green);
    transition: 0.3s;
}

.nav-home-link:hover::after { width: 100%; }

.search-box { position: relative; max-width: 300px; }

.search-box .form-control {
    border-radius: 25px;
    border: 1px solid #ddd;
    padding-right: 45px;
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 5px;
    border: none;
    background: var(--primary-dark);
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 10px;
}

/* --- 3. Hero Section --- */
.hero {
    height: 60vh;
    background: linear-gradient(rgba(0,67,53,0.7), rgba(0,67,53,0.7)), 
                url('https://images.unsplash.com/photo-1581093588401-fbb62a02f120?auto=format&fit=crop&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    text-transform: uppercase;
}

/* --- 4. Section: About (Cascading Styles) --- */
.section-padding { padding: 100px 0; }

#about .section-title {
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    width: 100%;
    text-align: center;
    text-transform: uppercase;
}

#about .section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 60px;
    height: 4px;
    background: var(--accent-green);
}

#about .col-lg-10 {
    text-align: left;
    color: var(--text-muted);
}

/* 后代选择器：确保 WP 后台直接输出的内容符合样式 */
#about .col-lg-10 p, 
#about .col-lg-10 ul, 
#about .col-lg-10 li {
    color: inherit;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

#about .col-lg-10 ul { padding-left: 1.5rem; }
#about .col-lg-10 li { margin-bottom: 0.8rem; list-style-type: disc; }

/* --- 5. Certification Wall --- */
.cert-section { background: var(--bg-light); }

.cert-item {
    position: relative;
    width: 100%;
    padding-top: 141.4%; /* A4 Ratio */
    background: #fff;
    border: 1px solid #eee;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: 0.3s;
}

.cert-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.cert-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}

.cert-label {
    margin-top: 12px;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--primary-dark);
    text-align: center;
    min-height: 2.5em;
}

/* --- 6. Fullscreen Modal Viewer --- */
.modal-fullscreen .modal-header {
    background: var(--primary-dark);
    color: #fff;
    border-radius: 0;
}

.modal-body {
    padding: 0;
    background: #525659; /* PDF Viewer style background */
}

.modal-viewer-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
}

@media (min-width: 992px) {
    .modal-viewer-layout { flex-direction: row; }
}

.viewer-left {
    flex: 1;
    padding: 40px 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.cert-page-img {
    width: 100%;
    max-width: 750px;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    border: 1px solid #ddd;
}

.viewer-right {
    width: 100%;
    background: #fff;
    padding: 40px;
    overflow-y: auto;
}

@media (min-width: 992px) {
    .viewer-right { width: 450px; border-left: 1px solid #ddd; }
}

.tag {
    display: inline-block;
    background: #f0f9f4;
    color: var(--primary-dark);
    padding: 5px 12px;
    font-size: 0.75rem;
    margin: 3px;
    font-weight: 600;
    border: 1px solid #d4edda;
    border-radius: 4px;
}

/* --- 7. Footer & Search Results --- */
footer {
    background: #1a1a1a;
    color: #777;
    padding: 40px 0;
    border-top: 5px solid var(--accent-green);
    font-size: 0.85rem;
}

.no-results {
    display: none;
    text-align: center;
    padding: 100px 0;
    color: #999;
}