 
/* CSS Variables for consistent theming */
:root {
    --color-primary: #6b8e5b;
    --color-secondary: #90a47f;
    --color-text: #2d3e2d;
    --color-background: #f5f3e9;
    --color-card: #ffffff;
    --color-shadow: rgba(125, 162, 121, 0.1);
    --color-border: rgba(107, 142, 91, 0.1);
}

body.dark-mode {
    --color-primary: #6366f1;
    --color-secondary: #818cf8;
    --color-text: #e0e0e0;
    --color-background: #0a0e1a;
    --color-card: rgba(30, 64, 175, 0.1);
    --color-shadow: rgba(99, 102, 241, 0.1);
    --color-border: rgba(99, 102, 241, 0.2);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    cursor: default;
}

/* Particle canvas */
#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

body {
    background-color: #f5f3e9;
    color: #2d3e2d;
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(144, 164, 127, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(184, 207, 167, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(160, 184, 147, 0.05) 0%, transparent 50%);
    transition: all 0.5s ease;
}

/* Dark mode styles */
body.dark-mode {
    background-color: #0a0e1a;
    color: #e0e0e0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(30, 64, 175, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(79, 70, 229, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
}

/* Star field for dark mode */
.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

body.dark-mode .stars {
    opacity: 1;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
    box-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
}

.star.bright-star {
    box-shadow: 0 0 6px rgba(255, 255, 255, 1), 0 0 12px rgba(255, 255, 255, 0.5);
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes twinkle-slow {
    0%, 100% { opacity: 0.2; transform: scale(0.9); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* Dark mode toggle button */
.theme-toggle {
    width: 50px;
    height: 25px;
    background: linear-gradient(135deg, #6b8e5b 0%, #90a47f 100%);
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
    margin-right: 2rem;
    flex-shrink: 0;
    position: relative;
}

body.dark-mode .theme-toggle {
    background: linear-gradient(135deg, #1e3a8a 0%, #312e81 100%);
}

.theme-toggle-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.toggle-icon {
    position: absolute;
    top: 2.5px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    left: 2.5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

body.dark-mode .toggle-icon {
    left: 27.5px;
}

.sun-icon, .moon-icon {
    position: absolute;
    font-size: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.sun-icon {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.moon-icon {
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.dark-mode .sun-icon {
    opacity: 0;
}

body.dark-mode .moon-icon {
    opacity: 1;
}

/* Enhanced Nature-inspired patterns */
.nature-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    background-image: 
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"><path d="M50,50 Q60,30 70,50 T90,50" fill="none" stroke="%234a5c3a" stroke-width="1"/><circle cx="150" cy="150" r="3" fill="%234a5c3a"/><path d="M120,100 Q130,85 140,100 T160,100" fill="none" stroke="%234a5c3a" stroke-width="0.5"/></svg>');
    pointer-events: none;
}

/* Flora decorations */
.flora-decoration {
    position: absolute;
    pointer-events: none;
    opacity: 0.1;
}

.flora-decoration.top-left {
    top: 10%;
    left: 5%;
    transform: rotate(-15deg);
}

.flora-decoration.top-right {
    top: 15%;
    right: 5%;
    transform: rotate(25deg);
}

.flora-decoration.bottom-left {
    bottom: 10%;
    left: 8%;
    transform: rotate(-30deg);
}

.flora-decoration.bottom-right {
    bottom: 15%;
    right: 10%;
    transform: rotate(45deg);
}

/* Custom Cursor & Particles for Hero Section */
.hero-cursor {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(107, 142, 91, 0.8);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, border 0.3s ease;
    z-index: 9999;
    mix-blend-mode: difference;
    display: none;
    box-shadow: 0 0 15px rgba(107, 142, 91, 0.5);
}

.hero-cursor::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #6b8e5b;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(107, 142, 91, 0.8);
}

body.dark-mode .hero-cursor {
    border-color: rgba(99, 102, 241, 0.8);
}

body.dark-mode .hero-cursor::after {
    background-color: #6366f1;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.8);
}

body.dark-mode .hero-cursor::before {
    border-color: rgba(99, 102, 241, 0.3);
}

.hero-cursor::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border: 1px solid rgba(107, 142, 91, 0.3);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { width: 60px; height: 60px; opacity: 0.3; }
    50% { width: 80px; height: 80px; opacity: 0.1; }
    100% { width: 60px; height: 60px; opacity: 0.3; }
}

/* Floating leaf animation */
@keyframes floatingLeaf {
    0% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(0) rotate(-5deg); }
    75% { transform: translateY(20px) rotate(5deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

.floating-leaf {
    position: absolute;
    width: 30px;
    height: 30px;
    opacity: 0.1;
    animation: floatingLeaf 6s ease-in-out infinite;
    pointer-events: none;
}

/* Header and Navigation */
header {
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(107, 142, 91, 0.2);
    background-color: rgba(255, 253, 245, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    min-height: 80px;
}

header.scrolled {
    padding: 0.8rem 5% !important;
    background-color: rgba(255, 253, 245, 0.98) !important;
}

header.scrolled .theme-toggle {
    width: 45px !important;
    height: 22px !important;
}

header.scrolled .toggle-icon {
    width: 18px !important;
    height: 18px !important;
    top: 2px !important;
    left: 2px !important;
}

body.dark-mode header.scrolled .toggle-icon {
    left: 25px !important;
}

body.dark-mode header {
    background-color: rgba(10, 14, 26, 0.95) !important;
    border-bottom-color: rgba(79, 70, 229, 0.2) !important;
}

body.dark-mode header.scrolled {
    background-color: rgba(10, 14, 26, 0.98) !important;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 10px;
}

.logo-container:hover {
    transform: translateY(-2px);
    background-color: rgba(107, 142, 91, 0.05);
}

body.dark-mode .logo-container:hover {
    background-color: rgba(99, 102, 241, 0.1);
}

.logo {
    width: 45px;
    height: 45px;
    transition: all 0.3s ease;
}

header.scrolled .logo {
    width: 35px !important;
    height: 35px !important;
}

.brand {
    display: flex;
    flex-direction: column;
    position: relative;
}

.brand-name {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.8rem;
    font-weight: 500;
    color: #2d3e2d;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

body.dark-mode .brand-name {
    color: #e0e0e0;
}

.brand-name::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #6b8e5b, transparent);
    bottom: 0;
    left: 0;
    transition: width 0.4s ease;
}

.logo-container:hover .brand-name::after {
    width: 100%;
}

header.scrolled .brand-name {
    font-size: 1.4rem !important;
}

.tagline {
    font-size: 0.8rem;
    font-weight: 300;
    color: #7a9c6a;
    font-style: italic;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

header.scrolled .tagline {
    font-size: 0.7rem !important;
}

nav {
    position: relative;
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

nav ul li {
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: #2d3e2d;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding-bottom: 5px;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #6b8e5b;
    transition: width 0.3s ease;
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

nav ul li a:hover,
nav ul li a.active {
    color: #6b8e5b;
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5rem 5% 7rem;
    background: linear-gradient(135deg, #a0b893 0%, #b8cfa7 50%, #90a47f 100%);
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    transition: all 0.5s ease;
}

body.dark-mode .hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 50%, rgba(184, 207, 167, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 70% 80%, rgba(144, 164, 127, 0.3) 0%, transparent 40%);
    z-index: 1;
}

/* Leaf decorations */
.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 80px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 80" preserveAspectRatio="none"><path d="M0,40 Q300,0 600,40 T1200,40 L1200,80 L0,80 Z" fill="%23f5f3e9"/></svg>');
    z-index: 2;
    transition: all 0.5s ease;
}

body.dark-mode .hero::after {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 80" preserveAspectRatio="none"><path d="M0,40 Q300,0 600,40 T1200,40 L1200,80 L0,80 Z" fill="%230a0e1a"/></svg>');
}

.hero-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    z-index: 10;
}

.hero-text-content {
    flex: 1;
    max-width: 550px;
    padding-right: 3rem;
}

.hero-title {
    font-family: 'Times New Roman', Times, serif;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.8s forwards;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    color: #fff;
    line-height: 1.8;
    animation: fadeInUp 0.8s forwards 0.3s;
    opacity: 0.95;
}

.featured-book-display {
    flex: 1;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    perspective: 1500px;
    animation: fadeInUp 0.8s forwards 0.5s;
}

.book-cover-container {
    position: relative;
    width: 280px;
    height: 380px;
    transform-style: preserve-3d;
    transform: rotateY(25deg);
    transition: all 0.5s ease;
}

.book-cover-container:hover {
    transform: rotateY(20deg) translateY(-10px);
}

.book-cover-left {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8b9d7a 0%, #a0b893 100%);
    border-radius: 2px 10px 10px 2px;
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    z-index: 2;
    transform-origin: left;
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-cover-design {
    width: 90%;
    height: 90%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    overflow: hidden;
}

.book-cover-design img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
}

.book-cover-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, 
        rgba(255, 255, 255, 0) 30%, 
        rgba(255, 255, 255, 0.1) 38%, 
        rgba(255, 255, 255, 0.1) 40%, 
        rgba(255, 255, 255, 0) 48%);
    transform: translateX(-100%);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    20% { transform: translateX(100%); }
    100% { transform: translateX(100%); }
}

.book-cover-right {
    position: absolute;
    width: 40px;
    height: 100%;
    left: 0;
    top: 0;
    background-color: #f1f1f1;
    border-radius: 2px 0 0 2px;
    transform: translateX(-40px) rotateY(90deg);
    transform-origin: right;
    z-index: 1;
}

.book-pages {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #e1e1e1, #f8f8f8);
    border-left: 2px solid #ddd;
    box-shadow: inset -7px 0 12px -7px rgba(0, 0, 0, 0.2);
}

.book-shadow {
    position: absolute;
    width: 280px;
    height: 40px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    bottom: -40px;
    border-radius: 50%;
    transform: rotateX(90deg) translateZ(-20px) scale(0.9);
    filter: blur(15px);
    z-index: 1;
}

.featured-book-info {
    margin-top: 50px;
    text-align: center;
    color: #fff;
    position: relative;
}

.featured-book-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.featured-book-author {
    font-size: 1rem;
    font-style: italic;
    opacity: 0.8;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.featured-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: rgba(107, 142, 91, 0.9);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    animation: fadeInUp 0.8s forwards 0.4s;
    cursor: pointer;
}

.featured-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: -1;
}

.featured-button:hover {
    background-color: #5a7a4a;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.featured-button:hover::before {
    transform: translateX(100%);
}

/* Collection Section - Very Slow Auto-scrolling Slider */
.featured-books {
    padding: 5rem 5% 5rem;
    background: linear-gradient(to bottom, #f5f3e9, #fdfbf3);
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.featured-books::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 5%;
    width: 100px;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50,20 Q30,40 50,60 Q70,40 50,20" fill="none" stroke="%236b8e5b" stroke-width="0.5" opacity="0.1"/></svg>');
    background-size: contain;
    opacity: 0.1;
    animation: floatingLeaf 8s ease-in-out infinite;
}

.section-title {
    font-family: 'Times New Roman', Times, serif;
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    text-align: center;
    color: #2d3e2d;
    position: relative;
    letter-spacing: -0.5px;
    font-weight: 400;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #6b8e5b, transparent);
    opacity: 0.8;
}

.section-title::after {
    content: '🌿';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    opacity: 0.3;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.5; transform: translateX(-50%) scale(1.1); }
}

/* Improved slider for Collection with smart behavior */
.slider-container {
    position: relative;
    margin: 3rem auto 0;
    padding: 0 1rem;
    overflow: hidden;
}

/* Dynamic container sizing based on book count */
.slider-container.books-1-2 {
    max-width: 600px; /* Center small collections */
}

.slider-container.books-3-5 {
    max-width: 1000px; /* Medium collections */
}

.slider-container.books-6-plus {
    max-width: 1200px; /* Full width for large collections */
}

.slider-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 20px 0;
}

.books-grid {
    display: flex;
    
    justify-content: center;
}

.books-inner {
    display: flex;
    gap: 2rem;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Static display for 1-2 books */
.books-inner.static {
    justify-content: center;
}

/* Animation for 3-5 books (manual navigation only) */
.books-inner.manual {
    /* No auto-animation, only manual navigation */
}

/* Auto-scroll animation for 6+ books */
.books-inner.auto-scroll {
    animation: scrollRight 30s linear infinite;
}

.books-inner.auto-scroll:hover {
    animation-play-state: paused;
}

@keyframes scrollRight {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-250px * 3));
    }
}

.book-card {
    flex: 0 0 auto;
    width: 230px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.4s ease;
    position: relative;
    padding: 20px;
    border-radius: 15px;
    background: linear-gradient(135deg, #ffffff 0%, #fafaf5 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transform: translateY(0);
    border: 1px solid rgba(107, 142, 91, 0.1);
    cursor: pointer;
}

.book-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(107, 142, 91, 0.3);
}

.book-cover {
    width: 100%;
    height: 280px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    transform-origin: bottom center;
    position: relative;
    background: linear-gradient(135deg, #90a47f 0%, #a0b893 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Fix for book cover images */
.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.4s ease;
}

.book-card:hover .book-cover img {
    transform: scale(1.05);
}

.book-cover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.book-card:hover .book-cover::after {
    opacity: 1;
}

.book-cover-flora {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.2;
    pointer-events: none;
}

.book-title {
    margin-top: 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    color: #2d3e2d;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 8px;
}

.book-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 1px;
    background-color: #6b8e5b;
    transition: width 0.3s ease;
}

.book-card:hover .book-title {
    color: #5a7a4a;
}

.book-card:hover .book-title::after {
    width: 50px;
}

.slider-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
    position: relative;
    padding: 10px;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #6b8e5b;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(107, 142, 91, 0.15);
    color: #6b8e5b;
    position: relative;
    overflow: hidden;
}

.slider-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6b8e5b 0%, #5a7a4a 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.slider-btn:hover::before {
    opacity: 1;
}

.slider-btn:hover {
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(107, 142, 91, 0.25);
    border-color: #5a7a4a;
}

.slider-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.slider-btn svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    position: relative;
    z-index: 2;
    transition: transform 0.2s ease;
}

.slider-btn:hover svg {
    transform: scale(1.1);
}

/* Dark mode styles for slider buttons */
body.dark-mode .slider-btn {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-color: #6366f1;
    color: #6366f1;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
}

body.dark-mode .slider-btn::before {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

body.dark-mode .slider-btn:hover {
    border-color: #4f46e5;
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.25);
}

/* Disabled state for buttons */
.slider-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

.slider-btn:disabled::before {
    opacity: 0 !important;
}

/* Hide navigation for static displays */
.slider-nav.hidden {
    display: none;
}



/* Book Display */

.book-container {
    flex: 1;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    perspective: 1500px;
    animation: fadeInUp 0.8s forwards 0.5s;
    position: relative;
    padding: 2rem 1rem;
    transition: all 0.3s ease;
  }

  .book-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 100%;
    background: linear-gradient(135deg, rgba(241, 245, 237, 0.3) 0%, rgba(232, 237, 224, 0.2) 100%);
    border-radius: 20px;
    filter: blur(20px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .book-container:hover::before {
    opacity: 1;
  }

  body.dark-mode .book-container::before {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.4) 0%, rgba(30, 41, 59, 0.3) 100%);
  }

  .book {
    position: relative;
    width: 210px;
    height: 300px;
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: all 0.3s ease;
  }

  .book-container:hover .book {
    transform: scale(1.05);
  }
  
  .book-icon {
    position: relative;
    width: 210px;
    height: 300px;
  }

  .book-icon img {
    width: 210px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
  }

  .book-container:hover .book-icon img {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
  }

  .book-cover-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, 
        rgba(255, 255, 255, 0) 30%, 
        rgba(255, 255, 255, 0.1) 38%, 
        rgba(255, 255, 255, 0.1) 40%, 
        rgba(255, 255, 255, 0) 48%);
    transform: translateX(-100%);
    animation: shine 3s infinite;
    pointer-events: none;
    z-index: 2;
    border-radius: 8px;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
  }

  @keyframes shine {
    0% { transform: translateX(-100%); }
    20% { transform: translateX(100%); }
    100% { transform: translateX(100%); }
  }

  body.dark-mode .book-cover-shine {
    background: linear-gradient(120deg, 
        rgba(255, 255, 255, 0) 30%, 
        rgba(255, 255, 255, 0.08) 38%, 
        rgba(255, 255, 255, 0.08) 40%, 
        rgba(255, 255, 255, 0) 48%);
  }

  .front li {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }

  body.dark-mode .front li {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  }
  
  .back li {
    background: linear-gradient(135deg, #0f6623 0%, #15803d 50%, #16a34a 100%);
    border-radius: 12px;
    width: 97.5%;
    box-shadow: 0 4px 15px rgba(15, 102, 35, 0.3);
    transition: all 0.3s ease;
  }

  body.dark-mode .back li {
    background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.4);
  }
  
  .page>li {
    background: linear-gradient(135deg, #f1f5ed 0%, #e8ede0 50%, #f8f9fa 100%);
    box-shadow: inset 0px -1px 2px rgba(50, 50, 50, 0.1),
        inset -1px 0px 1px rgba(150, 150, 150, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 0px 8px 8px 0px;
    width: 100%;
    height: 100%;
    transform-origin: left center;
    transition: all 0.3s ease;
  }

  body.dark-mode .page>li {
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    box-shadow: inset 0px -1px 2px rgba(0, 0, 0, 0.3),
        inset -1px 0px 1px rgba(255, 255, 255, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.2);
  }
  
  .front {
    transform: rotateY(-34deg) translateZ(8px);
  }
  
  .back {
    transform: rotateY(-15deg) translateZ(-8px);
  }
  
  .page li:nth-child(1) {
    transform: rotateY(-28deg);
  }
  
  .page li:nth-child(2) {
    transform: rotateY(-30deg);
  }
  
  .page li:nth-child(3) {
    transform: rotateY(-32deg);
  }
  
  .page li:nth-child(4) {
    transform: rotateY(-34deg);
  }
  
  .page li:nth-child(5) {
    transform: rotateY(-36deg);
  }
  
  .front,
  .back,
  .page,
  .front li,
  .back li {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
  }
  
  .front,
  .back {
    transform-origin: 0% 100%;
  }
  
  .front {
    transition: all 0.8s ease, z-index 0.6s;
  }
  
  .front li:last-child {
    transform: rotateY(180deg) translateZ(2px);
  }
  
  .page,
  .page>li {
    position: absolute;
  }
  
  .page {
    width: 100%;
    height: 98%;
    top: 1%;
    left: 3%;
  }
  
  .page li {
    transition-duration: 0.6s;
  }
  
  .book:hover .front {
    transform: rotateY(-145deg) translateZ(0);
  }
  
  .book:hover>.page li:nth-child(1) {
    transform: rotateY(-30deg);
    transition: 1.5s;
  }
  
  .book:hover>.page li:nth-child(2) {
    transform: rotateY(-35deg);
    transition: 1.8s;
  }
  
  /* page  4*/
  .book:hover>.page li:nth-child(3) {
    transform: rotateY(-125deg);
    transition: 1.6s;
  }
  
  /* page 3 */
  .book:hover>.page li:nth-child(4) {
    transform: rotateY(-135deg);
    transition: 1.2s;
  }
  
  .book:hover>.page li:nth-child(5) {
    transform: rotateY(-145deg);
    transition: 1.2s;
  }
  
  .frontcover {
    position: absolute;
    background: linear-gradient(135deg, #0f6623 0%, #15803d 30%, #16a34a 60%, #22c55e 100%);
    height: 100%;
    width: 100%;
    border-radius: 8px;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
    box-shadow: 0 4px 15px rgba(15, 102, 35, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    padding: 20px;
    overflow: hidden;
  }

  .frontcover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, 
        rgba(255, 255, 255, 0) 30%, 
        rgba(255, 255, 255, 0.1) 38%, 
        rgba(255, 255, 255, 0.1) 40%, 
        rgba(255, 255, 255, 0) 48%);
    transform: translateX(-100%);
    animation: shine 3s infinite;
    pointer-events: none;
    z-index: 1;
  }

  .book-container:hover .frontcover {
    box-shadow: 0 6px 20px rgba(15, 102, 35, 0.4);
  }

  body.dark-mode .frontcover {
    background: linear-gradient(135deg, #059669 0%, #10b981 30%, #34d399 60%, #6ee7b7 100%);
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.4);
  }

  body.dark-mode .book-container:hover .frontcover {
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.5);
  }
  
  .page li:nth-child(2) {
  
    height: 100%;
    /* Make sure this container fills the available space */
    display: flex;
    flex-direction: column;
    /* Allows the button to be placed below the text */
    overflow: hidden;
  
  }
  
  #book-text {
    flex-grow: 1;
    overflow: hidden;
    padding: 15px;
    color: #374151;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
    transition: all 0.3s ease;
  }

  body.dark-mode #book-text {
    color: #e5e7eb;
  }

  #book-text h3 {
    color: #0f6623;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
  }

  body.dark-mode #book-text h3 {
    color: #10b981;
  }

  #book-text p {
    margin-bottom: 10px;
    opacity: 0.9;
  }

  body.dark-mode #book-text p {
    opacity: 0.8;
  }
  
  .btn {
    align-self: center;
    margin-top: auto;
    padding: 10px 24px;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    background: linear-gradient(135deg, #0f6623 0%, #15803d 50%, #16a34a 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(15, 102, 35, 0.3);
  }

  .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;
  }

  .btn:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 102, 35, 0.4);
  }

  .btn:hover::before {
    left: 100%;
  }

  .btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(15, 102, 35, 0.3);
  }

  body.dark-mode .btn {
    background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.4);
  }

  body.dark-mode .btn:hover {
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.5);
  }

  body.dark-mode .btn:active {
    box-shadow: 0 2px 10px rgba(5, 150, 105, 0.3);
  }


