@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', Arial, sans-serif;
}

body {
    line-height: 1.6;
}

nav {
    background: #333;
    color: white;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.banner {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 30%, rgba(240, 147, 251, 0.9) 70%, rgba(245, 87, 108, 0.9) 100%), 
                url('https://images.unsplash.com/photo-1481627834876-b7833e8f5570?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80') center/cover;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.15) 50%, transparent 70%);
    animation: shimmer 4s ease-in-out infinite;
}

.banner::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-30px, -30px) rotate(180deg); }
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.banner h1 {
    font-size: 4rem;
    font-weight: 800;
    text-shadow: 4px 4px 8px rgba(0,0,0,0.5);
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #e9ecef 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1.2s ease-out;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.banner-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1.2s ease-out 0.3s both;
}

.banner-cta {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    color: white;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1.2s ease-out 0.3s both;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.banner-cta a {
    color: white;
    text-decoration: none;
    padding: 1rem 2.5rem;
}

.banner-cta::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;
}

.banner-cta:hover::before {
    left: 100%;
}

.banner-cta:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.2) 100%);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.banner-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-books {
    position: absolute;
    width: 100%;
    height: 100%;
}

.book-icon {
    position: absolute;
    font-size: 2rem;
    opacity: 0.6;
    animation: floatBook 6s ease-in-out infinite;
}

.book-icon:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.book-icon:nth-child(2) {
    top: 60%;
    left: 85%;
    animation-delay: 1s;
}

.book-icon:nth-child(3) {
    top: 30%;
    right: 15%;
    animation-delay: 2s;
}

.book-icon:nth-child(4) {
    bottom: 25%;
    left: 20%;
    animation-delay: 3s;
}

.book-icon:nth-child(5) {
    top: 70%;
    left: 60%;
    animation-delay: 4s;
}

@keyframes floatBook {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0.6;
    }
    50% { 
        transform: translateY(-20px) rotate(10deg); 
        opacity: 0.8;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.genre-section {
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.genre-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #f5576c);
    border-radius: 2px;
}

.genre-section h3 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-bottom: 1rem;
}

.genre-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    padding: 2rem 0;
}

.book-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.book-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.2s ease;
}

.book-card:hover::before {
    left: 100%;
}

.book-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.book-card img {
    max-width: 100%;
    height: 220px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.book-card:hover img {
    transform: scale(1.05);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.book-card h3 {
    margin: 0.5rem 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.book-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin: 0.5rem 0;
}

.book-card p:first-of-type {
    color: #888;
    font-style: italic;
    font-weight: 500;
}

.book-card a {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

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

.book-card a:hover::before {
    left: 100%;
}

.book-card a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Special styling for different genres */
.genre-section:nth-child(odd) {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.02) 0%, rgba(118, 75, 162, 0.02) 100%);
    padding: 2rem;
    border-radius: 20px;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.genre-section:nth-child(even) {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.02) 0%, rgba(245, 87, 108, 0.02) 100%);
    padding: 2rem;
    border-radius: 20px;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.genre-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-20px, -20px) rotate(180deg); }
}

/* Genre-specific color schemes */
.genre-section#sci-fi::before {
    background: linear-gradient(90deg, #00d4ff, #5b73e8, #667eea, #764ba2);
}

.genre-section#mystery::before {
    background: linear-gradient(90deg, #2c3e50, #34495e, #7f8c8d, #95a5a6);
}

.genre-section#thriller::before {
    background: linear-gradient(90deg, #e74c3c, #c0392b, #8e44ad, #9b59b6);
}

.genre-section#self-help::before {
    background: linear-gradient(90deg, #f39c12, #e67e22, #27ae60, #2ecc71);
}

.genre-section#historical-fiction::before {
    background: linear-gradient(90deg, #8b4513, #cd853f, #daa520, #b8860b);
}

.genre-section#romance::before {
    background: linear-gradient(90deg, #ff69b4, #ff1493, #dc143c, #ff6347);
}

