/* Hero section */
.hero {
    background-color: var(--color-white);
    color: var(--color-primary);
    padding: var(--space-xxl) 0;
    position: relative;
    text-align: center;
}

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

.hero h1 {
    font-size: 3rem;
    margin-bottom: var(--space-lg);
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: var(--space-xl);
    color: var(--color-dark-gray);
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-top: var(--space-xl);
}

/* Bilingual Hero */
.bilingual-hero {
    padding: var(--space-md) 0;
    background-color: var(--color-white);
    position: relative;
    overflow: hidden;
    margin-bottom: var(--space-sm);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.hero-bilingual {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    margin-bottom: var(--space-sm);
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.hero-english, .hero-punjabi {
    width: 48%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.vertical-divider {
    width: 3px;
    background-color: var(--color-primary);
    margin: 0 30px;
}

.hero-word {
    display: block;
    font-size: 5vw; /* Responsive font size based on viewport width */
    line-height: 1.3;
    font-weight: 900;
    color: var(--color-primary);
    text-align: center;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.hero-punjabi .hero-word {
    font-size: calc(7vw + 0.5rem); /* Slightly larger than English text */
    font-family: 'Noto Sans Gurmukhi', var(--font-serif);
}

@media (min-width: 1400px) {
    .hero-word {
        font-size: 6.5rem; /* Cap the maximum size */
    }
    
    .hero-punjabi .hero-word {
        font-size: 7rem;
    }
}

@media (max-width: 992px) {
    .hero-bilingual {
        flex-direction: row;
        gap: var(--space-sm);
    }
    
    .hero-english, .hero-punjabi {
        width: 48%;
    }
    
    .vertical-divider {
        width: 2px;
        height: auto;
        margin: 0 5px;
    }
    
    .hero-word {
        text-align: center;
        font-size: 8vw; /* Responsive for tablets */
    }
    
    .hero-punjabi .hero-word {
        text-align: center;
        font-size: calc(8vw + 0.5rem);
    }
}

/* Hero Logo Styling */
.hero-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48%;
}

.hero-logo {
    width: 450px;
    height: 450px;
    object-fit: contain; /* Maintains aspect ratio within the 350x350 box */
    max-width: 100%;
    max-height: 100%;
}

/* Responsive sizing for smaller screens */
@media (max-width: 1400px) {
    .hero-logo {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 992px) {
    .hero-logo {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .hero-logo {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 576px) {
    .hero-logo {
        width: 150px;
        height: 150px;
    }
}

/* Book cover aspect-ratio box (2 : 3) */
.book-cover {
    position: relative;
    width: 100%;
    padding-top: 150%;      /*  150% = 2:3 ratio  */
    overflow: hidden;
    background: var(--color-light-gray);
}

.book-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}