/* News Section */
.news-section {
    padding: 5rem 5% 7rem;
    background: linear-gradient(135deg, #f1f5ed 0%, #e8ede0 100%);
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

body.dark-mode .news-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.news-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"><circle cx="50" cy="50" r="2" fill="%236b8e5b" opacity="0.1"/><path d="M100,50 Q120,30 140,50" fill="none" stroke="%236b8e5b" stroke-width="0.5" opacity="0.1"/><circle cx="150" cy="150" r="1.5" fill="%236b8e5b" opacity="0.1"/></svg>');
    opacity: 0.5;
}

.news-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    padding-bottom: 1.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}



.news-card {
    flex: 0 0 auto;
    width: 350px;
    background: linear-gradient(135deg, #ffffff 0%, #fdfdf9 100%);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    border: 1px solid rgba(107, 142, 91, 0.1);
    position: relative;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(107, 142, 91, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.news-card:hover::before {
    opacity: 1;
}

.news-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(107, 142, 91, 0.3);
}

.news-card:hover .news-image {
    transform: scale(1.1);
}

.news-card:hover .news-flora-pattern {
    opacity: 0.1;
}

.news-image-container {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: linear-gradient(135deg, #b8cfa7 0%, #a0b893 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    transition: all 0.4s ease;
}

.news-flora-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.3;
}

/* When no image is present, make the pattern more visible */
.news-image-container:not(:has(.news-image)) .news-flora-pattern {
    opacity: 0.6;
}

.collection-news-date {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    background-color: rgba(107, 142, 91, 0.9) !important;
    color: white !important;
    padding: 10px 15px !important;
    border-radius: 10px !important;
    text-align: center !important;
    line-height: 1.2 !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
    display: flex !important;
    flex-direction: column !important;
    z-index: 10 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.news-day {
    font-size: 1.5rem;
    font-weight: 600;
}

.news-month {
    font-size: 0.8rem;
    font-weight: 500;
}

.news-content {
    padding: 25px;
}

.news-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2d3e2d;
    transition: color 0.3s ease;
}

.news-card:hover .news-title {
    color: #5a7a4a;
}

.news-excerpt {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(107, 142, 91, 0.1);
    padding-top: 15px;
}

.news-category {
    font-size: 0.8rem;
    color: #6b8e5b;
    background-color: rgba(107, 142, 91, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
}

.news-read-more {
    font-size: 0.9rem;
    color: #6b8e5b;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.news-read-more .arrow {
    transition: transform 0.3s ease;
}

.news-read-more:hover {
    color: #5a7a4a;
}

.news-read-more:hover .arrow {
    transform: translateX(5px);
}

/* Subscribe Section with Advertisement Placeholders */
.subscribe {
    padding: 6rem 5% 8rem;
    background: linear-gradient(135deg, #f9f8f4 0%, #f5f3e9 100%);
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.subscribe-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    min-height: 600px;
    padding: 4rem 0;
}

.subscribe-ad {
    position: absolute;
    width: 200px;
    height: 600px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    border-radius: 15px;
    border: 2px dashed rgba(107, 142, 91, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1;
}

.subscribe-ad-left {
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
}

.subscribe-ad-right {
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
}

.subscribe-ad:hover {
    border-color: rgba(107, 142, 91, 0.5);
    transform: translateY(-50%) translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.subscribe-ad-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(107, 142, 91, 0.1) 0%, rgba(144, 164, 127, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.subscribe-ad-icon svg {
    width: 30px;
    height: 30px;
    stroke: #6b8e5b;
    stroke-width: 2;
    fill: none;
}

.subscribe-ad-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3e2d;
    margin-bottom: 0.5rem;
}

.subscribe-ad-subtitle {
    font-size: 0.85rem;
    color: #7a9c6a;
    line-height: 1.4;
}

.subscribe-ad-image {
    width: 100%;
    height: 120px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.subscribe-ad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.subscribe-ad:hover .subscribe-ad-image img {
    transform: scale(1.05);
}

.subscribe-ad-content {
    text-align: center;
}

.subscribe-ad-description {
    font-size: 0.8rem;
    color: #6b8e5b;
    line-height: 1.3;
    margin: 0.5rem 0 0 0;
}

.subscribe-main-content {
    flex: 1;
    max-width: 600px;
    text-align: center;
}

.subscribe-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.subscribe-curved-bg {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 110%;
    max-width: 650px;
    height: 160px;
    z-index: -1;
    pointer-events: none;
}

.curved-bg-svg {
    width: 100%;
    height: 100%;
}

.curved-text-box {
    transition: all 0.3s ease;
}

.curved-text-box-highlight {
    transition: all 0.3s ease;
}

.corner-flourish {
    transition: all 0.3s ease;
}

.subscribe-content:hover .curved-text-box {
    filter: url(#textBoxShadow) brightness(1.02);
}

.subscribe-content:hover .corner-flourish {
    opacity: 0.8;
    transform: scale(1.2);
}

body.dark-mode .curved-text-box {
    fill: url(#curvedGradientDark);
}

body.dark-mode .curved-text-box-highlight {
    fill: rgba(139, 92, 246, 0.15);
}

body.dark-mode .corner-flourish {
    fill: rgba(99, 102, 241, 0.4);
}

.subscribe-title {
    font-family: 'Times New Roman', Times, serif;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: #2d3e2d;
    font-weight: 400;
    letter-spacing: -0.5px;
    line-height: 1.2;
    position: relative;
    z-index: 3;
}

body.dark-mode .subscribe-title {
    color: #e0e0e0;
}

.subscribe-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #6b8e5b, transparent);
    opacity: 0.5;
}

body.dark-mode .subscribe-title::after {
    background: linear-gradient(90deg, transparent, #6366f1, transparent);
}

.subscribe-subtitle {
    font-size: 1.1rem;
    color: #5a6d5a;
    margin-bottom: 3rem;
    margin-top: 1rem;
    font-weight: 300;
    line-height: 1.6;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 3;
}

body.dark-mode .subscribe-subtitle {
    color: #a0a0a0;
}

.subscribe-form-wrapper {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(107, 142, 91, 0.1);
    transition: all 0.3s ease;
}

body.dark-mode .subscribe-form-wrapper {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.7) 100%);
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.subscribe-form-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1);
}

body.dark-mode .subscribe-form-wrapper:hover {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.form-label {
    display: block;
    font-size: 0.9rem;
    color: #6b8e5b;
    margin-bottom: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

body.dark-mode .form-label {
    color: #a5b4fc;
}

.subscribe-form {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.email-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(107, 142, 91, 0.2);
    border-radius: 50px;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.5);
    color: #2d3e2d;
    transition: all 0.3s ease;
    outline: none;
}

body.dark-mode .email-input {
    background-color: rgba(0, 0, 0, 0.2);
    border-color: rgba(99, 102, 241, 0.3);
    color: #e0e0e0;
}

.email-input::placeholder {
    color: #8a9b8a;
    font-style: italic;
}

body.dark-mode .email-input::placeholder {
    color: #6b7280;
}

.email-input:focus {
    border-color: #6b8e5b;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 4px rgba(107, 142, 91, 0.1);
}

body.dark-mode .email-input:focus {
    border-color: #6366f1;
    background-color: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.submit-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #6b8e5b 0%, #5a7a4a 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 25px rgba(107, 142, 91, 0.2);
    position: relative;
    overflow: hidden;
}

body.dark-mode .submit-btn {
    background: linear-gradient(135deg, #6366f1 0%, #4c1d95 100%);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.submit-btn::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.5s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(107, 142, 91, 0.3);
}

body.dark-mode .submit-btn:hover {
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn.success {
    animation: successPulse 0.6s ease;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.privacy-notice {
    font-size: 0.85rem;
    color: #7a9c6a;
    margin-bottom: 1rem;
    line-height: 1.5;
}

body.dark-mode .privacy-notice {
    color: #94a3b8;
}

.privacy-notice a {
    color: #6b8e5b;
    text-decoration: underline;
    transition: color 0.3s ease;
}

body.dark-mode .privacy-notice a {
    color: #a5b4fc;
}

.privacy-notice a:hover {
    color: #5a7a4a;
}

body.dark-mode .privacy-notice a:hover {
    color: #c7d2fe;
}

body.dark-mode .subscribe {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

body.dark-mode .subscribe-ad {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.7) 100%);
    border-color: rgba(99, 102, 241, 0.3);
}

body.dark-mode .subscribe-ad:hover {
    border-color: rgba(99, 102, 241, 0.5);
}

body.dark-mode .subscribe-ad-icon {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
}

body.dark-mode .subscribe-ad-icon svg {
    stroke: #6366f1;
}

body.dark-mode .subscribe-ad-title {
    color: #e0e0e0;
}

body.dark-mode .subscribe-ad-subtitle {
    color: #a5b4fc;
}

body.dark-mode .subscribe-ad-description {
    color: #a5b4fc;
}

/* Dark mode styles for Books page */
body.dark-mode .books-page {
    background: linear-gradient(135deg, #0a0e1a 0%, #0f172a 100%) !important;
}

body.dark-mode .books-page h1 {
    color: #e0e0e0 !important;
}

body.dark-mode .books-page p {
    color: #a0a0a0 !important;
}

body.dark-mode .books-page .books-bg-shape {
    opacity: 0.05 !important;
}

body.dark-mode .books-page .books-bg-shape path,
body.dark-mode .books-page .books-bg-shape circle {
    fill: #6366f1 !important;
    stroke: #6366f1 !important;
}

/* Subtle background patterns */
.subscribe::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(160, 184, 147, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(184, 207, 167, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(144, 164, 127, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

body.dark-mode .subscribe::before {
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(124, 58, 237, 0.06) 0%, transparent 50%);
}

/* Animated floating elements */
.subscribe-float {
    position: absolute;
    pointer-events: none;
    opacity: 0.15;
    animation: floatElement 15s ease-in-out infinite;
    transition: all 0.3s ease;
}

.subscribe-float:hover {
    opacity: 0.25;
    transform: scale(1.1);
}

.subscribe-float.left {
    left: 10%;
    top: 20%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}

.subscribe-float.right {
    right: 10%;
    bottom: 20%;
    width: 100px;
    height: 100px;
    animation-delay: 5s;
}

.subscribe-float.center {
    left: 50%;
    top: 10%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    animation-delay: 2.5s;
}

@keyframes floatElement {
    0%, 100% { transform: translateY(0) rotate(0deg) translateX(0); }
    25% { transform: translateY(-20px) rotate(5deg) translateX(10px); }
    50% { transform: translateY(10px) rotate(-5deg) translateX(-10px); }
    75% { transform: translateY(-10px) rotate(3deg) translateX(5px); }
}

.subscribe-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Confirmation Popup Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.confirmation-modal {
    background: linear-gradient(135deg, #ffffff 0%, #fafaf5 100%);
    border-radius: 20px;
    padding: 3rem;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.4s ease;
    position: relative;
    border: 2px solid rgba(107, 142, 91, 0.1);
}

body.dark-mode .confirmation-modal {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #6b8e5b 0%, #90a47f 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s ease 0.2s both;
}

body.dark-mode .modal-icon {
    background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.modal-icon svg {
    width: 40px;
    height: 40px;
    stroke: white;
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.modal-title {
    font-family: 'Times New Roman', Times, serif;
    font-size: 2rem;
    color: #2d3e2d;
    margin-bottom: 1rem;
    font-weight: 500;
}

body.dark-mode .modal-title {
    color: #e0e0e0;
}

.modal-message {
    font-size: 1rem;
    color: #5a6d5a;
    line-height: 1.6;
    margin-bottom: 2rem;
}

body.dark-mode .modal-message {
    color: #a0a0a0;
}

.modal-close-btn {
    padding: 0.8rem 2.5rem;
    background: linear-gradient(135deg, #6b8e5b 0%, #5a7a4a 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(107, 142, 91, 0.2);
}

body.dark-mode .modal-close-btn {
    background: linear-gradient(135deg, #6366f1 0%, #4c1d95 100%);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.modal-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(107, 142, 91, 0.3);
}

body.dark-mode .modal-close-btn:hover {
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4);
}

/* Page Management */
.page-section {
    display: none;
    min-height: 100vh;
}

.page-section.active {
    display: block;
}

#home-page {
    display: block;
}

/* About Us Page Styles */
.about-page {
    padding: 8rem 5% 5rem;
    background: linear-gradient(135deg, #f5f3e9 0%, #fdfbf3 100%);
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

body.dark-mode .about-page {
    background: linear-gradient(135deg, #0a0e1a 0%, #0f172a 100%);
}

.about-hero {
    text-align: center;
    max-width: 100%;
 
    position: relative;
    z-index: 2;
}

.about-hero h1 {
    font-family: 'Times New Roman', Times, serif;
    font-size: 3rem;
    color: #2d3e2d;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
    position: relative;
}

body.dark-mode .about-hero h1 {
    color: #e0e0e0;
}

.about-hero h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #6b8e5b, transparent);
}

body.dark-mode .about-hero h1::after {
    background: linear-gradient(90deg, transparent, #6366f1, transparent);
}

.about-intro {
    font-size: 1.2rem;
    color: #5a6d5a;
    line-height: 1.8;
    margin-bottom: 3rem;
}

body.dark-mode .about-intro {
    color: #a0a0a0;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafaf5 100%);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(107, 142, 91, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

body.dark-mode .about-card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-color: rgba(99, 102, 241, 0.2);
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #6b8e5b, #90a47f);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

body.dark-mode .about-card::before {
    background: linear-gradient(90deg, #6366f1, #818cf8);
}

.about-card:hover::before {
    transform: scaleX(1);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.about-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6b8e5b 0%, #90a47f 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

body.dark-mode .about-icon {
    background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
}

.about-icon svg {
    width: 30px;
    height: 30px;
    stroke: white;
    stroke-width: 2;
    fill: none;
}

.about-card h3 {
    font-size: 1.5rem;
    color: #2d3e2d;
    margin-bottom: 1rem;
    font-weight: 500;
}

body.dark-mode .about-card h3 {
    color: #e0e0e0;
}

.about-card p {
    color: #5a6d5a;
    line-height: 1.6;
}

body.dark-mode .about-card p {
    color: #a0a0a0;
}

.about-bg-shape {
    position: absolute;
    opacity: 0.1;
    pointer-events: none;
}

.about-bg-shape.shape-1 {
    top: 10%;
    right: 5%;
    width: 200px;
    height: 200px;
}

.about-bg-shape.shape-2 {
    bottom: 10%;
    left: 5%;
    width: 150px;
    height: 150px;
}

/* Legacy contact page styles - replaced by contact-page.css */



/* Footer */
footer {
    padding: 2rem 5%;
    background: linear-gradient(135deg, #2d3e2d 0%, #3a4d3a 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    min-height: 200px;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M20,50 Q30,30 40,50 T60,50" fill="none" stroke="%236b8e5b" stroke-width="0.3" opacity="0.2"/></svg>');
    opacity: 0.3;
}

/* Footer particle canvas */
#footer-particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Footer floating elements */
.footer-float {
    position: absolute;
    pointer-events: none;
    opacity: 0.15;
    animation: footerFloat 20s ease-in-out infinite;
    transition: all 0.3s ease;
}

.footer-float:hover {
    opacity: 0.25;
    transform: scale(1.1);
}

.footer-float-left {
    left: 10%;
    top: 20%;
    animation-delay: 0s;
}

.footer-float-right {
    right: 10%;
    bottom: 20%;
    animation-delay: 10s;
}

.footer-float-center {
    left: 50%;
    top: 10%;
    transform: translateX(-50%);
    animation-delay: 5s;
}

@keyframes footerFloat {
    0%, 100% { transform: translateY(0) rotate(0deg) translateX(0); }
    25% { transform: translateY(-15px) rotate(3deg) translateX(8px); }
    50% { transform: translateY(8px) rotate(-3deg) translateX(-8px); }
    75% { transform: translateY(-8px) rotate(2deg) translateX(5px); }
}

/* Footer wave animation */
.footer-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    overflow: hidden;
    z-index: 1;
}

.footer-wave svg {
    width: 100%;
    height: 100%;
    animation: footerWave 8s ease-in-out infinite;
}

@keyframes footerWave {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-20px); }
}

.footer-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-tagline {
    font-size: 0.8rem;
    opacity: 0.6;
    font-style: italic;
    transition: all 0.3s ease;
}

.footer-text:hover .copyright,
.footer-text:hover .footer-tagline {
    opacity: 1;
    transform: scale(1.05);
}

/* Social icons with animations */
.social-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.social-icon {
    position: relative;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.social-icon i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
}

.social-icon:hover i {
    transform: scale(1.2);
}

.social-hover-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.social-icon:hover .social-hover-effect {
    transform: translateX(100%);
}

/* Dark Mode Additional Styles */
body.dark-mode .tagline {
    color: #a5b4fc !important;
}

body.dark-mode nav ul li a {
    color: #e0e0e0 !important;
}

body.dark-mode nav ul li a:hover,
body.dark-mode nav ul li a.active {
    color: #a5b4fc !important;
}

body.dark-mode nav ul li a:after {
    background-color: #6366f1 !important;
}

body.dark-mode .book-cover-left {
    background: linear-gradient(135deg, #4c1d95 0%, #5b21b6 100%);
}

body.dark-mode .section-title {
    color: #e0e0e0;
}

body.dark-mode .section-title::before {
    background: linear-gradient(90deg, transparent, #6366f1, transparent);
}

body.dark-mode .section-title::after {
    content: '✨';
}

body.dark-mode .featured-books {
    background: linear-gradient(to bottom, #0a0e1a, #0f172a);
}

body.dark-mode .book-card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-color: rgba(99, 102, 241, 0.1);
}

body.dark-mode .book-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
}

body.dark-mode .book-title {
    color: #e0e0e0;
}

body.dark-mode .book-card:hover .book-title {
    color: #a5b4fc;
}

body.dark-mode .book-title::after {
    background-color: #6366f1;
}

body.dark-mode .book-card:hover .book-title::after {
    width: 50px;
}

body.dark-mode .book-cover {
    background: linear-gradient(135deg, #4c1d95 0%, #5b21b6 100%);
}

body.dark-mode .news-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

body.dark-mode .news-card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-color: rgba(99, 102, 241, 0.1);
}

body.dark-mode .news-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
}

body.dark-mode .news-image-container {
    background: linear-gradient(135deg, #4c1d95 0%, #5b21b6 100%);
}

body.dark-mode .news-title {
    color: #e0e0e0;
}

body.dark-mode .news-card:hover .news-title {
    color: #a5b4fc;
}

body.dark-mode .news-excerpt {
    color: #cbd5e1;
}

body.dark-mode .news-category {
    background-color: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

body.dark-mode .collection-news-date {
    background-color: rgba(99, 102, 241, 0.9) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

body.dark-mode .news-meta {
    border-top-color: rgba(99, 102, 241, 0.1);
}

body.dark-mode .news-read-more {
    color: #a5b4fc;
}

body.dark-mode .news-read-more:hover {
    color: #c7d2fe;
}

body.dark-mode footer {
    background: linear-gradient(135deg, #0a0e1a 0%, #0f172a 100%);
}

body.dark-mode .copyright {
    opacity: 0.8;
}

body.dark-mode .footer-tagline {
    color: #94a3b8;
}

body.dark-mode .social-icon {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
}

body.dark-mode .social-icon:hover {
    background: rgba(99, 102, 241, 0.2);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

body.dark-mode .footer-float-path {
    fill: rgba(99, 102, 241, 0.1);
}

body.dark-mode .footer-float-circle {
    fill: rgba(99, 102, 241, 0.2);
}

body.dark-mode .featured-button {
    background-color: rgba(99, 102, 241, 0.9);
}

body.dark-mode .featured-button:hover {
    background-color: #4c1d95;
}

body.dark-mode .slider-btn {
    background-color: #1e293b;
    border-color: #6366f1;
    color: #6366f1;
}

body.dark-mode .slider-btn:hover {
    background-color: #6366f1;
    color: white;
}

body.dark-mode .book-cover-design {
    border-color: rgba(139, 92, 246, 0.3);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
}

body.dark-mode .nature-pattern {
    opacity: 0.01;
}

body.dark-mode .flora-decoration {
    opacity: 0.05;
}

body.dark-mode .flora-decoration .flora-path {
    fill: #6366f1;
}

body.dark-mode .flora-decoration .flora-circle {
    fill: #a5b4fc;
}

/* Shooting stars for dark mode */
.shooting-star {
    position: absolute;
    top: 0;
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.8), transparent);
    opacity: 0;
    pointer-events: none;
    z-index: 2;
}

body.dark-mode .shooting-star {
    animation: shootingStar 3s ease-in-out infinite;
}

@keyframes shootingStar {
    0% {
        opacity: 0;
        transform: translateY(-100px) translateX(0) rotate(45deg);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(500px) translateX(300px) rotate(45deg);
    }
}

/* Enhanced Nature-inspired patterns */
.nature-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    background-image: 
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"><path d="M50,50 Q60,30 70,50 T90,50" fill="none" stroke="%234a5c3a" stroke-width="1"/><circle cx="150" cy="150" r="3" fill="%234a5c3a"/><path d="M120,100 Q130,85 140,100 T160,100" fill="none" stroke="%234a5c3a" stroke-width="0.5"/></svg>');
    pointer-events: none;
}

/* Particle adjustments for dark mode */
body.dark-mode #particle-canvas {
    opacity: 0.3;
}

body.dark-mode .logo circle:first-child {
    fill: #4c1d95;
}

body.dark-mode .logo path {
    fill: #5b21b6;
    stroke: #6366f1;
}

body.dark-mode .logo line {
    stroke: #6366f1;
}

body.dark-mode .logo circle:not(:first-child) {
    fill: #a5b4fc;
}

.theme-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode .theme-toggle:hover {
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

header.scrolled .sun-icon, header.scrolled .moon-icon {
    font-size: 11px;
}

.submit-btn.loading {
    pointer-events: none;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

html {
    scroll-behavior: smooth;
}

/* About Page Styles */
.about-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, 
        rgba(125, 162, 121, 0.1) 0%, 
        rgba(243, 226, 172, 0.1) 50%, 
        rgba(125, 162, 121, 0.05) 100%);
    overflow: hidden;
    padding: 2rem;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(125, 162, 121, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(243, 226, 172, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(160, 184, 147, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.about-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-hero-content .hero-title {
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s ease-out;
}

.about-hero-content .hero-title .highlight {
    color: var(--color-primary);
    position: relative;
}

.about-hero-content .hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 2px;
}

.about-hero-content .hero-subtitle {
    font-size: 1.5rem;
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-decorative-line {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    margin: 0 auto;
    border-radius: 1px;
    position: relative;
    animation: fadeInUp 1s ease-out 0.6s both, expandWidth 1s ease-out 0.8s both;
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 100px;
    }
}

.hero-decorative-line::before,
.hero-decorative-line::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
}

.hero-decorative-line::before {
    left: -15px;
}

.hero-decorative-line::after {
    right: -15px;
}

/* About Content Section */
.about-content-section {
    position: relative;
    padding: 5rem 2rem;
    background: linear-gradient(to bottom, #f5f3e9, #fdfbf3);
    overflow: hidden;
}

.about-content-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* Story Cards */
.about-story {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.story-card {
    background: var(--color-card);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--color-shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.story-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.story-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--color-shadow);
}

.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    position: relative;
}

/* Nature Icons */
.leaf-icon {
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    border-radius: 0 100% 0 100%;
    position: relative;
    transform: rotate(45deg);
}

.leaf-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    width: 2px;
    height: 80%;
    background: var(--color-secondary);
}

.tree-icon {
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    border-radius: 50% 50% 0 0;
    position: relative;
}

.tree-icon::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20%;
    height: 20px;
    background: #8B4513;
    border-radius: 2px;
}

.flower-icon {
    width: 100%;
    height: 100%;
    position: relative;
    background: var(--color-secondary);
    border-radius: 50%;
}

.flower-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: var(--color-primary);
    border-radius: 50%;
}

.story-card h3 {
    font-size: 1.5rem;
    color: var(--color-text);
    margin-bottom: 1rem;
    font-weight: 600;
}

.story-card p {
    color: rgba(0, 0, 0, 0.7);
    line-height: 1.6;
    font-size: 1rem;
}

/* Values Section */
.values-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--color-text);
    margin-bottom: 3rem;
    font-weight: 600;
}

.values-title .highlight {
    color: var(--color-primary);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-item {
    text-align: center;
    padding: 2rem;
    background: var(--color-card);
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--color-shadow);
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--color-shadow);
}

.value-emoji {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.value-item h4 {
    font-size: 1.3rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.value-item p {
    color: rgba(0, 0, 0, 0.6);
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Floating Leaves Animation */
.floating-leaves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.leaf {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--color-primary);
    border-radius: 0 100% 0 100%;
    opacity: 0.3;
    animation: float 15s infinite linear;
}

.leaf::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    width: 1px;
    height: 80%;
    background: var(--color-secondary);
}

.leaf-1 {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.leaf-2 {
    left: 25%;
    animation-delay: 3s;
    animation-duration: 15s;
}

.leaf-3 {
    left: 50%;
    animation-delay: 6s;
    animation-duration: 18s;
}

.leaf-4 {
    left: 75%;
    animation-delay: 9s;
    animation-duration: 14s;
}

.leaf-5 {
    left: 90%;
    animation-delay: 12s;
    animation-duration: 16s;
}

@keyframes float {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(calc(100vh + 100px)) rotate(360deg);
        opacity: 0;
    }
}

/* Dark Mode Styles for About Page */
body.dark-mode .about-hero {
    background: linear-gradient(135deg,
        rgba(30, 64, 175, 0.1) 0%,
        rgba(79, 70, 229, 0.1) 50%,
        rgba(99, 102, 241, 0.05) 100%);
}

body.dark-mode .about-hero-content .hero-title {
    color: #e0e0e0;
}

body.dark-mode .about-hero-content .hero-subtitle {
    color: rgba(224, 224, 224, 0.7);
}

body.dark-mode .about-content-section {
    background: #0a0e1a;
}

body.dark-mode .story-card,
body.dark-mode .value-item {
    background: rgba(30, 64, 175, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.2);
}

body.dark-mode .story-card h3,
body.dark-mode .value-item h4,
body.dark-mode .values-title {
    color: #e0e0e0;
}

body.dark-mode .story-card p,
body.dark-mode .value-item p {
    color: rgba(224, 224, 224, 0.7);
}

body.dark-mode .shooting-star {
    background: linear-gradient(to bottom,
        transparent,
        rgba(255, 255, 255, 0.9),
        rgba(200, 200, 255, 0.8),
        transparent);
    opacity: 1;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

body.dark-mode .shooting-star::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 1), transparent);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.9);
}

/* Media Queries */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text-content {
        padding-right: 0;
        margin-bottom: 3rem;
        max-width: 100%;
    }
    
    nav {
        flex-direction: row;
    }
    
    .theme-toggle {
        margin-right: 1.5rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .subscribe-container {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem 0;
        min-height: auto;
    }
    
    .subscribe-ad {
        position: static !important;
        transform: none !important;
        height: 150px;
        width: 100%;
        max-width: 400px;
        margin: 1rem auto;
        flex-direction: row;
        text-align: left;
        padding: 1.5rem;
    }
    
    .subscribe-ad-icon {
        margin-bottom: 0;
        margin-right: 1rem;
        flex-shrink: 0;
    }
    
    .subscribe-ad-image {
        width: 80px;
        height: 80px;
        margin-right: 1rem;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .subscribe-ad-content {
        text-align: left;
        flex: 1;
    }
    
    .subscribe-content {
        order: 2;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .subscribe-ad-left {
        order: 1;
    }
    
    .subscribe-ad-right {
        order: 3;
    }
    
    @keyframes scrollRight {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-220px * 3));
        }
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .theme-toggle {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    nav ul {
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .book-card {
        width: 200px;
    }
    
    .book-cover {
        height: 250px;
    }
    
    .news-card {
        width: 300px;
    }

    .news-container {
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .subscribe-container {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem 0;
        min-height: auto;
    }
    
    .subscribe-ad {
        height: 120px;
        max-width: 350px;
        padding: 1rem;
    }
    
    .subscribe-ad-icon {
        width: 40px;
        height: 40px;
        margin-right: 0.75rem;
    }
    
    .subscribe-ad-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .subscribe-ad-title {
        font-size: 1rem;
    }
    
    .subscribe-title {
        font-size: 2.2rem;
    }
    
    .subscribe-form-wrapper {
        padding: 2rem;
    }
    
    .subscribe-form {
        flex-direction: column;
    }
    
    .submit-btn {
        width: 100%;
        justify-content: center;
    }
    
    .subscribe-float {
        display: none;
    }
    
    .subscribe-curved-bg {
        width: 95%;
        top: -15px;
        height: 140px;
    }
    
    .about-hero h1,
    .contact-info h1 {
        font-size: 2.5rem;
    }
    
    /* About Page Responsive for 768px */
    .about-hero-content .hero-title {
        font-size: 2.5rem;
    }

    .about-hero-content .hero-subtitle {
        font-size: 1.2rem;
    }

    .about-content-section {
        padding: 3rem 1rem;
    }

    .about-story {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .story-card {
        padding: 2rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .values-title {
        font-size: 2rem;
    }
    
    @keyframes scrollRight {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-200px * 3));
        }
    }
}

@media (max-width: 480px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem 1.5rem;
    }
    
    .hero {
        padding: 5rem 5%;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .book-card {
        width: 160px;
    }
    
    .book-cover {
        height: 220px;
    }
    
    .book-cover-container {
        width: 200px;
        height: 300px;
    }
    
    .featured-book-display {
        transform: scale(0.8);
    }
    
    .news-card {
        width: 280px;
    }

    .news-container {
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .subscribe-curved-bg {
        width: 90%;
        top: -10px;
        height: 120px;
    }
    
    .subscribe-title {
        font-size: 1.8rem;
    }
    
    .subscribe-subtitle {
        font-size: 1rem;
    }
    
    .subscribe-form-wrapper {
        padding: 1.5rem;
    }
    
    .theme-toggle {
        top: 10px;
        right: 10px;
        width: 50px;
        height: 25px;
    }
    
    .toggle-icon {
        width: 20px;
        height: 20px;
        top: 2.5px;
    }
    
    body.dark-mode .toggle-icon {
        left: 27.5px;
    }
    
    .stars {
        display: none; /* Hide stars on mobile for performance */
    }
    
    .about-hero h1,
    .contact-info h1 {
        font-size: 2rem;
    }
    
    /* About Page Responsive for 480px */
    .about-hero-content .hero-title {
        font-size: 2rem;
    }

    .about-hero-content .hero-subtitle {
        font-size: 1rem;
    }

    .story-card {
        padding: 1.5rem;
    }

    .value-item {
        padding: 1.5rem;
    }

    .card-icon {
        width: 50px;
        height: 50px;
    }

    .value-emoji {
        font-size: 2.5rem;
    }
    
    .about-intro,
    .contact-intro {
        font-size: 1rem;
    }
    
    .subscribe-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
        min-height: auto;
    }
    
    .subscribe-ad {
        height: 100px;
        max-width: 300px;
        padding: 0.75rem;
    }
    
    .subscribe-ad-icon {
        width: 35px;
        height: 35px;
        margin-right: 0.5rem;
    }
    
    .subscribe-ad-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .subscribe-ad-title {
        font-size: 0.9rem;
    }
    
    .subscribe-curved-bg {
        width: 85%;
        top: -8px;
        height: 100px;
    }
    
    .contact-form-wrapper {
        padding: 2rem;
    }
    
    @keyframes scrollRight {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-160px * 3));
        }
    }
    
    /* About Page Responsive */
    .about-hero {
        min-height: 80vh;
        padding: 1rem;
    }

    .about-hero-content .hero-title {
        font-size: 2.5rem;
    }

    .about-hero-content .hero-subtitle {
        font-size: 1.2rem;
    }

    .about-content-section {
        padding: 3rem 1rem;
    }

    .about-story {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .story-card {
        padding: 2rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .values-title {
        font-size: 2rem;
    }
    
    /* Footer responsive adjustments */
    footer {
        min-height: 150px;
    }
    
    .footer-float {
        display: none;
    }
    
    .social-icons {
        gap: 1rem;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
    }
    
    .social-icon i {
        font-size: 1rem;
    }
    
    .footer-wave {
        height: 40px;
    }
}


/* Contact Page Styles */
.contact-content {
    padding: 4rem 0;
    background: var(--color-background);
    position: relative;
}

.contact-content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-form-section {
    order: 1;
}

.form-card {
    background: var(--color-card);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px var(--color-shadow);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 20px 20px 0 0;
}

.form-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--color-shadow);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.message-icon {
    width: 40px;
    height: 30px;
    border: 3px solid white;
    border-radius: 8px;
    position: relative;
}

.message-icon::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
}

.form-header h3 {
    font-size: 2rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-header p {
    color: rgba(0, 0, 0, 0.6);
    font-size: 1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.label-icon {
    font-size: 1.2rem;
}

.input-group input,
.input-group textarea {
    padding: 1rem;
    border: 2px solid var(--color-border);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--color-card);
    color: var(--color-text);
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(107, 142, 91, 0.1);
}

.input-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(107, 142, 91, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
    transform: translateX(5px);
}

.contact-info-section {
    order: 2;
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.info-card {
    background: var(--color-card);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px var(--color-shadow);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--color-shadow);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
}

.location-icon {
    width: 25px;
    height: 25px;
    border: 3px solid white;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    position: relative;
}

.location-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.phone-icon {
    width: 25px;
    height: 25px;
    border: 3px solid white;
    border-radius: 50%;
    position: relative;
}

.phone-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border: 2px solid white;
    border-radius: 50%;
}

.email-icon {
    width: 25px;
    height: 18px;
    border: 3px solid white;
    border-radius: 3px;
    position: relative;
}

.email-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 15px;
    height: 2px;
    background: white;
    border-radius: 1px;
}

.email-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 15px;
    height: 2px;
    background: white;
    border-radius: 1px;
    top: 30%;
}

.info-card h4 {
    font-size: 1.3rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.info-card p {
    color: rgba(0, 0, 0, 0.7);
    line-height: 1.6;
}

.card-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.info-card:hover .card-decoration {
    transform: scaleX(1);
}

.contact-features {
    background: var(--color-card);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px var(--color-shadow);
    border: 1px solid var(--color-border);
    z-index: 10;
}

.contact-features h4 {
    font-size: 1.5rem;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.contact-features .highlight {
    color: var(--color-primary);
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature-emoji {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(107, 142, 91, 0.1);
    border-radius: 50%;
}

.feature-item h5 {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.feature-item p {
    color: rgba(0, 0, 0, 0.6);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Dark mode styles for contact page */
body.dark-mode .contact-content {
    background: var(--color-background);
}

body.dark-mode .form-card,
body.dark-mode .info-card,
body.dark-mode .contact-features {
    background: var(--color-card);
    border-color: var(--color-border);
}

body.dark-mode .form-header h3,
body.dark-mode .info-card h4,
body.dark-mode .contact-features h4,
body.dark-mode .feature-item h5 {
    color: var(--color-text);
}

body.dark-mode .form-header p,
body.dark-mode .info-card p,
body.dark-mode .feature-item p {
    color: rgba(255, 255, 255, 0.7);
}

body.dark-mode .input-group input,
body.dark-mode .input-group textarea {
    background: var(--color-card);
    color: var(--color-text);
    border-color: var(--color-border);
}

body.dark-mode .input-group input::placeholder,
body.dark-mode .input-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

body.dark-mode .input-group input:focus,
body.dark-mode .input-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Responsive styles for contact page */
@media (max-width: 1200px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-hero {
        min-height: 60vh;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        min-height: 50vh;
        padding: 1rem;
    }
    
    .contact-hero-title {
        font-size: 2.5rem;
    }
    
    .contact-hero-subtitle {
        font-size: 1.2rem;
    }
    
    .contact-content {
        padding: 3rem 0;
    }
    
    .form-card {
        padding: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-features {
        padding: 1.5rem;
    }
    
    .feature-item {
        padding: 0.75rem;
    }
    
    .feature-emoji {
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .contact-hero-title {
        font-size: 2rem;
    }
    
    .contact-hero-subtitle {
        font-size: 1rem;
    }
    
    .form-card {
        padding: 1.5rem;
    }
    
    .form-icon {
        width: 60px;
        height: 60px;
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
    }
    
    .contact-features {
        padding: 1rem;
    }
    
    .info-card {
        padding: 1.5rem;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .feature-emoji {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}
 
/* Res
ponsive adjustments for featured books slider */
@media (max-width: 1024px) {
    .slider-container.books-1-2 {
        max-width: 500px;
    }
    
    .slider-container.books-3-5 {
        max-width: 800px;
    }
    
    .slider-container.books-6-plus {
        max-width: 1000px;
    }
    
    .book-card {
        width: 200px;
    }
    
    .slider-btn {
        width: 45px;
        height: 45px;
    }
    
    .slider-btn svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 768px) {
    .featured-books {
        padding: 3rem 3% 3rem;
    }
    
    .slider-container {
        margin: 2rem auto 0;
    }
    
    .slider-container.books-1-2 {
        max-width: 400px;
    }
    
    .slider-container.books-3-5 {
        max-width: 600px;
    }
    
    .slider-container.books-6-plus {
        max-width: 800px;
    }
    
    .book-card {
        width: 180px;
        padding: 15px;
    }
    
    .book-cover {
        height: 240px;
    }
    
    .slider-nav {
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
    }
    
    .slider-btn svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .featured-books {
        padding: 2rem 2% 2rem;
    }
    
    .slider-container.books-1-2 {
        max-width: 320px;
    }
    
    .slider-container.books-3-5 {
        max-width: 400px;
    }
    
    .slider-container.books-6-plus {
        max-width: 500px;
    }
    
    .book-card {
        width: 160px;
        padding: 12px;
    }
    
    .book-cover {
        height: 220px;
    }
    
    .book-title {
        font-size: 0.9rem;
        margin-top: 1rem;
    }
    
    .books-inner {
        gap: 1rem;
    }
}

/* Focus styles for accessibility */
.slider-btn:focus {
    outline: 2px solid #6b8e5b;
    outline-offset: 2px;
}

body.dark-mode .slider-btn:focus {
    outline-color: #6366f1;
}

/* Smooth animations */
.book-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.book-card:nth-child(1) { animation-delay: 0.1s; }
.book-card:nth-child(2) { animation-delay: 0.2s; }
.book-card:nth-child(3) { animation-delay: 0.3s; }
.book-card:nth-child(4) { animation-delay: 0.4s; }
.book-card:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation fade in */
.slider-nav {
    opacity: 0;
    animation: fadeIn 0.8s ease 0.6s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}