/* Common CSS for Book Landing Pages - Christmas Theme */
/* This file contains reusable styles for all book download landing pages */

/* Landing page specific styles */

/* Ensure header has white background like other pages */
.main-header .header-lower {
    background-color: #ffffff !important;
}

/* Modern container system */
.content-wrapper {
    min-height: calc(100vh - 200px); /* Reduce to account for header/footer */
    padding: 60px 0 20px 0; /* Reduce bottom padding */
    position: relative;
}

/* Main content container with modern responsive design */
.book-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);

    /* Modern responsive container */
    width: 100%;
    max-width: 1140px;
    /* Bootstrap xl container */
    margin: 0 auto;
    text-align: center;
    padding: 30px 40px;
    color: #2c3e50;
}

/* Content grid layout */
.content-grid {
    display: grid;
    gap: 40px;
    grid-template-columns: 1fr;
    align-items: start;
}

/* Clean H1 title styling */
.main-title {
    color: #2c3e50;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 600;
    text-align: center;
    margin: 0 0 3rem 0;
    line-height: 1.3;
    font-family: 'Nunito', sans-serif;
}

/* Video section with modern styling */
.video-container {
    margin: 3rem auto;
    max-width: 700px;
    position: relative;
}

/* Story description styling */
.story-description {
    margin: 3rem 0;
    width: 100%;
}

.magical-greeting {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.08) 0%, rgba(192, 57, 43, 0.08) 100%);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    border: 2px solid rgba(231, 76, 60, 0.15);
    position: relative;
    overflow: hidden;
}

.magical-greeting::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.03) 0%, transparent 70%);
    animation: magical-shimmer 6s ease-in-out infinite;
}

@keyframes magical-shimmer {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
}

.magical-greeting h2 {
    color: #c41e3a;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    font-family: 'Mountains of Christmas', cursive;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
}

.greeting-text {
    position: relative;
    z-index: 2;
}

.greeting-text p {
    color: #2c3e50;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: left;
    font-family: 'Nunito', sans-serif;
}

.greeting-text p:first-child {
    font-size: 1.3rem;
    font-weight: 600;
    color: #c41e3a;
    text-align: center;
    margin-bottom: 2rem;
}

.greeting-text strong {
    color: #c41e3a;
    font-weight: 700;
}

.greeting-text em {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    padding: 15px;
    border-radius: 20px;
    font-style: normal;
    font-weight: 600;
    display: inline-block;
    width: 100%;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.signature {
    text-align: center !important;
    font-style: italic;
    color: #8e44ad !important;
    font-weight: 600 !important;
    margin-top: 2rem !important;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(231, 76, 60, 0.2);
    font-size: 1.2rem !important;
}

/* Story images carousel layout */
.story-images-section {
    margin: 4rem 0;
    width: 100%;
}

.story-carousel {
    margin: 0 auto;
    max-width: 900px;
}

.story-image-slide {
    padding: 0 10px;
    text-align: center;
}

.story-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 auto;
    display: block;
}

.story-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Owl Carousel custom styling for story images */
.story-carousel.owl-carousel .owl-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modern CTA button */
.download-button {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 3rem auto 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
    position: relative;
    overflow: hidden;
    min-width: 280px;
}

.download-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.download-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(231, 76, 60, 0.4);
    text-decoration: none;
    color: white;
}

.download-button:hover::before {
    left: 100%;
}

/* Modern book cover styling */
.book-cover {
    max-width: 320px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    margin: 3rem auto;
    transition: transform 0.3s ease;
}

.book-cover:hover {
    transform: scale(1.05);
}

/* Sponsors section styling */
.sponsors-section {
    margin: 4rem 0 1rem 0;
    text-align: center;
}

/* CTA section positioning - close to sponsors */
.cta-section {
    margin-top: 1rem;
    text-align: center;
}

.sponsors-title {
    color: #2c3e50;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 600;
    margin-bottom: 2rem;
    line-height: 1.4;
    font-family: 'Nunito', sans-serif;
}

.sponsors-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.sponsor-logo {
    flex: 0 0 150px;
    max-width: 150px;
}

.sponsor-image {
    width: 150px;
    height: 100px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    padding: 10px;
}

