@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;1,400&family=Montserrat:wght@300;400;600;700&display=swap');

:root {
    --brand-navy: #0f172a;
    --brand-gold: #c5a059;
    --bg-light: #fdfbf7;
    --text-main: #1a1a1a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Montserrat', sans-serif; color: var(--text-main); background: #fff; line-height: 1.6; }

/* --- NAVIGATION --- */
header { background: #fff; padding: 20px 5%; border-bottom: 3px solid var(--brand-navy); position: sticky; top: 0; z-index: 1000; }
.navbar { display: flex; justify-content: space-between; align-items: center; max-width: 1400px; margin: 0 auto; }
.logo { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 700; border: 3px solid var(--brand-navy); padding: 5px 15px; text-decoration: none; color: var(--brand-navy); text-transform: uppercase; }
.nav-links { display: flex; list-style: none; gap: 30px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--brand-navy); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }

/* Header Icons */
.icon-link a {
    font-size: 1.2rem;
    color: var(--brand-navy);
    margin-left: 10px;
    transition: 0.3s;
}
.icon-link a:hover {
    color: var(--brand-gold);
    transform: scale(1.1);
}

/* --- HERO SLIDER --- */
.hero-slider { background: var(--bg-light); padding: 80px 5%; min-height: 600px; display: flex; align-items: center; }
.swiper { width: 100%; max-width: 1400px; }
.slide-content { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: center; }
.hero-text h1 { font-family: 'Playfair Display', serif; font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; color: var(--brand-navy); }
.hero-image img { width: 100%; max-width: 380px; box-shadow: 20px 20px 50px rgba(0,0,0,0.15); border-radius: 4px; }

/* --- BUTTONS --- */
.btn { display: inline-block; padding: 12px 24px; font-weight: 700; text-transform: uppercase; text-decoration: none; font-size: 0.8rem; letter-spacing: 1px; border-radius: 4px; transition: all 0.3s ease; cursor: pointer; text-align: center; }
.btn-navy { background: var(--brand-navy); color: #fff; }
.btn-outline { border: 1px solid var(--brand-navy); color: var(--brand-navy); padding: 12px 24px; text-decoration: none; text-transform: uppercase; font-weight: 700; font-size: 0.8rem; display: inline-block; border-radius: 4px;}
.btn-amazon { background-color: var(--brand-gold); color: #fff; border: 2px solid var(--brand-gold); padding: 10px 20px; text-decoration: none; text-transform: uppercase; font-weight: 700; font-size: 0.8rem; display: inline-block; border-radius: 4px; }
.btn-amazon:hover { background-color: #b08d45; border-color: #b08d45; transform: translateY(-2px); box-shadow: 0 6px 12px rgba(197, 160, 89, 0.3); color: #fff; }
.btn-disabled { background-color: #eee; color: #999; border: 1px solid #ddd; cursor: default; pointer-events: none; padding: 10px 20px; text-transform: uppercase; font-weight: 700; font-size: 0.8rem; display: inline-block; border-radius: 4px; }

/* --- GRID & CARDS --- */
.section-wrap { padding: 80px 5%; max-width: 1400px; margin: 0 auto; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid var(--brand-navy); padding-bottom: 15px; margin-bottom: 40px; }
.section-head h2 { font-family: 'Playfair Display', serif; font-size: 2.5rem; }
.elite-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 40px; }
.book-card { text-decoration: none; color: inherit; transition: 0.3s; display: block; }
.book-card:hover { transform: translateY(-10px); }
.img-wrap { background: #f4f4f4; padding: 0; margin-bottom: 20px; display: flex; justify-content: center; height: 400px; overflow: hidden; border-radius: 4px; }
.img-wrap img { width: 100%; height: 100%; object-fit: cover; box-shadow: 0 10px 30px rgba(0,0,0,0.1); transition: 0.3s; }

/* --- CONTACT FORM --- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 8px; font-size: 0.9rem; text-transform: uppercase; }
.form-group input, .form-group textarea { width: 100%; padding: 15px; border: 1px solid #ddd; font-family: inherit; font-size: 1rem; }

/* --- FOOTER --- */
.site-footer { background-color: #f9f9f9; border-top: 1px solid #ddd; padding: 40px 0; text-align: center; font-family: 'Montserrat', sans-serif; margin-top: 50px; }
.footer-container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.footer-payments { margin-bottom: 20px; }
.footer-payments i { font-size: 2.5rem; margin: 0 10px; color: #444; }
.footer-links { margin-bottom: 20px; font-size: 0.9rem; color: #555; }
.footer-links a { text-decoration: none; color: #333; font-weight: 500; transition: 0.2s; }
.footer-links a:hover { color: var(--brand-navy); text-decoration: underline; }
.footer-links .separator { margin: 0 10px; color: #ccc; }
.footer-copyright p { font-size: 0.85rem; color: #777; margin-bottom: 25px; }
.footer-socials { display: flex; justify-content: center; gap: 15px; }
.social-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; font-size: 1.1rem; text-decoration: none; transition: transform 0.3s; }
.social-icon:hover { transform: translateY(-3px); }
.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.x-twitter { background-color: #000; }
.facebook { background-color: #3b5998; }
.linkedin { background-color: #0077b5; }

/* --- TESTIMONIALS (EQUAL BLOCKS FIX) --- */
.testimonialSwiper {
    padding-bottom: 50px; /* Space for dots */
}

/* Make Slides Equal Height */
.swiper-slide {
    height: auto !important; /* Let Flexbox determine height */
    display: flex;           /* key to equal height */
    justify-content: center;
}

/* The Card Box */
.testi-card {
    background: #fff;
    padding: 30px 20px;
    margin: 10px;          /* Space between cards */
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border-top: 4px solid var(--brand-gold);
    
    /* FORCE EQUAL HEIGHT */
    width: 100%;
    height: 100%;          /* Fills the slide height */
    display: flex;
    flex-direction: column; /* Stack items vertically */
    justify-content: flex-start;
}

/* Image (Small Circle) */
.testi-img {
    width: 80px !important; 
    height: 80px !important;
    margin: 0 auto 15px auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #f9f9f9;
    flex-shrink: 0; /* Prevents image from squishing */
}

.testi-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

/* Text Content (Limited to 4 lines) */
.testi-content {
    flex-grow: 1; /* Pushes name to the bottom if text is short */
}

.testi-content p {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 20px;
    
    /* LIMIT TEXT LINES */
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Max 4 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.testi-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin-top: auto; /* Pushes to bottom */
}

.quote-icon {
    font-size: 1.5rem;
    color: var(--brand-gold);
    margin-bottom: 10px;
    display: block;
}

/* --- MOBILE --- */
@media (max-width: 900px) {
    .slide-content, .contact-layout { grid-template-columns: 1fr; text-align: center; }
    .hero-image { order: -1; }
    .nav-links { display: none; }
}
/* --- ABOUT PAGE STATS --- */
.stat-box h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 5px;
}

/* Mobile responsive for stats */
@media (max-width: 768px) {
    .elite-grid {
        grid-template-columns: 1fr 1fr !important; /* 2 per row on mobile */
        gap: 30px;
    }
}
/* --- MOBILE FIXES --- */

@media (max-width: 900px) {
    
    /* 1. Fix Homepage Slider Height */
    .hero-slider {
        min-height: auto !important; /* Don't force 600px */
        padding: 40px 20px;
    }
    .slide-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    .hero-image { order: -1; margin-bottom: 20px; }
    .hero-image img { max-width: 200px; margin: 0 auto; display: block; }
    .hero-text h1 { font-size: 2rem; }

    /* 2. Fix Book Grid (2 Columns on Mobile) */
    .elite-grid {
        grid-template-columns: 1fr 1fr; /* Force 2 columns */
        gap: 15px;
    }
    
    /* Make book images smaller on mobile so they fit */
    .img-wrap {
        height: 220px !important; 
    }
    
    /* Fix text size on mobile cards */
    .book-card h3 { font-size: 1rem; }
    .book-card p { font-size: 0.8rem; }
    
    /* Hide Navbar links initially (Handled by Header now) */
    .nav-links { display: none; }
    .nav-links.active { display: flex; }
}