/* Global Styles */
:root {
    --primary-color: #BDE0FE;    /* Light Blue */
    --secondary-color: #A2D2FF;  /* Sky Blue */
    --accent-color: #CDB4DB;     /* Purple */
    --highlight-color: #FFC8DD;  /* Pink */
    --surface-color: #FFFFFF;    /* White */
    --text-color: #333333;       /* Dark Gray */
    --background-color: var(--primary-color);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* RTL/LTR Support */
body.rtl {
    direction: rtl;
}

body.ltr {
    direction: ltr;
}

/* Navigation */
.navbar {
    background-color: var(--surface-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.logo a {
    display: block;
    cursor: pointer;
}

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
    max-width: 300px;
}

.nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--surface-color);
    padding: 1.2rem;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-links.mobile-menu-open {
    display: flex;
}

.nav-items {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s ease;
    white-space: nowrap;
    font-size: 0.95rem;
}

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

.nav-link.active {
    color: var(--accent-color);
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 3px;
}

/* Language Toggle Button */
.language-toggle {
    background: none;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 0.25rem 0.6rem;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.language-toggle:hover {
    background-color: var(--accent-color);
    color: var(--surface-color);
    transform: translateY(-1px);
}

.nav-link.btn-login {
    background-color: var(--secondary-color);
    color: var(--surface-color);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-align: center;
    margin-top: 0.5rem;
    display: inline-block;
    min-width: auto;
}

.nav-link.btn-login:hover {
    background-color: var(--highlight-color);
    color: var(--text-color);
    transform: translateY(-2px);
}

.nav-link[href*="create-story"] {
    background-color: var(--accent-color);
    color: var(--surface-color);
    padding: 0.5rem 1rem;
    border-radius: 16px;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-decoration: none;
    margin-top: 0.5rem;
}

.nav-link[href*="create-story"]:hover {
    background-color: var(--highlight-color);
    color: var(--text-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    z-index: 2;
    transition: color 0.3s ease;
}

.mobile-menu-btn:hover {
    color: var(--accent-color);
}

/* RTL/LTR specific adjustments */
.rtl .logo {
    left: 50%;
    transform: translateX(-50%);
}

.rtl .nav-link.active::after {
    right: auto;
    left: 0;
}

/* Hero Section */
.hero {
    padding: 8rem 2rem 5rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-color);
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to bottom, transparent, rgba(224, 247, 254, 0.5));
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
    font-size: 4.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease;
    margin: 0.5rem;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--surface-color);
}

.btn-secondary {
    background-color: var(--highlight-color);
    color: var(--text-color);
}

/* Features Section */
.features {
    padding: 5rem 2rem 6rem;
    text-align: center;
    background-color: #f7f9ff;
    position: relative;
    z-index: 1;
}

.features::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, transparent, rgba(249, 244, 255, 0.5));
}

.features h2 {
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-box {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-10px);
}

.feature-box i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* How it Works Section */
.how-it-works {
    padding: 5rem 2rem 6rem;
    background-color: var(--primary-color);
    text-align: center;
    color: var(--text-color);
    background: linear-gradient(135deg, #e0f7fe 0%, #d6e8ff 100%);
    position: relative;
}

.how-it-works::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.8));
}

