body {
    margin: 0;
    padding: 0;
    background: #f5f5f5;
    font-family: "Times New Roman", Times, serif;
    text-align: center;
}


/* =========================
   HEADER
   ========================= */

.header {
    background: white;
    padding: 0;
    margin: 0;
}

.logo {
    width: 160px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.header h2 {
    margin: 0;
    padding: 0;
    color: #666;
    font-size: 20px;
    line-height: 22px;
}

.header h3 {
    margin: 0;
    padding: 0;
    color: #003366;
    font-size: 36px;
    font-weight: bold;
    line-height: 38px;
}

.new-arrivals {
    margin: 2px 0 0 0;
    padding: 0;
    font-size: 27px;
    font-weight: bold;
    color: #006400;
    line-height: 30px;
}


/* =========================
   CAROUSEL AREA
   ========================= */

.carousel-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
margin-top: 3px;
min-height: auto;
    gap: 5px;
    box-sizing: border-box;
}

.carousel {
 width: calc(100% - 20px);
height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    overflow: hidden;
    background: #e6e6e6;
    border-radius: 5px;
    padding: 15px;
    position: relative;
}


/* =========================
   BOOK COVERS
   ========================= */

.book {
    width: 220px;
    height: 330px;
    object-fit: contain;
    background: white;
    border-radius: 4px;
    opacity: 0.8;
    transform: scale(0.92);
    transition: all 0.8s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 3px 8px rgba(0,0,0,0.20);
}

.book.active {
    width: 280px;
    height: 410px;
    object-fit: cover;
    opacity: 1;
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 8px 25px rgba(0,0,0,0.40);
}

.book:not(.active) {
    filter: brightness(90%);
}


/* =========================
   NAVIGATION BUTTONS
   ========================= */

.nav {
    background: #003366;
    color: white;
    border: none;
    font-size: 28px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
}

.nav:hover {
    background: #0066cc;
}


/* =========================
   BOOK INFORMATION
   ========================= */

.book-info {
margin: 0 auto;
    padding: 10px;
    width: 70%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    text-align: center;
}

.book-info h2 {
    margin: 0;
    color: #003366;
    font-size: 28px;
}

.book-info p {
    margin-top: 5px;
    color: #555;
    font-size: 19px;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

/* =========================
   KRC POSITION EFFECTS
   ========================= */

.book.left2,
.book.right2 {
    transform: scale(0.82);
    opacity: 0.60;
}

.book.left1,
.book.right1 {
    transform: scale(0.92);
    opacity: 0.80;
}

.book.center {
    transform: scale(1.10);
    opacity: 1;
    z-index: 10;
    box-shadow: 0 8px 25px rgba(0,0,0,0.40);
}


/* =========================
   SHADOW BELOW BOOKS
   ========================= */

.carousel::after {
    content: "";
    position: absolute;
    bottom: 8px;
    width: 850px;
    height: 55px;
    background: radial-gradient(
        ellipse,
        rgba(0,0,0,0.20),
        transparent 70%
    );
    border-radius: 50%;
    z-index: 0;
}
/* =========================
   TITLE + IMPLEMENTED BY
   ========================= */

.info-row {
    width: 100%;
    margin: 8px auto 0;
    display: flex;
    align-items: center;
    position: relative;
}

.info-row .book-info {
    width: 45%;
    margin: 0 auto;
}

.implemented-by {
    position: absolute;
    top: 0;
    left: 20px;
    width: 15%;
    white-space: nowrap;
    padding: 8px 10px;
    background: #ffd6e7;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    text-align: center;
    box-sizing: border-box;
    font-size: 16px;
    line-height: 1.3;
}html, body {
    overflow-x: hidden;
}
/* =========================
   RESPONSIVE SCREEN FIT
   ========================= */

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.header {
    flex-shrink: 0;
}

.carousel-wrapper {
    height: 64vh;
    min-height: 0;
}

.carousel {
    height: 100%;
    box-sizing: border-box;
}

.info-row {
    height: 15vh;
    margin-top: 1vh;
    box-sizing: border-box;
}

.book {
    max-height: 42vh;
    width: auto;
}

.book.active {
    max-height: 48vh;
    width: auto;
}

/* =========================
   ZOOM-RESPONSIVE CONTENT
   ========================= */

body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
}

.header {
    flex: 0 0 auto;
}

.carousel-wrapper {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
}

.carousel {
    height: 100%;
    min-height: 0;
}

.info-row {
    flex: 0 0 auto;
    height: auto;
    min-height: 0;
    margin-top: clamp(2px, 1vh, 8px);
    padding-bottom: 2px;
}

.book-info {
    min-width: 0;
}

.book-info h2 {
    font-size: clamp(14px, 3vh, 28px);
    overflow-wrap: anywhere;
}

.book-info p {
    font-size: clamp(12px, 2.2vh, 19px);
    overflow-wrap: anywhere;
    margin-bottom: 0;
}

.implemented-by {
    width: auto;
    max-width: 22vw;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: clamp(10px, 1.8vh, 16px);
}
