/* Book Fair Section */
.book-fair {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.book-fair::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(30, 60, 114, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(78, 205, 196, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.fair-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.fair-text {
    position: relative;
}

.fair-text .section-title { 
    margin-bottom: 0.5rem; 
    font-size: 3rem; 
    color: #1e3c72;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    position: relative;
}

.fair-text .section-title::after {
    display: none;
}

.fair-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #4ecdc4 0%, #45b7aa 100%);
    color: #ffffff;
    padding: 0.55rem 1.1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
    margin-bottom: 1.5rem;
}

.fair-intro {
    font-size: 1.3rem;
    color: #1e3c72;
    margin-bottom: 2rem;
    font-weight: 600;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.5px;
}

.fair-meta { 
    display: grid; 
    gap: 1rem; 
    margin-bottom: 2rem; 
    background: #ffffff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #4ecdc4;
}

.fair-meta .meta-item { 
    display: flex; 
    align-items: flex-start; 
    gap: 1rem; 
    color: #2c3e50; 
    font-weight: 500; 
    font-size: 1.05rem;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.fair-meta .meta-item:hover {
    color: #1e3c72;
    transform: translateX(5px);
}

.fair-meta .meta-item i {
    color: #4ecdc4;
    font-size: 1.3rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.fair-actions { 
    display: flex; 
    gap: 1rem; 
    flex-wrap: wrap; 
}

.fair-actions .btn { 
    padding: 14px 34px; 
    font-size: 1.05rem; 
    transition: all 0.3s ease;
    text-decoration: none;
}

.fair-actions .btn span {
    text-decoration: none;
}

.fair-actions .btn-primary {
    text-decoration: none;
    background: linear-gradient(135deg, #4ecdc4 0%, #45b7aa 50%, #3ca194 100%);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    padding: 16px 38px;
    font-size: 1.05rem;
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.4),
                0 4px 12px rgba(78, 205, 196, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    letter-spacing: 0.5px;
}

.fair-actions .btn-primary::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.6s ease;
}

.fair-actions .btn-primary:hover::before {
    left: 100%;
}

.fair-actions .btn-primary span {
    text-decoration: none;
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.fair-actions .btn-primary i {
    position: relative;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: bellShake 2s infinite;
}

@keyframes bellShake {
    0%, 100% {
        transform: rotate(0deg);
    }
    5%, 15% {
        transform: rotate(-10deg);
    }
    10%, 20% {
        transform: rotate(10deg);
    }
}

.fair-actions .btn-primary:hover {
    text-decoration: none;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(78, 205, 196, 0.6),
                0 8px 20px rgba(78, 205, 196, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.4),
                0 0 30px rgba(78, 205, 196, 0.5);
    background: linear-gradient(135deg, #5dd5cc 0%, #4ecdc4 50%, #45b7aa 100%);
}

.fair-actions .btn-primary:hover span {
    text-decoration: none;
}

.fair-actions .btn-primary:hover i {
    transform: rotate(15deg) scale(1.2);
    animation: none;
}

.fair-actions .btn-outline {
    border: 2px solid #1e3c72;
    color: #1e3c72;
    background: transparent;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.fair-actions .btn-outline span {
    text-decoration: none;
}

.fair-actions .btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3c72 0%, #4ecdc4 100%);
    transition: left 0.3s ease;
    z-index: -1;
}

.fair-actions .btn-outline:hover {
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(30, 60, 114, 0.3);
    border-color: #4ecdc4;
    text-decoration: none;
}

.fair-actions .btn-outline:hover span {
    text-decoration: none;
}

.fair-actions .btn-outline:hover::before {
    left: 0;
}

.fair-actions .btn-outline i {
    transition: transform 0.3s ease;
}

.fair-actions .btn-outline:hover i {
    transform: scale(1.1) rotate(5deg);
}

.fair-visual { 
    display: flex; 
    justify-content: center; 
    align-items: center;
    position: relative;
}

.fair-image-frame { 
    position: relative; 
    border-radius: 20px; 
    overflow: hidden; 
    box-shadow: 0 15px 35px rgba(30, 60, 114, 0.15), 
                0 5px 15px rgba(78, 205, 196, 0.1);
    background: #ffffff; 
    padding: 20px; 
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 2px solid rgba(78, 205, 196, 0.2);
}

.fair-image-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.05) 0%, rgba(78, 205, 196, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 20px;
}

.fair-image-frame:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 60px rgba(30, 60, 114, 0.25), 
                0 10px 25px rgba(78, 205, 196, 0.15);
    border-color: #4ecdc4;
}

.fair-image-frame:hover::before {
    opacity: 1;
}

.fair-image { 
    width: 100%; 
    height: auto; 
    max-height: 420px; 
    object-fit: contain; 
    display: block; 
    border-radius: 12px;
    transition: transform 0.4s ease;
    position: relative;
    z-index: 1;
}

.fair-image-frame:hover .fair-image {
    transform: scale(1.05);
}

@media (max-width: 1024px) {
    .book-fair {
        padding: 4rem 0;
    }
    
    .fair-content { 
        grid-template-columns: 1fr; 
        gap: 3rem;
    }
    
    .fair-text .section-title { 
        font-size: 2.5rem; 
    }
    
    .fair-meta {
        padding: 1.5rem;
    }
    
    .fair-image { 
        max-height: 340px; 
    }
    
    .fair-image-frame {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .book-fair {
        padding: 3rem 0;
    }
    
    .fair-text .section-title { 
        font-size: 2rem; 
    }
    
    .fair-intro {
        font-size: 1.1rem;
    }
    
    .fair-meta {
        padding: 1.25rem;
        gap: 0.8rem;
    }
    
    .fair-meta .meta-item {
        font-size: 0.95rem;
    }
    
    .fair-meta .meta-item i {
        font-size: 1.1rem;
    }
    
    .fair-image { 
        max-height: 300px; 
    }
    
    .fair-image-frame {
        padding: 12px;
        border-radius: 15px;
    }
    
    .fair-actions .btn {
        padding: 12px 28px;
        font-size: 1rem;
    }
}

/* Book Fair Gallery Section */
.book-fair-gallery {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.5) 0%, rgba(233, 236, 239, 0.5) 100%);
    position: relative;
    overflow: hidden;
}

.book-fair-gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 30% 20%, rgba(30, 60, 114, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(78, 205, 196, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.gallery-header {
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
    z-index: 1;
}

.gallery-header .section-title {
    font-size: 2.8rem;
    color: #1e3c72;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

.gallery-subtitle {
    font-size: 1.15rem;
    color: #2c3e50;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.gallery-item {
    position: relative;
    width: 100%;
}

.gallery-image-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(30, 60, 114, 0.15),
                0 5px 15px rgba(78, 205, 196, 0.1);
    background: #ffffff;
    padding: 15px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 2px solid rgba(78, 205, 196, 0.2);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-image-frame:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 60px rgba(30, 60, 114, 0.25),
                0 10px 25px rgba(78, 205, 196, 0.15);
    border-color: #4ecdc4;
}

.gallery-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    display: block;
    border-radius: 12px;
    transition: transform 0.4s ease;
}

.gallery-image-frame:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.85) 0%, rgba(78, 205, 196, 0.85) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-image-frame:hover .gallery-overlay {
    opacity: 1;
}

.gallery-caption {
    text-align: center;
    color: #ffffff;
}

.gallery-caption i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.gallery-caption p {
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
}

@media (max-width: 1024px) {
    .book-fair-gallery {
        padding: 4rem 0;
    }
    
    .gallery-header .section-title {
        font-size: 2.4rem;
    }
    
    .gallery-container {
        gap: 2rem;
    }
    
    .gallery-image {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .book-fair-gallery {
        padding: 3rem 0;
    }
    
    .gallery-header {
        margin-bottom: 2.5rem;
    }
    
    .gallery-header .section-title {
        font-size: 2rem;
    }
    
    .gallery-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .gallery-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .gallery-image-frame {
        padding: 12px;
        border-radius: 15px;
    }
    
    .gallery-image {
        max-height: 350px;
    }
    
    .gallery-overlay {
        top: 12px;
        left: 12px;
        right: 12px;
        bottom: 12px;
    }
    
    .gallery-caption i {
        font-size: 2rem;
    }
    
    .gallery-caption p {
        font-size: 1rem;
    }
}

/* Best Seller Posts Section */
.bestseller-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 100%);
    position: relative;
    overflow: hidden;
}

.bestseller-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(30, 60, 114, 0.05) 0%, transparent 55%),
        radial-gradient(circle at 80% 80%, rgba(78, 205, 196, 0.06) 0%, transparent 55%);
    pointer-events: none;
}

