/* ===================================
   CSS Variables & Reset
   =================================== */
:root {
    --primary-color: #87CEEB;
    --secondary-color: #5C3317;
    --accent-color: #7CB342;
    --background-light: #F5F5F0;
    --text-dark: #3E2723;
    --text-light: #666;
    --white: #FFFFFF;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand h2 {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary-color);
    cursor: pointer;
}

/* ===================================
   Hero Section
   =================================== */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px; /* Add space at top to prevent head cutoff */
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    object-fit: cover;
    object-position: center 15%; /* Position video to show heads clearly */
    transform: translateY(20%); /* Shift video down to reveal top portion */
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.8), 
                 0 0 20px rgba(0, 0, 0, 0.6),
                 0 0 40px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 1s ease;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 400;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8),
                 0 0 15px rgba(0, 0, 0, 0.6),
                 0 0 30px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 1s ease 0.2s backwards;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 15px 30px;
    border-radius: 8px;
    display: inline-block;
    backdrop-filter: blur(5px);
}

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

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    animation: fadeInUp 1s ease 0.4s backwards;
}

.btn-primary:hover {
    background-color: #4a2810;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(92, 51, 23, 0.3);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #6BB6D6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(135, 206, 235, 0.3);
}

/* ===================================
   Sections
   =================================== */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* ===================================
   About Section
   =================================== */
.about-section {
    background-color: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.about-image {
    text-align: center;
}

.about-image img {
    border-radius: 50%;
    max-width: 300px;
    box-shadow: var(--shadow);
    margin: 0 auto;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.8;
}

/* ===================================
   Books Section
   =================================== */
.books-section {
    background-color: var(--background-light);
}

.books-carousel {
    width: 100%;
    margin: 0 auto;
    margin-bottom: 50px;
}

.book-card {
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 15px;
    height: 100%;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.book-image {
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #f9f9f9;
    overflow: hidden;
}

.book-image img {
    width: 280px;
    height: 400px;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.book-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.book-title {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.book-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 15px;
}

.book-description {
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex: 1;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Slick Carousel Customization */
.slick-prev, .slick-next {
    font-size: 0;
    position: absolute;
    top: 50%;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(92, 51, 23, 0.8);
    color: white;
    transform: translateY(-50%);
    transition: background-color 0.3s;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}

.slick-prev:hover, .slick-next:hover {
    background-color: rgba(92, 51, 23, 1);
}

.slick-prev {
    left: -20px;
}

.slick-next {
    right: -20px;
}

.slick-prev:before, .slick-next:before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 20px;
    opacity: 1;
}

.slick-prev:before {
    content: '\f053';
}

.slick-next:before {
    content: '\f054';
}

.slick-dots {
    bottom: -40px;
}

.slick-dots li button:before {
    font-size: 12px;
    color: var(--primary-color);
}

.slick-dots li.slick-active button:before {
    color: var(--secondary-color);
}

/* ===================================
   Contact Section
   =================================== */
.contact-section {
    background-color: var(--white);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.2rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-item a {
    color: var(--secondary-color);
    font-weight: 600;
}

.contact-item a:hover {
    color: var(--primary-color);
}

/* ===================================
   Footer
   =================================== */
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    margin: 0;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-image img {
        max-width: 250px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
        gap: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        padding: 1rem 0;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .book-image {
        height: 350px;
        padding: 30px 20px;
    }
    
    .book-image img {
        height: 100%;
        width: auto;
        max-width: 100%;
    }
    
    .slick-prev {
        left: -10px;
    }
    
    .slick-next {
        right: -10px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .about-image img {
        max-width: 200px;
    }
}



/* ===================================
   Logo Styling
   =================================== */
.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    height: 180px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

/* ===================================
   Contact Form Styling
   =================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-form-container {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-message {
    display: none;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    text-align: center;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 2px solid #28a745;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Lato', sans-serif;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group.error .form-control {
    border-color: #dc3545;
}

.form-group.success .form-control {
    border-color: #28a745;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.btn-block {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
}

.contact-info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-box {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.contact-info-box h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.contact-info-box p {
    color: var(--text-dark);
    line-height: 1.6;
}

.contact-info-box .contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.contact-info-box .contact-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.contact-info-box .contact-item a {
    color: var(--secondary-color);
    font-weight: 600;
    word-break: break-all;
}

.contact-info-box .contact-item a:hover {
    color: var(--primary-color);
}

/* ===================================
   Footer Updates
   =================================== */
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo img {
    height: 100px;
    width: auto;
    display: block;
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(103%) contrast(103%);
    /* This makes the star icon pure white */
}

.footer-brand-name {
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    font-family: 'Playfair Display', serif;
    text-align: center;
}

.footer-text {
    margin: 0;
    font-size: 0.9rem;
    color: var(--white);
}

/* ===================================
   Responsive Updates
   =================================== */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .logo-image {
        height: 140px;
    }
    
    .footer-logo img {
        height: 80px;
    }
    
    .footer-brand-name {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .logo-image {
        height: 120px;
    }
    
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .footer-logo img {
        height: 70px;
    }
    
    .footer-brand-name {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .logo-image {
        height: 100px;
    }
    
    .footer-logo img {
        height: 60px;
    }
    
    .footer-brand-name {
        font-size: 1.25rem;
    }
}



/* ===================================
   Reviews Section
   =================================== */
.reviews-section {
    background-color: #f8f9fa;
}

.reviews-carousel {
    margin-top: 3rem;
}

.review-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 0 15px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-stars {
    color: #FFB800;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: 3px;
}

.review-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333;
    font-style: italic;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.review-author {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
    text-align: right;
    margin: 0;
}

/* Reviews Carousel Navigation */
.reviews-carousel .slick-prev,
.reviews-carousel .slick-next {
    width: 50px;
    height: 50px;
    z-index: 1;
}

.reviews-carousel .slick-prev {
    left: -60px;
}

.reviews-carousel .slick-next {
    right: -60px;
}

.reviews-carousel .slick-prev:before,
.reviews-carousel .slick-next:before {
    font-size: 50px;
    color: var(--primary-color);
}

.reviews-carousel .slick-dots {
    bottom: -50px;
}

.reviews-carousel .slick-dots li button:before {
    font-size: 12px;
    color: var(--primary-color);
}

.reviews-carousel .slick-dots li.slick-active button:before {
    color: var(--secondary-color);
}

@media (max-width: 992px) {
    .reviews-carousel .slick-prev {
        left: -40px;
    }
    
    .reviews-carousel .slick-next {
        right: -40px;
    }
    
    .review-card {
        padding: 2rem;
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    .reviews-carousel .slick-prev {
        left: 10px;
    }
    
    .reviews-carousel .slick-next {
        right: 10px;
    }
    
    .review-card {
        padding: 1.5rem;
        margin: 0 10px;
        min-height: auto;
    }
    
    .review-text {
        font-size: 1rem;
    }
}



/* ===================================
   FAQ Section (AEO)
   =================================== */
.faq-section {
    background-color: var(--white);
}

.faq-list {
    max-width: 860px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e8e0d8;
    padding: 1.75rem 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-size: 1.15rem;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.4;
}

.faq-answer {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.8;
    margin: 0;
}

.faq-answer a {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: underline;
}

.faq-answer a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .faq-question {
        font-size: 1.05rem;
    }

    .faq-item {
        padding: 1.5rem 0;
    }
}