.sponsor-image:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.sponsors-note {
    color: #7f8c8d;
    font-size: 1rem;
    font-style: italic;
    font-family: 'Nunito', sans-serif;
}

/* Sponsor description styling */
.sponsor-logo small {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #c41e3a;
    font-weight: 600;
    text-align: center;
    font-family: 'Nunito', sans-serif;
    line-height: 1.3;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.sponsor-logo:hover small {
    opacity: 1;
}

/* Comprehensive mobile-first responsive design */

/* Large tablets and small laptops */
@media (max-width: 1199px) {
    .book-content {
        max-width: 960px;
        padding: 50px 30px;
    }
}

/* Tablets */
@media (max-width: 991px) {
    .book-content {
        max-width: 720px;
        padding: 40px 25px;
        margin: 20px;
        border-radius: 15px;
    }

    .content-grid {
        gap: 30px;
    }

    .video-container {
        max-width: 100%;
    }

    .book-features {
        padding: 2.5rem 1.5rem;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 30px 0;
    }

    .book-content {
        max-width: 100%;
        margin: 15px;
        padding: 30px 20px;
        border-radius: 15px;
        /* Remove complex padding calculation on mobile */
        padding-left: 20px;
        padding-right: 20px;
    }

    .content-grid {
        gap: 25px;
    }

    /* Story carousel mobile layout */
    .story-images-section {
        margin: 2rem 0;
    }
    
    .story-image {
        width: 150px;
        height: 150px;
    }

    .main-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .video-container {
        margin: 20px 0;
    }

    /* Story description mobile styling */
    .story-description {
        margin: 2rem 0;
    }

    .magical-greeting {
        padding: 2rem 1.5rem;
        margin: 0 -10px;
    }

    .greeting-text p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 1.2rem;
    }

    .greeting-text p:first-child {
        font-size: 1.2rem;
    }

    /* Sponsors section mobile styling */
    .sponsors-section {
        margin: 3rem 0 1rem 0;
    }

    .sponsors-grid {
        gap: 15px;
    }

    .sponsor-logo {
        flex: 0 0 calc(50% - 7.5px);
        max-width: calc(50% - 7.5px);
    }

    .sponsor-image {
        width: 100%;
        height: 80px;
    }

    .book-features {
        margin: 2rem 0;
        padding: 2rem 1.5rem;
    }

    .feature-item {
        padding: 0.8rem;
        margin: 1rem 0;
        font-size: 1rem;
    }

    .feature-item:hover {
        transform: none;
        /* Disable transform on mobile */
    }

    .feature-icon {
        font-size: 1.6rem;
        margin-right: 1rem;
        min-width: 2.5rem;
    }

    .download-button {
        padding: 16px 30px;
        font-size: 1.2rem;
        min-width: 260px;
        margin: 2rem auto 1rem;
    }

    .book-cover {
        max-width: 280px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .book-content {
        margin: 10px;
        padding: 25px 15px;
    }

    /* Further optimize story carousel for small screens */
    .main-title {
        font-size: 24px;
        margin-bottom: 15px;
        text-align: center;
    }

    .story-images-section {
        margin: 1.5rem 0;
    }
    
    .story-image {
        width: 120px;
        height: 120px;
    }

    .video-container {
        margin: 15px 0;
    }

    /* Story description small mobile styling */
    .story-description {
        margin: 1.5rem 0;
    }

    .magical-greeting {
        padding: 1.5rem 1rem;
        margin: 0 -5px;
        border-radius: 15px;
    }

    .magical-greeting h2 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }

    .greeting-text p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .greeting-text p:first-child {
        font-size: 1.1rem;
    }

    .signature {
        font-size: 1.1rem !important;
    }

    /* Sponsors section small mobile styling */
    .sponsors-section {
        margin: 2rem 0 1rem 0;
    }

    .sponsors-title {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .sponsors-grid {
        gap: 10px;
    }

    .sponsors-note {
        font-size: 0.9rem;
        margin-top: 1rem;
    }

    .book-features {
        padding: 1.5rem 1rem;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .feature-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .book-cover {
        max-width: 240px;
    }
}