.bestseller-section .section-title.center-title {
    color: #1e3c72;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.bestseller-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #2c3e50;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    position: relative;
    z-index: 1;
}

.bestseller-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.bestseller-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    border: 1px solid rgba(78, 205, 196, 0.25);
}

.bestseller-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 22px 55px rgba(30, 60, 114, 0.25);
}

.bestseller-image-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 4 / 5;
}

.bestseller-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.bestseller-card:hover .bestseller-image {
    transform: scale(1.06);
}

.bestseller-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    color: #1e3c72;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 8px 18px rgba(253, 160, 133, 0.55);
}

.bestseller-badge i {
    color: #ffffff;
}

@media (max-width: 900px) {
    .bestseller-grid {
        grid-template-columns: 1fr;
        max-width: 650px;
    }
}

@media (max-width: 600px) {
    .bestseller-section {
        padding: 3.5rem 0;
    }

    .bestseller-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

/* Video Reels Section */
.reels-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5ecf5 100%);
    position: relative;
    overflow: hidden;
}

.reels-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 25%, rgba(30, 60, 114, 0.08) 0%, transparent 55%),
        radial-gradient(circle at 85% 75%, rgba(78, 205, 196, 0.09) 0%, transparent 55%);
    pointer-events: none;
}

.reels-section .section-title.center-title {
    color: #1e3c72;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.reels-subtitle {
    text-align: center;
    font-size: 1.05rem;
    color: #2c3e50;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    position: relative;
    z-index: 1;
}

