/*
Theme Name: StoryQuest
Theme URI: https://storyquest.com
Author: StoryQuest Team
Author URI: https://storyquest.com
Description: A beautiful, modern WordPress theme for StoryQuest - an interactive storytelling app for kids. Features a stunning homepage design, blog functionality, and custom page templates.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: storyquest
Tags: education, kids, storytelling, blog, custom-header, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/* This file is required by WordPress but all styles are in assets/css/ */

/* Fix breadcrumb area overlap with fixed header */
.it-breadcrumb-area {
    padding-top: 120px !important;
}

/* Page title and breadcrumbs - better visibility on light blue background */
/* Override breadcrumb background on pages */
body:not(.home) .it-breadcrumb-area {
    background-image: none !important;
    background-color: transparent !important;
}

body:not(.home) .it-breadcrumb-area .it-breadcrumb-content,
body:not(.home) .it-breadcrumb-content,
body:not(.home) .it-breadcrumb-title-box,
body:not(.home) .it-breadcrumb-list-wrap {
    position: relative;
    z-index: 1;
}

body:not(.home) .it-breadcrumb-area .it-breadcrumb-title,
body:not(.home) .it-breadcrumb-content .it-breadcrumb-title,
body:not(.home) .it-breadcrumb-title-box .it-breadcrumb-title,
body:not(.home) h3.it-breadcrumb-title,
body:not(.home) .it-breadcrumb-title,
body:not(.home) .it-breadcrumb-area h3.it-breadcrumb-title {
    color: #021316 !important;
    font-weight: 700 !important;
    text-shadow: none !important;
}

body:not(.home) .it-breadcrumb-area .it-breadcrumb-list,
body:not(.home) .it-breadcrumb-content .it-breadcrumb-list,
body:not(.home) .it-breadcrumb-list-wrap .it-breadcrumb-list,
body:not(.home) .it-breadcrumb-list span,
body:not(.home) .it-breadcrumb-list span.dvdr,
body:not(.home) .it-breadcrumb-list span a,
body:not(.home) .it-breadcrumb-area .it-breadcrumb-list span,
body:not(.home) .it-breadcrumb-area .it-breadcrumb-list span.dvdr {
    color: #021316 !important;
}

body:not(.home) .it-breadcrumb-list a,
body:not(.home) .it-breadcrumb-area .it-breadcrumb-list a {
    color: #021316 !important;
}

body:not(.home) .it-breadcrumb-list a:hover,
body:not(.home) .it-breadcrumb-area .it-breadcrumb-list a:hover {
    color: var(--it-theme-1) !important;
}

/* Page content - match homepage font styles */
.it-page-content,
.it-page-area .it-page-content,
body:not(.home) .it-page-content {
    color: var(--it-text-body) !important;
    font-family: inherit !important;
    font-size: 16px !important;
    line-height: 1.8 !important;
}

.it-page-content h1,
.it-page-content h2,
.it-page-content h3,
.it-page-content h4,
.it-page-content h5,
.it-page-content h6 {
    color: var(--it-heading-primary) !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
}

.it-page-content p {
    margin-bottom: 20px !important;
    line-height: 1.8 !important;
    font-size: 16px !important;
    color: var(--it-text-body) !important;
}

/* Ensure header has proper z-index */
.it-header-area {
    position: relative;
    z-index: 999;
}

/* Apply homepage blue background to pages and blog posts */
body:not(.home) main {
    background-color: #E7F8FE;
    min-height: 100vh;
}

/* Ensure content areas have proper background */
body:not(.home) .it-page-area,
body:not(.home) .postbox__area,
body:not(.home) .it-blog-area {
    background-color: #E7F8FE;
}

/* Support Page Styling */
.support-page-wrapper {
    padding: 40px 0;
}

.support-hero-section h1 {
    color: var(--it-heading-primary);
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.support-intro-text {
    color: var(--it-text-body);
    line-height: 1.8;
}

.support-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.support-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 5px 30px 0px rgba(2, 19, 22, 0.15) !important;
}

.support-contact-section .support-card h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.support-faq-section {
    margin-top: 60px;
}

