/* ============================================
   THM Motorcycle - Shared styles for inner pages
   ============================================ */

/* Page hero */
.page-hero {
    position: relative;
    overflow: hidden;
    min-height: clamp(360px, 46vh, 560px);
    padding: clamp(140px, 20vh, 180px) clamp(1rem, 4vw, 2rem) clamp(60px, 9vh, 90px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #0a0a0a url('../Image/Bacground1.jpg') center center / cover no-repeat;
}

@media (min-width: 969px) {
    .page-hero {
        padding-left: clamp(90px, 8vw, 130px);
    }
}

.page-hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.42) 50%, rgba(0, 0, 0, 0.72) 100%);
    z-index: 1;
    pointer-events: none;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-hero-label {
    color: var(--yamaha-red);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9), 0 0 18px rgba(0, 0, 0, 0.7);
}

.model-hero .page-hero-label,
.variants-hero .page-hero-label {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    background: rgba(0, 0, 0, 0.58);
    border-left: 3px solid var(--yamaha-red);
    color: #ffffff;
    font-size: 0.72rem;
    letter-spacing: 2.4px;
    line-height: 1.4;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
}

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: clamp(1px, 0.3vw, 3px);
    line-height: 1.15;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7);
}

.page-hero p {
    max-width: 640px;
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* Main content */
.page-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 4vw, 2rem);
}

.page-main.category-main {
    max-width: 1400px;
}

.page-section + .page-section {
    margin-top: clamp(2.25rem, 5vw, 3.5rem);
}

.page-section h2 {
    font-size: clamp(1.4rem, 3.5vw, 1.9rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.9rem;
    padding-left: 1rem;
    border-left: 5px solid var(--yamaha-red);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.75);
}

.page-section > p {
    color: var(--text-secondary);
    max-width: 820px;
    margin-bottom: 2rem;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7);
}

/* Cards */
.page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr));
    gap: 1.35rem;
}

.page-card {
    background: rgba(10, 10, 10, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

a.page-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

a.page-card:focus-visible {
    outline: 2px solid var(--yamaha-red);
    outline-offset: 3px;
}

.page-card:hover {
    border-color: var(--yamaha-red);
    transform: translateY(-5px);
}

.page-card img {
    width: 100%;
    height: 190px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.35);
    margin-bottom: 1rem;
    padding: 0.5rem;
}

.page-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
}

.page-card .card-tag {
    color: var(--yamaha-red);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
    display: block;
}

.page-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.page-card .model-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Info items */
.info-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: 1.5rem;
}

.info-item {
    background: rgba(10, 10, 10, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1.75rem;
    transition: all 0.3s ease;
}

.info-item:hover {
    border-color: var(--yamaha-red);
}

.info-item i {
    display: block;
    color: var(--yamaha-red);
    font-size: 1.5rem;
    margin-bottom: 0.9rem;
}

.info-item h3 {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
}

.info-item p,
.info-item a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
}

.info-item a:hover {
    color: var(--text-primary);
}

/* Jobs */
.job-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.job-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    background: rgba(10, 10, 10, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1.25rem 1.5rem;
    transition: all 0.3s ease;
}

.job-item:hover {
    border-color: var(--yamaha-red);
}

.job-item h3 {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.job-item span {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.15rem;
}

.job-item a {
    background: var(--yamaha-red);
    color: #ffffff;
    text-decoration: none;
    padding: 0.6rem 1.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background 0.3s ease;
}

.job-item a:hover {
    background: #cc0010;
}

/* Job cards (full listings) */
.job-card {
    background: rgba(10, 10, 10, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1.75rem;
    transition: border-color 0.3s ease;
}

.job-card:hover {
    border-color: var(--yamaha-red);
}

.job-card + .job-card {
    margin-top: 1.25rem;
}

.job-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
    gap: 1.5rem;
}

.job-cards .job-card + .job-card {
    margin-top: 0;
}

.job-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.job-card-head h3 {
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.job-card-head .model-btn {
    flex-shrink: 0;
}

.job-card .card-tag {
    display: block;
    color: var(--yamaha-red);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.job-card h4 {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.qual-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.qual-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.5;
}

.qual-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--yamaha-red);
    font-weight: 700;
}

.job-apply {
    margin-top: 0.5rem;
}

/* Contact form */
.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    background: rgba(10, 10, 10, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: clamp(1.25rem, 4vw, 2rem);
}

.contact-form .full {
    grid-column: 1 / -1;
}

.contact-form label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.9rem;
}

.contact-form select {
    color-scheme: dark;
    cursor: pointer;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--yamaha-red);
}

.contact-form input[type="file"] {
    padding: 0.55rem 0.65rem;
    cursor: pointer;
}

.contact-form input[type="file"]::file-selector-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #ffffff;
    padding: 0.5rem 0.9rem;
    margin-right: 0.85rem;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.contact-form input[type="file"]::file-selector-button:hover {
    background: var(--yamaha-red);
    border-color: var(--yamaha-red);
}

.form-hint {
    display: block;
    margin-top: 0.45rem;
    color: var(--text-secondary);
    font-size: 0.78rem;
    line-height: 1.5;
}

.contact-form textarea {
    resize: vertical;
    min-height: 130px;
}

.contact-form button {
    background: var(--yamaha-red);
    border: none;
    color: #ffffff;
    padding: 0.9rem 2.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background: #cc0010;
}

