/*
 * Pages CSS
 * PRWSolar
 */

/* ===== HERO ===== */
.hero-banner {
    position: relative;
    height: 100vh;
    height: 100svh;
    min-height: 100vh;
    overflow: hidden;
    margin-top: 0;
}

.video-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.video-background video,
.video-background img,
.video-background iframe {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    color: var(--white);
    font-size: 64px;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    overflow-wrap: anywhere;
}

.hero-subtitle {
    color: var(--white);
    font-size: 24px;
    margin-bottom: 40px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
    overflow-wrap: anywhere;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    bottom: max(30px, env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: var(--white);
    text-align: center;
}

/* ===== SOLUTIONS ===== */
.solution-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.solution-content {
    padding: 30px;
}

.solution-features {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* ===== HOME SYSTEM ===== */
.current-path {
    display: none;
}

.current-path.active {
    display: block;
}

/* ===== BLOG / NEWS ===== */
.blog-card,
.news-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.blog-content {
    padding: 30px;
}

.blog-meta {
    display: flex;
    gap: 20px;
    color: var(--gray-text);
    font-size: 14px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.blog-title a:hover {
    color: var(--primary-green);
}

.featured-post,
.featured-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.article-wrapper,
.post-header,
.article-header {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== CONTACT ===== */
.form-message {
    font-size: 14px;
}

.contact-info a:hover,
.footer-contact a:hover {
    color: var(--primary-green);
}

/* ===== FAQ ===== */
.faq-question:hover h4 {
    color: var(--primary-green);
}

/* ===== DOWNLOAD / VIDEO ===== */
.download-item,
.tool-card,
.video-card,
.support-card,
.service-card,
.feature-card,
.value-card,
.team-member,
.cert-item,
.app-card {
    transition: var(--transition);
}

.download-item:hover,
.tool-card:hover,
.video-card:hover,
.support-card:hover,
.service-card:hover,
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* ===== PAGE CONTENT COMMON ===== */
.specs-table {
    width: 100%;
}

.article-title,
.post-title {
    word-break: break-word;
    overflow-wrap: anywhere;
}

.author-bio,
.comment-item,
.related-posts,
.related-news {
    width: 100%;
}

.blog-title,
.news-card h3,
.solution-content h3,
.product-title {
    overflow-wrap: anywhere;
}

/* ===== TIMELINE ===== */
.timeline-container {
    position: relative;
}

.timeline-item h3 {
    margin-bottom: 10px;
}

/* ===== APP / CASES ===== */
.case-card,
.app-card,
.mode-card,
.cert-item,
.package-item,
.compatibility-item,
.feature-card {
    transition: var(--transition);
}

.case-card:hover,
.app-card:hover,
.mode-card:hover,
.feature-card:hover {
    transform: translateY(-5px);
}

/* ===== TABLE WRAPPERS ===== */
.specs-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.specs-table table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table table tr:last-child td {
    border-bottom: none !important;
}

/* ===== NEWSLETTER ===== */
.newsletter-box,
.help-box,
.request-box,
.subscribe-box {
    border-radius: var(--radius-lg);
}

/* ===== MODE BUTTONS ===== */
.mode-btn.active {
    background: var(--primary-green);
    color: var(--white);
}

.mode-btn {
    transition: var(--transition);
}

/* ===== PRODUCT GALLERY ===== */
.thumbnail-grid img.active {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* ===== FAQ / FORMS / VIDEO HELPERS ===== */
.video-thumbnail img {
    transition: var(--transition);
}

.video-thumbnail:hover img {
    transform: scale(1.03);
}

.video-thumbnail {
    overflow: hidden;
}

.newsletter-message,
.form-message {
    min-height: 22px;
}

/* ===== MEDIA / LAYOUT SAFETY HELPERS ===== */
.main-image img,
.blog-image img,
.news-card img,
.featured-card img,
.featured-post img,
.overview-image img,
.solution-image img,
.warranty-image img,
.map-container img {
    display: block;
}

.solution-card,
.blog-card,
.news-card,
.case-card,
.app-card,
.support-card,
.service-card,
.feature-card,
.value-card,
.team-member,
.cert-item,
.package-item,
.compatibility-item,
.download-item,
.tool-card,
.video-card {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* ===== TOUCH / HOVER SAFETY ===== */
@media (hover: none) {
    .download-item:hover,
    .tool-card:hover,
    .video-card:hover,
    .support-card:hover,
    .service-card:hover,
    .feature-card:hover,
    .case-card:hover,
    .app-card:hover,
    .mode-card:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }

    .video-thumbnail:hover img {
        transform: none;
    }
}

/* ===== REDUCED MOTION SUPPORT ===== */
@media (prefers-reduced-motion: reduce) {
    .download-item,
    .tool-card,
    .video-card,
    .support-card,
    .service-card,
    .feature-card,
    .value-card,
    .team-member,
    .cert-item,
    .app-card,
    .case-card,
    .mode-card,
    .package-item,
    .compatibility-item,
    .video-thumbnail img,
    .mode-btn {
        transition: none !important;
    }

    .download-item:hover,
    .tool-card:hover,
    .video-card:hover,
    .support-card:hover,
    .service-card:hover,
    .feature-card:hover,
    .case-card:hover,
    .app-card:hover,
    .mode-card:hover,
    .video-thumbnail:hover img {
        transform: none !important;
    }
}
.disabled-link {
    color: var(--gray-text);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: default;
    opacity: 0.75;
}