

:root {
    --bg-color: #ffffff;
    --text-color: #0b263a;
    --nav-bg: #ffffff;
    --primary: #1e3a8a;
    --secondary: #f59e0b;
    --section-bg: #f9f9f9;
    --card-bg: #ffffff;
    --primary: #1e3a8a;
    --secondary: #f59e0b;
}

body.dark {
    --bg-color: #0b263a;
    --text-color: #e5e7eb;
    /*--nav-bg: #0b263a;*/
    --nav-bg:#121e2c;
    --bg-color: #0b263a;
    --text-color: #fff;
    --nav-bg: #0b263a;
    /*--section-bg: #0b263a;*/
    --section-bg: #0b263a;
    --card-bg: #0b263a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Nunito', sans-serif;
}



        h1, h2, h3, h4, h5, h6 {
            font-family: 'Nunito', sans-serif;
            font-weight: 700;
            color: var(--text-color);
        }
        .pagination p{
            color: var(--text-color);
        }

/* ================= NAVBAR ================= */

.navbar {
    width: 100%;
    background: var(--nav-bg);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Container */
.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 15px 40px;
    background-color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 150px;
    height: auto;
}

@media (max-width: 768px) {
    .logo img {
        width: 70px;
    }
}

/* Nav links */
.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 300;
    font-size: 17px;
}

.nav-links a:hover {
    color: var(--secondary);
}

/* Nav actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-links li a {


    text-decoration: none;
    transition: 0.3s;
}

.nav-links li a.active {

    color: #E9A538;

}

.btn {
    padding: 5px 5px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
}

.login {

    color: var(--primary);
}

.signup {

}

.theme-toggle {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    font-size: 22px;
    cursor: pointer;
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 70px;
        right: 0;
        background: var(--bg-color);
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 20px 0;
        display: none;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
        font-size: 26px;
        cursor: pointer;
        color: #fff;
    }
}

.profile {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--primary);
}

.profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Nunito', sans-serif;
  text-decoration: none;
}


.dot-container {
  position: absolute;
  bottom: 1rem;
  left: 0;
  z-index: 4;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.dot {
  cursor: pointer;
  height: 1rem;
  width: 1rem;
  background-color: rgba(211, 211, 211, 0.226);
  border-radius: 50%;
  display: inline-block;
  transition: ease 0.3s;
}
.active,
.dot:hover {
  color: #e9a538;
}

.fade {
  animation-name: fade;
  animation-duration: 1s;
}
@keyframes fade {
  from {
    opacity: 0.8;
  }
  to {
    opacity: 1;
  }
}

/* slider start */
#container{
  background-color:#444;
  width:100%;
  margin:4px auto;
  height:auto;
  overflow:hidden;
  position:relative;
  box-shadow:0px 4px 26px #222;
  border-radius:4px;
}
#container:active{
  cursor:e-resize;
}
#container span{
  position: absolute;
  top:48%;
  color:#222;
  font-size:1.7em;
  padding:0px 9px 2px 9px;
  background-color:#eee;
  border:1px solid #222;
  opacity: 0;
  border-radius:2px;
  transition: opacity .4s ease-out;
}

#container:hover span{
  text-shadow:1px 0px 4px black;
  opacity: 0.5;
  animation: blom 1000ms linear both;
}

#container span:hover {
  opacity:0.8;
  cursor:pointer;
}

#next{ right:20px; }
#back{ left:20px; }

#container ul {
  width:500%;
  padding:0;
  margin:0;
}
#container ul li {
  width:20%;
  display:inline-block;
  margin:0;
  padding:0;
  float:left;
  height:auto;
  overflow:hidden;
}

.slImg {
  float:left;
  width:100%;
  height:auto;
  max-height:615px;
  user-select: none;
}

@media screen and (max-width:890px){
		#container span{
      top:46%;
      font-size:1.3em;
      padding:0px 7px 1px 7px;
      display:none;
  }
}
@media screen and (max-width: 450px){
		#container span {
      top:46%;
      font-size:1em;
      padding:0px 6px 2px 6px;
      display:none;
  }
}

