/* Reset & Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
	font-family: 'EB Garamond', serif;
	line-height: 1.75;
	font-size: 1.1rem;
	color: #1a1a1a;
	background-color: #f5f2fa;
	scroll-behavior: smooth;
	overflow-x: hidden;
    width: 100%;
}
h1, h2, h3 { font-family: 'Cinzel', serif; color: #2c114f; letter-spacing: 0.5px; }
a {color: #828282; text-decoration:underline;}
a:hover { color: #2c114f; text-decoration:none;}

/* Header & Navigation */
header {
	position: fixed;
	top: 0;
	width: 100%;
	background-color: rgba(255, 255, 255, 1);
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
	z-index: 1000;
	padding: 0.25rem 0;
	transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
header.scrolled {
	background-color: rgba(255, 255, 255, 0.1);
	box-shadow: 0 2px 8px rgba(0,0,0,0.15);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}
nav {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 0.5rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 65px;
}
.logo img { height: 60px; max-width: 300px; width: auto; object-fit: contain; }
nav ul { list-style: none; display: flex; gap: 1rem; align-items: center; }
nav a {
	color: #1a1a1a;
	text-decoration: none;
	font-weight: 600;
	transition: color 0.3s;
}
nav a:hover { color: #2c114f; }
.burger { display: none; font-size: 1.5rem; cursor: pointer; color: #2c114f; }

/* Section Base */
section { padding: 4rem 1rem; max-width: 1200px; margin: 0 auto; text-align: center; }

/* Hero Section */
#home {
	background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
				url('Mukafa-Qissa.jpg') center/cover no-repeat;
	color: #fff;
	min-height: 60vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 3rem 1rem;
	padding-top: 80px;
}
.home-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 2rem; max-width: 1200px; margin: 0 auto; }
.home-text { flex: 1; min-width: 300px; text-align: left; padding: 4rem 4rem 1rem 4rem; }
#home h1 { font-size: 2rem; margin-bottom: 0.5rem; color: #fff; }
#home h2 { font-size: 1.5rem; margin-bottom: 1.5rem; color: #fff; font-weight: normal; }
#home p { font-size: 1.2rem; margin-bottom: 2rem; }
.cta-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.cta-button { padding: 0.75rem 1.5rem; background-color: #2c114f; color: #fff; text-decoration: none; border-radius: 4px; font-size: 1rem; transition: background-color 0.3s; }
.cta-button:hover { background-color: #3a0066; }
.home-book { flex: 1; min-width: 360px; padding: 4rem 4rem 1rem 4rem; }
.home-book img { max-width: 100%; width: 360px; height: auto; /*box-shadow: 0 4px 10px rgba(0,0,0,0.2);*/ }

/* Features Section */
#features { background-color: #fff; text-align: center; margin-bottom: 2rem; }
.features-container { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center; }
.feature { flex: 1; min-width: 250px; max-width: 300px; padding: 0.3rem; }
.feature i { font-size: 2.5rem; color: #2c114f; margin-bottom: 1rem; }
.feature h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.feature p { font-size: 1rem; }

/* Book About Section */
#book-about {
    background-color: #faf8ff;
    padding: 2rem 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.book-about-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    justify-content: center;
    align-items: start;
}

.book-cover {
    display: flex;
    justify-content: center;
    align-items: center;
}

.book-cover img {
    max-width: 100%;
    width: 300px;
    height: auto;
    object-fit: contain;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.4s ease;
    border-radius: 8px;
}

.book-cover img:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.about-container,
.book-details {
    display: flex;
    flex-direction: column;
    justify-content: start;
    padding: 0.5rem;
    text-align: center;
}

.about-container h2,
.about-container h3,
.book-details h3 {
    margin-bottom: 1rem;
    color: #2c114f;
}

.about-container h2 { font-size: 1.9rem; }

.book-details h3 { font-size: 1.5rem; }

.about-container p,
.book-details p {
    font-size: 1rem;
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.about-container p:last-child,
.book-details p:last-child { margin-bottom: 0; }

/* FAQ styles (inside .about-container)*/
.about-container #faq {
    width: 100%;
    margin: 1rem 0 0 0;
    padding: 0;
}

.about-container .faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-container details {
    background: white;
    border: 1px solid #e0d8f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(44,17,79,0.06);
}

.about-container summary {
    padding: 1.1rem 1.4rem;
    font-weight: 600;
    cursor: pointer;
    font-size: 1.08rem;
    color: #2c114f;
    list-style: none;
    position: relative;
}

.about-container summary::-webkit-details-marker { display: none; }

.about-container summary::after {
    content: '+';
    position: absolute;
    right: 1.4rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #D4AF37;
    transition: transform 0.3s ease;
}

.about-container details[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.about-container details[open] summary { background: #f8f6ff; }

.about-container details p,
.about-container details ul {
    padding: 0 1.4rem 1.4rem;
    margin: 0;
    text-align: left;
    line-height: 1.65;
    color: #333;
}

.about-container details ul {
    margin: 0.5rem 0 1rem 1.5rem;
    list-style: disc;
}
.about-container details li {margin-bottom: 0.5rem;}
.about-container details li strong { color: #2c114f; }

/* Book Preview Slideshow */
.slideshow-container {
    position: relative;
    max-width: 700px;
    margin: 0.5rem auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(44,17,79,0.15);
}

.slideshow-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
}

.slideshow-track::-webkit-scrollbar { display: none; }

.slideshow-track img {
    flex: 0 0 100%;
    width: 100%;
    height: auto;
    object-fit: contain;
    scroll-snap-align: center;
    scroll-snap-stop: always;
}

.slideshow-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    pointer-events: none;
}

.slideshow-dot {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.slideshow-dot.active {
    background: #D4AF37;
    transform: scale(1.4);
    box-shadow: 0 2px 8px rgba(212,175,55,0.5);
}

.slideshow-track:focus { outline: 3px solid #D4AF37; outline-offset: 4px; }

/* Visually hidden utility (used for headings) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .slideshow-track { scroll-behavior: auto; }
}

/* Quantity & Pricing */
.quantity {
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.quantity label {
    font-weight: 500;
}

.quantity input {
    width: 80px;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.total-amount {
    font-size: 1.3rem;
    font-weight: bold;
    margin: 1.5rem 0;
    color: #2c114f;
}

.paypal-button {
    margin-top: 1.5rem;
    text-align: center;
}

/* BIG BANNER */
#first-100-banner {
    background: linear-gradient(135deg, #6a4c93, #2c114f); /* Purple tones */
    color: white;
    padding: 1.2rem;
    border-radius: 8px;
    text-align: center;
    margin: 0 0 1.5rem 0;
    font-weight: bold;
}
#first-100-banner .banner-title {font-size: 1.3rem; margin-bottom: 0.5rem;}
#first-100-banner .gold-price {color: #ffd700; font-size: 1.6rem;}
#first-100-banner .old-price {color: rgba(255, 255, 255, 0.7); margin-left: 0.5rem;}

/* Mobile adjustments */
@media (max-width: 768px) {
    .book-about-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 0 1rem;
    }

    .book-cover img {
        width: 280px;
    }

    .quantity input {
        width: 100%;
        max-width: 100px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .book-about-container {
        grid-template-columns: repeat(3, minmax(260px, 1fr));
    }
}

/* First Story Sample */
#first-story {
	padding: 3rem 2rem;
	background-color: #fefbea;
	max-width: 560px;
	margin: 2rem auto;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
	text-align: left;
}
#first-story h2 { text-align: center; margin-bottom: 1.5rem; font-size: 2rem; }
#first-story p { font-family: 'EB Garamond', serif; font-size: 1.1rem; margin-bottom: 1rem; color: #1a1a1a; }
#first-story p:first-of-type::first-letter {
	font-size: 3.7rem;
	font-weight: bold;
	float: left;
	margin-right: 0.3rem;
	line-height: 1;
	margin-top: 0rem;
	color: #2c114f;
}
#first-story .page-number { text-align: center; font-family: 'EB Garamond', serif; font-size: 0.9rem; color: #666; margin-top: 1.5rem; }

/* Signup Section */
#signup { padding: 3rem 1rem; }
.signup-box {
	background-color: #333;
	padding: 0.7rem;
	border-radius: 8px;
	max-width: 500px;
	margin: 0 auto;
	color: #fff;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.signup-box p { font-size: 0.88rem; margin-bottom: 0.7rem; }
#signup form { display: flex; flex-direction: column; gap: 0.55rem; }
#signup input[type="email"] { padding: 0.5rem; font-size: 0.92rem; border: 1px solid #ddd; border-radius: 4px; }
#signup input:invalid { border-color: #e74c3c; }
#signup button {
	padding: 0.5rem;
	background-color: #2c114f;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 0.92rem;
	transition: background-color 0.3s;
}
#signup button:disabled { background-color: #666 !important; opacity: 0.5; cursor: not-allowed; }
#signup button:hover:not(:disabled) { background-color: #3a0066; }
.signup-success { text-align: center; padding: 0.7rem 0; display: none; }
.signup-success p { color: #ccc; font-weight: bold; font-size: 1rem; margin: 0; }
.signup-success p + p { font-size: 0.8rem; margin-top: 0.3rem; opacity: 0.9; color: #ccc; }

/* Brand Footer Logo */
.brand-footer {
	text-align: center;
	padding: 0.5rem 1rem 0;
	margin-top: -2rem;
}
.brand-footer img {
	height: 200px;
	max-width: 100%;
	object-fit: contain;
	transition: transform 0.3s ease;
	cursor: default;
}
.brand-footer img:hover { transform: scale(1.08); }

/* Main Footer */
footer {
	text-align: center;
	padding: 1rem 1rem;
	background-color: #333;
	color: #fff;
	font-size: 0.85rem;
}
.footer-links {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 0.5rem;
}
.footer-links a { color: #ccc; text-decoration: underline; }
.footer-links a:hover { color: #fff; }
.social-icons { display: flex; gap: 1.5rem; align-items: center; }
footer .fab {
	font-size: 1.4rem;
	transition: color 0.3s, transform 0.3s;
}
footer .fab:hover { color: #2c114f; transform: translateY(-2px); }
footer .fa-whatsapp { color: #25D366; }
footer .fa-whatsapp:hover { color: #128C7E !important; transform: translateY(-2px) scale(1.1); }
.footer-copyright { margin: 0; opacity: 0.9; }
.fa-grey { color: #ccc !important; }

/* Audio Player */
.audio-player {
    margin: 2rem auto 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.3);
    max-width: fit-content;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 90%;
    max-width: 380px;
}

#playPauseBtn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    color: #2c114f;
    border: none;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

#playPauseBtn:hover {
    transform: scale(1.08);
    background: #f0f0f0;
}

.audio-title {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.3px;
}

/* Cookie Banner */
#cookieBanner {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: #333;
	color: #fff;
	padding: 1rem;
	font-family: 'EB Garamond', serif;
	font-size: 0.95rem;
	z-index: 9999;
	box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
	display: none;
}
#cookieBanner .container {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}
#cookieBanner p { margin: 0; flex: 1; min-width: 280px; }
#cookieBanner a { color: #2c114f; text-decoration: underline; }
#cookieBanner button {
	background: #666;
	color: #fff;
	border: none;
	padding: 0.6rem 1rem;
	border-radius: 6px;
	cursor: pointer;
	font-size: 0.9rem;
	margin-left: 0.5rem;
}
#cookieBanner button:last-child { background: #2c114f; }

#legal {
    max-width: 900px;
    margin: 0 auto;
    padding: 5rem 1rem;
    text-align: left;
}

/* Responsive Design */
@media (max-width: 768px) {
	#legal { padding: 3rem 1rem; }
	.logo img { height: 50px; max-width: 250px; }
	.burger { display: block; }
	nav ul {
		display: none;
		flex-direction: column;
		position: absolute;
		top: 70px;
		left: 0;
		width: 100%;
		background-color: #fff;
		padding: 1rem;
		box-shadow: 0 2px 5px rgba(0,0,0,0.1);
		align-items: center;
		justify-content: center;
		text-align: center;
	}
	nav ul.active { display: flex; }
	nav ul li { margin: 0.2rem 0; width: 100%; text-align: center; border-bottom: 1px solid rgba(0,0,0,0.1); }
	nav ul li:last-child { border-bottom: none; }
	nav ul li a { display: block; width: 100%; text-align: center; }
	#home { padding-top: 70px !important; }
	#home h1 { font-size: 2rem; }
	#home h2 { font-size: 1.4rem; }
	.home-container { flex-direction: column; text-align: center; }
	.home-text { padding: 1rem; text-align: center; }
	.home-book { padding: 1rem; }
	h2 { font-size: 2rem; }
	.cta-buttons { flex-direction: column; align-items: center; }
	.book-about-container { flex-direction: column; }
	
	.signup-box { padding: 0.7rem; }
	.book-cover { display: block; margin: 0 auto; text-align: center; }
	.book-cover img { display: block; margin: 0 auto; max-width: 100%; height: auto; }
	#first-story { padding: 2rem 1rem; max-width: 90%; }
	.audio-player { margin: 2rem auto 0 auto; justify-content: center; }
	#cookieBanner .container { flex-direction: column; text-align: center; }
	#cookieBanner button { margin: 0.5rem 0; width: 100%; }
	footer p { flex-direction: column; gap: 0.5rem; }
	
}

/* OFFER BANNERS */
/* Slim banner */
.offer-slim {
    background: #2c114f;
    color: white;
    text-align: center;
    padding: 0.9rem 1.2rem;
    margin: 1.5rem auto 0;
    font-weight: 600;
    font-size: 1.1rem;
    border-top: 2px solid #D4AF37;
	border-bottom: 2px solid #D4AF37;
    position: relative;
    overflow: hidden;
	margin-top: -1rem; 
}
.offer-slim .sold-pill {
    margin-left: 15px;
    background: #fff;
    color: #2c114f;
    padding: 6px 16px;
    border-radius: 30px;
    font-weight: 700;
}
.offer-slim .gold-price { color: #D4AF37; font-weight: bold; }
.offer-slim .old-price { color: #cccccc; margin-left: 8px; }

/* Big banner */
.offer-big {
    background: #2c114f;
    color: #ffffff;
    text-align: center;
    padding: 1rem 1.4rem;
    margin: 1.8rem auto;
    max-width: 580px;
    border-radius: 14px;
    border: 1.8px solid #D4AF37;
    box-shadow: 0 8px 25px rgba(75,0,130,0.3);
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
}
.offer-big .banner-title {
    font-weight: 700;
    font-size: 1.22rem;
    letter-spacing: 0.8px;
    margin-bottom: 0.3rem;
}
.offer-big .sold-big {
    font-size: 2.2rem;
    font-weight: 900;
    color: #D4AF37;
    margin: 0.4rem 0;
    line-height: 1;
}
.offer-big .sold-total {
    font-size: 1.3rem;
    color: #e8e8e8;
}
.offer-big .price-line {
    font-size: 1.1rem;
}
.offer-big .gold-price {
    color: #D4AF37;
    font-size: 1.5rem;
}
.offer-big .old-price {
    color: #bbbbbb;
    margin-left: 8px;
}

/* Silver sparkles */
.first-100-sparkle {
    position: absolute;
    opacity: 0.55;
    color: #e8e8e8;
    pointer-events: none;
    animation: float 7s infinite ease-in-out;
    font-size: 0.9rem;
}

/* Animations */
@keyframes float {
    0%,100% { transform: translateY(0) rotate(0deg); }
    50%     { transform: translateY(-10px) rotate(8deg); }
}

/* Testimonials Carousel */
.testimonials-section {
    padding: 2rem 1rem;
    background: #f8f8ff;
    border-radius: 12px;
    margin: 1rem auto;
    max-width: 500px;
}

.testimonials-wrapper {
    width: 100%;
    margin: 0 auto;
}

.testimonials-wrapper h2 {
    text-align: center;
    color: #2c114f;
    font-size: 1.2rem;
    font-family: 'Cinzel', serif;
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 1.5rem;
    padding: 0.3rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar {display: none;}

.testimonial-card {
    flex: 0 0 90%;
    scroll-snap-align: center;
    background: #fff;
    border: 1px solid #e0d8f0;
    border-radius: 14px;
    padding: 1.4rem 1.6rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: transform 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 12rem;
    overflow: visible;
}

.testimonial-card:hover {transform: translateY(-4px);}

.quote {
    font-size: 1.08rem;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    color: #333;
    font-style: italic;
    overflow-wrap: break-word;
}

.highlight-gold {color: #D4AF37; font-weight: 600;}

.reviewer-name {
    font-family: 'Caveat', cursive;
    font-size: 1rem;
    color: #2c114f;
    margin: 0.2rem 0 0 0;
    line-height: 1;
}
.reviewer-role {font-size: 1rem;color: #555;margin: 0;}

/* Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(44,17,79,0.9);
    color: #D4AF37;
    border: none;
    border-radius: 50%;
    font-size: 1.35rem;
    cursor: pointer;
    z-index: 5;
    transition: all 0.25s;
}
.carousel-btn:hover:not(:disabled) {background: #2c114f; transform: translateY(-50%) scale(1.08);}
.carousel-btn:disabled {display: none;}
.carousel-btn.prev {left: 0;}
.carousel-btn.next {right: 0;}