.support-faq-section h2 {
    color: var(--it-heading-primary);
    font-size: 42px;
    font-weight: 700;
}

.support-privacy-section .support-card {
    background: var(--it-theme-2) !important;
    padding: 40px !important;
    text-align: center !important;
}

.support-privacy-section .support-card h2,
.support-privacy-section .support-card h3 {
    color: #fff !important;
    font-size: 36px !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
}

.support-privacy-section .support-card p {
    color: #fff !important;
    font-size: 16px !important;
    line-height: 1.8 !important;
    margin-bottom: 15px !important;
}

.support-privacy-section .support-card a {
    color: var(--it-theme-1) !important;
    font-weight: 600 !important;
    transition: color 0.3s ease !important;
    text-decoration: none !important;
}

.support-privacy-section .support-card a:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

/* Responsive adjustments for Support page */
@media (max-width: 991px) {
    .support-hero-section h1 {
        font-size: 36px;
    }
    
    .support-faq-section h2 {
        font-size: 32px;
    }
    
    .support-card {
        padding: 30px !important;
    }
}

@media (max-width: 767px) {
    .support-hero-section h1 {
        font-size: 28px;
    }
    
    .support-faq-section h2 {
        font-size: 26px;
    }
    
    .support-card {
        padding: 20px !important;
    }
}

/* Blog Post Sidebar Fixes */
.it-sv-details-sidebar {
    position: sticky;
    top: 120px;
}

.it-sv-details-sidebar-post-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 20px;
}

.it-sv-details-sidebar-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.it-sv-details-sidebar-post-item:hover .it-sv-details-sidebar-post-title a {
    color: var(--it-theme-1);
}

.it-sv-details-sidebar-post-thumb img {
    transition: transform 0.3s ease;
}

.it-sv-details-sidebar-post-item:hover .it-sv-details-sidebar-post-thumb img {
    transform: scale(1.1);
}

/* Blog Cards Hover Effect */
.it-blog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0px 5px 30px 0px rgba(2, 19, 22, 0.15) !important;
}

.it-blog-item:hover .it-blog-thumb img {
    transform: scale(1.1);
}

.it-blog-item .it-blog-thumb a {
    display: block;
    overflow: hidden;
}

/* Responsive Blog Section */
@media (max-width: 991px) {
    .it-sv-details-sidebar {
        position: relative;
        top: 0;
        margin-top: 50px;
    }
    
    .it-blog-area .it-section-title {
        font-size: 32px !important;
    }
}

@media (max-width: 767px) {
    .it-blog-area .it-section-title {
        font-size: 26px !important;
    }
    
    .it-blog-item .it-blog-thumb {
        height: 200px !important;
    }
}

/* Consistent Blog Image Sizing - Homepage Blog Section - Override _blog.scss */
.it-blog-2-thumb-box {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

.it-blog-2-thumb {
    width: 75% !important;
    max-width: 75% !important;
    min-width: 75% !important;
    height: 220px !important;
    overflow: hidden !important;
    border-radius: 10px !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    position: relative !important;
    text-align: center !important;
    /* Override _blog.scss inline-block */
    display: block !important;
    width: 75% !important;
    height: 220px !important;
    /* Center the mask */
    mask-position: center center !important;
    -webkit-mask-position: center center !important;
    mask-size: contain !important;
    -webkit-mask-size: contain !important;
    mask-repeat: no-repeat !important;
    -webkit-mask-repeat: no-repeat !important;
}

.it-blog-2-thumb a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
}

.it-blog-2-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Override mask positioning to center */
.it-blog-2-thumb[data-mask-src] {
    mask-position: center center !important;
    -webkit-mask-position: center center !important;
    background-position: center center !important;
}

/* Ensure dddd container centers content */
.it-blog-2-item-bg .dddd {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 30px !important;
}

/* Force thumb-box to center */
.it-blog-2-thumb-box {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    padding: 0 !important;
    margin: 0 auto !important;
}

/* Override the mask positioning - center the mask itself */
.it-blog-2-thumb[data-mask-src] {
    mask-position: center center !important;
    -webkit-mask-position: center center !important;
    background-position: center center !important;
    mask-size: contain !important;
    -webkit-mask-size: contain !important;
}

