/* Home Page Styles - Enhanced */

/* Home Container */
.home-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Top Logo Section - Enhanced */
.top-logo-section {
    padding: 2rem 0;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(44, 60, 169, 0.1);
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.top-logo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-pink) 100%);
}

.equshaala-text-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    opacity: 0.95;
    transition: all 0.3s ease;
}

.equshaala-text-logo:hover {
    opacity: 1;
    transform: scale(1.02);
}

/* Hero Section - Better Spacing and Alignment */
.hero-section {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 4rem;
    align-items: center;
    min-height: 60vh;
    background: white;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Desktop: Book section as separate grid item */
.book-section {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(44, 60, 169, 0.02) 0%, rgba(230, 53, 115, 0.02) 100%);
    border-radius: 20px;
    border: 1px solid rgba(44, 60, 169, 0.05);
}

.book-logo {
    position: relative;
}

.book-hero-image {
    height: 420px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.15));
    transition: all 0.3s ease;
    border-radius: 12px;
}

.book-hero-image:hover {
    transform: scale(1.05) rotate(-1deg);
    filter: drop-shadow(0 16px 50px rgba(0, 0, 0, 0.2));
}

.companion-section {
    padding-left: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--text-dark);
}

.book-name {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    display: inline-block;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(44, 60, 169, 0.03) 0%, rgba(230, 53, 115, 0.03) 100%);
    border-radius: 12px;
    border-left: 4px solid var(--primary-blue);
    position: relative;
}

.book-cta {
    margin-top: 1rem;
}

.btn-book-details {
    background: linear-gradient(135deg, #8b5a3c, #d4a574);
    color: white;
    border: none;
    padding: 1.3rem 3rem;
    border-radius: 16px;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(139, 90, 60, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-transform: none;
    letter-spacing: 0.5px;
}

.btn-book-details:hover {
    background: linear-gradient(135deg, #9d6746, #e2b685);
    transform: translateY(-4px);
    box-shadow: 0 10px 35px rgba(139, 90, 60, 0.4);
}

/* Digital Buddy Section - Enhanced */
.digital-buddy-section {
    background: white;
    margin: 4rem 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 24px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
}

.digital-buddy-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-pink) 100%);
}

.digital-buddy-content {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 3rem;
}

.digital-buddy-content .section-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.digital-buddy-text {
    font-size: 1.3rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.book-integration-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.75rem 2rem;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.8) 0%, rgba(255, 255, 255, 0.9) 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(44, 60, 169, 0.05);
    position: relative;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-pink));
    border-radius: 16px 16px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-item:hover::before {
    opacity: 1;
}

.feature-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    font-size: 2.2rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
}

.feature-text {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.4;
}

/* Quiz Section - Enhanced */
.quizzes-section {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 4rem auto 0;
    background: linear-gradient(135deg, rgba(44, 60, 169, 0.02) 0%, rgba(230, 53, 115, 0.02) 100%);
    border-radius: 24px;
    position: relative;
    border: 1px solid rgba(44, 60, 169, 0.08);
}

.section-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 4rem auto;
}

.quizzes-section .section-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.section-description {
    font-size: 1.25rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 0;
    background: white;
    padding: 1.75rem 2rem;
    border-radius: 16px;
    border: 1px solid rgba(44, 60, 169, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Quiz Cards - Enhanced */
.quiz-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.quiz-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.quiz-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-pink));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quiz-card:hover::before {
    opacity: 1;
}

.quiz-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.15);
    border-color: rgba(44, 60, 169, 0.1);
}

.quiz-card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.quiz-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
    display: block;
}

.quiz-card:hover .quiz-icon {
    transform: scale(1.15) rotate(5deg);
}

.quiz-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.book-badge {
    background: linear-gradient(135deg, #8b5a3c, #d4a574);
    color: white;
    font-size: 0.85rem;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    margin-top: 0.75rem;
    display: inline-block;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(139, 90, 60, 0.3);
}

.quiz-card-body {
    margin-bottom: 2.5rem;
    text-align: center;
}

.quiz-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.quiz-duration {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(44, 60, 169, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    margin-top: 1rem;
}

.quiz-card-footer {
    text-align: center;
}

.quiz-btn {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-pink));
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    font-size: 1.05rem;
    box-shadow: 0 4px 20px rgba(44, 60, 169, 0.3);
}

.quiz-btn:hover {
    background: linear-gradient(135deg, #3a4db5, #f04d80);
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(44, 60, 169, 0.4);
}

/* Footer - Enhanced */
.home-footer {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
    font-style: italic;
    font-size: 1.2rem;
    background: transparent;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.home-footer p {
    background: white;
    padding: 2rem 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(44, 60, 169, 0.05);
    margin: 0;
    position: relative;
}

.home-footer p::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-blue);
    position: absolute;
    top: -1rem;
    left: 1rem;
    font-family: serif;
    line-height: 1;
}