.genre-section#fantasy::before {
    background: linear-gradient(90deg, #6a0572, #a8e6cf, #88d8a3, #ffd93d);
}

.genre-section#young-adult::before {
    background: linear-gradient(90deg, #ff9a9e, #fecfef, #fecfef, #fecfef);
}

.genre-section#african-literature::before {
    background: linear-gradient(90deg, #f7931e, #ff6b35, #f7931e, #ff6b35);
}

.articles-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.articles-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #f5576c);
    border-radius: 20px 20px 0 0;
}

.articles-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.articles-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.articles-header p {
    font-size: 1.2rem;
    color: #5a6c7d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.article-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #f5576c);
    border-radius: 20px 20px 0 0;
}

.article-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.article-card:hover::after {
    opacity: 1;
}

.article-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.article-card h3 {
    margin: 0 0 1rem 0;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
    position: relative;
}

.article-card h3 a {
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 0.5rem 0;
}

.article-card h3 a:hover {
    color: #667eea;
    text-decoration: none;
    transform: translateX(5px);
}

.article-date {
    color: #7f8c8d;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-date::before {
    content: '📅';
    font-size: 0.8rem;
}

.article-card p {
    color: #5a6c7d;
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
}

/* Article card category badges */
.article-card:nth-child(1)::before { background: linear-gradient(90deg, #667eea, #764ba2); }
.article-card:nth-child(2)::before { background: linear-gradient(90deg, #f093fb, #f5576c); }
.article-card:nth-child(3)::before { background: linear-gradient(90deg, #4facfe, #00f2fe); }
.article-card:nth-child(4)::before { background: linear-gradient(90deg, #43e97b, #38f9d7); }
.article-card:nth-child(5)::before { background: linear-gradient(90deg, #fa709a, #fee140); }
.article-card:nth-child(6)::before { background: linear-gradient(90deg, #a8edea, #fed6e3); }
.article-card:nth-child(7)::before { background: linear-gradient(90deg, #ff9a9e, #fecfef); }
.article-card:nth-child(8)::before { background: linear-gradient(90deg, #ffecd2, #fcb69f); }
.article-card:nth-child(9)::before { background: linear-gradient(90deg, #a18cd1, #fbc2eb); }
.article-card:nth-child(10)::before { background: linear-gradient(90deg, #fad0c4, #ffd1ff); }

.top-article {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 3rem;
    text-align: center;
}

.top-article h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.top-article .article-date {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.top-article p {
    font-size: 1.1rem;
    margin: 1rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.top-article a {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 2rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.top-article a:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Book of the Week Styles */
.book-of-week {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 50%, #ff9ff3 100%);
    margin-bottom: 3rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.book-of-week-content {
    display: flex;
    align-items: center;
    padding: 2rem;
    gap: 2rem;
}

.book-of-week-image {
    position: relative;
    flex-shrink: 0;
}

.book-of-week-image img {
    width: 200px;
    height: 280px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.book-of-week-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ffd700;
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8rem;
    transform: rotate(15deg);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.book-of-week-details {
    color: white;
    flex: 1;
}

.book-of-week-details h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.book-author {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.book-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.book-meta span {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.admin-comment {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.admin-comment h4 {
    margin-bottom: 1rem;
    color: #ffd700;
}

.admin-comment p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.admin-signature {
    font-style: italic;
    color: #ffd700;
    font-weight: 500;
}

.find-book-btn {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    font-weight: 600;
}

.find-book-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Book Links in Articles */
.book-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.book-link:hover {
    border-bottom-color: #007bff;
    text-decoration: none;
}

/* Article Page Styling */
.article-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.article-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #f5576c);
    border-radius: 20px 20px 0 0;
}

.article-page h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 1rem 0;
    line-height: 1.2;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-page .article-date {
    color: #7f8c8d;
    font-size: 1rem;
    font-weight: 500;
    margin: 0 0 2rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 15px;
    border-left: 4px solid #667eea;
}

.article-page .article-date::before {
    content: '📅';
    font-size: 1rem;
}

.article-page p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
    margin: 1.5rem 0;
    text-align: justify;
}

.article-page h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 2.5rem 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #667eea;
    position: relative;
}

.article-page h3::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.article-page h4 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #4a5568;
    margin: 2rem 0 1rem 0;
    padding-left: 1rem;
    border-left: 4px solid #f093fb;
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.05) 0%, rgba(245, 87, 108, 0.05) 100%);
    padding: 1rem;
    border-radius: 0 10px 10px 0;
}

.article-page ul {
    margin: 1.5rem 0;
    padding-left: 0;
    list-style: none;
}

.article-page ul li {
    position: relative;
    padding: 0.75rem 0 0.75rem 2.5rem;
    margin: 0.5rem 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
    border-radius: 10px;
    border-left: 3px solid #667eea;
    transition: all 0.3s ease;
}

.article-page ul li::before {
    content: '✨';
    position: absolute;
    left: 0.75rem;
    top: 0.75rem;
    font-size: 1rem;
}

.article-page ul li:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    transform: translateX(5px);
}

.article-page ul li strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Article content highlights */
.article-page p:first-of-type {
    font-size: 1.2rem;
    font-weight: 500;
    color: #4a5568;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    padding: 1.5rem;
    border-radius: 15px;
    border-left: 5px solid #667eea;
    margin: 2rem 0;
    font-style: italic;
}

/* Article reading progress indicator */
.article-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(102, 126, 234, 0.2);
    z-index: 1001;
}

.article-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.3s ease;
}

/* Article back to articles link - Bottom positioned */
.article-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
    margin: 3rem auto 0 auto;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    text-align: center;
    justify-content: center;
    width: fit-content;
}

.article-back-link::before {
    content: '←';
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.article-back-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.article-back-link:hover::after {
    left: 100%;
}

.article-back-link:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
}

.article-back-link:hover::before {
    transform: translateX(-3px);
}

.article-back-container {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(102, 126, 234, 0.1);
}
/* General Image Styling for Articles */
.article-page img {
    display: block; /* Removes bottom margin issues */
    max-width: 100%; /* Ensures image fits container width */
    height: auto; /* Maintains aspect ratio */
    max-height: 500px; /* Caps height to avoid overwhelming the page */
    margin: 2rem auto; /* Centers the image with top/bottom spacing */
    border-radius: 10px; /* Soft corners to match your theme */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08); /* Subtle shadow for depth */
    object-fit: cover; /* Crops to fit without distortion */
    transition: all 0.3s ease; /* Smooth hover transitions */
    border: 1px solid rgba(102, 126, 234, 0.1); /* Light gradient-inspired border */
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%); /* Subtle gradient backdrop */
}

/* Hover Effects */
.article-page img:hover {
    transform: translateY(-3px); /* Slight lift */
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.15); /* Enhanced shadow */
    border-color: rgba(102, 126, 234, 0.2); /* Darker border on hover */
    filter: brightness(1.05); /* Slight brightening */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .article-page img {
        max-height: 350px; /* Smaller height on mobile */
        margin: 1.5rem auto; /* Reduced spacing */
        border-radius: 8px; /* Slightly smaller corners */
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06); /* Lighter shadow */
    }

    .article-page img:hover {
        transform: translateY(-2px); /* Reduced lift on mobile */
        box-shadow: 0 8px 20px rgba(102, 126, 234, 0.12); /* Adjusted hover shadow */
    }
}

/* High-DPI/Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .article-page img {
        image-rendering: -webkit-optimize-contrast; /* Sharper images on high-res */
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #333;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 1rem;
    }
    
    nav a {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
        width: 100%;
        text-align: center;
        border: 1px solid rgba(255, 255, 255, 0.2);
        margin-bottom: 0.5rem;
    }
    
    nav a:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }

    .banner {
        height: 350px;
        margin-bottom: 2rem;
    }
    
    .banner-content {
        padding: 1.5rem;
    }
    
    .banner h1 {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 1rem;
    }
    
    .banner-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .banner-cta {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    .book-icon {
        font-size: 1.5rem;
    }

    .books-grid, .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .genre-section h3 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .genre-section {
        padding: 1.5rem;
        margin: 2rem 0;
    }
    
    .book-card {
        padding: 1rem;
    }
    
    .book-card img {
        height: 180px;
        object-fit: contain;
    }
    
    .book-card h3 {
        font-size: 1.1rem;
    }
    
    .book-card a {
        padding: 0.6rem 1.5rem;
        font-size: 0.8rem;
    }
    
    /* Book of the Week Mobile */
    .book-of-week {
        margin-bottom: 2rem;
        border-radius: 12px;
    }
    
    .book-of-week-content {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
        gap: 1rem;
    }
    
    .book-of-week-image {
        align-self: center;
    }
    
    .book-of-week-image img {
        width: 120px;
        height: 170px;
        border-radius: 8px;
    }
    
    .book-of-week-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
        top: -8px;
        right: -8px;
    }
    
    .book-of-week-details h2 {
        font-size: 1.4rem;
        margin-bottom: 0.3rem;
        line-height: 1.2;
    }
    
    .book-author {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .book-meta {
        justify-content: center;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .book-meta span {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    .admin-comment {
        padding: 1rem;
        margin-bottom: 1rem;
        font-size: 0.9rem;
    }
    
    .admin-comment h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .admin-comment p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .admin-signature {
        font-size: 0.8rem;
    }
    
    .find-book-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Featured Books Mobile */
    .featured-books-header {
        padding: 1.5rem 1rem;
        margin-bottom: 2rem;
    }
    
    .featured-books-header h2 {
        font-size: 2rem;
    }
    
    .featured-books-header p {
        font-size: 1rem;
    }
    
    .featured-genre {
        margin-bottom: 2rem;
    }
    
    .featured-genre h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .books-scroll-container {
        padding: 0.5rem 0;
    }
    
    .books-scroll {
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .books-scroll .book-card {
        flex: 0 0 200px;
        min-width: 200px;
        padding: 1rem;
        border-radius: 12px;
    }
    
    .books-scroll .book-card img {
        height: 180px;
        object-fit: contain;
        border-radius: 8px;
    }
    
    .books-scroll .book-card h4 {
        font-size: 1rem;
        margin: 0.3rem 0;
    }
    
    .books-scroll .book-card p {
        font-size: 0.8rem;
        margin: 0.3rem 0;
    }
    
    .books-scroll .book-card a {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
        margin-top: 0.8rem;
    }
    
    /* Additional mobile optimizations */
    section {
        padding: 1rem;
    }
    
    .featured-books-header {
        margin-bottom: 1.5rem;
    }
    
    .featured-genre {
        margin-bottom: 1.5rem;
    }
    
    /* Improve touch targets */
    .books-scroll .book-card {
        touch-action: pan-y;
    }
    
    .books-scroll-container {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    /* Optimize article cards for mobile */
    .article-card {
        margin-bottom: 1rem;
    }
    
    .article-card h3 {
        font-size: 1.1rem;
        line-height: 1.3;
    }
    
    .article-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* Books page mobile optimizations */
    .books-page .books-scroll-container {
        margin: 0 -0.5rem;
        padding: 0.5rem;
    }
    
    .books-page .books-scroll {
        gap: 0.8rem;
    }
    
    .books-page .books-scroll .book-card {
        flex: 0 0 180px;
        min-width: 180px;
        padding: 0.8rem;
    }
    
    .books-page .books-scroll .book-card img {
        height: 160px;
        object-fit: contain;
    }
    
    .books-page .books-scroll .book-card h3 {
        font-size: 0.9rem;
        margin: 0.3rem 0;
    }
    
    .books-page .books-scroll .book-card p {
        font-size: 0.75rem;
        margin: 0.2rem 0;
    }
    
    .books-page .books-scroll .book-card a {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
        margin-top: 0.5rem;
    }
    
    /* Article page mobile styles */
    .article-page {
        padding: 1.5rem;
        margin: 1rem;
        border-radius: 15px;
    }
    
    .article-page h2 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .article-page h3 {
        font-size: 1.5rem;
        margin: 2rem 0 1rem 0;
    }
    
    .article-page h4 {
        font-size: 1.2rem;
        margin: 1.5rem 0 0.75rem 0;
        padding: 0.75rem;
    }
    
    .article-page p {
        font-size: 1rem;
        line-height: 1.7;
        margin: 1.25rem 0;
    }
    
    .article-page ul li {
        padding: 0.5rem 0 0.5rem 2rem;
        margin: 0.25rem 0;
    }
    
    .article-back-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem 0;
    }
    
    .article-card {
        padding: 1.5rem;
        border-radius: 15px;
    }
    
    .article-card h3 {
        font-size: 1.2rem;
    }
    
    .article-card p {
        font-size: 0.95rem;
    }
    
    .articles-header {
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }
    
    .articles-header h1 {
        font-size: 2.2rem;
    }
    
    .articles-header p {
        font-size: 1rem;
    }
}

/* About Page Styling */
.about-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.about-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.about-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.about-hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    font-weight: 300;
}

.about-main {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.02) 0%, rgba(118, 75, 162, 0.02) 100%);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-section {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #f5576c);
    border-radius: 20px 20px 0 0;
}

.about-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1.5rem;
    display: block;
}

.about-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: #667eea;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.2);
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.feature-card p {
    font-size: 1rem;
    color: #5a6c7d;
    line-height: 1.6;
    text-align: left;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.05) 0%, rgba(245, 87, 108, 0.05) 100%);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.team-member:hover {
    transform: translateY(-5px);
    border-color: #f093fb;
    box-shadow: 0 15px 35px rgba(240, 147, 251, 0.2);
}

.team-avatar {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.team-member h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.team-role {
    color: #667eea;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.team-bio {
    font-size: 0.95rem;
    color: #5a6c7d;
    line-height: 1.6;
    text-align: left;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.contact-intro {
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: #667eea;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.2);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.contact-card p {
    margin-bottom: 0.5rem;
}

.contact-card a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.contact-note {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-style: italic;
}

/* Social Links */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    background: rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #667eea;
    color: white;
    transform: translateX(5px);
    text-decoration: none;
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.newsletter-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Values List */
.values-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.value-item {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.15);
}

.value-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.value-item p {
    font-size: 1rem;
    color: #5a6c7d;
    line-height: 1.6;
    text-align: left;
}

/* Featured Books Section */
.featured-books-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.featured-books-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #f5576c);
    border-radius: 20px 20px 0 0;
}

.featured-books-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.featured-books-header p {
    font-size: 1.1rem;
    color: #5a6c7d;
    max-width: 600px;
    margin: 0 auto;
}

.featured-genre {
    margin-bottom: 3rem;
    position: relative;
}

.featured-genre h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-bottom: 0.5rem;
}

.featured-genre h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.books-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1rem 0;
    scrollbar-width: thin;
    scrollbar-color: #667eea #f1f1f1;
}

.books-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.books-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.books-scroll-container::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
}

.books-scroll-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #764ba2, #667eea);
}

.books-scroll {
    display: flex;
    gap: 1.5rem;
    padding: 0 1rem;
    min-width: max-content;
}

.books-scroll .book-card {
    flex: 0 0 280px;
    min-width: 280px;
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.books-scroll .book-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.books-scroll .book-card:hover::before {
    left: 100%;
}

.books-scroll .book-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.books-scroll .book-card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.books-scroll .book-card:hover img {
    transform: scale(1.05);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.books-scroll .book-card h4 {
    margin: 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.books-scroll .book-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin: 0.5rem 0;
}

.books-scroll .book-card p:first-of-type {
    color: #888;
    font-style: italic;
    font-weight: 500;
}

.books-scroll .book-card a {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.books-scroll .book-card a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.books-scroll .book-card a:hover::before {
    left: 100%;
}

.books-scroll .book-card a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Books page specific styles */
.books-page .books-scroll-container {
    margin: 0 -1rem;
    padding: 1rem;
}

.books-page .books-scroll {
    gap: 1.2rem;
}

.books-page .books-scroll .book-card {
    flex: 0 0 260px;
    min-width: 260px;
}

.books-page .books-scroll .book-card img {
    height: 200px;
}

/* Enhanced scroll indicators */
.books-scroll-container {
    position: relative;
}

.books-scroll-container::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1));
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.books-scroll-container:hover::after {
    opacity: 1;
}

/* Mobile Responsiveness for About Page */
@media (max-width: 768px) {
    .about-hero h1 {
        font-size: 2.5rem;
    }
    
    .about-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .about-section {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .about-section h2 {
        font-size: 2rem;
    }
    
    .about-section p {
        font-size: 1rem;
    }
    
    .features-grid,
    .team-grid,
    .contact-grid,
    .values-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .social-links {
        align-items: center;
    }
}
@keyframes fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .animate-fade-in {
    animation: fade-in 1s ease-out;
  }

/* Comment System Styles */
.comments-section {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.02) 0%, rgba(118, 75, 162, 0.02) 100%);
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
    overflow: hidden;
}

.comments-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #f5576c);
    border-radius: 20px 20px 0 0;
}

.comments-section h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.comments-section h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* Comment Form Styles */
.comment-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', Arial, sans-serif;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.submit-comment-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

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

.submit-comment-btn:hover::before {
    left: 100%;
}

.submit-comment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Comments List Styles */
.comments-list {
    max-height: 600px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #667eea #f1f1f1;
}

.comments-list::-webkit-scrollbar {
    width: 8px;
}

.comments-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.comments-list::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
}

.comments-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #764ba2, #667eea);
}

.no-comments {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    padding: 2rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 15px;
    border: 2px dashed rgba(102, 126, 234, 0.2);
}

/* Individual Comment Styles */
.comment-item {
    background: white;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.comment-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 15px 15px 0 0;
}

.comment-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border-color: #667eea;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.comment-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.author-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
}

.comment-date {
    color: #7f8c8d;
    font-size: 0.9rem;
    font-weight: 500;
}

.comment-content {
    margin-bottom: 1rem;
}

.comment-content p {
    color: #4a5568;
    line-height: 1.6;
    font-size: 1rem;
    margin: 0;
}

.comment-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.reply-btn,
.like-btn {
    background: none;
    border: 2px solid #e2e8f0;
    color: #667eea;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reply-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-1px);
}

.like-btn:hover {
    background: #f093fb;
    color: white;
    border-color: #f093fb;
    transform: translateY(-1px);
}

.like-btn.liked {
    background: #f093fb;
    color: white;
    border-color: #f093fb;
}

.like-count {
    font-weight: 600;
}

/* Comment Messages */
.comment-message {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-weight: 500;
    text-align: center;
    animation: slideInDown 0.3s ease-out;
}

.comment-message-success {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1) 0%, rgba(39, 174, 96, 0.1) 100%);
    color: #27ae60;
    border: 2px solid rgba(39, 174, 96, 0.2);
}

.comment-message-error {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1) 0%, rgba(192, 57, 43, 0.1) 100%);
    color: #e74c3c;
    border: 2px solid rgba(231, 76, 60, 0.2);
}

.comment-message-info {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(41, 128, 185, 0.1) 100%);
    color: #3498db;
    border: 2px solid rgba(52, 152, 219, 0.2);
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness for Comments */
@media (max-width: 768px) {
    .comments-section {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .comments-section h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .comment-form {
        padding: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .submit-comment-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
    }
    
    .comment-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .comment-actions {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .reply-btn,
    .like-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .comments-list {
        max-height: 400px;
    }
}