/* Generated with Bounce.js */
@-webkit-keyframes blom {
  0% { -webkit-transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  3.4% { -webkit-transform: matrix3d(1.316, 0, 0, 0, 0, 1.407, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); transform: matrix3d(1.316, 0, 0, 0, 0, 1.407, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  4.7% { -webkit-transform: matrix3d(1.45, 0, 0, 0, 0, 1.599, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); transform: matrix3d(1.45, 0, 0, 0, 0, 1.599, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  6.81% { -webkit-transform: matrix3d(1.659, 0, 0, 0, 0, 1.893, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); transform: matrix3d(1.659, 0, 0, 0, 0, 1.893, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  9.41% { -webkit-transform: matrix3d(1.883, 0, 0, 0, 0, 2.168, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); transform: matrix3d(1.883, 0, 0, 0, 0, 2.168, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  10.21% { -webkit-transform: matrix3d(1.942, 0, 0, 0, 0, 2.226, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); transform: matrix3d(1.942, 0, 0, 0, 0, 2.226, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  13.61% { -webkit-transform: matrix3d(2.123, 0, 0, 0, 0, 2.332, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); transform: matrix3d(2.123, 0, 0, 0, 0, 2.332, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  14.11% { -webkit-transform: matrix3d(2.141, 0, 0, 0, 0, 2.331, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); transform: matrix3d(2.141, 0, 0, 0, 0, 2.331, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  17.52% { -webkit-transform: matrix3d(2.208, 0, 0, 0, 0, 2.239, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); transform: matrix3d(2.208, 0, 0, 0, 0, 2.239, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  18.72% { -webkit-transform: matrix3d(2.212, 0, 0, 0, 0, 2.187, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); transform: matrix3d(2.212, 0, 0, 0, 0, 2.187, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  21.32% { -webkit-transform: matrix3d(2.196, 0, 0, 0, 0, 2.069, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); transform: matrix3d(2.196, 0, 0, 0, 0, 2.069, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  24.32% { -webkit-transform: matrix3d(2.151, 0, 0, 0, 0, 1.96, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); transform: matrix3d(2.151, 0, 0, 0, 0, 1.96, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  25.23% { -webkit-transform: matrix3d(2.134, 0, 0, 0, 0, 1.938, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); transform: matrix3d(2.134, 0, 0, 0, 0, 1.938, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  29.03% { -webkit-transform: matrix3d(2.063, 0, 0, 0, 0, 1.897, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); transform: matrix3d(2.063, 0, 0, 0, 0, 1.897, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  29.93% { -webkit-transform: matrix3d(2.048, 0, 0, 0, 0, 1.899, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); transform: matrix3d(2.048, 0, 0, 0, 0, 1.899, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  35.54% { -webkit-transform: matrix3d(1.979, 0, 0, 0, 0, 1.962, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); transform: matrix3d(1.979, 0, 0, 0, 0, 1.962, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  36.74% { -webkit-transform: matrix3d(1.972, 0, 0, 0, 0, 1.979, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); transform: matrix3d(1.972, 0, 0, 0, 0, 1.979, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  41.04% { -webkit-transform: matrix3d(1.961, 0, 0, 0, 0, 2.022, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); transform: matrix3d(1.961, 0, 0, 0, 0, 2.022, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  44.44% { -webkit-transform: matrix3d(1.966, 0, 0, 0, 0, 2.032, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); transform: matrix3d(1.966, 0, 0, 0, 0, 2.032, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  52.15% { -webkit-transform: matrix3d(1.991, 0, 0, 0, 0, 2.006, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); transform: matrix3d(1.991, 0, 0, 0, 0, 2.006, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  59.86% { -webkit-transform: matrix3d(2.006, 0, 0, 0, 0, 1.99, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); transform: matrix3d(2.006, 0, 0, 0, 0, 1.99, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  63.26% { -webkit-transform: matrix3d(2.007, 0, 0, 0, 0, 1.992, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); transform: matrix3d(2.007, 0, 0, 0, 0, 1.992, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  75.28% { -webkit-transform: matrix3d(2.001, 0, 0, 0, 0, 2.003, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); transform: matrix3d(2.001, 0, 0, 0, 0, 2.003, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  85.49% { -webkit-transform: matrix3d(1.999, 0, 0, 0, 0, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); transform: matrix3d(1.999, 0, 0, 0, 0, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  90.69% { -webkit-transform: matrix3d(1.999, 0, 0, 0, 0, 1.999, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); transform: matrix3d(1.999, 0, 0, 0, 0, 1.999, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  100% { -webkit-transform: matrix3d(2, 0, 0, 0, 0, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); transform: matrix3d(2, 0, 0, 0, 0, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); } }
@keyframes blom {
  0% { -webkit-transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  3.4% { -webkit-transform: matrix3d(1.316, 0, 0, 0, 0, 1.407, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); transform: matrix3d(1.316, 0, 0, 0, 0, 1.407, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  4.7% { -webkit-transform: matrix3d(1.45, 0, 0, 0, 0, 1.599, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); transform: matrix3d(1.45, 0, 0, 0, 0, 1.599, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  6.81% { -webkit-transform: matrix3d(1.659, 0, 0, 0, 0, 1.893, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); transform: matrix3d(1.659, 0, 0, 0, 0, 1.893, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  9.41% { -webkit-transform: matrix3d(1.883, 0, 0, 0, 0, 2.168, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); transform: matrix3d(1.883, 0, 0, 0, 0, 2.168, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  10.21% { -webkit-transform: matrix3d(1.942, 0, 0, 0, 0, 2.226, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); transform: matrix3d(1.942, 0, 0, 0, 0, 2.226, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  13.61% { -webkit-transform: matrix3d(2.123, 0, 0, 0, 0, 2.332, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); transform: matrix3d(2.123, 0, 0, 0, 0, 2.332, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  14.11% { -webkit-transform: matrix3d(2.141, 0, 0, 0, 0, 2.331, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); transform: matrix3d(2.141, 0, 0, 0, 0, 2.331, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  17.52% { -webkit-transform: matrix3d(2.208, 0, 0, 0, 0, 2.239, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); transform: matrix3d(2.208, 0, 0, 0, 0, 2.239, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  18.72% { -webkit-transform: matrix3d(2.212, 0, 0, 0, 0, 2.187, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); transform: matrix3d(2.212, 0, 0, 0, 0, 2.187, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  21.32% { -webkit-transform: matrix3d(2.196, 0, 0, 0, 0, 2.069, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); transform: matrix3d(2.196, 0, 0, 0, 0, 2.069, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  24.32% { -webkit-transform: matrix3d(2.151, 0, 0, 0, 0, 1.96, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); transform: matrix3d(2.151, 0, 0, 0, 0, 1.96, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  25.23% { -webkit-transform: matrix3d(2.134, 0, 0, 0, 0, 1.938, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); transform: matrix3d(2.134, 0, 0, 0, 0, 1.938, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  29.03% { -webkit-transform: matrix3d(2.063, 0, 0, 0, 0, 1.897, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); transform: matrix3d(2.063, 0, 0, 0, 0, 1.897, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  29.93% { -webkit-transform: matrix3d(2.048, 0, 0, 0, 0, 1.899, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); transform: matrix3d(2.048, 0, 0, 0, 0, 1.899, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  35.54% { -webkit-transform: matrix3d(1.979, 0, 0, 0, 0, 1.962, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); transform: matrix3d(1.979, 0, 0, 0, 0, 1.962, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  36.74% { -webkit-transform: matrix3d(1.972, 0, 0, 0, 0, 1.979, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); transform: matrix3d(1.972, 0, 0, 0, 0, 1.979, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  41.04% { -webkit-transform: matrix3d(1.961, 0, 0, 0, 0, 2.022, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); transform: matrix3d(1.961, 0, 0, 0, 0, 2.022, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  44.44% { -webkit-transform: matrix3d(1.966, 0, 0, 0, 0, 2.032, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); transform: matrix3d(1.966, 0, 0, 0, 0, 2.032, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  52.15% { -webkit-transform: matrix3d(1.991, 0, 0, 0, 0, 2.006, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); transform: matrix3d(1.991, 0, 0, 0, 0, 2.006, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  59.86% { -webkit-transform: matrix3d(2.006, 0, 0, 0, 0, 1.99, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); transform: matrix3d(2.006, 0, 0, 0, 0, 1.99, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  63.26% { -webkit-transform: matrix3d(2.007, 0, 0, 0, 0, 1.992, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); transform: matrix3d(2.007, 0, 0, 0, 0, 1.992, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  75.28% { -webkit-transform: matrix3d(2.001, 0, 0, 0, 0, 2.003, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); transform: matrix3d(2.001, 0, 0, 0, 0, 2.003, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  85.49% { -webkit-transform: matrix3d(1.999, 0, 0, 0, 0, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); transform: matrix3d(1.999, 0, 0, 0, 0, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  90.69% { -webkit-transform: matrix3d(1.999, 0, 0, 0, 0, 1.999, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); transform: matrix3d(1.999, 0, 0, 0, 0, 1.999, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  100% { -webkit-transform: matrix3d(2, 0, 0, 0, 0, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); transform: matrix3d(2, 0, 0, 0, 0, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
}

/* slider end */

.features-row {
  display: flex;
  gap: 20px;

  justify-content: center;
  flex-wrap: nowrap; /* single row */
  overflow-x: auto;  /* optional scroll on small screens */
}

/* Base Feature Card */
.feature-card {
  position: relative;
  flex: 1 1 250px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 38px;
  color: #fff;
  border-radius: 12px;
  overflow: hidden;

  transition: transform 0.3s;
  min-width: 250px; /* ensures single row */
}

.feature-card:hover {
  transform: translateY(-10px);
}

/* Gradient backgrounds */
.genres {
  background: linear-gradient(135deg, #5b4dff, #9b7aff);
}

.ranking {
  background: linear-gradient(135deg, #ff7e7e, #ffb6b6);
}

.male-stories {
  background: linear-gradient(135deg, #4dc6ff, #85e0ff);
}

.female-stories {
  background: linear-gradient(135deg, #ff9cd1, #ffc4e6);
}

/* Content */
.feature-card .content h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

.feature-card .content p {
  font-size: 14px;
}

/* Icon/Image */
.feature-card .icon img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}



/* CSS */
.best-babelnovel {
  background-color: var(--section-bg);
  padding: 40px 0;
  font-family: 'Nunito', sans-serif;

}

.best-babelnovel .container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.best-babelnovel .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.best-babelnovel .section-header h2 {
  font-size: 24px;
  font-weight: bold;
  color: #111;
}

.best-babelnovel .section-header .see-all {
  font-size: 14px;
  color: #f5a623;
  text-decoration: none;
}

.best-babelnovel .cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.best-babelnovel .card {
 background-color: var(--section-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  width: calc(25% - 15px);
  display: flex;
  flex-direction: column;
}

.best-babelnovel .card img {
  width: 100%;
  height: auto;
  display: block;
}

.best-babelnovel .card .genre {
  font-size: 12px;
  color: #888;
  padding: 5px 10px;
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--section-bg);
  border-radius: 4px;
}

.best-babelnovel .card h3 {
  font-size: 16px;
  margin: 10px;
  font-weight: bold;
  color: #111;
}

.best-babelnovel .card p {
  font-size: 14px;
  color: #555;
  padding: 0 10px 10px;
}

@media (max-width: 992px) {
  .best-babelnovel .card {
    width: calc(50% - 10px);
  }
}

@media (max-width: 600px) {
  .best-babelnovel .cards {
    flex-direction: column;
  }
  .best-babelnovel .card {
    width: 100%;
  }
}
.best-babelnovel {
  padding: 0px 0;
  font-family: 'Nunito', sans-serif;
  background-color: var(--section-bg);
}

.best-babelnovel .container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.best-babelnovel .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.best-babelnovel .section-header h2 {
  font-size: 28px;
  font-weight: bold;
  color: #111;
}

.best-babelnovel .section-header .see-all {
  font-size: 16px;
  color: #f5a623;
  text-decoration: none;
  transition: 0.3s;
}

.best-babelnovel .section-header .see-all:hover {
  text-decoration: underline;
}

.best-babelnovel .cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.best-babelnovel .card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  width: calc(25% - 15px);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}

.best-babelnovel .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.card-image {
     width: 100%;
    aspect-ratio: 3 / 4; /* Book cover ratio */
    overflow: hidden;
    position: relative;
}

.card-image img {
  width: 100%;
    aspect-ratio: 3 / 4; /* Book cover ratio */
    overflow: hidden;
    position: relative;
}
.best-babelnovel .card-image {
  position: relative;
}

.best-babelnovel .card-image img {
 width: 100%;
    aspect-ratio: 3 / 4; /* Book cover ratio */
    overflow: hidden;
    position: relative;
}

.best-babelnovel .card-image .genre {
  font-size: 12px;
  color: #fff;
  padding: 5px 10px;
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(245, 166, 35, 0.9);
  border-radius: 5px;
  font-weight: bold;
}

.best-babelnovel .card h3 {
  font-size: 18px;
  margin: 15px 15px 5px;
  font-weight: bold;
  color: #111;
}

.best-babelnovel .card p {
  font-size: 14px;
  color: #555;
  padding: 0 15px 15px;
  line-height: 1.5;
}

@media (max-width: 992px) {
  .best-babelnovel .card {
    width: calc(50% - 10px);
  }
}

@media (max-width: 600px) {
  .best-babelnovel .cards {
    flex-direction: column;
    gap: 15px;
  }
  .best-babelnovel .card {
    width: 100%;
  }
}


.weekly-featured-1{
  background-color: var(--section-bg);
  padding: 0px 0;

  font-family: 'Nunito', sans-serif;
}

.weekly-featured .container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  background-color: var(--section-bg);
}
.weekly-featured{
  background-color: var(--section-bg);
}
.weekly-featured1{
    background-color: var(--section-bg);
}

.weekly-featured .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.weekly-featured .section-header h2 {
  font-size: 28px;
  font-weight: bold;
  color: #111;
}

.weekly-featured .section-header .see-all {
  font-size: 16px;
  color: #f5a623;
  text-decoration: none;
}

.weekly-featured .cards-row {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-behavior: smooth;
}

.weekly-featured .cards-row::-webkit-scrollbar {
  height: 8px;
}

.weekly-featured .cards-row::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,0.2);
  border-radius: 4px;
}

.weekly-featured .card {
  flex: 0 0 calc(16.66% - 10px); /* 6 cards per row */
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.weekly-featured .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.weekly-featured .card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.weekly-featured .card h4 {
  font-size: 14px;
  color: #111;
  margin: 10px 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.weekly-featured h2{
    color: var(--text-color);
}
.weekly-featured1 h2{
    color: var(--text-color);
}
.chapter-section h2{
    color: var(--text-color);
}
.dark-theme-content-below-heading{
    color: var(--text-color) !important;
}
.chapter-section-below-seaction h2{
    color: var(--text-color);
}
@media (max-width: 1200px) {
  .weekly-featured .card {
    flex: 0 0 calc(20% - 10px); /* 5 cards */
  }
}

@media (max-width: 992px) {
  .weekly-featured .card {
    flex: 0 0 calc(25% - 10px); /* 4 cards */
  }
}

@media (max-width: 768px) {
  .weekly-featured .card {
    flex: 0 0 calc(33.33% - 10px); /* 3 cards */
  }
}

@media (max-width: 600px) {
  .weekly-featured .card {
    flex: 0 0 calc(50% - 10px); /* 2 cards */
  }
}

@media (max-width: 400px) {
  .weekly-featured .card {
    flex: 0 0 100%; /* 1 card */
  }
}

.werewolf-section {
    font-family: 'Nunito', sans-serif;
    padding: 20px;
    background-color: #f9f9f9;
    color: #333;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h1 {
    font-size: 28px;
}

.section-header .see-all {
    font-size: 14px;
    color: orange;
    text-decoration: none;
}

.books-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* Book card base style */
.book-card {
    display: flex;
    gap: 15px;
background-color: var(--card-bg);
  color: var(--text-color);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.book-card img {
    width: 100px;
    height: 140px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}

.book-info {
    display: flex;
    flex-direction: column;
}

.book-info h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.book-info p {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* show 3 lines only */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-info span {
    margin-top: auto;
    font-size: 12px;
    color: #999;
}

/* Specific style for second row (assume 3 per row) */
.books-container .book-card:nth-child(4),
.books-container .book-card:nth-child(5),
.books-container .book-card:nth-child(6) {
    background-color: #fff8e6;
    border: 2px solid orange;
}

/* Responsive */
@media (max-width: 600px) {
    .book-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .book-card img {
        width: 120px;
        height: 160px;
    }
}

.logo-dark {
    display: none;
}

body.dark .logo-light {
    display: none;
}

body.dark .logo-dark {
    display: block;
}
.novel-section {
    color: #000;
    padding: 20px 0;
    background-color: var(--section-bg);
}

.container {
    max-width: 1500px;
    margin: auto;
    padding: 22 20px;
}

.novel-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 40px;
}

/* ITEM */
.novel-item {
    /* display: flex; */
    gap: 16px;
    align-items: flex-start;
}

/* IMAGE */
.novel-item img {
    width: 90px;
    height: 130px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

/* CONTENT */
.novel-content h3 {
    color: #383535;
    font-size: 16px;
    margin-bottom: 6px;
    line-height: 1.3;
}

.novel-content p {
    color: #cbd5f5;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 8px;
}

/* TAG */
.tag {
    display: inline-block;
    font-size: 11px;
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.15);
    padding: 3px 8px;
    border-radius: 20px;
}

footer {
background: var(--text-color);
color: #e5e7eb;
padding: 40px 20px 20px;
margin-top: 60px;
}


.footer-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 30px;
max-width: 1200px;
margin: auto;
}


footer h4 {
margin-bottom: 15px;
font-weight: 700;
}


footer a {
display: block;
color: #cbd5f5;
text-decoration: none;
margin-bottom: 8px;
font-size: 14px;
}


footer a:hover {
color: #f59e0b;
}


.footer-bottom {
    display: flex;
    flex-direction: column;    /* stack logo above text */
    align-items: center;       /* center horizontally */
    justify-content: center;   /* center vertically if needed */
    gap: 10px;                 /* space between logo and text */
    padding: 15px 20px;
    font-size: 13px;
    color: var(--text-color);
    background: var(--secondary);
    text-align: center;        /* ensure text centered */
}

.footer-logo img {
    height: 50px;  /* adjust size as needed */
    width: auto;
    display: block;  /* ensures proper alignment */
}

.menu-toggle {
    font-size: 26px;
    color: var(--text-color);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}
@media (max-width: 900px) {
    .menu-toggle {
        display: block;
    }
}



.zigzag-section {
  background-color: var(--section-bg);
    max-width: 1200px;
    margin: auto;
    padding: 0px 20px;
    display: flex;
    flex-direction: column;
    gap: 80px;
    font-family: 'Nunito', sans-serif;
}

/* ROW */
.zigzag-row {
    display: flex;
    align-items: center;
    gap: 50px;
}

/* REVERSE ROW */
.zigzag-row.reverse {
    flex-direction: row-reverse;
}

/* IMAGE */
.zigzag-image {
    flex: 1;
}

.zigzag-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

/* CONTENT */
.zigzag-content {
    flex: 1;
    color: var(--text-color);
}


.zigzag-content h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.zigzag-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
}

/* MOBILE */
@media (max-width: 768px) {
    .zigzag-row,
    .zigzag-row.reverse {
        flex-direction: column;
        text-align: center;
    }

    .zigzag-image img {
        height: 240px;
    }
}
.editor-actions {
    margin-top: 30px;
}

/* BIG BLOCK BUTTON */
.btn-block {
    width: 100%;
    padding: 16px 0;
    font-size: 18px;
    font-weight: 700;
    border-radius: 14px;
    border: none;
    cursor: pointer;

    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    transition: all 0.3s ease;
}

/* HOVER EFFECT */
.btn-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(30,58,138,0.45);
}

/* ACTIVE */
.btn-block:active {
    transform: scale(0.98);
}

.user-menu {
    position: relative;
}

.user-menu .dropdown {
position: absolute;
  top: 35px;
  right: -61px;
  background: #ffffff;
  border-radius: 10px;
  min-width: 212px;
  padding: 17px 63px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  display: none;
  z-index: 999;
}

.user-menu:hover .dropdown {
    display: block;
}

.dropdown li {
    list-style: none;
}

.logout-btn {
width: 106%;
  padding: 4px 0px;
  background: none;
  border: none;
  text-align: left;
  font-size: 12px;
  cursor: pointer;
}

.logout-btn:hover {

    color: #726e6e;
}


/* PAGE */
.novel-page {
    font-family: 'Segoe UI', sans-serif;
}

/* HEADER */
.novel-header {
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.novel-cover img {
    width: 120px;
    height: 170px;
    object-fit: cover;
    border-radius: 8px;
}

.novel-desc h4 {
    margin-bottom: 6px;
}

.novel-desc p {
    color: #555;
    margin-bottom: 0;
}

/* META */
.novel-meta span {
    display: inline-block;
}

/* EPISODE EDITOR */
.episode-editor {
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.episode-textarea {
    resize: vertical;
    font-size: 15px;
    line-height: 1.7;
}

/* EPISODE LIST */
.episode-list {
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.episode-list .list-group-item {
    transition: background 0.2s;
}

.episode-list .list-group-item:hover {
    background: #f8f9fa;
    cursor: pointer;
}
.a4-page {
    width: 794px;
    min-height: 1123px;
    margin: auto;
    padding: 40px;
    background: #fff;
    font-size: 18px;
    line-height: 1.8;
}

.novel-top {
    max-width: 900px;
    margin: auto;
    background: #fff;
}

.novel-cover {
    max-height: 340px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.novel-title {
    font-size: 2.4rem;
    font-weight: 700;
}

.novel-desc {
    line-height: 1.9;
    max-width: 700px;
    margin: auto;
}

/* LIKE BUTTON */
.btn-like {
    border: 1px solid #dc3545;
    color: #dc3545;
    border-radius: 30px;
    padding: 6px 18px;
    background: transparent;
}

.btn-like:hover {
    background: #dc3545;
    color: #fff;
}

/* EPISODES */
.episodes-section {
    max-width: 900px;
    margin: auto;
}

.episode-block {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
}

.episode-title a {
    font-weight: 600;
    color: #212529;
    text-decoration: none;
}

.episode-title a:hover {
    color: #0d6efd;
}

.episode-content {
    margin-top: 12px;
    color: #444;
    line-height: 1.9;
    white-space: pre-line;
}

.episode-meta {
    font-size: 0.85rem;
    color: #888;
}
.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2c3e50;
    position: relative;
    margin-bottom: 25px;
    padding-left: 15px;
}

.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 5px;
    height: 25px;
    background: linear-gradient(to bottom, #0d6efd, #6610f2);
    border-radius: 3px;
}


/* Card */
.custom-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    transition: 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.custom-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Image */
.card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4; /* Perfect novel ratio */
    background: #f5f5f5;
    overflow: hidden;
    border-radius: 15px;
}

/* IMPORTANT CHANGE HERE */
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;   /* ðŸ‘ˆ THIS FIXES TITLE CUT ISSUE */
    object-position: top;  /* ðŸ‘ˆ Keep image top visible */
    background: #fff;
    padding: 5px;
}

.custom-card:hover .card-image img {
    transform: scale(1.05);
}

/* Category badge */
.genre {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 20px;
}

/* Stats overlay */
.card-stats {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #fff;
}

.card-stats span {
    background: rgba(0,0,0,0.6);
    padding: 5px 10px;
    border-radius: 20px;
}

/* Body */
.card-body {
    padding: 15px;
}

.card-body h5 {
    font-weight: 600;
    margin-bottom: 8px;
}

.card-body p {
    font-size: 14px;
    color: #555;
}
.novel-link {
    text-decoration: none;
    color: inherit;
}

.novel-link:hover {
    text-decoration: none;
    color: inherit;
}

.custom-card {
    transition: 0.3s ease;
}

.custom-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.cards-row {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.cards-row::-webkit-scrollbar {
    height: 6px;
}
.cards-row::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

/* Card */
.weekly-card {
    min-width: 180px;
    background-color: var(--bg-color);
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: 0.3s;
    color: var(--text-color);
}

.weekly-card:hover {
    transform: translateY(-5px);
}

/* Image Fix */
.weekly-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;   /* Proper Novel Ratio */
    overflow: hidden;
    border-radius: 15px 15px 0 0;
    background: var(--bg-color);
}

.weekly-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;   /* ðŸ”¥ FIX: keeps full cover visible */
    object-position: top;  /* Keeps top title visible */
    background: var(--bg-color);
}

/* Title */
.weekly-title {
    padding: 5px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    color: var(--text-color);
}

/* Optional Badge */
.badge-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 20px;
}
.weekly-card-link {
    text-decoration: none;
    color: inherit;
}

.weekly-card-link:hover {
    text-decoration: none;
    color: inherit;
}
.admin-banner-wrapper {
    width: 100%;
    height: 300px;          /* Fixed height */
    overflow: hidden;
    border-radius: 12px;    /* Optional nice rounded */
}

.admin-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* Important: Prevent stretch */
    display: block;
}

/* Responsive Height */
@media (max-width: 768px) {
    .admin-banner-wrapper {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .admin-banner-wrapper {
        height: 160px;
    }
}
.blog-detail h1 {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--text-color)
}

.blog-detail .blog-image img {
    width: 100%;
    max-width: 700px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.blog-detail .blog-content {
    font-size: 17px;
    line-height: 1.8;
    margin-top: 30px;
    color: #333;
}
.blog-detail .blog-content h1, .blog-detail .blog-content h2, .blog-detail .blog-content h3, .blog-detail .blog-content h4,.blog-detail .blog-content h5, .blog-detail .blog-content h6  {
    color: #333;
}

.blog-detail .btn-secondary {
    background-color: #6c757d;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    color: #fff;
}
.blog-detail p
{
    color: #333;
}
    .chapter-section {
    background: linear-gradient(to right, var(--bg-color), var(--bg-color));
}

.chapter-card {
    background: var(--bg-color);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;

}

.chapter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.chapter-title {
    font-size: 1.6rem;
    color: var(--text-color);
}

.chapter-divider {
    width: 80px;
    height: 3px;
    background: #0d6efd;
    border: none;
}

.chapter-content {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-color);
    text-align: justify;
}
/* HERO */
.novel-hero {
    background: linear-gradient(to right, #1c1c1c, #4b4b4b);
    color: #fff;
    padding: 60px 0;
}

.hero-content {
    display: flex;
    gap: 40px;
    align-items: center;
    background-color: #E9A53A;
}

.hero-cover img {
    width: 220px;
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

.hero-details  {

    background-color: #E9A53A;

}
.hero-details h1 {
    font-size: 2.2rem;
    font-weight: 700;

}

.author {
    opacity: 0.85;
    margin-bottom: 10px;
}

.description {
    max-width: 600px;
    line-height: 1.7;
    opacity: 0.9;
}

/* STATS */
.stats {
    display: flex;
    gap: 30px;
    margin: 20px 0;
    font-size: 0.95rem;
}

/* ACTION BUTTONS */
.actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-read {
    background: #f9b233;
    color: #000;
    padding: 10px 26px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
}

.btn-read:hover {
    background: #ffc95c;
}

.btn-library {
    background: transparent;
    border: 1px solid #f9b233;
    color: #f9b233;
    padding: 8px 22px;
    border-radius: 25px;
}

/* CHAPTERS */
.chapter-section {
    background: var(--bg-color);
    padding: 60px 0;
}

.chapter-card {
    max-width: 900px;
    margin: auto auto 50px auto;
}

.chapter-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.chapter-content {
    font-size: 1.05rem;
    line-height: 2;
    color: var(--text-color);
    white-space: pre-line;
}
@media (max-width: 576px) {

    .weekly-image img {
        height: 160px;
    }

    .weekly-title {
        font-size: 13px;
    }

    .badge-label {
        font-size: 10px;
        padding: 3px 6px;
    }
.swiper-slide {
    width: 300px; /* fixed width required */
}
}


@media(max-width: 767px){
    .container {
            padding: 15px 20px;
        
    }
}
.card-body{
        min-height: 96px;
}
.weekly-title{
    min-height: 50px;
}