/* Consistent Blog Image Sizing - All Blog Sections */
.it-blog-thumb {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.it-blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Responsive adjustments for blog images */
@media (max-width: 991px) {
    .it-blog-2-thumb {
        height: 200px;
    }
    
    .it-blog-thumb {
        height: 220px;
    }
}

@media (max-width: 767px) {
    .it-blog-2-thumb {
        height: 200px;
    }
    
    .it-blog-thumb {
        height: 200px;
    }
}

/* Beta Page Styling */
.beta-page-wrapper {
    background-color: #E7F8FE;
}

.beta-hero-section {
    background-color: #E7F8FE !important;
}

.beta-video-section,
.beta-features-section,
.beta-testimonial-section {
    background-color: #E7F8FE !important;
}

/* Ensure hero section on beta page has proper background */
.beta-page-wrapper .it-hero-area {
    background-color: #E7F8FE !important;
}

.beta-page-wrapper .it-hero-area.grey-bg {
    background-color: #E7F8FE !important;
}

/* Fix rocket/shapes overlapping text on beta page */
.page-template-page-beta .it-hero-area .it-hero-shape-5,
.page-template-page-beta .it-hero-area .it-hero-shape-6,
.page-template-page-beta .it-hero-area .it-hero-shape-7,
.page-template-page-beta .it-hero-area .it-hero-shape-8,
.page-template-page-beta .it-hero-area .it-hero-shape-9,
.page-template-page-beta .it-hero-area .it-hero-shape-10,
.page-template-page-beta .it-hero-area .it-hero-shape-11,
.page-template-page-beta .it-hero-area .it-hero-shape-12,
.page-template-page-beta .it-hero-area .it-hero-shape-13,
.page-template-page-beta .it-hero-area .it-hero-shape-14 {
    z-index: 1 !important;
}

.page-template-page-beta .it-hero-content {
    position: relative !important;
    z-index: 10 !important;
}

/* Beta form note styling */
.beta-form-note {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 14px !important;
    margin-top: 20px !important;
    font-style: italic !important;
}

/* Orange section (CTA) improvements for beta page */
.page-template-page-beta .beta-cta-section {
    padding: 90px 0 !important;
    background: linear-gradient(135deg, var(--it-theme-1) 0%, #F59831 100%) !important;
    position: relative;
    overflow: hidden;
}

.page-template-page-beta .beta-cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
    z-index: 1;
}

.page-template-page-beta .beta-cta-section .it-cta-shape-1,
.page-template-page-beta .beta-cta-section .it-cta-shape-2 {
    position: absolute;
    opacity: 0.1;
    z-index: 1;
}

.page-template-page-beta .beta-cta-section .it-cta-shape-1 {
    top: -50px;
    left: -50px;
}

.page-template-page-beta .beta-cta-section .it-cta-shape-2 {
    bottom: -50px;
    right: -50px;
}

.page-template-page-beta .beta-cta-section .it-cta-content {
    position: relative;
    z-index: 2;
    max-width: 100% !important;
    width: 100% !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.page-template-page-beta .beta-cta-section .it-cta-content * {
    text-align: center !important;
}

.page-template-page-beta .beta-cta-section .col-xl-12,
.page-template-page-beta .beta-cta-section .col-xl-10,
.page-template-page-beta .beta-cta-section .col-lg-11 {
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
}

.page-template-page-beta .beta-cta-section .row {
    justify-content: center !important;
}

.page-template-page-beta .beta-cta-section p.beta-cta-text {
    text-align: center !important;
    text-indent: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.page-template-page-beta .beta-cta-section .container {
    max-width: 100% !important;
}

.page-template-page-beta .beta-cta-section .col-xl-10 {
    max-width: 100% !important;
    width: 100% !important;
}

.page-template-page-beta .beta-cta-section .beta-cta-heading,
.page-template-page-beta .beta-cta-section .it-cta-title {
    color: #fff !important;
    font-size: 48px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    text-shadow: 0 2px 15px rgba(0,0,0,0.15);
    margin-bottom: 20px !important;
    padding: 0 !important;
    display: block !important;
}

.page-template-page-beta .beta-cta-section .beta-cta-heading br {
    display: block !important;
}

.page-template-page-beta .beta-cta-section .beta-cta-text,
.page-template-page-beta .beta-cta-section p.beta-cta-text,
.page-template-page-beta .it-cta-content .beta-cta-text,
.page-template-page-beta .it-cta-content p.beta-cta-text {
    color: rgba(255,255,255,0.95) !important;
    font-size: 18px !important;
    white-space: nowrap !important;
    margin: 0 auto 35px auto !important;
    line-height: 1.6 !important;
    padding: 0 !important;
    overflow: visible !important;
    text-overflow: clip !important;
    display: block !important;
    width: 100% !important;
    text-align: center !important;
}

.page-template-page-beta .beta-cta-button {
    margin-top: 0 !important;
    padding: 0 !important;
}

.page-template-page-beta .beta-cta-btn,
.page-template-page-beta .beta-cta-button a,
.page-template-page-beta .beta-cta-button .beta-cta-btn,
.page-template-page-beta .it-cta-content .beta-cta-btn,
.page-template-page-beta .it-cta-content a.beta-cta-btn {
    background: #fff !important;
    color: var(--it-theme-1) !important;
    padding: 18px 50px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3) !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    text-decoration: none !important;
    border: 2px solid transparent !important;
    line-height: 1.5 !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
}

.page-template-page-beta .beta-cta-btn:hover,
.page-template-page-beta .beta-cta-button a:hover,
.page-template-page-beta .beta-cta-button .beta-cta-btn:hover {
    background: rgba(255,255,255,0.95) !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 35px rgba(0,0,0,0.4) !important;
    color: var(--it-theme-1) !important;
    text-decoration: none !important;
}

@media (max-width: 991px) {
    .page-template-page-beta .beta-cta-section .beta-cta-text {
        white-space: normal !important;
        font-size: 16px !important;
    }
}

@media (max-width: 767px) {
    .page-template-page-beta .beta-cta-section {
        padding: 70px 0 !important;
    }
    
    .page-template-page-beta .beta-cta-section .it-cta-title {
        font-size: 32px !important;
        line-height: 1.3 !important;
    }
    
    .page-template-page-beta .beta-cta-section .beta-cta-text {
        font-size: 15px !important;
        margin-bottom: 30px !important;
        white-space: normal !important;
    }
    
    .page-template-page-beta .beta-cta-btn {
        padding: 16px 40px !important;
        font-size: 16px !important;
    }
}

/* Hide rocket completely on beta page */
.page-template-page-beta .beta-rocket,
.page-template-page-beta .it-hero-shape-5 {
    display: none !important;
    visibility: hidden !important;
}

@media (max-width: 991px) {
    .page-template-page-beta .beta-cta-section .it-cta-title {
        font-size: 36px !important;
    }
    
    .page-template-page-beta .beta-cta-section p {
        font-size: 18px !important;
    }
}

.beta-sticky-button {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--it-theme-2);
    padding: 20px;
    text-align: center;
    z-index: 999;
    box-shadow: 0px -5px 20px 0px rgba(2, 19, 22, 0.2);
    display: none;
    transition: transform 0.3s ease;
}

.beta-sticky-button.show {
    display: block;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.beta-sticky-btn {
    background: #fff !important;
    color: var(--it-theme-2) !important;
    border: none;
}

.beta-sticky-btn:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--it-theme-2) !important;
}

.beta-video-placeholder {
    background: #f5f5f5;
    border-radius: 10px;
    padding: 100px 20px;
    margin-bottom: 30px;
    border: 2px dashed #ddd;
}

/* Responsive adjustments for Beta page */
@media (max-width: 991px) {
    .beta-hero-section h1 {
        font-size: 42px !important;
    }
    
    .beta-hero-subtitle {
        font-size: 20px !important;
    }
}

@media (max-width: 767px) {
    .beta-hero-section h1 {
        font-size: 32px !important;
    }
    
    .beta-hero-subtitle {
        font-size: 18px !important;
    }
    
    .beta-testimonial-text {
        font-size: 22px !important;
    }
    
    .beta-sticky-button {
        padding: 15px;
    }
}

