/*
Theme Name: PassInterview
Theme URI: https://passinterview.local
Author: PassInterview
Author URI: https://passinterview.local
Description: Theme WordPress cho nền tảng Mock Interview 1-1 – PassInterview. Thiết kế gọn, chuyển đổi cao cho sinh viên và quản lý cấp trung.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: passinterview
Tags: custom-menu, featured-images, translation-ready, one-column
*/

/* Base Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #0056b3;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul, ol {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.site-main {
    flex: 1;
}

/* ========== Header ========== */
.site-header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #0056b3;
    text-decoration: none;
    white-space: nowrap;
}

.logo:hover {
    text-decoration: none;
}

.logo span {
    color: #ffc107;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.main-nav a {
    display: block;
    padding: 8px 14px;
    color: #002d62;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
    background-color: #eef4fb;
    color: #0056b3;
    text-decoration: none;
}

.nav-cta {
    display: inline-block;
    background-color: #ffc107;
    color: #002d62 !important;
    padding: 10px 18px !important;
    font-weight: bold !important;
    border-radius: 5px;
    text-decoration: none !important;
    transition: background 0.3s, transform 0.2s;
}

.nav-cta:hover {
    background-color: #e0a800 !important;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    background: none;
    border: 2px solid #0056b3;
    color: #0056b3;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
}

/* ========== Hero ========== */
.hero {
    background: linear-gradient(135deg, #0056b3 0%, #002d62 100%);
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.35;
    color: #ffffff;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.15rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.92);
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffc107;
    color: #002d62;
    padding: 14px 35px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-height: 52px;
    line-height: 1.2;
    box-sizing: border-box;
}

.btn-cta:hover {
    background-color: #e0a800;
    transform: translateY(-2px);
    text-decoration: none;
    color: #002d62;
}

.btn-cta-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #fff;
    padding: 14px 35px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    transition: all 0.3s ease;
    margin-left: 0;
    min-height: 52px;
    line-height: 1.2;
    box-sizing: border-box;
}

.btn-cta-outline:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    text-decoration: none;
    border-color: #fff;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    align-items: center;
}

/* ========== Sections ========== */
.section {
    padding: 60px 0;
}

.section-white {
    background-color: #ffffff;
}

.section-muted {
    background-color: #f1f3f5;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 16px;
    color: #002d62;
}

.section-lead {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    color: #495057;
    font-size: 1.05rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

/* Audience / Service cards */
.audience-card,
.feature-card,
.step-card,
.faq-item,
.content-card {
    background: #fdfdfd;
    padding: 35px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.audience-card.premium {
    border-top: 5px solid #ffc107;
}

.audience-card.standard {
    border-top: 5px solid #0056b3;
}

.audience-card h3,
.feature-card h3,
.step-card h3,
.content-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #002d62;
}

.audience-card ul,
.feature-card ul {
    margin-left: 20px;
    margin-bottom: 20px;
    list-style: disc;
}

.audience-card ul li,
.feature-card ul li {
    margin-bottom: 10px;
}

.price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #dc3545;
    margin-top: 15px;
}

.feature-icon,
.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0056b3, #002d62);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 18px;
}

.feature-card p,
.step-card p {
    color: #495057;
}

/* Process steps */
.steps {
    counter-reset: step;
}

/* Testimonials */
.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.testimonial-card blockquote {
    font-style: italic;
    color: #495057;
    margin-bottom: 16px;
}

.testimonial-card .author {
    font-weight: 700;
    color: #002d62;
}

.testimonial-card .role {
    font-size: 0.9rem;
    color: #6c757d;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item h3 {
    font-size: 1.15rem;
    color: #002d62;
    margin-bottom: 10px;
}

.faq-item p {
    color: #495057;
}

/* ========== Forms ========== */
.form-container {
    background-color: #ffffff;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    color: #333;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.12);
}

.btn-submit {
    width: 100%;
    background-color: #0056b3;
    color: white;
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    font-family: inherit;
}

.btn-submit:hover {
    background-color: #004085;
}