.form-alert {
    padding: 0.95rem 1.15rem;
    border: 1px solid transparent;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.form-alert--success {
    background: rgba(46, 125, 50, 0.16);
    border-color: rgba(76, 175, 80, 0.65);
    color: #c9f7cc;
}

.form-alert--error {
    background: rgba(198, 40, 40, 0.16);
    border-color: rgba(239, 83, 80, 0.65);
    color: #ffd0cf;
}

/* Career application */
.career-intro a,
.career-empty a {
    color: var(--yamaha-red);
    font-weight: 600;
}

.career-form {
    margin-top: 0.35rem;
}

.career-empty {
    margin-top: 0.35rem;
}

.career-empty p {
    margin: 0;
    color: var(--text-secondary);
}

.career-online-apply {
    margin: 1.35rem 0 1.5rem;
}

.apply-back {
    margin: 0 0 0.85rem;
}

.apply-back a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.25s ease;
}

.apply-back a:hover {
    color: var(--yamaha-red);
}

/* Back link */
.back-home {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.back-home:hover {
    color: var(--yamaha-red);
}

/* Simple footer for inner pages */
.page-footer {
    padding: 2.5rem clamp(1.25rem, 4vw, 2rem);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 968px) {
    .page-hero {
        padding-left: 3.75rem;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 140px 1.25rem 65px 3.75rem;
    }

    .page-hero h1 {
        font-size: clamp(1.85rem, 7vw, 2.4rem);
    }

    .page-hero p {
        font-size: 0.95rem;
    }

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

    .page-main {
        padding: 2.75rem 1.25rem;
    }
}

@media (max-width: 560px) {
    .page-hero-label {
        font-size: 0.72rem;
        letter-spacing: 3px;
    }

    .page-section h2 {
        font-size: 1.35rem;
        padding-left: 0.8rem;
        border-left-width: 4px;
    }

    .page-card,
    .info-item,
    .job-card {
        padding: 1.25rem;
    }

    .page-card img {
        height: 170px;
    }

    .job-card-head {
        flex-direction: column;
        align-items: stretch;
    }

    .job-card-head .model-btn,
    .job-apply {
        justify-content: center;
        width: 100%;
        background: rgba(230, 0, 18, 0.16);
        border: 1px solid var(--yamaha-red);
        padding: 0.7rem 1rem;
    }

    .job-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.15rem 1.25rem;
    }

    .job-item a {
        width: 100%;
        text-align: center;
    }

    .qual-list li {
        font-size: 0.88rem;
    }

    .contact-form button {
        width: 100%;
    }

    .page-footer {
        padding: 2rem 1.25rem;
    }
}
/* ---------- Category pages: DB-driven model cards ---------- */
.category-count {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.page-grid .page-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0;
    background: rgba(10, 10, 10, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.page-grid .page-card:hover {
    transform: translateY(-5px);
    border-color: var(--yamaha-red);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    color: var(--text-primary);
}

.page-grid .page-card .card-image {
    position: relative;
    height: 220px;
    padding: 1.1rem;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 62%, rgba(230, 0, 18, 0.12), transparent 62%),
        rgba(0, 0, 0, 0.35);
}

.page-grid .page-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: transparent;
    padding: 0;
    filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.45));
    transition: transform 0.4s ease;
}

.page-grid .page-card:hover .card-image img {
    transform: scale(1.06);
}

.page-grid .page-card .card-badge {
    position: absolute;
    top: 0.9rem;
    left: 0.9rem;
    background: var(--yamaha-red);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    line-height: 1.4;
    padding: 0.28rem 0.58rem;
    z-index: 2;
}

.page-grid .page-card .card-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.4rem;
    padding: 1.2rem 1.25rem 1.35rem;
}

.page-grid .page-card .card-category {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--yamaha-red);
}

.page-grid .page-card h3 {
    font-size: 1.18rem;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: 0.4px;
    margin: 0;
    text-transform: uppercase;
    color: var(--text-primary);
}

.page-grid .page-card .card-displacement {
    font-size: 0.72rem;
    letter-spacing: 0.3px;
    color: var(--text-secondary);
    margin: 0;
}

.page-grid .page-card .card-variants {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    align-self: flex-start;
    padding: 0.18rem 0.45rem;
    background: rgba(230, 0, 18, 0.16);
    border: 1px solid rgba(230, 0, 18, 0.35);
    color: #ffb3b8;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    white-space: nowrap;
}

.page-grid .page-card .card-variants i {
    color: var(--yamaha-red);
    font-size: 0.58rem;
}

.page-grid .page-card p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.page-grid .page-card .model-btn {
    margin-top: auto;
    color: var(--yamaha-red);
    text-decoration: none;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: gap 0.25s ease;
}

.page-grid .page-card .model-btn:hover {
    gap: 0.8rem;
}

.category-view-all {
    margin-top: 1.5rem;
    text-align: center;
}

.category-empty {
    padding: clamp(2.5rem, 7vw, 4.5rem) 1.5rem;
    text-align: center;
    background: rgba(10, 10, 10, 0.55);
    border: 1px dashed rgba(255, 255, 255, 0.18);
}

.category-empty > i {
    display: block;
    color: var(--yamaha-red);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.category-empty h3 {
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.category-empty p {
    max-width: 520px;
    margin: 0 auto 1.4rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.category-empty .model-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 640px) {
    .page-grid {
        grid-template-columns: 1fr;
    }

    .page-grid .page-card .card-image {
        height: 210px;
    }
}

/* ---------- News styles (moved to CSS/news.css) ---------- */
/* ---------- Home page: category sections from database ---------- */
.category-section {
    margin-bottom: 3rem;
}

.category-title {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    margin: 0 0 1.25rem;
    padding-left: 1rem;
    border-left: 5px solid var(--yamaha-red);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7);
}