/* Highlighted text using EQuShaala brand colors */
.highlight-text {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    position: relative;
    display: inline;
}

/* Fallback for browsers that don't support background-clip */
@supports not (-webkit-background-clip: text) {
    .highlight-text {
        color: var(--primary-blue);
        font-weight: 700;
    }
}

/* Optional: Add subtle underline effect on hover */
.highlight-text:hover {
    text-decoration: underline;
    text-decoration-color: var(--primary-pink);
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

/* Responsive Design - Enhanced */
@media (max-width: 1024px) {
    .hero-content {
        gap: 3rem;
        padding: 2.5rem;
    }

    .book-hero-image {
        height: 360px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .equshaala-text-logo {
        height: 55px;
    }

    .quiz-cards-container {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .home-container {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .top-logo-section {
        padding: 1.5rem 0;
        width: 100%;
        box-sizing: border-box;
    }

    .equshaala-text-logo {
        height: 50px;
        max-width: 90%;
    }

    .hero-section {
        padding: 2rem 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        gap: 0;
        text-align: center;
        padding: 2rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    /* Mobile Layout Order: Title ? LOTLO ? Description ? Button */
    .companion-section {
        order: 1;
        display: flex;
        flex-direction: column;
        padding-left: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .hero-title {
        order: 1;
        font-size: 2.4rem;
        line-height: 1.1;
        word-wrap: break-word;
        word-break: break-word;
        margin-bottom: 2rem;
    }

    .book-section {
        order: 2;
        padding: 1.5rem;
        width: 100%;
        box-sizing: border-box;
        margin: 0;
    }

    .hero-description {
        order: 3;
        font-size: 1.15rem;
        padding: 1.25rem;
        line-height: 1.6;
        word-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
        max-width: 100%;
        box-sizing: border-box;
        overflow-wrap: break-word;
        text-align: left;
        margin: 2rem 0;
    }

    .book-cta {
        order: 4;
        margin: 2rem 0 0 0;
        width: 100%;
    }

    .book-hero-image {
        height: 300px;
        max-width: 100%;
    }

    .book-name {
        word-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
    }

    .highlight-text {
        word-wrap: break-word;
        word-break: break-word;
        display: inline;
        white-space: normal;
        hyphens: auto;
    }

    .btn-book-details {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        text-align: center;
        white-space: normal;
        word-wrap: break-word;
    }

    .digital-buddy-content .section-title,
    .quizzes-section .section-title {
        font-size: 2.2rem;
        line-height: 1.2;
        word-wrap: break-word;
        word-break: break-word;
    }

    .digital-buddy-text {
        font-size: 1.1rem;
        line-height: 1.6;
        word-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 1rem;
    }

    .section-description {
        font-size: 1.15rem;
        padding: 1.5rem;
        line-height: 1.6;
        word-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
        max-width: 100%;
        box-sizing: border-box;
    }

    .quiz-cards-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    .quiz-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .quiz-title {
        font-size: 1.3rem;
        line-height: 1.3;
        word-wrap: break-word;
        word-break: break-word;
    }

    .quiz-description {
        font-size: 1rem;
        line-height: 1.5;
        word-wrap: break-word;
        word-break: break-word;
    }

    .quizzes-section,
    .digital-buddy-section {
        padding: 3rem 1.5rem;
        margin: 2rem 1rem;
        width: calc(100% - 2rem);
        max-width: calc(100% - 2rem);
        box-sizing: border-box;
    }

    .book-integration-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        width: 100%;
        box-sizing: border-box;
    }

    .feature-item {
        padding: 1.25rem;
        width: 100%;
        box-sizing: border-box;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .feature-text {
        font-size: 1rem;
        line-height: 1.4;
        word-wrap: break-word;
        word-break: break-word;
    }

    .home-footer {
        padding: 3rem 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    .home-footer p {
        padding: 1.5rem;
        word-wrap: break-word;
        word-break: break-word;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .equshaala-text-logo {
        height: 45px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1.05rem;
    }

    .book-hero-image {
        height: 250px;
    }

    .digital-buddy-content .section-title,
    .quizzes-section .section-title {
        font-size: 1.9rem;
    }

    .quiz-card {
        padding: 2rem 1.5rem;
    }

    .digital-buddy-content,
    .quizzes-section {
        padding: 2rem 1rem;
        margin: 1.5rem 0.5rem;
    }

    .home-footer p {
        padding: 1.5rem;
    }
}

/* Remove the desktop layout adjustments since we're keeping original structure */