.form-notice {
    padding: 14px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.form-notice.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-notice.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Honeypot — hidden from humans, visible to naive bots */
.pi-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ========== Page hero (inner pages) ========== */
.page-hero {
    background: linear-gradient(135deg, #0056b3 0%, #002d62 100%);
    color: #fff;
    padding: 50px 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.page-hero p {
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.page-content {
    padding: 50px 0;
}

.page-content .entry-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-content .entry-content p {
    margin-bottom: 1rem;
}

.page-content .entry-content h2 {
    color: #002d62;
    margin: 1.5rem 0 0.75rem;
}

.prose {
    max-width: 800px;
    margin: 0 auto;
}

.prose p + p {
    margin-top: 1rem;
}

.prose h2 {
    color: #002d62;
    margin: 1.75rem 0 0.75rem;
    font-size: 1.5rem;
}

.prose ul {
    margin: 0.75rem 0 1rem 1.25rem;
    list-style: disc;
}

.prose ul li {
    margin-bottom: 8px;
}

/* Contact info */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    align-items: start;
}

.contact-info {
    background: #fff;
    padding: 35px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.contact-info h3 {
    color: #002d62;
    margin-bottom: 20px;
}

.contact-item {
    margin-bottom: 18px;
}

.contact-item strong {
    display: block;
    color: #002d62;
    margin-bottom: 4px;
}

.contact-item span,
.contact-item a {
    color: #495057;
}

/* ========== Thank You ========== */
.thankyou-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    min-height: 60vh;
}

.thankyou-card {
    background-color: #ffffff;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-top: 5px solid #28a745;
}

.icon-success {
    font-size: 50px;
    color: #28a745;
    margin-bottom: 20px;
    line-height: 1;
}

.thankyou-card h1 {
    color: #002d62;
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.thankyou-card > p {
    font-size: 1.1rem;
    color: #495057;
    margin-bottom: 25px;
}

.next-steps {
    background-color: #f1f3f5;
    padding: 20px;
    border-radius: 6px;
    text-align: left;
    margin-bottom: 30px;
}

.next-steps h3 {
    color: #002d62;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.next-steps ol {
    margin-left: 20px;
    color: #495057;
    list-style: decimal;
}

.next-steps ol li {
    margin-bottom: 8px;
}

.btn-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-zalo {
    display: block;
    background-color: #0068ff;
    color: white;
    padding: 12px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.btn-zalo:hover {
    background-color: #0052cc;
    color: white;
    text-decoration: none;
}

.btn-back {
    display: block;
    color: #0056b3;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
}

.btn-back:hover {
    text-decoration: underline;
}

/* ========== Blog / Archive ========== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.post-card {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.post-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.post-card .post-body {
    padding: 24px;
}

.post-card h2 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.post-card h2 a {
    color: #002d62;
    text-decoration: none;
}

.post-card h2 a:hover {
    color: #0056b3;
}

.post-meta {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 10px;
}

.post-excerpt {
    color: #495057;
    margin-bottom: 14px;
}

.read-more {
    font-weight: 700;
    color: #0056b3;
}

.single-article {
    max-width: 760px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.single-article h1 {
    color: #002d62;
    font-size: 2rem;
    margin-bottom: 12px;
}

.single-article .entry-content {
    margin-top: 24px;
}

.single-article .entry-content p {
    margin-bottom: 1rem;
}

/* ========== 404 ========== */
.error-404 {
    text-align: center;
    padding: 80px 0;
}

.error-404 h1 {
    font-size: 4rem;
    color: #002d62;
    margin-bottom: 10px;
}

.error-404 p {
    color: #495057;
    margin-bottom: 24px;
    font-size: 1.1rem;
}

/* ========== Footer ========== */
.site-footer {
    background-color: #002d62;
    color: white;
    padding: 40px 0 25px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    margin-bottom: 14px;
    font-size: 1.05rem;
    color: #ffc107;
}

.footer-col p,
.footer-col a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.footer-col a:hover {
    color: #ffc107;
    text-decoration: underline;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
}

.footer-logo {
    font-size: 1.4rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
}

.footer-logo span {
    color: #ffc107;
}

/* Admin bookings table helpers */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
    .nav-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
        padding: 12px 5%;
        flex-direction: column;
        align-items: stretch;
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .main-nav a {
        padding: 12px 14px;
    }

    .nav-cta {
        text-align: center;
        margin-top: 8px;
    }

    .header-content {
        position: relative;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .grid-2,
    .grid-2x2 {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 56px 0;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1.05rem;
    }

    .btn-cta-outline {
        margin-left: 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .form-container,
    .thankyou-card,
    .single-article {
        padding: 25px 20px;
    }

    .thankyou-card h1 {
        font-size: 1.6rem;
    }

    .page-hero h1 {
        font-size: 1.7rem;
    }

    .hero-trust {
        flex-direction: column;
        gap: 8px;
    }

    .hero-trust li + li::before {
        display: none;
    }

    .definition-facts {
        grid-template-columns: 1fr;
    }
}

/* ========== SEO / AEO / GEO extras ========== */
.skip-link:focus {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100000;
    clip: auto;
    clip-path: none;
    width: auto;
    height: auto;
    padding: 12px 16px;
    background: #002d62;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 14px;
    color: #ffc107;
}

/* Keep AEO classes readable on dark hero (do not inherit .aeo-answer #333) */
.hero .aeo-answer,
.hero .seo-definition,
.hero p.aeo-answer,
.hero p.seo-definition {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.92) !important;
    opacity: 1;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 28px;
    margin-top: 32px;
    list-style: none;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.88);
}

.hero-trust li {
    position: relative;
    color: rgba(255, 255, 255, 0.88);
}

.hero-trust li + li::before {
    content: '·';
    position: absolute;
    left: -16px;
    color: rgba(255, 255, 255, 0.55);
}

.definition-box {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #dee2e6;
    border-left: 5px solid #0056b3;
    border-radius: 8px;
    padding: 28px 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.definition-box .aeo-answer {
    font-size: 1.08rem;
    color: #333;
    margin-bottom: 24px;
    line-height: 1.7;
}

.definition-facts {
    margin-top: 8px;
}

.fact-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    background: #f8f9fa;
    border-radius: 6px;
}

.fact-item strong {
    color: #002d62;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.fact-item span {
    color: #495057;
    font-size: 0.98rem;
}

.aeo-answer {
    color: #333;
}

.testimonial-card figcaption {
    margin-top: 4px;
}

.testimonial-card figcaption .author {
    display: block;
}

.testimonial-card figcaption .role {
    display: block;
}

.breadcrumb {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 12px 0;
    font-size: 0.9rem;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 0;
    list-style: none;
    margin: 0;
    padding: 0;
    color: #6c757d;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin: 0 10px;
    color: #adb5bd;
}

.breadcrumb a {
    color: #0056b3;
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
    color: #002d62;
    font-weight: 600;
}

.geo-coverage .content-card h3 {
    font-size: 1.2rem;
}
