/* Home Page Specific Styles for NPCB Coloring Books */

/* Hero Section */
.hero {
    background: linear-gradient(rgba(106, 76, 147, 0.8), rgba(106, 76, 147, 0.8)), 
                url('../images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 20px;
    text-align: center;
}

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

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-family: var(--accent-font);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Featured Books Section */
.featured-books {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.book-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

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

.book-card-cover {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.book-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.book-card-info {
    padding: 20px;
}

.book-card-category {
    display: inline-block;
    padding: 5px 10px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.book-card-age-group {
    font-size: 0.75rem;
    color: #666;
    background-color: #f0f0f0;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 8px;
}

.book-card-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 800;
    color: var(--dark-color);
}

.book-card-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.book-card-price .view-details {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: normal;
}

.book-card-price .view-details:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Categories Section */
.categories {
    padding: 80px 20px;
    background-color: #f5f5f5;
}

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

.category-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    text-decoration: none;
    color: var(--dark-color);
    display: block;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.category-card h3 {
    margin: 20px 0 10px;
    color: var(--dark-color);
    font-family: var(--accent-font);
}

.category-card p {
    padding: 0 20px 20px;
    color: #666;
}

/* Special Offers Section */
.special-offers {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.special-offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.special-offer-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.special-offer-card .book-card-cover {
    height: 250px;
}

.special-offer-card .book-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.special-offer-details {
    background-color: #fff8e1;
    padding: 15px;
    margin-top: auto;
    border-top: 2px dashed var(--special-offer-color);
}

.special-offer-price {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 10px;
}

.discount-price {
    font-weight: 800;
    color: var(--special-offer-color);
    font-size: 1.2rem;
}

.discount-badge {
    display: inline-block;
    background-color: var(--special-offer-color);
    color: white;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.8rem;
    margin-left: 10px;
}

.special-offer-button {
    background-color: var(--special-offer-color);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.special-offer-button:hover {
    background-color: #e58e19;
}

/* Newsletter Section */
.newsletter {
    background-color: var(--primary-color);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-family: var(--accent-font);
}

.newsletter p {
    margin-bottom: 30px;
}

.newsletter form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 30px 0 0 30px;
    font-family: var(--main-font);
    font-size: 1rem;
}

.newsletter button {
    border-radius: 0 30px 30px 0;
    padding-left: 20px;
    padding-right: 20px;
}

#newsletter-message {
    margin-top: 20px;
    font-weight: 700;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .books-grid, .categories-grid, .special-offers-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .newsletter form {
        flex-direction: column;
    }
    
    .newsletter input {
        border-radius: 30px;
        margin-bottom: 10px;
    }
    
    .newsletter button {
        border-radius: 30px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .books-grid, .categories-grid, .special-offers-grid {
        grid-template-columns: 1fr;
    }
}
