/* ===== Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== Design Tokens ===== */
:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --accent-color: #45aaf2;
    --dark-color: rgb(26, 26, 46);
    --light-color: #f7f7f7;
    --text-color: #e0e0e0;
    --text-light: #b8b8b8;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

/* ===== Base ===== */
body {
    all: unset;
    font-family: 'Poppins', 'Arial', sans-serif;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    background-color: var(--dark-color);
    color: var(--text-color);
}

/* ===== Preloader ===== */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--dark-color);
    transition: opacity .5s ease, visibility .5s ease;
}

.preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.spinner {
    width: 54px;
    height: 54px;
    border: 4px solid rgba(255, 255, 255, 0.12);
    border-top-color: var(--primary-color);
    border-right-color: var(--secondary-color);
    border-radius: 50%;
    animation: preloader-spin 0.8s linear infinite;
}

.preloader__text {
    margin-top: 20px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-light);
    animation: preloader-pulse 1.4s ease-in-out infinite;
}

@keyframes preloader-spin { to { transform: rotate(360deg); } }

@keyframes preloader-pulse {
    0%, 100% { opacity: 0.5; }
    50%      { opacity: 1; }
}




.container {
    max-width: 800px;
    min-width: 400px;
    margin: 50px auto;
    padding: 0 30px;
}

h1 {
    font-size: 1.5em;
    color: var(--light-color);
    margin-bottom: 30px;
    position: relative;
    font-weight: 700;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
	left: 34%;
	width: 240px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

h2 {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    padding-left: 20px;
}

h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 0.8em;
}

/* ===== Flipbook ===== */
.flipbook {
    margin: 100px auto;
    height: 600px;
    width: 800px;
}

#cover {
    background-image: url('/Media/about/book_cover.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#right {
    background-image: url('/Media/about/book_r_page.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#left {
    background-image: url('/Media/about/book_l_page.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.flipbook .pages p1 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
	position: absolute;
    color: #5f2802;
    text-align: center;
    text-shadow: 0px 1px 3px #5f2802;
    font-size: 25px;
	margin-top: 42%;
	margin-left: 37%;
    background: transparent;
    border-radius: 0;
}

/* Merged: was two separate .flipbook .pages p2 blocks */
.flipbook .pages p2 {
    font-family: 'Arial', sans-serif;
	position: absolute;
    font-size: 14px;
    box-shadow: 0px -1px #5f2802;
    border-top: 1px solid #5f2802;
	margin-top: 55%;
	margin-left: 34%;
    color: #5f2802;
    text-align: center;
    text-transform: uppercase;
}

.flipbook text1 {
    color: #555;
    position: absolute;
    text-align: center;
    font-family: "Courgette", cursive;
    font-weight: 400;
    font-style: normal;
    font-size: 1rem;
    line-height: 1.85rem;
	margin-left: 13%;
	margin-top: 60%;
}

.flipbook text2 {
    color: #555;
    position: absolute;
    text-align: center;
    font-family: "Courgette", cursive;
    font-weight: 400;
    font-style: normal;
    font-size: 1rem;
    line-height: 1.8rem;
    padding-top: 0;
    padding-left: 10px;
    padding-right: 50px;
	margin-top: 10%;
}

.flipbook text3 {
    color: #555;
    position: absolute;
    top: 2%;
    text-align: center;
    font-family: "Courgette", cursive;
    font-weight: 400;
    font-style: normal;
    font-size: 0.9rem;
    line-height: 2rem;
    padding-left: 10px;
    padding-right: 50px;
}

.flipbook text4 {
    color: #555;
	position: absolute;
    text-align: center;
    font-family: "Courgette", cursive;
    font-weight: 400;
    font-style: normal;
    font-size: 0.9rem;
    line-height: 1.85rem;
    padding-top: 36px;
    padding-left: 10px;
    padding-right: 60px;
}

.flipbook text5 {
    color: #555;
	position: absolute;
    text-align: center;
    font-family: "Courgette", cursive;
    font-weight: 400;
    font-style: normal;
    font-size: 0.9rem;
    line-height: 1.85rem;
    margin-top: 35px;
    padding-left: 5px;
    padding-right: 40px;
}

.flipbook text6 {
    color: #555;
	position: absolute;
    text-align: center;
    font-family: "Courgette", cursive;
    font-weight: 400;
    font-style: normal;
    font-size: 0.9rem;
    line-height: 1.9rem;
    margin-top:  39px;
    padding-left: 5px;
    padding-right: 40px;
}

/* ===== Flipbook Images ===== */
.pic1 {
    height: 400px;
    width: auto;
	margin-left: 25%;
	margin-top: 25%;
}

.pic2 {
    height: 400px;
    width: auto;
	margin-left: 30%;
	margin-top: 25%;
}

.pic3 {
    height: 380px;
    width: auto;
	margin-left: 17%;
	margin-top: 25%;
}

.pic4 {
    height: 200px;
    width: auto;
	margin-left: 27%;
	margin-top: 50%;
}

.pic5 {
    height: 180px;
    width: auto;
	margin-left: 0%;
	margin-top: 50%;
}

/* ===== Mobile About-Us Section ===== */
.about-us h2::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -31px;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    background: var(--dark-color);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    z-index: 1;
}

.about-us h2::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -23px;
    transform: translateY(-50%);
    width: 2px;
    height: calc(100% + 20px);
    background: var(--primary-color);
    z-index: 0;
}

/* ===== Team ===== */
.team {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.team h2 {
    text-align: left;
    padding-left: 0;
    margin-left: 0;
}

.team .team-member {
    align-items: center;
}

.team-member {
    background: rgba(50, 50, 70, 0.6);
    border-radius: 12px;
    width: 80%;
    margin: 0 auto 20px;
    padding: 30px;
    text-align: center;
    flex: none;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 20px;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.team-member:hover img {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

.team-member h3 {
    font-size: 1.5em;
    color: var(--light-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.team-member p {
    color: var(--accent-color);
    font-weight: 500;
}

/* ===== FAQ / Accordion ===== */
.title {
    font-family: 'Frank Ruhl Libre', serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: white;
    text-align: center;
}

.accordion {
    font-family: 'Frank Ruhl Libre', serif;
    width: 100%;
    max-width: 700px;
    margin: 20px auto;
}

.accordion-item {
    background: rgb(22, 33, 62);
    border-bottom: 1px solid #33334d;
}

.accordion-header {
    padding: 20px 60px 20px 20px;
    cursor: pointer;
    position: relative;
    font-size: 1.25em;
    font-weight: 700;
    transition: background 0.3s;
    color: white;
}

.accordion-header:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.accordion-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    transition: transform 0.3s ease;
    width: 16px;
    height: 16px;
    color: #e0aaff;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    background-color: rgba(0, 0, 0, 0.2);
    transition: max-height 0.4s ease, padding 0.3s ease;
    color: #ddd;
}

.accordion-content p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

svg {
    display: block;
}

/* ===== Responsive ===== */
@media screen and (min-width: 801px) {
    .hide-on-desktop {
        display: none;
    }
}

@media screen and (max-width: 800px) {
    .hide-on-mobile {
        display: none;
    }
}

/* Respect users who've asked for less motion */
@media (prefers-reduced-motion: reduce) {
    .spinner          { animation-duration: 1.6s; }
    .preloader__text  { animation: none; opacity: 0.8; }
}