.reels-grid {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.reel-card {
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    padding: 1rem;
    border: 1px solid rgba(30, 60, 114, 0.15);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.reel-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 26px 60px rgba(30, 60, 114, 0.3);
}

.reel-video-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 9 / 16;
    background: #000;
}

.reel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.reel-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #4ecdc4 0%, #1e3c72 100%);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.8rem;
    box-shadow: 0 8px 20px rgba(30, 60, 114, 0.45);
    z-index: 2;
}

.reel-badge i {
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .reels-section {
        padding: 3.5rem 0;
    }

    .reels-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .reel-card {
        border-radius: 18px;
        padding: 0.75rem;
    }
}

.newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px, 80px 80px;
    animation: newsletterPattern 20s infinite linear;
}

@keyframes newsletterPattern {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.newsletter-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.magic-book {
    position: relative;
    width: 200px;
    height: 150px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    animation: bookHover 3s infinite ease-in-out;
}

@keyframes bookHover {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

.book-pages {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background: linear-gradient(90deg, var(--light-color) 0%, var(--white) 100%);
    border-radius: var(--radius-sm);
}

.book-pages::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--border-color);
    box-shadow: 0 10px 0 var(--border-color), 0 20px 0 var(--border-color);
}

.sparkles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 30% 30%, var(--accent-color) 2px, transparent 2px),
        radial-gradient(circle at 70% 70%, var(--accent-color) 1px, transparent 1px);
    background-size: 40px 40px, 60px 60px;
    animation: sparkleMove 2s infinite;
}

@keyframes sparkleMove {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.newsletter-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.newsletter-text p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.newsletter-form {
    max-width: 500px;
}

.input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.input-group input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: var(--radius-full);
    font-size: 1rem;
    outline: none;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
}

.input-group input::placeholder {
    color: var(--text-light);
}

.newsletter-benefits {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.benefit-item i {
    color: var(--accent-color);
}