.how-it-works h2 {
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.step {
    background: var(--surface-color);
    padding: 2rem 1.5rem;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.step:hover {
    transform: translateY(-10px);
}

.step-number {
    width: 45px;
    height: 45px;
    background-color: var(--accent-color);
    color: var(--surface-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.step h3 {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.step p {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.5;
}

/* CTA Section */
.cta {
    padding: 4rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--highlight-color) 0%, var(--accent-color) 100%);
    color: var(--text-color);
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 2rem 1rem 0.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.footer-section h4 {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.footer-section h4.follow-us-title {
    margin-top: 1rem;
}

.footer-section a {
    color: var(--text-color);
    text-decoration: none;
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1.2rem;
    margin-top: 0.8rem;
}

.social-links a {
    font-size: 1.3rem;
    transition: transform 0.2s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .steps-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }
    
    .logo img {
        height: 45px;
        max-width: 180px;
    }
    
    .mobile-menu-btn {
        font-size: 1.3rem;
    }

    .nav-link.active::after {
        display: none;
    }

    .hero h1 {
        font-size: 3.2rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .features-grid,
    .steps-container {
        grid-template-columns: 1fr;
    }

    .btn {
        display: block;
        margin: 1rem auto;
        max-width: 300px;
    }

    .steps-container {
        grid-template-columns: 1fr;
        padding: 0.5rem;
    }

    .step {
        padding: 1.8rem 1.2rem;
    }

    .footer {
        padding: 1.5rem 1rem 0.5rem;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }

    .footer-section a {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }

    .social-links {
        gap: 1rem;
    }

    .social-links a {
        font-size: 1.2rem;
    }

    .footer-bottom {
        margin-top: 1.5rem;
        font-size: 0.85rem;
    }

    /* RTL mobile adjustments - already handled in main RTL styles */
}

.story-step-example {
    padding: 5rem 2rem 6rem;
    text-align: center;
    background-color: #ffffff;
    max-width: 100%;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.03);
    position: relative;
}

.story-step-example::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, transparent, rgba(205, 180, 219, 0.1));
    z-index: 2;
}

.story-step-example h2 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: var(--text-color);
}

.story-carousel {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.story-carousel-container {
    display: flex;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.story-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.story-slide.active {
    opacity: 1;
    z-index: 1;
}

.image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.story-step-example-img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.story-step-example-img:hover {
    transform: scale(1.02);
}

.carousel-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.carousel-dots .dot {
    height: 15px;
    width: 15px;
    margin: 0 8px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.carousel-dots .dot.active {
    background-color: var(--accent-color);
    transform: scale(1.3);
}

.carousel-dots .dot:hover {
    background-color: var(--highlight-color);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .story-step-example {
        padding: 3rem 1rem;
    }
    
    .story-carousel-container {
        height: auto;
    }
    
    .image-wrapper {
        padding: 10px;
    }
    
    .story-step-example-img {
        max-height: 400px;
    }
    
    .carousel-dots .dot {
        width: 12px;
        height: 12px;
        margin: 0 6px;
    }
}

@media (max-width: 480px) {
    .story-step-example {
        padding: 2rem 0.5rem;
    }
    
    .story-carousel {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    .image-wrapper {
        padding: 5px;
    }
    
    .story-step-example-img {
        max-height: 300px;
        border-radius: 8px;
    }
    
    .story-step-example-img:hover {
        transform: none;
    }
    
    .carousel-dots .dot {
        width: 12px;
        height: 12px;
        margin: 0 6px;
    }
    
    .logo img {
        height: 40px;
        max-width: 150px;
    }
    
    .nav-container {
        padding: 0.8rem 1rem;
    }
    
    .mobile-menu-btn {
        font-size: 1.2rem;
    }

    .hero h1 {
        font-size: 3.2rem;
    }
}

/* About Us Page */
.about-us-container {
    max-width: 900px;
    margin: 7rem auto 2rem;
    background: var(--surface-color);
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(173, 127, 168, 0.10);
    padding: 2.5rem 1.5rem 2rem;
    text-align: center;
}
.about-header h1 {
    color: var(--accent-color);
    font-size: 2.3rem;
    margin-bottom: 0.7rem;
}
.about-mission {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 2.2rem;
}
.about-team h2 {
    color: var(--highlight-color);
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}
.team-grid {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}
.team-member {
    background: var(--secondary-color);
    border-radius: 18px;
    padding: 1.2rem 1rem;
    box-shadow: 0 2px 8px rgba(173, 127, 168, 0.10);
    width: 170px;
    text-align: center;
}
.team-member img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-bottom: 0.7rem;
    background: var(--highlight-color);
    object-fit: cover;
}
.team-member h3 {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}
.team-member p {
    color: var(--text-color);
    font-size: 0.98rem;
}

/* Contact Us Page */
.contact-container {
    max-width: 500px;
    margin: 7rem auto 2rem;
    background: var(--surface-color);
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(173, 127, 168, 0.10);
    padding: 2.5rem 1.5rem 2rem;
}
.contact-header h1 {
    color: var(--accent-color);
    font-size: 2.1rem;
    margin-bottom: 0.7rem;
    text-align: center;
}
.contact-intro {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-align: center;
}
.contact-form .form-group {
    margin-bottom: 1.3rem;
}
.contact-form label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--accent-color);
    font-weight: 600;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.7rem;
    border: 2px solid var(--highlight-color);
    border-radius: 10px;
    font-size: 1rem;
    margin-bottom: 0.2rem;
    transition: border 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent-color);
    outline: none;
}
.contact-form button {
    width: 100%;
    margin-top: 0.5rem;
}

/* FAQ Page */
.faq-container {
    max-width: 700px;
    margin: 7rem auto 2rem;
    background: var(--surface-color);
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(173, 127, 168, 0.10);
    padding: 2.5rem 1.5rem 2rem;
}
.faq-header h1 {
    color: var(--accent-color);
    font-size: 2.1rem;
    margin-bottom: 0.7rem;
    text-align: center;
}
.faq-intro {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-align: center;
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
}
.faq-item {
    background: var(--secondary-color);
    border-radius: 15px;
    padding: 1.2rem 1rem;
    box-shadow: 0 2px 8px rgba(173, 127, 168, 0.08);
}
.faq-item h2 {
    color: var(--surface-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.faq-item p {
    color: var(--text-color);
    font-size: 1rem;
}

/* Terms Page */
.terms-container {
    max-width: 700px;
    margin: 7rem auto 2rem;
    background: var(--surface-color);
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(173, 127, 168, 0.10);
    padding: 2.5rem 1.5rem 2rem;
}
.terms-header h1 {
    color: var(--accent-color);
    font-size: 2.1rem;
    margin-bottom: 0.7rem;
    text-align: center;
}
.terms-intro {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-align: center;
}
.terms-list ul {
    list-style: disc inside;
    color: var(--highlight-color);
    font-size: 1.05rem;
    padding-right: 1.2rem;
    margin: 0 auto;
    max-width: 90%;
}
.terms-list li {
    color: var(--text-color);
    margin-bottom: 0.7rem;
    background: var(--secondary-color);
    border-radius: 10px;
    padding: 0.7rem 1rem;
    box-shadow: 0 1px 4px rgba(173, 127, 168, 0.07);
}

/* Privacy Policy Page */
.privacy-container {
    max-width: 700px;
    margin: 7rem auto 2rem;
    background: var(--surface-color);
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(173, 127, 168, 0.10);
    padding: 2.5rem 1.5rem 2rem;
    margin-top: 0;
    margin-bottom: 2.5rem;
}
.privacy-header h1 {
    color: var(--accent-color);
    font-size: 2.1rem;
    margin-bottom: 0.7rem;
    text-align: center;
}
.privacy-intro {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-align: center;
}
.privacy-list ul {
    list-style: disc inside;
    color: var(--highlight-color);
    font-size: 1.05rem;
    padding-right: 1.2rem;
    margin: 0 auto;
    max-width: 90%;
}
.privacy-list li {
    color: var(--text-color);
    margin-bottom: 0.7rem;
    background: var(--secondary-color);
    border-radius: 10px;
    padding: 0.7rem 1rem;
    box-shadow: 0 1px 4px rgba(173, 127, 168, 0.07);
}

@media (max-width: 768px) {
    .about-us-container,
    .contact-container,
    .faq-container,
    .terms-container,
    .privacy-container {
        padding: 1.2rem 0.3rem 1.2rem;
        margin: 5.5rem 0.2rem 1.2rem;
        border-radius: 18px;
    }
    .team-grid {
        gap: 1.2rem;
    }
    .page-bg-secondary {
        min-height: unset;
        padding: 0;
        padding-top: 80px;
    }
    .privacy-container {
        margin-top: 0;
        margin-bottom: 1.2rem;
    }
}

.page-bg-secondary {
    background: var(--secondary-color);
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 110px;
}

/* User Profile Styles */
.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-name {
    font-weight: 600;
    color: var(--text-color);
}

.btn-logout {
    background-color: var(--accent-color);
    color: var(--surface-color);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background-color: var(--highlight-color);
    color: var(--text-color);
    transform: translateY(-2px);
}

/* Mobile Responsiveness for User Profile */
@media (max-width: 768px) {
    .user-profile {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Reading Benefits Section */
.reading-benefits {
    padding: 5rem 0 6rem;
    background-color: #f9f4ff;
    text-align: center;
    position: relative;
    z-index: 1;
}

.benefits-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.benefits-content h2 {
    margin-bottom: 40px;
    color: #6a1b9a;
    font-size: 2.2rem;
}

.benefits-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.benefit-item {
    display: flex;
    text-align: right;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.benefit-icon {
    flex: 0 0 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #9c27b0;
    margin-left: 20px;
}

.benefit-text {
    flex: 1;
}

/* RTL text alignment for Hebrew */
html[lang="he"] .benefit-text {
    text-align: right;
    direction: rtl;
}

/* LTR text alignment for English */
html:not([lang="he"]) .benefit-text {
    text-align: left;
    direction: ltr;
}

.benefit-text h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #6a1b9a;
    font-size: 1.4rem;
}

.benefit-text p {
    margin: 0;
    line-height: 1.6;
    color: #555;
}

/* Responsive Styling */
@media (min-width: 768px) {
    .benefits-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .benefit-item {
        flex-direction: column;
        text-align: center;
        height: 100%;
    }
    
    .benefit-icon {
        margin: 0 auto 15px;
    }
}

@media (max-width: 767px) {
    .benefit-item {
        flex-direction: row;
        align-items: center;
    }
    
    .benefit-icon {
        padding-top: 5px;
    }
    
    .benefits-content h2 {
        font-size: 1.8rem;
    }
    
    .benefit-text h3 {
        font-size: 1.2rem;
    }
}

/* Blog Preview Section */
.blog-preview {
    background-color: #f8f9fa;
    padding: 4rem 0;
}

.blog-preview h2 {
    text-align: center;
    color: #9c27b0;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.blog-preview p {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.blog-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 3rem auto;
}

.blog-preview .blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-preview .blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    text-decoration: none;
    color: inherit;
}

.blog-preview .blog-card-image {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}

.blog-preview .blog-card-image.interactive {
    background: linear-gradient(45deg, #4caf50, #8bc34a);
}

.blog-preview .blog-card-image.parents {
    background: linear-gradient(45deg, #ff9800, #ffc107);
}

.blog-preview .blog-card-image.ai-safety {
    background: linear-gradient(45deg, #2196f3, #03a9f4);
}

.blog-preview .blog-card-image.story-ideas {
    background: linear-gradient(45deg, #e91e63, #f06292);
}

.blog-preview .blog-card-content {
    padding: 1.5rem;
}

.blog-preview .blog-card-content h3 {
    color: #9c27b0;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.blog-preview .blog-card-content p {
    color: #666;
    line-height: 1.5;
    margin: 0;
    text-align: left;
}

.blog-preview .btn {
    display: block;
    text-align: center;
    max-width: 200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .blog-preview {
        padding: 3rem 0;
    }
    
    .blog-preview h2 {
        font-size: 2rem;
    }
    
    .blog-preview p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .blog-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
        max-width: 400px;
    }
    
    .blog-preview .blog-card {
        max-width: 100%;
        height: auto;
    }
    
    .blog-preview .blog-card-image {
        height: 120px;
        font-size: 2rem;
    }
    
    .blog-preview .blog-card-content {
        padding: 1.2rem;
    }
    
    .blog-preview .blog-card-content h3 {
        font-size: 1.1rem;
        line-height: 1.4;
    }
    
    .blog-preview .blog-card-content p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .blog-cards {
        max-width: 300px;
    }
    
    .blog-preview .blog-card-image {
        height: 100px;
    }
    
    .blog-preview .blog-card-content {
        padding: 1rem;
    }
    
    .blog-preview .blog-card-content h3 {
        font-size: 1rem;
    }
    
    .blog-preview .blog-card-content p {
        font-size: 0.85rem;
        line-height: 1.3;
    }
}

/* Mid-Page CTA Section */
.mid-page-cta {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--highlight-color) 100%);
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.mid-page-cta::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, transparent, rgba(247, 249, 255, 0.3));
    z-index: 2;
}

.mid-cta-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.mid-cta-content {
    color: var(--surface-color);
    z-index: 2;
    position: relative;
}

.mid-cta-content h2 {
    font-size: 2.3rem;
    margin-bottom: 1rem;
}

.mid-cta-content p {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.mid-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.mid-cta-buttons .btn {
    padding: 0.9rem 2.5rem;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .mid-page-cta {
        padding: 2.5rem 1.5rem;
    }
    
    .mid-cta-content h2 {
        font-size: 1.8rem;
    }
    
    .mid-cta-content p {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .mid-cta-buttons .btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

/* Home Pricing Section */
.home-pricing {
    padding: 5rem 2rem;
    background-color: var(--primary-color);
    text-align: center;
}

.home-pricing-container {
    max-width: 1200px;
    margin: 0 auto;
}

.home-pricing h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.home-pricing-intro {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.home-pricing-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.home-pricing-card {
    background-color: var(--surface-color);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    padding: 2rem 1.5rem;
    width: 280px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.home-pricing-card.popular {
    transform: scale(1.05);
    border: 2px solid var(--highlight-color);
}

.home-pricing-card.popular:hover {
    transform: translateY(-10px) scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -12px;
    right: 50%;
    transform: translateX(50%);
    background-color: var(--highlight-color);
    color: var(--text-color);
    font-weight: bold;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.home-pricing-card .card-header {
    margin-bottom: 1.5rem;
}

.home-pricing-card h3 {
    font-size: 1.6rem;
    color: var(--accent-color);
    margin-bottom: 0.8rem;
}

.home-pricing-card .price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-color);
}

.home-pricing-card .price span {
    font-size: 1rem;
    font-weight: normal;
    opacity: 0.7;
}

.card-features ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    text-align: right;
}

.card-features li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.card-features li i {
    color: #51cf66;
    margin-left: 0.8rem;
    font-size: 1rem;
}

.btn-home-pricing {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--surface-color);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-home-pricing:hover {
    background-color: var(--highlight-color);
    color: var(--text-color);
    transform: translateY(-3px);
}

.home-pricing-more {
    margin-top: 1.5rem;
}

.pricing-link {
    color: var(--text-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.pricing-link:hover {
    color: var(--accent-color);
}

.pricing-link i {
    margin-right: 0.4rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .home-pricing {
        padding: 4rem 1.5rem;
    }
    
    .home-pricing h2 {
        font-size: 2rem;
    }
    
    .home-pricing-intro {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
    }
    
    .home-pricing-cards {
        gap: 1.5rem;
    }
    
    .home-pricing-card {
        width: 100%;
        max-width: 300px;
    }
    
    .home-pricing-card.popular {
        transform: none;
    }
    
    .home-pricing-card.popular:hover {
        transform: translateY(-10px);
    }
}

/* Accessibility Page Styles */
.accessibility-container {
    max-width: 800px;
    margin: 7rem auto 2rem;
    background: var(--surface-color);
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(173, 127, 168, 0.10);
    padding: 2.5rem 2rem;
}

.accessibility-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.accessibility-header h1 {
    color: var(--accent-color);
    font-size: 2.3rem;
}

.text-size-controls {
    display: flex;
    gap: 0.5rem;
}

.text-size-controls button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: var(--secondary-color);
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
}

.text-size-controls button:hover {
    background-color: var(--accent-color);
    color: var(--surface-color);
    transform: scale(1.1);
}

.accessibility-intro {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    color: var(--text-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 1.5rem;
}

.accessibility-content {
    line-height: 1.8;
}

.accessibility-content h2 {
    color: var(--highlight-color);
    font-size: 1.6rem;
    margin: 1.5rem 0 1rem;
}

.accessibility-content p {
    margin-bottom: 1rem;
}

.accessibility-content ul {
    list-style-type: disc;
    padding-right: 1.5rem;
    margin-bottom: 1.5rem;
}

.accessibility-content li {
    margin-bottom: 0.5rem;
}

.accessibility-contact-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--accent-color);
    font-weight: bold;
    text-decoration: none;
    transition: color 0.2s;
}

.accessibility-contact-link:hover {
    color: var(--highlight-color);
    text-decoration: underline;
}

/* Large Text Mode */
.large-text-mode .accessibility-content {
    font-size: 130%;
}

.large-text-mode .accessibility-content h2 {
    font-size: 2rem;
}

/* Responsive styles for accessibility page */
@media (max-width: 768px) {
    .accessibility-container {
        margin: 5.5rem 1rem 1.5rem;
        padding: 1.5rem 1rem;
        border-radius: 20px;
    }
    
    .accessibility-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .accessibility-header h1 {
        font-size: 1.8rem;
    }
    
    .text-size-controls {
        align-self: flex-end;
    }
    
    .accessibility-intro {
        font-size: 1.1rem;
    }
    
    .accessibility-content h2 {
        font-size: 1.4rem;
    }
}

/* Blog Styles */
.blog-content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.blog-content h1 {
    font-size: 2.2rem;
    color: #9c27b0;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #f7c331;
    padding-bottom: 0.5rem;
}

.blog-content h2 {
    font-size: 1.8rem;
    color: #9c27b0;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.blog-content ul, .blog-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.blog-content li {
    margin-bottom: 0.5rem;
}

.blog-hero {
    background: linear-gradient(135deg, #a5d8ff 0%, #748ffc 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-top: 76px;
}

.blog-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.blog-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    color: white;
}

.blog-nav {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
    flex-wrap: wrap;
    padding: 0 1rem;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
}

.blog-nav a {
    margin: 0.5rem;
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.blog-nav a:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.blog-nav a.active {
    background-color: white;
    color: #9c27b0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Blog article specific styles */
.benefit-list {
    list-style-type: none;
    padding-left: 0;
}

.benefit-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 1rem;
}

.benefit-list li::before {
    content: "✔️";
    position: absolute;
    left: 0;
    color: #9c27b0;
}

.parent-tip {
    background-color: #fff3e0;
    border-left: 4px solid #f7c331;
    padding: 1rem;
    margin: 2rem 0;
    border-radius: 0 5px 5px 0;
    box-shadow: 0 2px 8px rgba(255, 143, 0, 0.1);
}

.parent-tip h3 {
    color: #e65100;
    margin-top: 0;
}

.feature-section {
    margin: 3rem 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.5rem;
}

.feature-card {
    flex: 1 1 45%;
    padding: 1.5rem;
    border-radius: 10px;
    background-color: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #9c27b0;
}

/* Safety features styling */
.safety-feature {
    background-color: #f9f9f9;
    border-left: 4px solid #9c27b0;
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0 5px 5px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.safety-feature h3 {
    color: #9c27b0;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.safety-icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
    color: #9c27b0;
}

.safety-list {
    list-style-type: none;
    padding-left: 0;
}

.safety-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 1rem;
}

.safety-list li::before {
    position: absolute;
    left: 0;
    color: #9c27b0;
}

.shield::before {
    content: "🛡️";
}

.brain::before {
    content: "🧠";
}

.art::before {
    content: "🎨";
}

.family::before {
    content: "👨‍👩‍👧‍👦";
}

/* Story ideas styling */
.story-idea {
    background-color: #f9f9f9;
    border-left: 4px solid #9c27b0;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 5px 5px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.story-idea h3 {
    color: #9c27b0;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.story-idea p {
    margin-bottom: 0.5rem;
}

.story-idea .story-details {
    margin-top: 1rem;
    font-style: italic;
}

.story-idea .story-result {
    margin-top: 0.5rem;
    font-weight: bold;
}

.emoji-bullet {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.story-choice {
    display: flex;
    margin-bottom: 1rem;
    align-items: center;
}

.story-choice .color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 1rem;
    flex-shrink: 0;
}

.story-choice .blue-dot {
    background-color: #1e88e5;
}

.story-choice .yellow-dot {
    background-color: #fdd835;
}

.story-choice .green-dot {
    background-color: #43a047;
}

.story-choice-content {
    flex: 1;
}

.story-choice-content p {
    margin: 0.25rem 0;
}

.story-choice-content .choice-result {
    font-style: italic;
    color: #555;
}

/* Social sharing section */
.social-sharing {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.social-sharing h4 {
    color: #9c27b0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-decoration: none;
}

.share-btn.facebook {
    background-color: #1877f2;
    color: white;
}

.share-btn.twitter {
    background-color: #1da1f2;
    color: white;
}

.share-btn.linkedin {
    background-color: #0077b5;
    color: white;
}

.share-btn.email {
    background-color: #6c757d;
    color: white;
}

/* Contact section on AI safety page */
.contact-section {
    background-color: #f0e6f5;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
    text-align: center;
}

/* Blog responsive styles */
@media (max-width: 768px) {
    .blog-hero {
        padding: 2rem 0;
    }
    
    .blog-hero h1 {
        font-size: 2rem;
    }
    
    .blog-hero p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .blog-content {
        padding: 1.5rem;
        margin: 1rem;
        border-radius: 10px;
    }
    
    .blog-content h1 {
        font-size: 1.8rem;
    }
    
    .blog-content h2 {
        font-size: 1.5rem;
    }
    
    .blog-nav {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .blog-nav a {
        flex: 0 0 auto;
        white-space: nowrap;
    }
    
    .feature-section {
        flex-direction: column;
    }
    
    .feature-card {
        flex: 1 1 100%;
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .share-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}

/* Section CTA styling */
.section-cta {
    text-align: center;
    margin-top: 2rem;
}

.section-cta .btn {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(156, 39, 176, 0.4);
}

@media (max-width: 768px) {
    .section-cta {
        margin-top: 1.5rem;
    }
    
    .section-cta .btn {
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
    }
} 